Fixed it so XML documents display again

git-svn-id: svn://10.0.0.236/trunk@16931 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-12-29 05:51:11 +00:00
parent 1113a62e37
commit d12c228d7d
3 changed files with 3 additions and 6 deletions

View File

@@ -1617,8 +1617,7 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
nsIHTMLContent *htmlContent;
// Ignore the tag if it's not HTML content
rv = aContent->QueryInterface(kIHTMLContentIID, (void **)&htmlContent);
if (NS_SUCCEEDED(rv)) {
if (NS_SUCCEEDED(aContent->QueryInterface(kIHTMLContentIID, (void **)&htmlContent))) {
// See if the element is absolutely positioned
const nsStylePosition* position = (const nsStylePosition*)
aStyleContext->GetStyleData(eStyleStruct_Position);

View File

@@ -1617,8 +1617,7 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
nsIHTMLContent *htmlContent;
// Ignore the tag if it's not HTML content
rv = aContent->QueryInterface(kIHTMLContentIID, (void **)&htmlContent);
if (NS_SUCCEEDED(rv)) {
if (NS_SUCCEEDED(aContent->QueryInterface(kIHTMLContentIID, (void **)&htmlContent))) {
// See if the element is absolutely positioned
const nsStylePosition* position = (const nsStylePosition*)
aStyleContext->GetStyleData(eStyleStruct_Position);

View File

@@ -1617,8 +1617,7 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
nsIHTMLContent *htmlContent;
// Ignore the tag if it's not HTML content
rv = aContent->QueryInterface(kIHTMLContentIID, (void **)&htmlContent);
if (NS_SUCCEEDED(rv)) {
if (NS_SUCCEEDED(aContent->QueryInterface(kIHTMLContentIID, (void **)&htmlContent))) {
// See if the element is absolutely positioned
const nsStylePosition* position = (const nsStylePosition*)
aStyleContext->GetStyleData(eStyleStruct_Position);