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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimatedColor.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
Index: third_party/WebKit/Source/core/svg/SVGAnimatedColor.h
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimatedColor.h b/third_party/WebKit/Source/core/svg/SVGAnimatedColor.h
index 212ba5c8efc7c5f3935f898eefd9dd20710cfdda..a3299ffc0c83ca47239d4bdbe6ae0e813b00bcb9 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimatedColor.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimatedColor.h
@@ -32,7 +32,7 @@
#define SVGAnimatedColor_h
#include "core/css/StyleColor.h"
-#include "core/svg/properties/SVGAnimatedProperty.h"
+#include "core/svg/properties/SVGProperty.h"
namespace blink {
@@ -62,12 +62,7 @@ private:
StyleColor m_styleColor;
};
-inline PassRefPtrWillBeRawPtr<SVGColorProperty> toSVGColorProperty(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGColorProperty::classType());
- return static_pointer_cast<SVGColorProperty>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGColorProperty);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/animation/LengthSVGInterpolation.cpp ('k') | third_party/WebKit/Source/core/svg/SVGBoolean.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698