Replace GetBaseline with GetLogicalBaseline and use logical coordinates in the line position and baseline getters in nsLayoutUtils. Bug 789096, r=jfkthame
This commit is contained in:
@@ -333,7 +333,8 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
|
||||
// Make sure we have a useful 'ascent' value for the child
|
||||
if (contentsDesiredSize.BlockStartAscent() ==
|
||||
nsHTMLReflowMetrics::ASK_FOR_BASELINE) {
|
||||
contentsDesiredSize.SetBlockStartAscent(aFirstKid->GetBaseline());
|
||||
WritingMode wm = aButtonReflowState.GetWritingMode();
|
||||
contentsDesiredSize.SetBlockStartAscent(aFirstKid->GetLogicalBaseline(wm));
|
||||
}
|
||||
|
||||
// OK, we're done with the child frame.
|
||||
|
||||
Reference in New Issue
Block a user