Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: Source/core/css/CSSStyleDeclaration.h

Issue 18311002: Partial implementation of CSSVariablesMap for CSS Variables CSSOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased onto ToT, cleaned up includes Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSStyleDeclaration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSStyleDeclaration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698