force display type of viewport frame to BLOCK

This commit is contained in:
peterl%netscape.com 1999-06-18 05:36:58 +00:00
Родитель 085381a1fb
Коммит 457dea0ee6
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -2033,6 +2033,11 @@ nsCSSFrameConstructor::ConstructRootFrame(nsIPresContext* aPresContext,
nsnull, PR_FALSE,
getter_AddRefs(viewportPseudoStyle));
{ // ensure that the viewport thinks it is a block frame, layout goes pootsy if it doesn't
nsStyleDisplay* display = (nsStyleDisplay*)viewportPseudoStyle->GetMutableStyleData(eStyleStruct_Display);
display->mDisplay = NS_STYLE_DISPLAY_BLOCK;
}
// Initialize the viewport frame. It has a NULL content object
viewportFrame->Init(*aPresContext, nsnull, nsnull, viewportPseudoStyle, nsnull);

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

@ -2033,6 +2033,11 @@ nsCSSFrameConstructor::ConstructRootFrame(nsIPresContext* aPresContext,
nsnull, PR_FALSE,
getter_AddRefs(viewportPseudoStyle));
{ // ensure that the viewport thinks it is a block frame, layout goes pootsy if it doesn't
nsStyleDisplay* display = (nsStyleDisplay*)viewportPseudoStyle->GetMutableStyleData(eStyleStruct_Display);
display->mDisplay = NS_STYLE_DISPLAY_BLOCK;
}
// Initialize the viewport frame. It has a NULL content object
viewportFrame->Init(*aPresContext, nsnull, nsnull, viewportPseudoStyle, nsnull);