added hint to attribute change notification

This commit is contained in:
peterl%netscape.com 1998-09-29 23:48:38 +00:00
Родитель 7891e67337
Коммит f822141a76
3 изменённых файлов: 9 добавлений и 8 удалений

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

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