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

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: Made transitions use fractional border widths, added assert that border widths are positive, and r… Created 4 years, 11 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 bf6aace83d6c02d6d0e361c36ba41e5f74df2be6..b802f3741102b975320ff1844ab5bb6d10723876 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()); }

Powered by Google App Engine
This is Rietveld 408576698