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

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: Updated patch 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
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/CSSToStyleMap.cpp
diff --git a/Source/core/css/resolver/CSSToStyleMap.cpp b/Source/core/css/resolver/CSSToStyleMap.cpp
index 928b7c52eb05e6a6130663d898702508cde4a38e..7ad59086d5b04e6ba564048e25a2cd99488a7ce2 100644
--- a/Source/core/css/resolver/CSSToStyleMap.cpp
+++ b/Source/core/css/resolver/CSSToStyleMap.cpp
@@ -291,7 +291,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)
@@ -318,7 +318,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)
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698