Replace Get/SetTopAscent with Get/SetBlockStartAscent. Bug 789096, r=jfkthame
This commit is contained in:
@@ -331,8 +331,9 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
|
||||
xoffset, yoffset, 0);
|
||||
|
||||
// Make sure we have a useful 'ascent' value for the child
|
||||
if (contentsDesiredSize.TopAscent() == nsHTMLReflowMetrics::ASK_FOR_BASELINE) {
|
||||
contentsDesiredSize.SetTopAscent(aFirstKid->GetBaseline());
|
||||
if (contentsDesiredSize.BlockStartAscent() ==
|
||||
nsHTMLReflowMetrics::ASK_FOR_BASELINE) {
|
||||
contentsDesiredSize.SetBlockStartAscent(aFirstKid->GetBaseline());
|
||||
}
|
||||
|
||||
// OK, we're done with the child frame.
|
||||
@@ -346,7 +347,8 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
|
||||
|
||||
// * Button's ascent is its child's ascent, plus the child's y-offset
|
||||
// within our frame:
|
||||
aButtonDesiredSize.SetTopAscent(contentsDesiredSize.TopAscent() + yoffset);
|
||||
aButtonDesiredSize.SetBlockStartAscent(contentsDesiredSize.BlockStartAscent() +
|
||||
yoffset);
|
||||
|
||||
aButtonDesiredSize.SetOverflowAreasToDesiredBounds();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user