| Index: third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
|
| index eb1a8260179b81039b035d7b71c08e89f7762374..fd10fa350e7f43f5e4a35d895794ef467635ca2f 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.cpp
|
| @@ -388,7 +388,7 @@ int LayoutTableCell::cellBaselinePosition() const
|
| int firstLineBaseline = firstLineBoxBaseline();
|
| if (firstLineBaseline != -1)
|
| return firstLineBaseline;
|
| - return borderBefore() + paddingBefore() + contentLogicalHeight();
|
| + return (borderBefore() + paddingBefore() + contentLogicalHeight()).toInt();
|
| }
|
|
|
| void LayoutTableCell::styleDidChange(StyleDifference diff, const ComputedStyle* oldStyle)
|
| @@ -1011,8 +1011,8 @@ void LayoutTableCell::scrollbarsChanged(bool horizontalScrollbarChanged, bool ve
|
| totalHeight -= scrollbarHeight;
|
| LayoutUnit newBeforePadding = (totalHeight - heightWithoutIntrinsicPadding) / 2;
|
| LayoutUnit newAfterPadding = totalHeight - heightWithoutIntrinsicPadding - newBeforePadding;
|
| - setIntrinsicPaddingBefore(newBeforePadding);
|
| - setIntrinsicPaddingAfter(newAfterPadding);
|
| + setIntrinsicPaddingBefore(newBeforePadding.toInt());
|
| + setIntrinsicPaddingAfter(newAfterPadding.toInt());
|
| } else {
|
| setIntrinsicPaddingAfter(intrinsicPaddingAfter() - scrollbarHeight);
|
| }
|
|
|