Changeset 89774 in webkit


Ignore:
Timestamp:
Jun 26, 2011 2:26:29 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-26 Young Han Lee <joybro@company100.net>

Reviewed by Dirk Schulze.

SVGAnimation - keyTime value 1 never get animated
https://bugs.webkit.org/show_bug.cgi?id=63230

According to the SMIL 3.0 specification, the index of the keyTimes should be
determined under the end-point-exclusive rule (e.g. Given keyTimes(0;0.5;1)
and t=0.5, the current index of the keyTimes have to be 1 not 0).
http://www.w3.org/TR/SMIL3/smil-animation.html#animationNS-InterpolationExamplesAdvanced

  • svg/animations/animate-number-calcMode-discrete-keyTimes-expected.txt: Added.
  • svg/animations/animate-number-calcMode-discrete-keyTimes.html: Added.
  • svg/animations/script-tests/animate-number-calcMode-discrete-keyTimes.js: Added. (sample1): (sample2): (sample3): (executeTest):

2011-06-26 Young Han Lee <joybro@company100.net>

Reviewed by Dirk Schulze.

SVGAnimation - keyTime value 1 never get animated
https://bugs.webkit.org/show_bug.cgi?id=63230

According to the SMIL 3.0 specification, the index of the keyTimes should be
determined under the end-point-exclusive rule (e.g. Given keyTimes(0;0.5;1)
and t=0.5, the current index of the keyTimes have to be 1 not 0).
http://www.w3.org/TR/SMIL3/smil-animation.html#animationNS-InterpolationExamplesAdvanced

Test: svg/animations/animate-number-calcMode-discrete-keyTimes.html

  • svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::calculateKeyTimesIndex):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r89770 r89774  
     12011-06-26  Young Han Lee  <joybro@company100.net>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        SVGAnimation - keyTime value 1 never get animated
     6        https://bugs.webkit.org/show_bug.cgi?id=63230
     7
     8        According to the SMIL 3.0 specification, the index of the keyTimes should be
     9        determined under the end-point-exclusive rule (e.g. Given keyTimes(0;0.5;1)
     10        and t=0.5, the current index of the keyTimes have to be 1 not 0).
     11        http://www.w3.org/TR/SMIL3/smil-animation.html#animationNS-InterpolationExamplesAdvanced
     12
     13        * svg/animations/animate-number-calcMode-discrete-keyTimes-expected.txt: Added.
     14        * svg/animations/animate-number-calcMode-discrete-keyTimes.html: Added.
     15        * svg/animations/script-tests/animate-number-calcMode-discrete-keyTimes.js: Added.
     16        (sample1):
     17        (sample2):
     18        (sample3):
     19        (executeTest):
     20
    1212011-06-26  Adam Barth  <abarth@webkit.org>
    222
  • trunk/Source/WebCore/ChangeLog

    r89769 r89774  
     12011-06-26  Young Han Lee  <joybro@company100.net>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        SVGAnimation - keyTime value 1 never get animated
     6        https://bugs.webkit.org/show_bug.cgi?id=63230
     7
     8        According to the SMIL 3.0 specification, the index of the keyTimes should be
     9        determined under the end-point-exclusive rule (e.g. Given keyTimes(0;0.5;1)
     10        and t=0.5, the current index of the keyTimes have to be 1 not 0).
     11        http://www.w3.org/TR/SMIL3/smil-animation.html#animationNS-InterpolationExamplesAdvanced
     12
     13        Test: svg/animations/animate-number-calcMode-discrete-keyTimes.html
     14
     15        * svg/SVGAnimationElement.cpp:
     16        (WebCore::SVGAnimationElement::calculateKeyTimesIndex):
     17
    1182011-06-26  Dan Bernstein  <mitz@apple.com>
    219
  • trunk/Source/WebCore/svg/SVGAnimationElement.cpp

    r89587 r89774  
    423423    unsigned keyTimesCount = m_keyTimes.size();
    424424    for (index = 1; index < keyTimesCount; ++index) {
    425         if (m_keyTimes[index] >= percent)
     425        if (m_keyTimes[index] > percent)
    426426            break;
    427427    }
Note: See TracChangeset for help on using the changeset viewer.