mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 384663, r+sr=bz
This commit is contained in:
parent
bc9300967d
commit
57208eb367
@ -3572,7 +3572,8 @@ nsGenericElement::SetAttrAndNotify(PRInt32 aNamespaceID,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (document) {
|
||||
nsXBLBinding *binding = document->BindingManager()->GetBinding(this);
|
||||
nsRefPtr<nsXBLBinding> binding =
|
||||
document->BindingManager()->GetBinding(this);
|
||||
if (binding) {
|
||||
binding->AttributeChanged(aName, aNamespaceID, PR_FALSE, aNotify);
|
||||
}
|
||||
|
@ -547,12 +547,13 @@ nsXBLPrototypeBinding::AttributeChanged(nsIAtom* aAttribute,
|
||||
return;
|
||||
|
||||
// Iterate over the elements in the array.
|
||||
nsIContent* content = GetImmediateChild(nsGkAtoms::content);
|
||||
nsCOMPtr<nsIContent> content = GetImmediateChild(nsGkAtoms::content);
|
||||
while (xblAttr) {
|
||||
nsIContent* element = xblAttr->GetElement();
|
||||
|
||||
nsIContent *realElement = LocateInstance(aChangedElement, content,
|
||||
aAnonymousContent, element);
|
||||
nsCOMPtr<nsIContent> realElement = LocateInstance(aChangedElement, content,
|
||||
aAnonymousContent,
|
||||
element);
|
||||
|
||||
if (realElement) {
|
||||
nsIAtom* dstAttr = xblAttr->GetDstAttribute();
|
||||
|
Loading…
Reference in New Issue
Block a user