| Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
|
| index 44553cf74390c80e71bbc69a508710e3cb462198..214c5beccd500073757151192bf0383e8f21fb45 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
|
| @@ -241,8 +241,7 @@ void PaintLayerClipper::calculateRects(const ClipRectsContext& context, const La
|
| void PaintLayerClipper::calculateClipRects(const ClipRectsContext& context, ClipRects& clipRects) const
|
| {
|
| const LayoutBoxModelObject& layoutObject = *m_layer.layoutObject();
|
| - bool rootLayerScrolls = layoutObject.document().settings() && layoutObject.document().settings()->rootLayerScrolls();
|
| - if (!m_layer.parent() && !rootLayerScrolls) {
|
| + if (!m_layer.parent() && !RuntimeEnabledFeatures::rootLayerScrollingEnabled()) {
|
| // The root layer's clip rect is always infinite.
|
| clipRects.reset(LayoutRect(LayoutRect::infiniteIntRect()));
|
| return;
|
|
|