This commit is contained in:
hyatt%netscape.com 2000-10-30 09:24:11 +00:00
Родитель 80047d0b98
Коммит 86fe4426e1
2 изменённых файлов: 12 добавлений и 20 удалений

Просмотреть файл

@ -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)