| Index: third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
| index a5a12bb6c5e853ee301455486704641a8d9955b3..09b47a04bfe38886ffff7d98e3cc63b9f50c1f73 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
|
| @@ -73,13 +73,13 @@ bool ScrollbarThemeOverlay::usesOverlayScrollbars() const
|
| return true;
|
| }
|
|
|
| -int ScrollbarThemeOverlay::thumbPosition(const ScrollbarThemeClient& scrollbar)
|
| +int ScrollbarThemeOverlay::thumbPosition(const ScrollbarThemeClient& scrollbar, float scrollPosition)
|
| {
|
| if (!scrollbar.totalSize())
|
| return 0;
|
|
|
| int trackLen = trackLength(scrollbar);
|
| - float proportion = static_cast<float>(scrollbar.currentPos()) / scrollbar.totalSize();
|
| + float proportion = static_cast<float>(scrollPosition) / scrollbar.totalSize();
|
| return round(proportion * trackLen);
|
| }
|
|
|
|
|