layout/style/CSS.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/style/CSS.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,45 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/* DOM object holding utility CSS functions */
    1.10 +
    1.11 +#ifndef mozilla_dom_CSS_h_
    1.12 +#define mozilla_dom_CSS_h_
    1.13 +
    1.14 +#include "mozilla/Attributes.h"
    1.15 +#include "mozilla/Preferences.h"
    1.16 +
    1.17 +namespace mozilla {
    1.18 +
    1.19 +class ErrorResult;
    1.20 +
    1.21 +namespace dom {
    1.22 +
    1.23 +class GlobalObject;
    1.24 +
    1.25 +class CSS {
    1.26 +private:
    1.27 +  CSS() MOZ_DELETE;
    1.28 +
    1.29 +public:
    1.30 +  static bool Supports(const GlobalObject& aGlobal,
    1.31 +                       const nsAString& aProperty,
    1.32 +                       const nsAString& aValue,
    1.33 +                       ErrorResult& aRv);
    1.34 +
    1.35 +  static bool Supports(const GlobalObject& aGlobal,
    1.36 +                       const nsAString& aDeclaration,
    1.37 +                       ErrorResult& aRv);
    1.38 +
    1.39 +  static void Escape(const GlobalObject& aGlobal,
    1.40 +                     const nsAString& aIdent,
    1.41 +                     nsAString& aReturn,
    1.42 +                     ErrorResult& aRv);
    1.43 +};
    1.44 +
    1.45 +} // namespace dom
    1.46 +} // namespace mozilla
    1.47 +
    1.48 +#endif // mozilla_dom_CSS_h_

mercurial