Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h

Issue 1574933002: Changed type of border-width longhands from unsigned to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added trivial tests safe to rebaseline to TestExpectations Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 1afcea12543ab61f48e4387993a919feebbd39c2..c0a078f35362fcaf289086f0592acd0edca1f6ed 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h
@@ -203,19 +203,19 @@ public:
LayoutUnit paddingOver() const { return computedCSSPaddingOver(); }
LayoutUnit paddingUnder() const { return computedCSSPaddingUnder(); }
- virtual int borderTop() const { return style()->borderTopWidth(); }
- virtual int borderBottom() const { return style()->borderBottomWidth(); }
- virtual int borderLeft() const { return style()->borderLeftWidth(); }
- virtual int borderRight() const { return style()->borderRightWidth(); }
- virtual int borderBefore() const { return style()->borderBeforeWidth(); }
- virtual int borderAfter() const { return style()->borderAfterWidth(); }
- virtual int borderStart() const { return style()->borderStartWidth(); }
- virtual int borderEnd() const { return style()->borderEndWidth(); }
- int borderOver() const { return style()->borderOverWidth(); }
- int borderUnder() const { return style()->borderUnderWidth(); }
-
- int borderWidth() const { return borderLeft() + borderRight(); }
- int borderHeight() const { return borderTop() + borderBottom(); }
+ virtual LayoutUnit borderTop() const { return style()->borderTopWidth(); }
+ virtual LayoutUnit borderBottom() const { return style()->borderBottomWidth(); }
+ virtual LayoutUnit borderLeft() const { return style()->borderLeftWidth(); }
+ virtual LayoutUnit borderRight() const { return style()->borderRightWidth(); }
+ virtual LayoutUnit borderBefore() const { return style()->borderBeforeWidth(); }
+ virtual LayoutUnit borderAfter() const { return style()->borderAfterWidth(); }
+ virtual LayoutUnit borderStart() const { return style()->borderStartWidth(); }
+ virtual LayoutUnit borderEnd() const { return style()->borderEndWidth(); }
+ LayoutUnit borderOver() const { return style()->borderOverWidth(); }
+ LayoutUnit borderUnder() const { return style()->borderUnderWidth(); }
+
+ LayoutUnit borderWidth() const { return borderLeft() + borderRight(); }
+ LayoutUnit 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()); }
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698