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

Unified Diff: third_party/WebKit/Source/core/css/CSSValuePool.h

Issue 2346193002: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Rebase please work Created 4 years, 3 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: third_party/WebKit/Source/core/css/CSSValuePool.h
diff --git a/third_party/WebKit/Source/core/css/CSSValuePool.h b/third_party/WebKit/Source/core/css/CSSValuePool.h
index 46a823349bf3616943c3a32205b5440353e166a2..8c366ccafeeff9dec24fbfe8525cc9fdfa4d0762 100644
--- a/third_party/WebKit/Source/core/css/CSSValuePool.h
+++ b/third_party/WebKit/Source/core/css/CSSValuePool.h
@@ -32,6 +32,7 @@
#include "core/css/CSSColorValue.h"
#include "core/css/CSSCustomIdentValue.h"
#include "core/css/CSSFontFamilyValue.h"
+#include "core/css/CSSIdentifierValue.h"
#include "core/css/CSSInheritedValue.h"
#include "core/css/CSSInitialValue.h"
#include "core/css/CSSPrimitiveValue.h"
@@ -63,9 +64,9 @@ public:
CSSInitialValue* explicitInitialValue() { return m_explicitInitialValue; }
CSSUnsetValue* unsetValue() { return m_unsetValue; }
- // CSSPrimitiveValue vector caches.
- CSSPrimitiveValue* identifierCacheValue(CSSValueID ident) { return m_identifierValueCache[ident]; }
- CSSPrimitiveValue* setIdentifierCacheValue(CSSValueID ident, CSSPrimitiveValue* cssValue) { return m_identifierValueCache[ident] = cssValue; }
+ // Vector caches.
+ CSSIdentifierValue* identifierCacheValue(CSSValueID ident) { return m_identifierValueCache[ident]; }
+ CSSIdentifierValue* setIdentifierCacheValue(CSSValueID ident, CSSIdentifierValue* cssValue) { return m_identifierValueCache[ident] = cssValue; }
CSSPrimitiveValue* pixelCacheValue(int intValue) { return m_pixelValueCache[intValue]; }
CSSPrimitiveValue* setPixelCacheValue(int intValue, CSSPrimitiveValue* cssValue) { return m_pixelValueCache[intValue] = cssValue; }
CSSPrimitiveValue* percentCacheValue(int intValue) { return m_percentValueCache[intValue]; }
@@ -107,8 +108,8 @@ private:
Member<CSSColorValue> m_colorWhite;
Member<CSSColorValue> m_colorBlack;
- // CSSPrimitiveValue vector caches.
- HeapVector<Member<CSSPrimitiveValue>, numCSSValueKeywords> m_identifierValueCache;
+ // Vector caches.
+ HeapVector<Member<CSSIdentifierValue>, numCSSValueKeywords> m_identifierValueCache;
HeapVector<Member<CSSPrimitiveValue>, maximumCacheableIntegerValue + 1> m_pixelValueCache;
HeapVector<Member<CSSPrimitiveValue>, maximumCacheableIntegerValue + 1> m_percentValueCache;
HeapVector<Member<CSSPrimitiveValue>, maximumCacheableIntegerValue + 1> m_numberValueCache;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.cpp ('k') | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698