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

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

Issue 2640143005: Support subpixel layout for borders. (Closed)
Patch Set: Created 3 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/ThemePainterDefault.cpp
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
index e0aee2a6ebfd1c19f436551d0c0df8975e607321..6b630db1967eee3c7ad549ea303046e5cc06759c 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
+++ b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
@@ -283,8 +283,8 @@ void ThemePainterDefault::setupMenuListArrow(
const LayoutBox& box,
const IntRect& rect,
WebThemeEngine::ExtraParams& extraParams) {
- const int left = rect.x() + box.borderLeft();
- const int right = rect.x() + rect.width() - box.borderRight();
+ const int left = rect.x() + box.borderLeft().toInt();
+ const int right = rect.x() + rect.width() - box.borderRight().toInt();
const int middle = rect.y() + rect.height() / 2;
extraParams.menuList.arrowY = middle;

Powered by Google App Engine
This is Rietveld 408576698