layout/style/CSS.h

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:244185a74da6
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
6 /* DOM object holding utility CSS functions */
7
8 #ifndef mozilla_dom_CSS_h_
9 #define mozilla_dom_CSS_h_
10
11 #include "mozilla/Attributes.h"
12 #include "mozilla/Preferences.h"
13
14 namespace mozilla {
15
16 class ErrorResult;
17
18 namespace dom {
19
20 class GlobalObject;
21
22 class CSS {
23 private:
24 CSS() MOZ_DELETE;
25
26 public:
27 static bool Supports(const GlobalObject& aGlobal,
28 const nsAString& aProperty,
29 const nsAString& aValue,
30 ErrorResult& aRv);
31
32 static bool Supports(const GlobalObject& aGlobal,
33 const nsAString& aDeclaration,
34 ErrorResult& aRv);
35
36 static void Escape(const GlobalObject& aGlobal,
37 const nsAString& aIdent,
38 nsAString& aReturn,
39 ErrorResult& aRv);
40 };
41
42 } // namespace dom
43 } // namespace mozilla
44
45 #endif // mozilla_dom_CSS_h_

mercurial