Get the visibility style struct to ensure that we check the 'direction' property and thus enable BIDI if necessary before beginning reflow. b=115921 r=smontagu sr=hyatt

git-svn-id: svn://10.0.0.236/trunk@111450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2002-01-06 18:25:38 +00:00
parent ba011ecd80
commit 025f414842
2 changed files with 18 additions and 0 deletions

View File

@@ -6997,6 +6997,15 @@ nsCSSFrameConstructor::ConstructFrameInternal( nsIPresShell* aPresShe
aContent, aParentFrame, styleContext,
aFrameItems);
// Style resolution can normally happen lazily. However, getting the
// Visibility struct can cause |SetBidiEnabled| to be called on the
// pres context, and this needs to happen before we start reflow, so
// do it now, when constructing frames. See bug 115291.
{
const nsStyleVisibility *vis;
GetStyleData(styleContext, &vis);
}
nsIFrame* lastChild = aFrameItems.lastChild;
// Handle specific frame types