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

Unified Diff: Source/core/css/resolver/CSSToStyleMap.cpp

Issue 345903005: calc expressions should support time, angle and frequency values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix build warrning. Created 6 years, 5 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/resolver/CSSToStyleMap.cpp
diff --git a/Source/core/css/resolver/CSSToStyleMap.cpp b/Source/core/css/resolver/CSSToStyleMap.cpp
index 8ab3274129b3609a6529247a2f3e04f9885caa01..d7f8cc35773d3909efdc08048ad9591e068aa200 100644
--- a/Source/core/css/resolver/CSSToStyleMap.cpp
+++ b/Source/core/css/resolver/CSSToStyleMap.cpp
@@ -294,7 +294,7 @@ double CSSToStyleMap::mapAnimationDelay(CSSValue* value)
{
if (value->isInitialValue())
return CSSTimingData::initialDelay();
- return toCSSPrimitiveValue(value)->computeTime<double, CSSPrimitiveValue::Seconds>();
+ return toCSSPrimitiveValue(value)->computeSeconds();
}
Timing::PlaybackDirection CSSToStyleMap::mapAnimationDirection(CSSValue* value)
@@ -321,7 +321,7 @@ double CSSToStyleMap::mapAnimationDuration(CSSValue* value)
{
if (value->isInitialValue())
return CSSTimingData::initialDuration();
- return toCSSPrimitiveValue(value)->computeTime<double, CSSPrimitiveValue::Seconds>();
+ return toCSSPrimitiveValue(value)->computeSeconds();
}
Timing::FillMode CSSToStyleMap::mapAnimationFillMode(CSSValue* value)

Powered by Google App Engine
This is Rietveld 408576698