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

Unified Diff: third_party/WebKit/Source/core/paint/BoxClipper.cpp

Issue 2629983003: Support control clipping for PaintLayers. (Closed)
Patch Set: none Created 3 years, 11 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/paint/BoxClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxClipper.cpp b/third_party/WebKit/Source/core/paint/BoxClipper.cpp
index a56f6897530626165a274265f286c8e98d23881f..87d52245a69d070fe95773947dfb44ac4b85f427 100644
--- a/third_party/WebKit/Source/core/paint/BoxClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxClipper.cpp
@@ -24,13 +24,12 @@ namespace blink {
// An exception is control clip, which is currently never applied by
// PaintLayerClipper.
static bool boxNeedsClip(const LayoutBox& box) {
- if (box.hasControlClip())
- return true;
if (box.hasLayer() && box.layer()->isSelfPaintingLayer())
return false;
if (box.isSVGRoot() && toLayoutSVGRoot(box).shouldApplyViewportClip())
return true;
- return box.hasOverflowClip() || box.styleRef().containsPaint();
+ return box.hasOverflowClip() || box.styleRef().containsPaint() ||
+ box.hasControlClip();
}
DISABLE_CFI_PERF

Powered by Google App Engine
This is Rietveld 408576698