⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 106878 in webkit


Ignore:
Timestamp:
Feb 6, 2012, 4:55:15 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

Fix color animations by value
https://bugs.webkit.org/show_bug.cgi?id=77812

Patch by Philip Rogers <pdr@google.com> on 2012-02-06
Reviewed by Darin Adler.

Source/WebCore:

Test: svg/animations/animate-color-fill-from-by.html

  • svg/SVGAnimatedColor.cpp:

(WebCore::SVGAnimatedColorAnimator::calculateFromAndByValues):

LayoutTests:

  • svg/animations/animate-color-fill-from-by-expected.txt: Added.
  • svg/animations/animate-color-fill-from-by.html: Added.
  • svg/animations/script-tests/animate-color-fill-from-by.js: Added.

(checkFillColor):
(sample1):
(sample2):
(sample3):
(executeTest):

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r106876 r106878  
     12012-02-06  Philip Rogers  <pdr@google.com>
     2
     3        Fix color animations by value
     4        https://bugs.webkit.org/show_bug.cgi?id=77812
     5
     6        Reviewed by Darin Adler.
     7
     8        * svg/animations/animate-color-fill-from-by-expected.txt: Added.
     9        * svg/animations/animate-color-fill-from-by.html: Added.
     10        * svg/animations/script-tests/animate-color-fill-from-by.js: Added.
     11        (checkFillColor):
     12        (sample1):
     13        (sample2):
     14        (sample3):
     15        (executeTest):
     16
    1172012-02-03  Jer Noble  <jer.noble@apple.com>
    218
  • trunk/Source/WebCore/ChangeLog

    r106876 r106878  
     12012-02-06  Philip Rogers  <pdr@google.com>
     2
     3        Fix color animations by value
     4        https://bugs.webkit.org/show_bug.cgi?id=77812
     5
     6        Reviewed by Darin Adler.
     7
     8        Test: svg/animations/animate-color-fill-from-by.html
     9
     10        * svg/SVGAnimatedColor.cpp:
     11        (WebCore::SVGAnimatedColorAnimator::calculateFromAndByValues):
     12
    1132012-02-03  Jer Noble  <jer.noble@apple.com>
    214
  • trunk/Source/WebCore/svg/SVGAnimatedColor.cpp

    r95901 r106878  
    6161    from = constructFromString(fromString);
    6262    to = constructFromString(byString);
     63
     64    to->color() = ColorDistance::addColorsAndClamp(from->color(), to->color());
    6365}
    6466
Note: See TracChangeset for help on using the changeset viewer.