Bug 1635304 [wpt PR 23392] - Remove erroneous named properties object test, a=testonly
[gecko.git] / dom / svg / DOMSVGAnimatedString.h
blob192215ee7e86bfc3a60d2bba3ab87e592ff0672a
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_DOMSVGAnimatedString_h
8 #define mozilla_dom_DOMSVGAnimatedString_h
10 #include "SVGElement.h"
12 namespace mozilla {
13 namespace dom {
15 class DOMSVGAnimatedString : public nsISupports, public nsWrapperCache {
16 public:
17 explicit DOMSVGAnimatedString(SVGElement* aSVGElement)
18 : mSVGElement(aSVGElement) {}
20 virtual JSObject* WrapObject(JSContext* aCx,
21 JS::Handle<JSObject*> aGivenProto) override;
23 // WebIDL
24 SVGElement* GetParentObject() const { return mSVGElement; }
26 virtual void GetBaseVal(nsAString& aResult) = 0;
27 virtual void SetBaseVal(const nsAString& aValue) = 0;
28 virtual void GetAnimVal(nsAString& aResult) = 0;
30 RefPtr<SVGElement> mSVGElement;
33 } // namespace dom
34 } // namespace mozilla
36 #endif // mozilla_dom_DOMSVGAnimatedString_h