bug 1046950 pt 1 - additional/modified APIs on LogicalSize. r=smontagu

This commit is contained in:
Jonathan Kew
2014-08-24 15:34:21 +01:00
parent 4977fdf00e
commit 297164bb88
2 changed files with 45 additions and 18 deletions

View File

@@ -269,9 +269,9 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext,
extraleft = std::min(extraleft, aButtonReflowState.ComputedPhysicalPadding().left);
extraright = std::min(extraright, aButtonReflowState.ComputedPhysicalPadding().right);
xoffset -= extraleft;
availSize.SetWidth(wm, availSize.Width(wm) + extraleft + extraright);
availSize.Width(wm) = availSize.Width(wm) + extraleft + extraright;
}
availSize.SetWidth(wm, std::max(availSize.Width(wm), 0));
availSize.Width(wm) = std::max(availSize.Width(wm), 0);
// Give child a clone of the button's reflow state, with height/width reduced
// by focusPadding, so that descendants with height:100% don't protrude.