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

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

Issue 18311002: Partial implementation of CSSVariablesMap for CSS Variables CSSOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed unused IDL callback definition Created 7 years, 6 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
Index: Source/core/css/PropertySetCSSStyleDeclaration.h
diff --git a/Source/core/css/PropertySetCSSStyleDeclaration.h b/Source/core/css/PropertySetCSSStyleDeclaration.h
index 96fabbe05d3b82fa0989a50acb1ddec60b85c731..7c4770befba0fb3fc96aab9403c7bb3ea9acce36 100644
--- a/Source/core/css/PropertySetCSSStyleDeclaration.h
+++ b/Source/core/css/PropertySetCSSStyleDeclaration.h
@@ -27,6 +27,7 @@
#define PropertySetCSSStyleDeclaration_h
#include "core/css/CSSStyleDeclaration.h"
+#include "core/css/CSSVariablesMap.h"
#include <wtf/HashMap.h>
namespace WebCore {
@@ -67,7 +68,14 @@ private:
virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) OVERRIDE;
virtual String getPropertyValueInternal(CSSPropertyID) OVERRIDE;
virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) OVERRIDE;
-
+
+ virtual PassRefPtr<CSSVariablesMap> var() OVERRIDE { return CSSVariablesMap::create(this); }
+ virtual unsigned variableCount() const OVERRIDE;
+ virtual String variableValue(const AtomicString& name) const OVERRIDE;
+ virtual void setVariableValue(const AtomicString& name, const String& value, ExceptionCode&) OVERRIDE;
+ virtual bool removeVariable(const AtomicString& name) OVERRIDE;
+ virtual void clearVariables(ExceptionCode&) OVERRIDE;
+
virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRIDE;
virtual PassRefPtr<MutableStylePropertySet> copyProperties() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698