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

Unified Diff: third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h

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/SVGNumberList.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPath.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/SVGNumberOptionalNumber.h
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
index ae3c398c000dd4b297cf63976e954edfa31e8628..0be4092b108a17fa9cfa67ef243f7a15eb9b6d8e 100644
--- a/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
+++ b/third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h
@@ -31,7 +31,7 @@
#ifndef SVGNumberOptionalNumber_h
#define SVGNumberOptionalNumber_h
-#include "core/svg/SVGAnimatedNumber.h"
+#include "core/svg/SVGNumber.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -71,12 +71,7 @@ protected:
RefPtrWillBeMember<SVGNumber> m_secondNumber;
};
-inline PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> toSVGNumberOptionalNumber(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGNumberOptionalNumber::classType());
- return static_pointer_cast<SVGNumberOptionalNumber>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGNumberOptionalNumber);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberList.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698