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 = |