diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_animated_preserve_aspect_ratio.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/svg/svg_animated_preserve_aspect_ratio.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_animated_preserve_aspect_ratio.h b/chromium/third_party/blink/renderer/core/svg/svg_animated_preserve_aspect_ratio.h index 9a5a2708c06..c26839054c9 100644 --- a/chromium/third_party/blink/renderer/core/svg/svg_animated_preserve_aspect_ratio.h +++ b/chromium/third_party/blink/renderer/core/svg/svg_animated_preserve_aspect_ratio.h @@ -47,21 +47,21 @@ class SVGAnimatedPreserveAspectRatio static SVGAnimatedPreserveAspectRatio* Create( SVGElement* context_element, const QualifiedName& attribute_name) { - return new SVGAnimatedPreserveAspectRatio(context_element, attribute_name); + return MakeGarbageCollected<SVGAnimatedPreserveAspectRatio>(context_element, + attribute_name); } - void Trace(blink::Visitor* visitor) override { - SVGAnimatedProperty<SVGPreserveAspectRatio>::Trace(visitor); - ScriptWrappable::Trace(visitor); - } - - protected: SVGAnimatedPreserveAspectRatio(SVGElement* context_element, const QualifiedName& attribute_name) : SVGAnimatedProperty<SVGPreserveAspectRatio>( context_element, attribute_name, SVGPreserveAspectRatio::Create()) {} + + void Trace(blink::Visitor* visitor) override { + SVGAnimatedProperty<SVGPreserveAspectRatio>::Trace(visitor); + ScriptWrappable::Trace(visitor); + } }; } // namespace blink |