Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: third_party/WebKit/Source/core/svg/properties/SVGPropertyHelper.h

Issue 1410643011: Web Animations: Add SVGNumberInterpolationType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyHandleFilter
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/svg/properties/SVGProperty.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/core/svg/properties/SVGProperty.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698