summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h')
-rw-r--r--chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h b/chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h
index dad272d61b5..36976210c43 100644
--- a/chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h
+++ b/chromium/third_party/blink/renderer/core/svg/svg_rect_tear_off.h
@@ -43,10 +43,15 @@ class SVGRectTearOff : public SVGPropertyTearOff<SVGRect> {
static SVGRectTearOff* Create(SVGRect* target,
SVGAnimatedPropertyBase* binding,
PropertyIsAnimValType property_is_anim_val) {
- return new SVGRectTearOff(target, binding, property_is_anim_val);
+ return MakeGarbageCollected<SVGRectTearOff>(target, binding,
+ property_is_anim_val);
}
static SVGRectTearOff* CreateDetached(const FloatRect&);
+ SVGRectTearOff(SVGRect*,
+ SVGAnimatedPropertyBase* binding,
+ PropertyIsAnimValType);
+
void setX(float, ExceptionState&);
void setY(float, ExceptionState&);
void setWidth(float, ExceptionState&);
@@ -55,11 +60,6 @@ class SVGRectTearOff : public SVGPropertyTearOff<SVGRect> {
float y() { return Target()->Y(); }
float width() { return Target()->Width(); }
float height() { return Target()->Height(); }
-
- private:
- SVGRectTearOff(SVGRect*,
- SVGAnimatedPropertyBase* binding,
- PropertyIsAnimValType);
};
} // namespace blink