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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarPart.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/layout/LayoutScrollbarPart.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
index 3de0ff854f35e65f48f413bf3d0d4669c0ce3436..8b81a306c672c91e12f93875cb3cfa937d14f084 100644
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
@@ -140,10 +140,9 @@ void LayoutScrollbarPart::computeScrollbarWidth() {
// FIXME: Querying the style's border information doesn't work on table cells
// with collapsing borders.
int visibleSize =
- (m_scrollbar->owningLayoutObject()->size().width() -
- m_scrollbar->owningLayoutObject()->style()->borderLeftWidth() -
- m_scrollbar->owningLayoutObject()->style()->borderRightWidth())
- .toInt();
+ m_scrollbar->owningLayoutObject()->size().width() -
+ m_scrollbar->owningLayoutObject()->style()->borderLeftWidth() -
+ m_scrollbar->owningLayoutObject()->style()->borderRightWidth();
int w = calcScrollbarThicknessUsing(MainOrPreferredSize, style()->width(),
visibleSize);
int minWidth =
@@ -170,10 +169,9 @@ void LayoutScrollbarPart::computeScrollbarHeight() {
// FIXME: Querying the style's border information doesn't work on table cells
// with collapsing borders.
int visibleSize =
- (m_scrollbar->owningLayoutObject()->size().height() -
- m_scrollbar->owningLayoutObject()->style()->borderTopWidth() -
- m_scrollbar->owningLayoutObject()->style()->borderBottomWidth())
- .toInt();
+ m_scrollbar->owningLayoutObject()->size().height() -
+ m_scrollbar->owningLayoutObject()->style()->borderTopWidth() -
+ m_scrollbar->owningLayoutObject()->style()->borderBottomWidth();
int h = calcScrollbarThicknessUsing(MainOrPreferredSize, style()->height(),
visibleSize);
int minHeight =

Powered by Google App Engine
This is Rietveld 408576698