author | Emilio Cobos Álvarez <emilio@crisal.io> |
Fri, 20 Apr 2018 03:56:02 +0200 | |
changeset 414625 | 6bec96422fe4ba15e76247e7e8b83e506daf1f6d |
parent 414624 | cb757c8237f0ae635266eb247032bf9147eb4e38 |
child 414626 | 7549ebecdf7e78e3560382a2b25fddb34c0ba60f |
push id | 102386 |
push user | ecoal95@gmail.com |
push date | Fri, 20 Apr 2018 01:58:36 +0000 |
treeherder | mozilla-inbound@6bec96422fe4 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | me |
bugs | 1454233 |
milestone | 61.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/base/nsINode.h +++ b/dom/base/nsINode.h @@ -448,16 +448,17 @@ public: return IsElement() || IsText(); } /** * Returns true if this is a document node. */ bool IsDocument() const { + // One less pointer-chase than checking NodeType(). return !GetParentNode() && IsInUncomposedDoc(); } /** * Return this node as a document. Asserts IsDocument(). * * This is defined inline in nsIDocument.h. */