зеркало из https://github.com/mozilla/pjs.git
Fixed it so XML documents display again
This commit is contained in:
Родитель
b3d727e277
Коммит
2d45b350be
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче