michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* DOM object holding utility CSS functions */ michael@0: michael@0: #ifndef mozilla_dom_CSS_h_ michael@0: #define mozilla_dom_CSS_h_ michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/Preferences.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: class ErrorResult; michael@0: michael@0: namespace dom { michael@0: michael@0: class GlobalObject; michael@0: michael@0: class CSS { michael@0: private: michael@0: CSS() MOZ_DELETE; michael@0: michael@0: public: michael@0: static bool Supports(const GlobalObject& aGlobal, michael@0: const nsAString& aProperty, michael@0: const nsAString& aValue, michael@0: ErrorResult& aRv); michael@0: michael@0: static bool Supports(const GlobalObject& aGlobal, michael@0: const nsAString& aDeclaration, michael@0: ErrorResult& aRv); michael@0: michael@0: static void Escape(const GlobalObject& aGlobal, michael@0: const nsAString& aIdent, michael@0: nsAString& aReturn, michael@0: ErrorResult& aRv); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_CSS_h_