/* * Copyright (c) 2022, Tim Flynn * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::SVG { NonnullRefPtr SVGAnimatedLength::create(NonnullRefPtr base_val, NonnullRefPtr anim_val) { return adopt_ref(*new SVGAnimatedLength(move(base_val), move(anim_val))); } SVGAnimatedLength::SVGAnimatedLength(NonnullRefPtr base_val, NonnullRefPtr anim_val) : m_base_val(move(base_val)) , m_anim_val(move(anim_val)) { // The object referenced by animVal will always be distinct from the one referenced by baseVal, even when the attribute is not animated. VERIFY(m_base_val.ptr() != m_anim_val.ptr()); } }