diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_path.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/svg/svg_path.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_path.h b/chromium/third_party/blink/renderer/core/svg/svg_path.h index c8351b23db5..b6376e5d1e3 100644 --- a/chromium/third_party/blink/renderer/core/svg/svg_path.h +++ b/chromium/third_party/blink/renderer/core/svg/svg_path.h @@ -35,6 +35,7 @@ #include "third_party/blink/renderer/core/svg/properties/svg_property.h" #include "third_party/blink/renderer/core/svg/svg_parsing_error.h" #include "third_party/blink/renderer/core/svg/svg_path_byte_stream.h" +#include "third_party/blink/renderer/platform/wtf/casting.h" namespace blink { @@ -71,13 +72,18 @@ class SVGPath final : public SVGPropertyBase { static AnimatedPropertyType ClassType() { return kAnimatedPath; } AnimatedPropertyType GetType() const override { return ClassType(); } - void Trace(blink::Visitor*) override; + void Trace(Visitor*) override; private: Member<cssvalue::CSSPathValue> path_value_; }; -DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPath); +template <> +struct DowncastTraits<SVGPath> { + static bool AllowFrom(const SVGPropertyBase& value) { + return value.GetType() == SVGPath::ClassType(); + } +}; } // namespace blink |