Bug 1355540, use SegmentedVector for pending links to avoid slow hashtable lookups in hot codepaths, r=bz

This commit is contained in:
Olli Pettay
2017-04-15 18:55:05 +03:00
parent ddf0cda8da
commit 1a7d96f92a
17 changed files with 101 additions and 49 deletions

View File

@@ -142,13 +142,6 @@ HTMLAreaElement::UnbindFromTree(bool aDeep, bool aNullParent)
// be under a different xml:base, so forget the cached state now.
Link::ResetLinkState(false, Link::ElementHasHref());
// Note, we need to use OwnerDoc() here, since GetComposedDoc() might
// return null.
nsIDocument* doc = OwnerDoc();
if (doc) {
doc->UnregisterPendingLinkUpdate(this);
}
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);
}