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

Unified Diff: third_party/WebKit/Source/core/style/SVGComputedStyle.h

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/style/SVGComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/SVGComputedStyle.h b/third_party/WebKit/Source/core/style/SVGComputedStyle.h
index 3844019a2d20e261c4c7f36ee8421674a1458265..479d57a06e8d98d6ca7d742ee16d4657c4a087df 100644
--- a/third_party/WebKit/Source/core/style/SVGComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/SVGComputedStyle.h
@@ -87,7 +87,7 @@ public:
static float initialFloodOpacity() { return 1; }
static Color initialFloodColor() { return Color(0, 0, 0); }
static Color initialLightingColor() { return Color(255, 255, 255); }
- static const AtomicString& initialClipperResource() { return nullAtom; }
+ static ClipPathOperation* initialClipPath() { return nullptr; }
static const AtomicString& initialMaskerResource() { return nullAtom; }
static const AtomicString& initialMarkerStartResource() { return nullAtom; }
static const AtomicString& initialMarkerMidResource() { return nullAtom; }
@@ -273,10 +273,10 @@ public:
}
// Setters for non-inherited resources
- void setClipperResource(const AtomicString& obj)
+ void setClipPath(PassRefPtr<ClipPathOperation> operation)
{
- if (!(resources->clipper == obj))
- resources.access()->clipper = obj;
+ if (resources->clipPath != operation)
+ resources.access()->clipPath = operation;
}
void setMaskerResource(const AtomicString& obj)
@@ -345,7 +345,7 @@ public:
const Length& r() const { return geometry->r; }
const Length& rx() const { return geometry->rx; }
const Length& ry() const { return geometry->ry; }
- const AtomicString& clipperResource() const { return resources->clipper; }
+ ClipPathOperation* clipPath() const { return resources->clipPath.get(); }
const AtomicString& maskerResource() const { return resources->masker; }
const AtomicString& markerStartResource() const { return inheritedResources->markerStart; }
const AtomicString& markerMidResource() const { return inheritedResources->markerMid; }
@@ -378,7 +378,6 @@ public:
}
// convenience
- bool hasClipper() const { return !clipperResource().isEmpty(); }
bool hasMasker() const { return !maskerResource().isEmpty(); }
bool hasMarkers() const { return !markerStartResource().isEmpty() || !markerMidResource().isEmpty() || !markerEndResource().isEmpty(); }
bool hasStroke() const { return strokePaintType() != SVG_PAINTTYPE_NONE; }
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGPaintContext.cpp ('k') | third_party/WebKit/Source/core/style/SVGComputedStyleDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698