Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /*
6 * Implementation of DOMSettableTokenList specified by HTML5.
7 */
9 #ifndef nsDOMSettableTokenList_h___
10 #define nsDOMSettableTokenList_h___
12 #include "nsDOMTokenList.h"
14 class nsIAtom;
16 // nsISupports must be on the primary inheritance chain
17 // because nsDOMSettableTokenList is traversed by Element.
18 class nsDOMSettableTokenList MOZ_FINAL : public nsDOMTokenList
19 {
20 public:
22 nsDOMSettableTokenList(mozilla::dom::Element* aElement, nsIAtom* aAttrAtom)
23 : nsDOMTokenList(aElement, aAttrAtom) {}
25 virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
27 // WebIDL
28 void GetValue(nsAString& aResult) { Stringify(aResult); }
29 void SetValue(const nsAString& aValue, mozilla::ErrorResult& rv);
30 };
32 #endif // nsDOMSettableTokenList_h___