| Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| index c8523dcf456d0ae3bdc2fdc9567c761dfc4300f1..e61a394ed29245cab64f3013f21d4b22fd1b3d6a 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| @@ -563,6 +563,12 @@ IntSize PaintLayerScrollableArea::contentsSize() const {
|
| return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight());
|
| }
|
|
|
| +void PaintLayerScrollableArea::contentsResized() {
|
| + ScrollableArea::contentsResized();
|
| + // Need to update the bounds of the scroll property.
|
| + box().setNeedsPaintPropertyUpdate();
|
| +}
|
| +
|
| bool PaintLayerScrollableArea::isScrollable() const {
|
| return scrollsOverflow();
|
| }
|
| @@ -592,6 +598,12 @@ void PaintLayerScrollableArea::scrollbarVisibilityChanged() {
|
| return view->clearHitTestCache();
|
| }
|
|
|
| +void PaintLayerScrollableArea::scrollbarFrameRectChanged() {
|
| + // Size of non-overlay scrollbar affects overflow clip rect.
|
| + if (!hasOverlayScrollbars())
|
| + box().setNeedsPaintPropertyUpdate();
|
| +}
|
| +
|
| bool PaintLayerScrollableArea::scrollbarsCanBeActive() const {
|
| LayoutView* view = box().view();
|
| if (!view)
|
|
|