| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index eacc53ad8e68c5682e8e6777a151cf569e3e7e00..0dbbf9fa05eaff41515d2806a58ca7a46b089966 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -1355,7 +1355,7 @@ void LayoutBox::clearExtraInlineAndBlockOffests() {
|
|
|
| LayoutUnit LayoutBox::adjustBorderBoxLogicalWidthForBoxSizing(
|
| float width) const {
|
| - LayoutUnit bordersPlusPadding = borderAndPaddingLogicalWidth();
|
| + LayoutUnit bordersPlusPadding = collapsedBorderAndCSSPaddingLogicalWidth();
|
| LayoutUnit result(width);
|
| if (style()->boxSizing() == BoxSizingContentBox)
|
| return result + bordersPlusPadding;
|
| @@ -1364,7 +1364,7 @@ LayoutUnit LayoutBox::adjustBorderBoxLogicalWidthForBoxSizing(
|
|
|
| LayoutUnit LayoutBox::adjustBorderBoxLogicalHeightForBoxSizing(
|
| float height) const {
|
| - LayoutUnit bordersPlusPadding = borderAndPaddingLogicalHeight();
|
| + LayoutUnit bordersPlusPadding = collapsedBorderAndCSSPaddingLogicalHeight();
|
| LayoutUnit result(height);
|
| if (style()->boxSizing() == BoxSizingContentBox)
|
| return result + bordersPlusPadding;
|
| @@ -1375,7 +1375,7 @@ LayoutUnit LayoutBox::adjustContentBoxLogicalWidthForBoxSizing(
|
| float width) const {
|
| LayoutUnit result(width);
|
| if (style()->boxSizing() == BoxSizingBorderBox)
|
| - result -= borderAndPaddingLogicalWidth();
|
| + result -= collapsedBorderAndCSSPaddingLogicalWidth();
|
| return std::max(LayoutUnit(), result);
|
| }
|
|
|
| @@ -1383,7 +1383,7 @@ LayoutUnit LayoutBox::adjustContentBoxLogicalHeightForBoxSizing(
|
| float height) const {
|
| LayoutUnit result(height);
|
| if (style()->boxSizing() == BoxSizingBorderBox)
|
| - result -= borderAndPaddingLogicalHeight();
|
| + result -= collapsedBorderAndCSSPaddingLogicalHeight();
|
| return std::max(LayoutUnit(), result);
|
| }
|
|
|
| @@ -3193,7 +3193,8 @@ LayoutUnit LayoutBox::computePercentageLogicalHeight(
|
| // cases, but it is preferable to the alternative (sizing intrinsically
|
| // and making the row end up too big).
|
| LayoutTableCell* cell = toLayoutTableCell(cb);
|
| - if (scrollsOverflowY() &&
|
| + if (style()->overflowY() != OverflowVisible &&
|
| + style()->overflowY() != OverflowHidden &&
|
| (!cell->style()->logicalHeight().isAuto() ||
|
| !cell->table()->style()->logicalHeight().isAuto()))
|
| return LayoutUnit();
|
|
|