| Index: third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp b/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
|
| index 8a05a8f500b379ed9c7fc176a2ded38f85dc9317..72c2c81e8cdda636885a1d5584b3e8ca14dbec5e 100644
|
| --- a/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp
|
| @@ -26,6 +26,8 @@ LayerClipRecorder::LayerClipRecorder(GraphicsContext& graphicsContext,
|
| : m_graphicsContext(graphicsContext),
|
| m_layoutObject(layoutObject),
|
| m_clipType(clipType) {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| IntRect snappedClipRect = pixelSnappedIntRect(clipRect.rect());
|
| Vector<FloatRoundedRect> roundedRects;
|
| if (clipRoot && clipRect.hasRadius()) {
|
| @@ -104,6 +106,8 @@ void LayerClipRecorder::collectRoundedRectClips(
|
| }
|
|
|
| LayerClipRecorder::~LayerClipRecorder() {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| + return;
|
| m_graphicsContext.getPaintController().endItem<EndClipDisplayItem>(
|
| m_layoutObject, DisplayItem::clipTypeToEndClipType(m_clipType));
|
| }
|
|
|