layout/style/CSSValue.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set ts=2 et sw=2 tw=80: */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 /* DOM object representing values in DOM computed style */
michael@0 8
michael@0 9 #ifndef mozilla_dom_CSSValue_h_
michael@0 10 #define mozilla_dom_CSSValue_h_
michael@0 11
michael@0 12 #include "nsWrapperCache.h"
michael@0 13
michael@0 14 #include "mozilla/ErrorResult.h"
michael@0 15 #include "nsString.h"
michael@0 16
michael@0 17 class nsIDOMCSSValue;
michael@0 18 class nsROCSSPrimitiveValue;
michael@0 19
michael@0 20 namespace mozilla {
michael@0 21 namespace dom {
michael@0 22
michael@0 23 /**
michael@0 24 * CSSValue - a DOM object representing values in DOM computed style.
michael@0 25 */
michael@0 26 class CSSValue : public nsISupports,
michael@0 27 public nsWrapperCache
michael@0 28 {
michael@0 29 public:
michael@0 30 // CSSValue
michael@0 31 virtual void GetCssText(nsString& aText, mozilla::ErrorResult& aRv) = 0;
michael@0 32 virtual void SetCssText(const nsAString& aText, mozilla::ErrorResult& aRv) = 0;
michael@0 33 virtual uint16_t CssValueType() const = 0;
michael@0 34
michael@0 35 // Downcasting
michael@0 36
michael@0 37 /**
michael@0 38 * Return this as a nsROCSSPrimitiveValue* if its a primitive value, and null
michael@0 39 * otherwise.
michael@0 40 */
michael@0 41 nsROCSSPrimitiveValue *AsPrimitiveValue();
michael@0 42 };
michael@0 43
michael@0 44 }
michael@0 45 }
michael@0 46
michael@0 47 #endif

mercurial