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 443f1783758c6d964dd87bed89396f3c3efd6d07..54014ba93109465890bda213b52e1ae5e4649567 100644 |
| --- a/third_party/WebKit/Source/core/style/SVGComputedStyle.h |
| +++ b/third_party/WebKit/Source/core/style/SVGComputedStyle.h |
| @@ -363,6 +363,22 @@ 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/12/23 16:13:43
Indent the three ||-lines one more step (4 more sp
|
| + || fillPaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR |
| + || visitedLinkFillPaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR; |
| + } |
| + |
| + bool isStrokeColorCurrentColor() const |
| + { |
| + return strokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR |
| + || visitedLinkStrokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR |
|
fs
2015/12/23 16:13:43
Ditto.
|
| + || strokePaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR |
| + || visitedLinkStrokePaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR; |
| + } |
| + |
| // convenience |
| bool hasClipper() const { return !clipperResource().isEmpty(); } |
| bool hasMasker() const { return !maskerResource().isEmpty(); } |