Bumping manifests a=b2g-bump
[gecko.git] / layout / style / CSS.h
blobadf583d95091588f1b4dd30bd0dcd3d4217cc026
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 /* DOM object holding utility CSS functions */
8 #ifndef mozilla_dom_CSS_h_
9 #define mozilla_dom_CSS_h_
11 #include "mozilla/Attributes.h"
12 #include "mozilla/Preferences.h"
14 namespace mozilla {
16 class ErrorResult;
18 namespace dom {
20 class GlobalObject;
22 class CSS {
23 private:
24 CSS() = delete;
26 public:
27 static bool Supports(const GlobalObject& aGlobal,
28 const nsAString& aProperty,
29 const nsAString& aValue,
30 ErrorResult& aRv);
32 static bool Supports(const GlobalObject& aGlobal,
33 const nsAString& aDeclaration,
34 ErrorResult& aRv);
36 static void Escape(const GlobalObject& aGlobal,
37 const nsAString& aIdent,
38 nsAString& aReturn,
39 ErrorResult& aRv);
42 } // namespace dom
43 } // namespace mozilla
45 #endif // mozilla_dom_CSS_h_