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

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

Issue 2549553002: Verify paintedOutputOfObjectHasNoEffectRegardlessOfSize during painting (Closed)
Patch Set: Remove from LayoutObject.h Created 4 years 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 ef2a285c459bc41d31b6a6672773fa667c234f75..00192c6339801f290c7431551abf5232330f50a9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -1026,4 +1026,13 @@ LayoutRect LayoutView::debugRect() const {
return rect;
}
+bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
+ // Frame scroll corner is painted using LayoutView as the display item client.
+ if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() &&
+ (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar()))
+ return false;
+
+ return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698