[Webkit-unassigned] [Bug 63553] SVG animation fill="freeze" doesn't set baseVal to current animVal if animation stops before reaching the end
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 13 23:59:15 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=63553
Dirk Schulze <krit at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #100227|review? |review-
Flag| |
--- Comment #12 from Dirk Schulze <krit at webkit.org> 2011-07-13 23:59:15 PST ---
(From update of attachment 100227)
View in context: https://bugs.webkit.org/attachment.cgi?id=100227&action=review
I'm confused about your ChangeLog entry since it is the same entry like on another bug. r- because of the layouttest.
> LayoutTests/svg/animations/script-tests/animate-end-attribute.js:33
> + ok = isCloseEnough(rect.x.baseVal.value, 200, 0.2);
> + if (ok)
> + testPassed("rect.x.baseVal.value is almost 200");
> + else
> + testFailed("rect.x.baseVal.value is NOT almost 200, as expected");
Please don't do it manually we have a function called shouldBeCloseEnough() with three arguments. Take a look at other tests.
> LayoutTests/svg/animations/script-tests/animate-end-attribute.js:41
> + ok = isCloseEnough(rect.x.baseVal.value, 200, 0.2);
> + if (ok)
> + testPassed("rect.x.baseVal.value is almost 200");
> + else
> + testFailed("rect.x.baseVal.value is NOT almost 200, as expected");
Ditto.
> LayoutTests/svg/animations/script-tests/animate-end-attribute.js:49
> + ["animation", 2.0, "rect", sample2],
> + ["animation", 3.0, "rect", sample3]
You can reuse sample3 for 2s. Can you please add an animation step at 0s to verify that we start from baseVal?
> Source/WebCore/ChangeLog:9
> + calculateAnimationPercentAndRepeat() is returning 1, which means 100%, whenever
> + elapsed >= m_intervalEnd, but this is wrong because m_intervalEnd can be before
Hm, wasn't it fixed with bug 63911?
> Source/WebCore/svg/animation/SVGSMILElement.cpp:833
> + return 1.f;
just use 1, no .f after numbers.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list