layout/style/CSS.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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() MOZ_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);
    40 };
    42 } // namespace dom
    43 } // namespace mozilla
    45 #endif // mozilla_dom_CSS_h_

mercurial