Make all nsBidiPresUtils methods static. Bug 624798, r=roc
This commit is contained in:
@@ -663,11 +663,9 @@ nsLineIterator::CheckLineOrder(PRInt32 aLine,
|
||||
|
||||
nsPresContext* presContext = line->mFirstChild->PresContext();
|
||||
|
||||
nsBidiPresUtils* bidiUtils = presContext->GetBidiUtils();
|
||||
|
||||
nsIFrame* leftmostFrame;
|
||||
nsIFrame* rightmostFrame;
|
||||
*aIsReordered = bidiUtils->CheckLineOrder(line->mFirstChild, line->GetChildCount(), &leftmostFrame, &rightmostFrame);
|
||||
*aIsReordered = nsBidiPresUtils::CheckLineOrder(line->mFirstChild, line->GetChildCount(), &leftmostFrame, &rightmostFrame);
|
||||
|
||||
// map leftmost/rightmost to first/last according to paragraph direction
|
||||
*aFirstVisual = mRightToLeft ? rightmostFrame : leftmostFrame;
|
||||
|
||||
Reference in New Issue
Block a user