Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Micro-optimize is_root to avoid poking at the parent in the co…
…mmon case. We can discard the common case of an element having another element or document fragment parent, which is the common case. Then we can discard detached subtrees looking at is_in_document(). The only case where we have a non-content parent is the document case: https://searchfox.org/mozilla-central/rev/033d45ca70ff32acf04286244644d19308c359d5/dom/base/Element.cpp#1683 Differential Revision: https://phabricator.services.mozilla.com/D2505
- Loading branch information