Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
| index bf6aace83d6c02d6d0e361c36ba41e5f74df2be6..5ba4d99b5d7b66a8d4e71b05c309c798ae54260b 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h |
| @@ -218,7 +218,7 @@ public: |
| int borderHeight() const { return borderTop() + borderBottom(); } |
| // Insets from the border box to the inside of the border. |
| - LayoutRectOutsets borderInsets() const { return LayoutRectOutsets(-borderTop(), -borderRight(), -borderBottom(), -borderLeft()); } |
| + LayoutRectOutsets borderInsets() const { return LayoutRectOutsets(LayoutUnit(-borderTop()), LayoutUnit(-borderRight()), LayoutUnit(-borderBottom()), LayoutUnit(-borderLeft())); } |
|
eae
2016/01/29 03:38:12
How about adding a LayoutRectOutset constructor th
leviw_travelin_and_unemployed
2016/01/29 03:47:27
Sure.
|
| bool hasBorderOrPadding() const { return style()->hasBorder() || style()->hasPadding(); } |
| @@ -234,7 +234,7 @@ public: |
| LayoutUnit borderAndPaddingLogicalWidth() const { return borderStart() + borderEnd() + paddingStart() + paddingEnd(); } |
| LayoutUnit borderAndPaddingLogicalLeft() const { return style()->isHorizontalWritingMode() ? borderLeft() + paddingLeft() : borderTop() + paddingTop(); } |
| - LayoutUnit borderLogicalLeft() const { return style()->isHorizontalWritingMode() ? borderLeft() : borderTop(); } |
| + LayoutUnit borderLogicalLeft() const { return LayoutUnit(style()->isHorizontalWritingMode() ? borderLeft() : borderTop()); } |
| LayoutUnit paddingLogicalWidth() const { return paddingStart() + paddingEnd(); } |
| LayoutUnit paddingLogicalHeight() const { return paddingBefore() + paddingAfter(); } |