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

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

Issue 2857583007: [RLS] Don't add to ScrollableAreaSet if the size is zero (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c3dcf5fc2a9a88ea94878a54c8eba71e1f94facf..675a4686b646b34e8084f8b079cb450656b6dd0a 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1777,7 +1777,7 @@ void PaintLayerScrollableArea::UpdateScrollableAreaSet(bool has_overflow) {
Box().SetNeedsPaintPropertyUpdate();
}
- if (scrolls_overflow_) {
+ if (scrolls_overflow_ && frame_view->IsScrollable()) {
Srirama 2017/05/05 06:21:22 IsScrollable is calling GetScrollingReasons and th
DCHECK(CanHaveOverflowScrollbars(Box()));
frame_view->AddScrollableArea(this);
} else {
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698