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

Unified Diff: third_party/WebKit/Source/core/svg/SVGEnumeration.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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGBoolean.h ('k') | third_party/WebKit/Source/core/svg/SVGInteger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGEnumeration.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp b/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp
index 32b3e4f8a79f77583ea80ee0cf2d0f55997d49cd..c4c4a85ca9f460be971ac3ad918f3499e09ce4f0 100644
--- a/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGEnumeration.cpp
@@ -29,7 +29,6 @@
*/
#include "config.h"
-
#include "core/svg/SVGEnumeration.h"
#include "bindings/core/v8/ExceptionState.h"
@@ -39,12 +38,7 @@
namespace blink {
-inline PassRefPtrWillBeRawPtr<SVGEnumerationBase> toSVGEnumerationBase(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGEnumerationBase::classType());
- return static_pointer_cast<SVGEnumerationBase>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGEnumerationBase);
SVGEnumerationBase::~SVGEnumerationBase()
{
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGBoolean.h ('k') | third_party/WebKit/Source/core/svg/SVGInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698