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

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

Issue 1455153003: Fix animation of 'color' w/ currentColor for SVG 'fill' and 'stroke' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Draft4 Created 5 years, 1 month 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 f8925f1c3a6dd041bab6ccb4265330117ddca37f..2e39537df3a1b2bc8acf0f9e0e63acd5086d7c57 100644
--- a/third_party/WebKit/Source/core/style/SVGComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/SVGComputedStyle.h
@@ -357,6 +357,22 @@ public:
const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLinkPaintColor; }
const String& visitedLinkStrokePaintUri() const { return stroke->visitedLinkPaintUri; }
+ bool isFillColorCurrentColor() const
+ {
+ return (fillPaintType() == SVG_PAINTTYPE_CURRENTCOLOR)
fs 2015/11/25 17:23:00 Drop the redundant ().
+ || (visitedLinkFillPaintType() == SVG_PAINTTYPE_CURRENTCOLOR)
+ || (fillPaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR)
+ || (visitedLinkFillPaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR);
+ }
+
+ bool isStrokeColorCurrentColor() const
+ {
+ return (strokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR)
fs 2015/11/25 17:23:00 Drop () (like above)
+ || (visitedLinkStrokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR)
+ || (strokePaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR)
+ || (visitedLinkStrokePaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR);
+ }
+
// convenience
bool hasClipper() const { return !clipperResource().isEmpty(); }
bool hasMasker() const { return !maskerResource().isEmpty(); }

Powered by Google App Engine
This is Rietveld 408576698