mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 621618 patch 1: Remove BindToTree overrides in nsXMLElement that exist only to make AddToIdTable/RemoveFromIdTable calls already in the base class (Element). r=bzbarsky
I think this could have been done as part of Bug 700981 part 2, which moved AddToIdTable and RemoveFromIdTable calls from nsStyledElement to nsGenericElement.
This commit is contained in:
parent
c756924cf8
commit
5be0db86fb
@ -133,28 +133,3 @@ nsXMLElement::ParseAttribute(int32_t aNamespaceID,
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXMLElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||
nsIContent* aBindingParent,
|
||||
bool aCompileEventHandlers)
|
||||
{
|
||||
nsresult rv = Element::BindToTree(aDocument, aParent,
|
||||
aBindingParent,
|
||||
aCompileEventHandlers);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (aDocument && HasID() && !GetBindingParent()) {
|
||||
aDocument->AddToIdTable(this, DoGetID());
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsXMLElement::UnbindFromTree(bool aDeep, bool aNullParent)
|
||||
{
|
||||
RemoveFromIdTable();
|
||||
|
||||
return Element::UnbindFromTree(aDeep, aNullParent);
|
||||
}
|
||||
|
@ -37,10 +37,6 @@ public:
|
||||
// nsIContent interface methods
|
||||
virtual nsIAtom *GetIDAttributeName() const MOZ_OVERRIDE;
|
||||
virtual nsIAtom* DoGetID() const MOZ_OVERRIDE;
|
||||
virtual nsresult BindToTree(nsIDocument* aDocument, nsIContent* aParent,
|
||||
nsIContent* aBindingParent,
|
||||
bool aCompileEventHandlers) MOZ_OVERRIDE;
|
||||
virtual void UnbindFromTree(bool aDeep, bool aNullParent) MOZ_OVERRIDE;
|
||||
virtual nsresult UnsetAttr(int32_t aNameSpaceID, nsIAtom* aAttribute,
|
||||
bool aNotify) MOZ_OVERRIDE;
|
||||
virtual bool ParseAttribute(int32_t aNamespaceID,
|
||||
|
Loading…
Reference in New Issue
Block a user