From 03ccb229ff70e274b34f784a8158cfd8ca56587e Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Sat, 27 Feb 1999 01:34:32 +0000 Subject: [PATCH] Changing GetStyleHintForAttributeChanged so that it is invoked on styledContent instead of htmlContent. git-svn-id: svn://10.0.0.236/trunk@22269 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 10 +++++----- .../layout/html/style/src/nsCSSFrameConstructor.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 13573e08b5c..e12d284a368 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -3586,14 +3586,14 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext, #endif // the style tag has its own interpretation based on aHint - if ((nsHTMLAtoms::style != aAttribute) && (NS_STYLE_HINT_UNKNOWN == aHint)) { - nsIHTMLContent* htmlContent; - result = aContent->QueryInterface(kIHTMLContentIID, (void**)&htmlContent); + if (NS_STYLE_HINT_UNKNOWN == aHint) { + nsIStyledContent* styledContent; + result = aContent->QueryInterface(nsIStyledContent::IID(), (void**)&styledContent); if (NS_OK == result) { // Get style hint from HTML content object. - htmlContent->GetStyleHintForAttributeChange(aAttribute, &aHint); - NS_RELEASE(htmlContent); + styledContent->GetStyleHintForAttributeChange(aAttribute, &aHint); + NS_RELEASE(styledContent); } else aHint = NS_STYLE_HINT_REFLOW; } diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 13573e08b5c..e12d284a368 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -3586,14 +3586,14 @@ nsCSSFrameConstructor::AttributeChanged(nsIPresContext* aPresContext, #endif // the style tag has its own interpretation based on aHint - if ((nsHTMLAtoms::style != aAttribute) && (NS_STYLE_HINT_UNKNOWN == aHint)) { - nsIHTMLContent* htmlContent; - result = aContent->QueryInterface(kIHTMLContentIID, (void**)&htmlContent); + if (NS_STYLE_HINT_UNKNOWN == aHint) { + nsIStyledContent* styledContent; + result = aContent->QueryInterface(nsIStyledContent::IID(), (void**)&styledContent); if (NS_OK == result) { // Get style hint from HTML content object. - htmlContent->GetStyleHintForAttributeChange(aAttribute, &aHint); - NS_RELEASE(htmlContent); + styledContent->GetStyleHintForAttributeChange(aAttribute, &aHint); + NS_RELEASE(styledContent); } else aHint = NS_STYLE_HINT_REFLOW; }