зеркало из https://github.com/mozilla/gecko-dev.git
added hint to attribute change notification
This commit is contained in:
Родитель
7891e67337
Коммит
f822141a76
|
@ -1221,7 +1221,7 @@ nsGenericHTMLElement::SetAttribute(nsIAtom* aAttribute,
|
|||
}
|
||||
|
||||
if (aNotify && (nsnull != mDocument)) {
|
||||
mDocument->AttributeChanged(mContent, aAttribute);
|
||||
mDocument->AttributeChanged(mContent, aAttribute, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -1241,7 +1241,7 @@ nsGenericHTMLElement::SetAttribute(nsIAtom* aAttribute,
|
|||
NS_RELEASE(sheet);
|
||||
}
|
||||
if (aNotify) {
|
||||
mDocument->AttributeChanged(mContent, aAttribute);
|
||||
mDocument->AttributeChanged(mContent, aAttribute, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
else { // manage this ourselves and re-sync when we connect to doc
|
||||
|
@ -1287,7 +1287,7 @@ nsGenericHTMLElement::UnsetAttribute(nsIAtom* aAttribute, PRBool aNotify)
|
|||
NS_RELEASE(sheet);
|
||||
}
|
||||
if (aNotify) {
|
||||
mDocument->AttributeChanged(mContent, aAttribute);
|
||||
mDocument->AttributeChanged(mContent, aAttribute, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
else { // manage this ourselves and re-sync when we connect to doc
|
||||
|
|
|
@ -256,7 +256,8 @@ nsDOMStyleDeclaration::SetProperty(const nsString& aPropertyName,
|
|||
nsICSSParser* css;
|
||||
result = NS_NewCSSParser(&css);
|
||||
if (NS_OK == result) {
|
||||
result = css->ParseAndAppendDeclaration(declString, nsnull, *decl);
|
||||
PRInt32 hint;
|
||||
result = css->ParseAndAppendDeclaration(declString, nsnull, decl, &hint);
|
||||
if (NS_OK == result) {
|
||||
if (aPriority.Equals("!important")) {
|
||||
char prop[50];
|
||||
|
@ -266,7 +267,7 @@ nsDOMStyleDeclaration::SetProperty(const nsString& aPropertyName,
|
|||
nsIDocument *doc;
|
||||
result = mContent->GetDocument(doc);
|
||||
if (NS_OK == result) {
|
||||
doc->AttributeChanged(mContent, nsHTMLAtoms::style);
|
||||
doc->AttributeChanged(mContent, nsHTMLAtoms::style, hint);
|
||||
NS_RELEASE(doc);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1221,7 +1221,7 @@ nsGenericHTMLElement::SetAttribute(nsIAtom* aAttribute,
|
|||
}
|
||||
|
||||
if (aNotify && (nsnull != mDocument)) {
|
||||
mDocument->AttributeChanged(mContent, aAttribute);
|
||||
mDocument->AttributeChanged(mContent, aAttribute, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
@ -1241,7 +1241,7 @@ nsGenericHTMLElement::SetAttribute(nsIAtom* aAttribute,
|
|||
NS_RELEASE(sheet);
|
||||
}
|
||||
if (aNotify) {
|
||||
mDocument->AttributeChanged(mContent, aAttribute);
|
||||
mDocument->AttributeChanged(mContent, aAttribute, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
else { // manage this ourselves and re-sync when we connect to doc
|
||||
|
@ -1287,7 +1287,7 @@ nsGenericHTMLElement::UnsetAttribute(nsIAtom* aAttribute, PRBool aNotify)
|
|||
NS_RELEASE(sheet);
|
||||
}
|
||||
if (aNotify) {
|
||||
mDocument->AttributeChanged(mContent, aAttribute);
|
||||
mDocument->AttributeChanged(mContent, aAttribute, NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
}
|
||||
else { // manage this ourselves and re-sync when we connect to doc
|
||||
|
|
Загрузка…
Ссылка в новой задаче