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

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: Add box size check for determining scrollable area Created 3 years, 5 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 1e3aafb6e03cae74c2bad5c6cde268110f629527..b424614b8dc8245abd069b51d02ec88045a440ad 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1015,10 +1015,16 @@ bool PaintLayerScrollableArea::HasVerticalOverflow() const {
}
bool PaintLayerScrollableArea::HasScrollableHorizontalOverflow() const {
+ if (Box().Size().IsZero())
skobes 2017/07/15 00:44:31 Actually it would be simpler to put this logic ins
Srirama 2017/07/17 14:35:24 Done.
+ return false;
+
return HasHorizontalOverflow() && Box().ScrollsOverflowX();
}
bool PaintLayerScrollableArea::HasScrollableVerticalOverflow() const {
+ if (Box().Size().IsZero())
+ return false;
+
return HasVerticalOverflow() && Box().ScrollsOverflowY();
}
« 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