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

@@ -218,8 +218,6 @@ HTMLLinkElement::UnbindFromTree(bool aDeep, bool aNullParent)
ShadowRoot* oldShadowRoot = GetBindingParent() ?
GetBindingParent()->GetShadowRoot() : nullptr;
OwnerDoc()->UnregisterPendingLinkUpdate(this);
CreateAndDispatchEvent(oldDoc, NS_LITERAL_STRING("DOMLinkRemoved"));
nsGenericHTMLElement::UnbindFromTree(aDeep, aNullParent);