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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp

Issue 2322343003: Add support for <basic-shape> to 'clip-path' on SVG elements (Closed)
Patch Set: Update SPv2 expectations Created 4 years, 3 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/layout/svg/LayoutSVGResourceClipper.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
index f6665cf63897ea5b837b540b36c9e74b9685168d..11000e008bb0b2f8ab417d55bb67e2a2a709fe5c 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
@@ -66,7 +66,7 @@ bool LayoutSVGResourceClipper::calculateClipContentPathIfNeeded()
return true;
// If the current clip-path gets clipped itself, we have to fallback to masking.
- if (style()->svgStyle().hasClipper())
+ if (style()->svgStyle().clipPath())
return false;
unsigned opCount = 0;
@@ -90,7 +90,7 @@ bool LayoutSVGResourceClipper::calculateClipContentPathIfNeeded()
continue;
// Current shape in clip-path gets clipped too. Fallback to masking.
- if (style->svgStyle().hasClipper()) {
+ if (style->svgStyle().clipPath()) {
m_clipContentPath.clear();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698