Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* DOM object holding utility CSS functions */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef mozilla_dom_CSS_h_ |
michael@0 | 9 | #define mozilla_dom_CSS_h_ |
michael@0 | 10 | |
michael@0 | 11 | #include "mozilla/Attributes.h" |
michael@0 | 12 | #include "mozilla/Preferences.h" |
michael@0 | 13 | |
michael@0 | 14 | namespace mozilla { |
michael@0 | 15 | |
michael@0 | 16 | class ErrorResult; |
michael@0 | 17 | |
michael@0 | 18 | namespace dom { |
michael@0 | 19 | |
michael@0 | 20 | class GlobalObject; |
michael@0 | 21 | |
michael@0 | 22 | class CSS { |
michael@0 | 23 | private: |
michael@0 | 24 | CSS() MOZ_DELETE; |
michael@0 | 25 | |
michael@0 | 26 | public: |
michael@0 | 27 | static bool Supports(const GlobalObject& aGlobal, |
michael@0 | 28 | const nsAString& aProperty, |
michael@0 | 29 | const nsAString& aValue, |
michael@0 | 30 | ErrorResult& aRv); |
michael@0 | 31 | |
michael@0 | 32 | static bool Supports(const GlobalObject& aGlobal, |
michael@0 | 33 | const nsAString& aDeclaration, |
michael@0 | 34 | ErrorResult& aRv); |
michael@0 | 35 | |
michael@0 | 36 | static void Escape(const GlobalObject& aGlobal, |
michael@0 | 37 | const nsAString& aIdent, |
michael@0 | 38 | nsAString& aReturn, |
michael@0 | 39 | ErrorResult& aRv); |
michael@0 | 40 | }; |
michael@0 | 41 | |
michael@0 | 42 | } // namespace dom |
michael@0 | 43 | } // namespace mozilla |
michael@0 | 44 | |
michael@0 | 45 | #endif // mozilla_dom_CSS_h_ |