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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1643663002: Conditionally create PaintLayer's scrollable area object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PaintLayerClipper
Patch Set: Created 4 years, 10 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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index bbfcf0dd2f7f72df06cf0b364b4a488ec092fca9..ddce6d9498fb20e3fbc3150606245ff0b66571c7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -1003,4 +1003,18 @@ void LayoutView::sendMediaPositionChangeNotifications(const IntRect& visibleRect
}
}
+void LayoutView::updateFromStyle()
+{
+ LayoutBlockFlow::updateFromStyle();
+
+ // LayoutView of the main frame is responsible for painting base background.
+ if (!document().ownerElement())
+ setHasBoxDecorationBackground(true);
+}
+
+bool LayoutView::allowsOverflowClip() const
+{
+ return document().settings() && document().settings()->rootLayerScrolls();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698