| Index: third_party/WebKit/Source/core/svg/properties/SVGPropertyHelper.h
|
| diff --git a/third_party/WebKit/Source/core/svg/properties/SVGPropertyHelper.h b/third_party/WebKit/Source/core/svg/properties/SVGPropertyHelper.h
|
| index aa1b1e5f5f6d3a3c732d1b9a4150d26ceb6a1034..fdfae73242c0f32fa284e706f2c5314f50c5c74f 100644
|
| --- a/third_party/WebKit/Source/core/svg/properties/SVGPropertyHelper.h
|
| +++ b/third_party/WebKit/Source/core/svg/properties/SVGPropertyHelper.h
|
| @@ -26,6 +26,16 @@ public:
|
| }
|
| };
|
|
|
| +#define DEFINE_SVG_PROPERTY_TYPE_CASTS(thisType)\
|
| + DEFINE_TYPE_CASTS(thisType, SVGPropertyBase, value, value->type() == thisType::classType(), value.type() == thisType::classType());\
|
| + inline PassRefPtrWillBeRawPtr<thisType> to##thisType(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)\
|
| + {\
|
| + RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;\
|
| + ASSERT(base->type() == thisType::classType());\
|
| + return static_pointer_cast<thisType>(base.release());\
|
| + }
|
| +
|
| +
|
| } // namespace blink
|
|
|
| #endif // SVGPropertyHelper_h
|
|
|