CSSRuleList.cpp 991 B

12345678910111213141516171819202122232425262728293031323334
  1. /* -*- Mode: C++; tab-width: 8; 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/. */
  5. #include "mozilla/dom/CSSRuleList.h"
  6. #include "mozilla/dom/CSSRuleListBinding.h"
  7. namespace mozilla {
  8. namespace dom {
  9. NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE_0(CSSRuleList)
  10. NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(CSSRuleList)
  11. NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
  12. NS_INTERFACE_MAP_ENTRY(CSSRuleList)
  13. NS_INTERFACE_MAP_ENTRY(nsIDOMCSSRuleList)
  14. NS_INTERFACE_MAP_ENTRY(nsISupports)
  15. NS_INTERFACE_MAP_END
  16. NS_IMPL_CYCLE_COLLECTING_ADDREF(CSSRuleList)
  17. NS_IMPL_CYCLE_COLLECTING_RELEASE(CSSRuleList)
  18. /* virtual */ JSObject*
  19. CSSRuleList::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
  20. {
  21. return CSSRuleListBinding::Wrap(aCx, this, aGivenProto);
  22. }
  23. } // namespace dom
  24. } // namespace mozilla