Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: Fix a typo (ScrollbarWithChange -> ScrollbarWidthChange) Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698