зеркало из https://github.com/mozilla/pjs.git
Made sure NS_BODY_THE_BODY flag is set for the body wrapper frame we
create for XML documents
This commit is contained in:
Родитель
e8775482db
Коммит
8550f707c1
|
@ -1267,7 +1267,7 @@ HTMLStyleSheetImpl::ConstructXMLRootFrame(nsIPresContext* aPresContext,
|
||||||
rootPseudoStyle);
|
rootPseudoStyle);
|
||||||
|
|
||||||
// Create a body frame to wrap the document element
|
// Create a body frame to wrap the document element
|
||||||
NS_NewBodyFrame(nsnull, scrollFrame, wrapperFrame, NS_BODY_SHRINK_WRAP);
|
NS_NewBodyFrame(nsnull, scrollFrame, wrapperFrame, NS_BODY_THE_BODY|NS_BODY_SHRINK_WRAP);
|
||||||
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
|
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
|
||||||
|
|
||||||
// Construct a frame for the document element and process its children
|
// Construct a frame for the document element and process its children
|
||||||
|
|
|
@ -1267,7 +1267,7 @@ HTMLStyleSheetImpl::ConstructXMLRootFrame(nsIPresContext* aPresContext,
|
||||||
rootPseudoStyle);
|
rootPseudoStyle);
|
||||||
|
|
||||||
// Create a body frame to wrap the document element
|
// Create a body frame to wrap the document element
|
||||||
NS_NewBodyFrame(nsnull, scrollFrame, wrapperFrame, NS_BODY_SHRINK_WRAP);
|
NS_NewBodyFrame(nsnull, scrollFrame, wrapperFrame, NS_BODY_THE_BODY|NS_BODY_SHRINK_WRAP);
|
||||||
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
|
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
|
||||||
|
|
||||||
// Construct a frame for the document element and process its children
|
// Construct a frame for the document element and process its children
|
||||||
|
|
|
@ -1267,7 +1267,7 @@ HTMLStyleSheetImpl::ConstructXMLRootFrame(nsIPresContext* aPresContext,
|
||||||
rootPseudoStyle);
|
rootPseudoStyle);
|
||||||
|
|
||||||
// Create a body frame to wrap the document element
|
// Create a body frame to wrap the document element
|
||||||
NS_NewBodyFrame(nsnull, scrollFrame, wrapperFrame, NS_BODY_SHRINK_WRAP);
|
NS_NewBodyFrame(nsnull, scrollFrame, wrapperFrame, NS_BODY_THE_BODY|NS_BODY_SHRINK_WRAP);
|
||||||
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
|
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
|
||||||
|
|
||||||
// Construct a frame for the document element and process its children
|
// Construct a frame for the document element and process its children
|
||||||
|
|
Загрузка…
Ссылка в новой задаче