зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
bd01f5a4c1
Коммит
4a3de77c51
|
@ -1267,7 +1267,7 @@ HTMLStyleSheetImpl::ConstructXMLRootFrame(nsIPresContext* aPresContext,
|
|||
rootPseudoStyle);
|
||||
|
||||
// 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);
|
||||
|
||||
// Construct a frame for the document element and process its children
|
||||
|
|
|
@ -1267,7 +1267,7 @@ HTMLStyleSheetImpl::ConstructXMLRootFrame(nsIPresContext* aPresContext,
|
|||
rootPseudoStyle);
|
||||
|
||||
// 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);
|
||||
|
||||
// Construct a frame for the document element and process its children
|
||||
|
|
|
@ -1267,7 +1267,7 @@ HTMLStyleSheetImpl::ConstructXMLRootFrame(nsIPresContext* aPresContext,
|
|||
rootPseudoStyle);
|
||||
|
||||
// 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);
|
||||
|
||||
// Construct a frame for the document element and process its children
|
||||
|
|
Загрузка…
Ссылка в новой задаче