Chromium Code Reviews| 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..dd46cec712eaea4fdeca872cf4a6f557ddeb2403 100644 |
| --- a/third_party/WebKit/Source/core/style/SVGComputedStyle.h |
| +++ b/third_party/WebKit/Source/core/style/SVGComputedStyle.h |
| @@ -357,6 +357,9 @@ public: |
| const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLinkPaintColor; } |
| const String& visitedLinkStrokePaintUri() const { return stroke->visitedLinkPaintUri; } |
| + bool isFillColorCurrentColor() const { return (fillPaintType() == SVG_PAINTTYPE_CURRENTCOLOR) || (visitedLinkFillPaintType() == SVG_PAINTTYPE_CURRENTCOLOR); } |
|
fs
2015/11/20 16:27:14
You need to also check for a currentColor fallback
|
| + bool isStrokeColorCurrentColor() const { return (strokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR) || (visitedLinkStrokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR); } |
| + |
| // convenience |
| bool hasClipper() const { return !clipperResource().isEmpty(); } |
| bool hasMasker() const { return !maskerResource().isEmpty(); } |