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(); } |