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

Unified Diff: third_party/WebKit/Source/core/svg/SVGRect.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/SVGRect.h
diff --git a/third_party/WebKit/Source/core/svg/SVGRect.h b/third_party/WebKit/Source/core/svg/SVGRect.h
index d2cf1f7d4a8dbcb1f12f5a98f97070fda84a92e5..88d9c7743a16a209ab23b0e32aaa3e77a84ddaa8 100644
--- a/third_party/WebKit/Source/core/svg/SVGRect.h
+++ b/third_party/WebKit/Source/core/svg/SVGRect.h
@@ -86,12 +86,7 @@ private:
FloatRect m_value;
};
-inline PassRefPtrWillBeRawPtr<SVGRect> toSVGRect(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGRect::classType());
- return static_pointer_cast<SVGRect>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGRect);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.h ('k') | third_party/WebKit/Source/core/svg/SVGString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698