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

Unified Diff: third_party/WebKit/Source/core/paint/SVGPaintContext.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/SVGPaintContext.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp b/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp
index 220703893304b647da8cff7e17f6c21838550299..de94ba3cb83e7a09840401a32714a9be8b4cfb36 100644
--- a/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGPaintContext.cpp
@@ -157,8 +157,10 @@ void SVGPaintContext::applyClipIfNecessary() {
ClipPathOperation* clipPathOperation = m_object.styleRef().clipPath();
if (!clipPathOperation)
return;
- m_clipPathClipper.emplace(paintInfo().context, *clipPathOperation, m_object,
- m_object.objectBoundingBox(), FloatPoint());
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ m_clipPathClipper.emplace(paintInfo().context, *clipPathOperation, m_object,
+ m_object.objectBoundingBox(), FloatPoint());
+ }
}
bool SVGPaintContext::applyMaskIfNecessary(SVGResources* resources) {
@@ -212,7 +214,8 @@ bool SVGPaintContext::isIsolationInstalled() const {
return true;
if (m_masker || m_filter)
return true;
- if (m_clipPathClipper && m_clipPathClipper->usingMask())
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() && m_clipPathClipper &&
+ m_clipPathClipper->usingMask())
return true;
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGMaskPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698