Title: [227441] trunk/Source/WebCore
Revision
227441
Author
grao...@webkit.org
Date
2018-01-23 13:40:44 -0800 (Tue, 23 Jan 2018)

Log Message

[Web Animations] Expose getKeyframes() and parsing of remaining keyframe properties
https://bugs.webkit.org/show_bug.cgi?id=181978

Not reviewed.

Fix failures for http/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html introduced in the previous patch.
Those keyword values are not expected.

* platform/animation/TimingFunction.cpp:
(WebCore::TimingFunction::cssText const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (227440 => 227441)


--- trunk/Source/WebCore/ChangeLog	2018-01-23 21:39:12 UTC (rev 227440)
+++ trunk/Source/WebCore/ChangeLog	2018-01-23 21:40:44 UTC (rev 227441)
@@ -1,3 +1,16 @@
+2018-01-23  Antoine Quint  <grao...@apple.com>
+
+        [Web Animations] Expose getKeyframes() and parsing of remaining keyframe properties
+        https://bugs.webkit.org/show_bug.cgi?id=181978
+
+        Not reviewed.
+
+        Fix failures for http/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html introduced in the previous patch.
+        Those keyword values are not expected.
+
+        * platform/animation/TimingFunction.cpp:
+        (WebCore::TimingFunction::cssText const):
+
 2018-01-23  Simon Fraser  <simon.fra...@apple.com>
 
         feMorphology stops applying if either x or y radius is 0 but should not.

Modified: trunk/Source/WebCore/platform/animation/TimingFunction.cpp (227440 => 227441)


--- trunk/Source/WebCore/platform/animation/TimingFunction.cpp	2018-01-23 21:39:12 UTC (rev 227440)
+++ trunk/Source/WebCore/platform/animation/TimingFunction.cpp	2018-01-23 21:40:44 UTC (rev 227441)
@@ -175,11 +175,8 @@
 
     if (m_type == TimingFunction::StepsFunction) {
         auto& function = downcast<StepsTimingFunction>(*this);
-        auto numberOfSteps = function.numberOfSteps();
-        if (numberOfSteps == 1)
-            return function.stepAtStart() ? "step-start" : "step-end";
         if (!function.stepAtStart())
-            return String::format("steps(%d)", numberOfSteps);
+            return String::format("steps(%d)", function.numberOfSteps());
     }
 
     TextStream stream;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to