diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_rect.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/svg/svg_rect.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_rect.h b/chromium/third_party/blink/renderer/core/svg/svg_rect.h index be77de53b23..de2a678a5fc 100644 --- a/chromium/third_party/blink/renderer/core/svg/svg_rect.h +++ b/chromium/third_party/blink/renderer/core/svg/svg_rect.h @@ -33,15 +33,20 @@ class SVGRect final : public SVGPropertyHelper<SVGRect> { public: typedef SVGRectTearOff TearOffType; - static SVGRect* Create() { return new SVGRect(); } + static SVGRect* Create() { return MakeGarbageCollected<SVGRect>(); } static SVGRect* CreateInvalid() { - SVGRect* rect = new SVGRect(); + SVGRect* rect = MakeGarbageCollected<SVGRect>(); rect->SetInvalid(); return rect; } - static SVGRect* Create(const FloatRect& rect) { return new SVGRect(rect); } + static SVGRect* Create(const FloatRect& rect) { + return MakeGarbageCollected<SVGRect>(rect); + } + + SVGRect(); + SVGRect(const FloatRect&); SVGRect* Clone() const; @@ -77,9 +82,6 @@ class SVGRect final : public SVGPropertyHelper<SVGRect> { static AnimatedPropertyType ClassType() { return kAnimatedRect; } private: - SVGRect(); - SVGRect(const FloatRect&); - template <typename CharType> SVGParsingError Parse(const CharType*& ptr, const CharType* end); |