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

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

Issue 1417463003: Move z-index property handling into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again! Created 5 years, 2 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.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValuePool.cpp b/third_party/WebKit/Source/core/css/CSSValuePool.cpp
index 97723864efb0c0832308eed2f255627815ce9048..58bdbe0129766e8cafa7c7ce61cdb076b719fe29 100644
--- a/third_party/WebKit/Source/core/css/CSSValuePool.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValuePool.cpp
@@ -113,8 +113,9 @@ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSValuePool::createValue(double value
m_percentValueCache[intValue] = CSSPrimitiveValue::create(value, type);
return m_percentValueCache[intValue];
case CSSPrimitiveValue::UnitType::Number:
+ case CSSPrimitiveValue::UnitType::Integer:
Timothy Loh 2015/10/29 02:38:05 This bit seems a bit weird, but I think it's okay
if (!m_numberValueCache[intValue])
- m_numberValueCache[intValue] = CSSPrimitiveValue::create(value, type);
+ m_numberValueCache[intValue] = CSSPrimitiveValue::create(value, CSSPrimitiveValue::UnitType::Integer);
return m_numberValueCache[intValue];
default:
return CSSPrimitiveValue::create(value, type);

Powered by Google App Engine
This is Rietveld 408576698