Made sure NS_BODY_THE_BODY flag is set for the body wrapper frame we

create for XML documents
This commit is contained in:
troy%netscape.com 1998-11-16 21:48:13 +00:00
Родитель e8775482db
Коммит 8550f707c1
3 изменённых файлов: 3 добавлений и 3 удалений

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

@ -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