diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index d593ee366c2..4ada8c5aab0 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -5100,7 +5100,7 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext, if (NS_OK == result) { // Get style hint from HTML content object. - styledContent->GetStyleHintForAttributeChange(aAttribute, &aHint); + styledContent->GetMappedAttributeImpact(aAttribute, aHint); NS_RELEASE(styledContent); } } diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index d593ee366c2..4ada8c5aab0 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -5100,7 +5100,7 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext, if (NS_OK == result) { // Get style hint from HTML content object. - styledContent->GetStyleHintForAttributeChange(aAttribute, &aHint); + styledContent->GetMappedAttributeImpact(aAttribute, aHint); NS_RELEASE(styledContent); } }