| Index: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
| diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
| index 1b86c474a95c10e9d90eb9250183cd5ff7e15404..fd9970a15621e85d29b885d7b9e72c8ed9ba7acb 100644
|
| --- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
|
| @@ -244,19 +244,14 @@ void ScrollableArea::scrollPositionChanged(const DoublePoint& position, ScrollTy
|
| // Tell the derived class to scroll its contents.
|
| setScrollOffset(truncatedPosition, scrollType);
|
|
|
| - Scrollbar* verticalScrollbar = this->verticalScrollbar();
|
| -
|
| // Tell the scrollbars to update their thumb postions.
|
| - if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar()) {
|
| + // If the scrollbar does not have its own layer, it must always be
|
| + // invalidated to reflect the new thumb position, even if the theme did not
|
| + // invalidate any individual part.
|
| + if (Scrollbar* horizontalScrollbar = this->horizontalScrollbar())
|
| horizontalScrollbar->offsetDidChange();
|
| - if (horizontalScrollbar->isOverlayScrollbar() && !hasLayerForHorizontalScrollbar())
|
| - setScrollbarNeedsPaintInvalidation(HorizontalScrollbar);
|
| - }
|
| - if (verticalScrollbar) {
|
| + if (Scrollbar* verticalScrollbar = this->verticalScrollbar())
|
| verticalScrollbar->offsetDidChange();
|
| - if (verticalScrollbar->isOverlayScrollbar() && !hasLayerForVerticalScrollbar())
|
| - setScrollbarNeedsPaintInvalidation(VerticalScrollbar);
|
| - }
|
|
|
| if (scrollPositionDouble() != oldPosition) {
|
| // FIXME: Pass in DoubleSize. crbug.com/414283.
|
|
|