Index: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
index 48942f4e4305682e757159c6d0d40677c4fdd819..f6ce243fc8a09fbafb159eecfbceb2694bb10e19 100644 |
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
@@ -81,7 +81,7 @@ Scrollbar::Scrollbar(ScrollableArea* scrollableArea, ScrollbarOrientation orient |
// alone when sizing). |
int thickness = m_theme.scrollbarThickness(controlSize); |
if (m_hostWindow) |
- thickness = m_hostWindow->screenToViewport(thickness); |
+ thickness = m_hostWindow->windowToViewport(thickness); |
Widget::setFrameRect(IntRect(0, 0, thickness, thickness)); |
m_currentPos = scrollableAreaCurrentPos(); |
@@ -482,7 +482,7 @@ int Scrollbar::scrollbarThickness() const |
int thickness = orientation() == HorizontalScrollbar ? height() : width(); |
if (!thickness || !m_hostWindow) |
return thickness; |
- return m_hostWindow->screenToViewport(m_theme.scrollbarThickness(controlSize())); |
+ return m_hostWindow->windowToViewport(m_theme.scrollbarThickness(controlSize())); |
} |