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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user