Fixed it so XML documents display again

This commit is contained in:
troy%netscape.com 1998-12-29 05:51:11 +00:00
Родитель b3d727e277
Коммит 2d45b350be
3 изменённых файлов: 3 добавлений и 6 удалений

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

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

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

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

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

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