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

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

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/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 8d2864c79ba3d4775ccf297ead3f03bea15dc35a..01d98f7e696d9fbf08f45cb402c09c0dd3ebf7c0 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -110,13 +110,13 @@ template<> inline float CSSPrimitiveValue::convertTo() const
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineClampValue i)
: CSSValue(PrimitiveClass)
{
- init(i.isPercentage() ? UnitType::Percentage : UnitType::Number);
+ init(i.isPercentage() ? UnitType::Percentage : UnitType::Integer);
m_value.num = static_cast<double>(i.value());
}
template<> inline LineClampValue CSSPrimitiveValue::convertTo() const
{
- if (type() == UnitType::Number)
+ if (type() == UnitType::Integer)
return LineClampValue(clampTo<int>(m_value.num), LineClampLineCount);
if (type() == UnitType::Percentage)

Powered by Google App Engine
This is Rietveld 408576698