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

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: 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/paint/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index 8e4236f5cb195962ffd3b022ca1fc9ecaff40e42..e2de12608db30c4013a5b3eeb43588d582b93373 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -360,8 +360,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().floor() : 0;
+ int bRight = includeRightEdge ? obj.borderRight().floor() : 0;
LayoutUnit pLeft = includeLeftEdge ? obj.paddingLeft() : LayoutUnit();
LayoutUnit pRight = includeRightEdge ? obj.paddingRight() : LayoutUnit();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | third_party/WebKit/Source/core/style/BorderData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698