CSS.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/. */
  5. /* DOM object holding utility CSS functions */
  6. #ifndef mozilla_dom_CSS_h_
  7. #define mozilla_dom_CSS_h_
  8. #include "mozilla/Attributes.h"
  9. #include "mozilla/Preferences.h"
  10. namespace mozilla {
  11. class ErrorResult;
  12. namespace dom {
  13. class GlobalObject;
  14. class CSS {
  15. private:
  16. CSS() = delete;
  17. public:
  18. static bool Supports(const GlobalObject& aGlobal,
  19. const nsAString& aProperty,
  20. const nsAString& aValue,
  21. ErrorResult& aRv);
  22. static bool Supports(const GlobalObject& aGlobal,
  23. const nsAString& aDeclaration,
  24. ErrorResult& aRv);
  25. static void Escape(const GlobalObject& aGlobal,
  26. const nsAString& aIdent,
  27. nsAString& aReturn);
  28. };
  29. } // namespace dom
  30. } // namespace mozilla
  31. #endif // mozilla_dom_CSS_h_