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

Unified Diff: Source/core/svg/SVGRect.h

Issue 1321453012: Added allocator matcros to blink classes and structures in core/svg. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months 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 | « Source/core/svg/SVGPathSeg.h ('k') | Source/core/svg/SVGRect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGRect.h
diff --git a/Source/core/svg/SVGRect.h b/Source/core/svg/SVGRect.h
index b305cdb6586b3c5029ef25e0086e012da32c6307..d2cf1f7d4a8dbcb1f12f5a98f97070fda84a92e5 100644
--- a/Source/core/svg/SVGRect.h
+++ b/Source/core/svg/SVGRect.h
@@ -22,6 +22,7 @@
#include "core/svg/properties/SVGPropertyHelper.h"
#include "platform/geometry/FloatRect.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -31,16 +32,16 @@ class SVGRect : public SVGPropertyHelper<SVGRect> {
public:
typedef SVGRectTearOff TearOffType;
- struct InvalidSVGRectTag { };
-
static PassRefPtrWillBeRawPtr<SVGRect> create()
{
return adoptRefWillBeNoop(new SVGRect());
}
- static PassRefPtrWillBeRawPtr<SVGRect> create(InvalidSVGRectTag)
+ static PassRefPtrWillBeRawPtr<SVGRect> createInvalid()
{
- return adoptRefWillBeNoop(new SVGRect(InvalidSVGRectTag()));
+ RefPtrWillBeRawPtr<SVGRect> rect = adoptRefWillBeNoop(new SVGRect());
+ rect->setInvalid();
+ return rect.release();
}
static PassRefPtrWillBeRawPtr<SVGRect> create(const FloatRect& rect)
@@ -76,7 +77,6 @@ public:
private:
SVGRect();
- SVGRect(InvalidSVGRectTag);
SVGRect(const FloatRect&);
template<typename CharType>
« no previous file with comments | « Source/core/svg/SVGPathSeg.h ('k') | Source/core/svg/SVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698