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

Unified Diff: third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.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/SVGInteger.h ('k') | third_party/WebKit/Source/core/svg/SVGLength.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/SVGIntegerOptionalInteger.h
diff --git a/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.h b/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.h
index b62fb1f82e40bd0f0633dec40492232d4c32a94b..51979d8246001ac580d2ebdd25eb4f14c3417de8 100644
--- a/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.h
+++ b/third_party/WebKit/Source/core/svg/SVGIntegerOptionalInteger.h
@@ -31,7 +31,7 @@
#ifndef SVGIntegerOptionalInteger_h
#define SVGIntegerOptionalInteger_h
-#include "core/svg/SVGAnimatedInteger.h"
+#include "core/svg/SVGInteger.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -71,12 +71,7 @@ protected:
RefPtrWillBeMember<SVGInteger> m_secondInteger;
};
-inline PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> toSVGIntegerOptionalInteger(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGIntegerOptionalInteger::classType());
- return static_pointer_cast<SVGIntegerOptionalInteger>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGIntegerOptionalInteger);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGInteger.h ('k') | third_party/WebKit/Source/core/svg/SVGLength.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698