зеркало из https://github.com/mozilla/pjs.git
force display type of viewport frame to BLOCK
This commit is contained in:
Родитель
085381a1fb
Коммит
457dea0ee6
|
@ -2033,6 +2033,11 @@ nsCSSFrameConstructor::ConstructRootFrame(nsIPresContext* aPresContext,
|
||||||
nsnull, PR_FALSE,
|
nsnull, PR_FALSE,
|
||||||
getter_AddRefs(viewportPseudoStyle));
|
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
|
// Initialize the viewport frame. It has a NULL content object
|
||||||
viewportFrame->Init(*aPresContext, nsnull, nsnull, viewportPseudoStyle, nsnull);
|
viewportFrame->Init(*aPresContext, nsnull, nsnull, viewportPseudoStyle, nsnull);
|
||||||
|
|
||||||
|
|
|
@ -2033,6 +2033,11 @@ nsCSSFrameConstructor::ConstructRootFrame(nsIPresContext* aPresContext,
|
||||||
nsnull, PR_FALSE,
|
nsnull, PR_FALSE,
|
||||||
getter_AddRefs(viewportPseudoStyle));
|
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
|
// Initialize the viewport frame. It has a NULL content object
|
||||||
viewportFrame->Init(*aPresContext, nsnull, nsnull, viewportPseudoStyle, nsnull);
|
viewportFrame->Init(*aPresContext, nsnull, nsnull, viewportPseudoStyle, nsnull);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче