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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPath.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/SVGPath.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPath.h b/third_party/WebKit/Source/core/svg/SVGPath.h
index 0f9ac5b84d65d19b3d37552eb8d56e7f654887ff..781f6d51952be7a6f505f6f6b288958cc84fc063 100644
--- a/third_party/WebKit/Source/core/svg/SVGPath.h
+++ b/third_party/WebKit/Source/core/svg/SVGPath.h
@@ -78,12 +78,7 @@ private:
mutable OwnPtr<Path> m_cachedPath;
};
-inline PassRefPtrWillBeRawPtr<SVGPath> toSVGPath(PassRefPtrWillBeRawPtr<SVGPropertyBase> passBase)
-{
- RefPtrWillBeRawPtr<SVGPropertyBase> base = passBase;
- ASSERT(base->type() == SVGPath::classType());
- return static_pointer_cast<SVGPath>(base.release());
-}
+DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPath);
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberOptionalNumber.h ('k') | third_party/WebKit/Source/core/svg/SVGPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698