| 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();
|
| }
|
|
|