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

Unified Diff: Source/core/css/CSSComputedStyleDeclaration.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/CSSComputedStyleDeclaration.h
diff --git a/Source/core/css/CSSComputedStyleDeclaration.h b/Source/core/css/CSSComputedStyleDeclaration.h
index e628cd8f304f84047f7cade85c86ba8626fbeb68..4f8173fabed9760d40afe0b3765803af253e5d1c 100644
--- a/Source/core/css/CSSComputedStyleDeclaration.h
+++ b/Source/core/css/CSSComputedStyleDeclaration.h
@@ -22,9 +22,13 @@
#define CSSComputedStyleDeclaration_h
#include "core/css/CSSStyleDeclaration.h"
+#include "core/css/CSSVariablesMap.h"
#include "core/rendering/style/RenderStyleConstants.h"
-#include <wtf/RefPtr.h>
-#include <wtf/text/WTFString.h>
+#include "wtf/HashMap.h"
+#include "wtf/RefPtr.h"
+#include "wtf/text/AtomicString.h"
+#include "wtf/text/AtomicStringHash.h"
+#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -99,6 +103,14 @@ private:
virtual String getPropertyValueInternal(CSSPropertyID);
virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&);
+ virtual PassRefPtr<CSSVariablesMap> var() OVERRIDE { return CSSVariablesMap::create(this); }
+ const HashMap<AtomicString, String>* variableMap() const;
+ 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;
PassRefPtr<CSSValue> valueForShadow(const ShadowData*, CSSPropertyID, const RenderStyle*) const;

Powered by Google App Engine
This is Rietveld 408576698