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> |