diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index 1844036d2f84..7d27eb8b8018 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -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 diff --git a/layout/html/content/src/nsDOMStyleDeclaration.cpp b/layout/html/content/src/nsDOMStyleDeclaration.cpp index cd1fd44f3e52..fdeb5055d0b2 100644 --- a/layout/html/content/src/nsDOMStyleDeclaration.cpp +++ b/layout/html/content/src/nsDOMStyleDeclaration.cpp @@ -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); } } diff --git a/layout/html/content/src/nsGenericHTMLElement.cpp b/layout/html/content/src/nsGenericHTMLElement.cpp index 1844036d2f84..7d27eb8b8018 100644 --- a/layout/html/content/src/nsGenericHTMLElement.cpp +++ b/layout/html/content/src/nsGenericHTMLElement.cpp @@ -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