mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Fix for 57139, a=ben
This commit is contained in:
parent
80047d0b98
commit
86fe4426e1
@ -603,6 +603,12 @@ nsXULElement::QueryInterface(REFNSIID iid, void** result)
|
||||
else
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
/*else if (mScriptObject && mDocument) {
|
||||
nsCOMPtr<nsIBindingManager> manager;
|
||||
mDocument->GetBindingManager(getter_AddRefs(manager));
|
||||
return manager->GetBindingImplementation(NS_STATIC_CAST(nsIStyledContent*, this), mScriptObject,
|
||||
iid, result);
|
||||
}*/
|
||||
else {
|
||||
*result = nsnull;
|
||||
return NS_NOINTERFACE;
|
||||
@ -3899,16 +3905,6 @@ nsXULElement::GetMappedAttributeImpact(const nsIAtom* aAttribute,
|
||||
// "style" attribute anyway.
|
||||
aHint = NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
else if (NodeInfo()->Equals(nsXULAtoms::treeitem)) {
|
||||
// Force a framechange if the 'open' atom changes on a <treeitem>
|
||||
if (nsXULAtoms::open == aAttribute)
|
||||
aHint = NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
else if (NodeInfo()->Equals(nsXULAtoms::treecol)) {
|
||||
// Ignore 'width' and 'hidden' on a <treecol>
|
||||
if (nsXULAtoms::width == aAttribute || nsXULAtoms::hidden == aAttribute)
|
||||
aHint = NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
else if (NodeInfo()->Equals(nsXULAtoms::window)) {
|
||||
// Ignore 'width' and 'height' on a <window>
|
||||
if (nsXULAtoms::width == aAttribute || nsXULAtoms::height == aAttribute)
|
||||
|
@ -603,6 +603,12 @@ nsXULElement::QueryInterface(REFNSIID iid, void** result)
|
||||
else
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
/*else if (mScriptObject && mDocument) {
|
||||
nsCOMPtr<nsIBindingManager> manager;
|
||||
mDocument->GetBindingManager(getter_AddRefs(manager));
|
||||
return manager->GetBindingImplementation(NS_STATIC_CAST(nsIStyledContent*, this), mScriptObject,
|
||||
iid, result);
|
||||
}*/
|
||||
else {
|
||||
*result = nsnull;
|
||||
return NS_NOINTERFACE;
|
||||
@ -3899,16 +3905,6 @@ nsXULElement::GetMappedAttributeImpact(const nsIAtom* aAttribute,
|
||||
// "style" attribute anyway.
|
||||
aHint = NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
else if (NodeInfo()->Equals(nsXULAtoms::treeitem)) {
|
||||
// Force a framechange if the 'open' atom changes on a <treeitem>
|
||||
if (nsXULAtoms::open == aAttribute)
|
||||
aHint = NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
else if (NodeInfo()->Equals(nsXULAtoms::treecol)) {
|
||||
// Ignore 'width' and 'hidden' on a <treecol>
|
||||
if (nsXULAtoms::width == aAttribute || nsXULAtoms::hidden == aAttribute)
|
||||
aHint = NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
else if (NodeInfo()->Equals(nsXULAtoms::window)) {
|
||||
// Ignore 'width' and 'height' on a <window>
|
||||
if (nsXULAtoms::width == aAttribute || nsXULAtoms::height == aAttribute)
|
||||
|
Loading…
x
Reference in New Issue
Block a user