gecko-dev/servo
Emilio Cobos Álvarez 39c2e77024 Bug 1479398: Micro-optimize is_root to avoid poking at the parent in the common case. r=xidorn
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

MozReview-Commit-ID: EWHwgqkl1r5
2018-07-31 15:01:40 +02:00
..
components Bug 1479398: Micro-optimize is_root to avoid poking at the parent in the common case. r=xidorn 2018-07-31 15:01:40 +02:00
ports/geckolib Bug 1479450: Convert GetStringValue to use Servo. r=xidorn 2018-07-31 12:05:00 +02:00
support/gecko/nsstring Bug 1464834: Remove dead servo code. r=xidorn,heycam 2018-05-29 10:28:11 +02:00
tests/unit Bug 1476054: Fix Servo build and unit tests build. r=me 2018-07-17 10:23:26 +02:00
moz.build Bug 1464834: Bring back servo/moz.build to fix the linting failure. r=me 2018-05-29 11:07:31 +02:00