| 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 1c356515a000fbe6f1ef14f2e71e5212e912f078..2ebb9a1392f15403558f000055755bdadf97c985 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)
|
|
|