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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainter.cpp

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/paint/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index a5e8c3a03af4f1d4f0ca2656936a65049e40b7f0..9ba4c50a686a8ad70bb7e4952528875b21e9a638 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -364,8 +364,8 @@ void BoxPainter::paintFillLayer(const LayoutBoxModelObject& obj, const PaintInfo
clipToBorder.emplace(obj, paintInfo, rect, border, ApplyToContext);
}
- int bLeft = includeLeftEdge ? obj.borderLeft() : 0;
- int bRight = includeRightEdge ? obj.borderRight() : 0;
+ int bLeft = includeLeftEdge ? obj.borderLeft().toInt() : 0;
+ int bRight = includeRightEdge ? obj.borderRight().toInt() : 0;
LayoutUnit pLeft = includeLeftEdge ? obj.paddingLeft() : LayoutUnit();
LayoutUnit pRight = includeRightEdge ? obj.paddingRight() : LayoutUnit();

Powered by Google App Engine
This is Rietveld 408576698