Index: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
index e101e5a101c65debed493b93c1b3e872c5f260b8..442434e0af09e3925776b9f13e896838136c33b1 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
@@ -130,7 +130,7 @@ PaintInvalidationReason BoxPaintInvalidator::computePaintInvalidationReason() |
// and clipping is done by compositor()->m_containerLayer. Also the scrollbars |
// are always composited. There are no other box decoration on the LayoutView thus |
// we can safely exit here. |
- if (layoutView.usesCompositing() && (!layoutView.document().settings() || !layoutView.document().settings()->rootLayerScrolls())) |
+ if (layoutView.usesCompositing() && !RuntimeEnabledFeatures::rootLayerScrollingEnabled()) |
return reason; |
} |