| Index: Source/core/css/CSSStyleDeclaration.h
|
| diff --git a/Source/core/css/CSSStyleDeclaration.h b/Source/core/css/CSSStyleDeclaration.h
|
| index d29c9023749d5d388dbbfac68ec2269e6f8389c3..0459adcbbc56d3a09ccd37205dbf2f0d0746b3fe 100644
|
| --- a/Source/core/css/CSSStyleDeclaration.h
|
| +++ b/Source/core/css/CSSStyleDeclaration.h
|
| @@ -23,6 +23,7 @@
|
|
|
| #include "CSSPropertyNames.h"
|
| #include "bindings/v8/ScriptWrappable.h"
|
| +#include "core/css/CSSVariablesMap.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/Noncopyable.h"
|
|
|
| @@ -33,14 +34,14 @@ class CSSRule;
|
| class CSSStyleSheet;
|
| class CSSValue;
|
| class MutableStylePropertySet;
|
| -class StylePropertySet;
|
| +class VariablesIterator;
|
|
|
| typedef int ExceptionCode;
|
|
|
| class CSSStyleDeclaration : public ScriptWrappable {
|
| WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - virtual ~CSSStyleDeclaration() { }
|
| + virtual ~CSSStyleDeclaration();
|
|
|
| virtual void ref() = 0;
|
| virtual void deref() = 0;
|
| @@ -58,6 +59,13 @@ public:
|
| virtual void setProperty(const String& propertyName, const String& value, const String& priority, ExceptionCode&) = 0;
|
| virtual String removeProperty(const String& propertyName, ExceptionCode&) = 0;
|
|
|
| + PassRefPtr<CSSVariablesMap> var();
|
| + virtual unsigned variableCount() const = 0;
|
| + virtual String variableValue(const AtomicString& name) const = 0;
|
| + virtual void setVariableValue(const AtomicString& name, const String& value, ExceptionCode&) = 0;
|
| + virtual bool removeVariable(const AtomicString& name) = 0;
|
| + virtual void clearVariables(ExceptionCode&) = 0;
|
| +
|
| // CSSPropertyID versions of the CSSOM functions to support bindings and editing.
|
| // Use the non-virtual methods in the concrete subclasses when possible.
|
| // The CSSValue returned by this function should not be exposed to the web as it may be used by multiple documents at the same time.
|
| @@ -75,6 +83,7 @@ protected:
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
| + RefPtr<CSSVariablesMap> m_variablesMap;
|
| };
|
|
|
| } // namespace WebCore
|
|
|