| 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..e2e5c1ec531a9ed3691bd6d5d72e31d609d7b0d4 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
|
| + || visitedLinkFillPaintType() == SVG_PAINTTYPE_CURRENTCOLOR
|
| + || fillPaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR
|
| + || visitedLinkFillPaintType() == SVG_PAINTTYPE_URI_CURRENTCOLOR;
|
| + }
|
| +
|
| + bool isStrokeColorCurrentColor() const
|
| + {
|
| + return strokePaintType() == SVG_PAINTTYPE_CURRENTCOLOR
|
| + || 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(); }
|
|
|