Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index 495fd6b7b79c1c4d4d228fde777f940a34b1b04b..586e280268be031417dd31d2964dc7da04d3f917 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -364,8 +364,7 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject { |
// As such their location doesn't account for 'top'/'left'. |
LayoutRect borderBoxRect() const { return LayoutRect(LayoutPoint(), size()); } |
LayoutRect paddingBoxRect() const { |
- return LayoutRect(LayoutUnit(borderLeft()), LayoutUnit(borderTop()), |
- clientWidth(), clientHeight()); |
+ return LayoutRect(borderLeft(), borderTop(), clientWidth(), clientHeight()); |
} |
IntRect pixelSnappedBorderBoxRect() const { |
return IntRect(IntPoint(), m_frameRect.pixelSnappedSize()); |
@@ -526,9 +525,7 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject { |
? verticalScrollbarWidth() |
: 0)); |
} |
- DISABLE_CFI_PERF LayoutUnit clientTop() const { |
- return LayoutUnit(borderTop()); |
- } |
+ DISABLE_CFI_PERF LayoutUnit clientTop() const { return borderTop(); } |
LayoutUnit clientWidth() const; |
LayoutUnit clientHeight() const; |
DISABLE_CFI_PERF LayoutUnit clientLogicalWidth() const { |