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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPointList.cpp

Issue 1412123015: Replace open-coded toSVG<type> with DEFINE_SVG_PROPERTY_TYPE_CASTS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: third_party/WebKit/Source/core/svg/SVGPointList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPointList.cpp b/third_party/WebKit/Source/core/svg/SVGPointList.cpp
index 41059ff3231fa6abe3040131cea1c368f415dcc1..bc11d6b3f7b1b9d5909808d80ca2b41bc05fcdf9 100644
--- a/third_party/WebKit/Source/core/svg/SVGPointList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPointList.cpp
@@ -29,12 +29,7 @@
namespace blink {
-inline PassRefPtrWillBeRawPtr<SVGPointList> toSVGPointList(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGPointList::classType());
- return static_pointer_cast<SVGPointList>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPointList);
SVGPointList::SVGPointList()
{
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPoint.h ('k') | third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698