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

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

Issue 2258523006: Convert Settings::rootLayerScrolls to RuntimeEnabledFeatures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 459200019d647bf7c82659f05c821a8f2de435c4..ddea5e96512d56a44185413c022b1a38834284f3 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -829,8 +829,7 @@ static bool overflowDefinesAutomaticScrollbar(EOverflow overflow)
// handled externally in the RLC.
static bool canHaveOverflowScrollbars(const LayoutBox& box)
{
- bool rootLayerScrolls = box.document().settings() && box.document().settings()->rootLayerScrolls();
- return (rootLayerScrolls || !box.isLayoutView()) && box.document().viewportDefiningElement() != box.node();
+ return (RuntimeEnabledFeatures::rootLayerScrollingEnabled() || !box.isLayoutView()) && box.document().viewportDefiningElement() != box.node();
}
void PaintLayerScrollableArea::updateAfterStyleChange(const ComputedStyle* oldStyle)

Powered by Google App Engine
This is Rietveld 408576698