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

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

Issue 2729683002: Handle resize in PaintPropertyTreeBuilder::updateForObjectSizeAndLocation() (Closed)
Patch Set: - 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 5e1cd751f37909144240a811091817055e5d786a..f43f1c57920db9375a8ee3c8c8f5449a4b5d8046 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();
}

Powered by Google App Engine
This is Rietveld 408576698