1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_dom_StyleSheetList_h
7 #define mozilla_dom_StyleSheetList_h
9 #include "nsIDOMStyleSheetList.h"
10 #include "nsWrapperCache.h"
19 class StyleSheetList
: public nsIDOMStyleSheetList
20 , public nsWrapperCache
23 NS_DECL_CYCLE_COLLECTING_ISUPPORTS
24 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(StyleSheetList
)
25 NS_DECL_NSIDOMSTYLESHEETLIST
27 virtual JSObject
* WrapObject(JSContext
* aCx
) MOZ_OVERRIDE MOZ_FINAL
;
29 virtual nsINode
* GetParentObject() const = 0;
31 virtual uint32_t Length() = 0;
32 virtual CSSStyleSheet
* IndexedGetter(uint32_t aIndex
, bool& aFound
) = 0;
33 CSSStyleSheet
* Item(uint32_t aIndex
)
36 return IndexedGetter(aIndex
, dummy
);
40 virtual ~StyleSheetList() {}
44 } // namespace mozilla
46 #endif // mozilla_dom_StyleSheetList_h