Bug 1403712: Clear the restyle root at the end of UnbindFromTree too. r=bholley

MozReview-Commit-ID: 7swfspMWUe6
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-09-28 14:18:36 +02:00
parent b5ab9820ca
commit d77d8cd43e

View File

@ -2005,6 +2005,9 @@ Element::UnbindFromTree(bool aDeep, bool aNullParent)
// since the invariant we'd be breaking in that case is "HasServoData()
// implies InComposedDoc()", which we rely on in various places.
UnsetFlags(kAllServoDescendantBits);
if (document && document->GetServoRestyleRoot() == this) {
document->ClearServoRestyleRoot();
}
}
nsICSSDeclaration*