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

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

Issue 2789533003: [SPv2] Stop recording paired display items (except for subsequence markers) (Closed)
Patch Set: none Created 3 years, 9 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/ClipPathClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp b/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp
index 482bbce1110f3a439f5568c45f4bf98a9ab29ed1..9debe5b7005fded2fb81b0aee174ef2731e7ac52 100644
--- a/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/ClipPathClipper.cpp
@@ -68,6 +68,8 @@ ClipPathClipper::ClipPathClipper(GraphicsContext& context,
m_clipperState(ClipperState::NotApplied),
m_layoutObject(layoutObject),
m_context(context) {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
if (clipPathOperation.type() == ClipPathOperation::SHAPE) {
ShapeClipPathOperation& shape = toShapeClipPathOperation(clipPathOperation);
if (!shape.isValid())
@@ -102,6 +104,8 @@ ClipPathClipper::ClipPathClipper(GraphicsContext& context,
}
ClipPathClipper::~ClipPathClipper() {
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
if (m_resourceClipper)
finishEffect();
}

Powered by Google App Engine
This is Rietveld 408576698