Changeset 159559 in webkit


Ignore:
Timestamp:
Nov 20, 2013 6:55:24 AM (10 years ago)
Author:
Antoine Quint
Message:

Cannot animate "points" attribute for <svg:polygon>
https://bugs.webkit.org/show_bug.cgi?id=21371

Reviewed by Antti Koivisto.

Source/WebCore:

Ensure we use animated list of points for SVG <polygon> and <polyline> elements
when we build the path used to draw them, otherwise the animated changes won't
be rendered and the base value will be used.

Tests: svg/animations/polygon-set.svg

svg/animations/polyline-set.svg

  • rendering/svg/SVGPathData.cpp:

(WebCore::updatePathFromPolygonElement):
(WebCore::updatePathFromPolylineElement):

LayoutTests:

New tests covering the actual application of the animated value
for the "points" attribute of the SVG <polygon> and <polyline> elements.

  • svg/animations/polygon-set-expected.svg: Added.
  • svg/animations/polygon-set.svg: Added.
  • svg/animations/polyline-set-expected.svg: Added.
  • svg/animations/polyline-set.svg: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r159558 r159559  
     12013-11-20  Antoine Quint  <graouts@apple.com>
     2
     3        Cannot animate "points" attribute for <svg:polygon>
     4        https://bugs.webkit.org/show_bug.cgi?id=21371
     5
     6        Reviewed by Antti Koivisto.
     7
     8        New tests covering the actual application of the animated value
     9        for the "points" attribute of the SVG <polygon> and <polyline> elements.
     10
     11        * svg/animations/polygon-set-expected.svg: Added.
     12        * svg/animations/polygon-set.svg: Added.
     13        * svg/animations/polyline-set-expected.svg: Added.
     14        * svg/animations/polyline-set.svg: Added.
     15
    1162013-11-20  Zan Dobersek  <zdobersek@igalia.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r159553 r159559  
     12013-11-20  Antoine Quint  <graouts@apple.com>
     2
     3        Cannot animate "points" attribute for <svg:polygon>
     4        https://bugs.webkit.org/show_bug.cgi?id=21371
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Ensure we use animated list of points for SVG <polygon> and <polyline> elements
     9        when we build the path used to draw them, otherwise the animated changes won't
     10        be rendered and the base value will be used.
     11
     12        Tests: svg/animations/polygon-set.svg
     13               svg/animations/polyline-set.svg
     14
     15        * rendering/svg/SVGPathData.cpp:
     16        (WebCore::updatePathFromPolygonElement):
     17        (WebCore::updatePathFromPolylineElement):
     18
    1192013-11-20  Andrei Bucur  <abucur@adobe.com>
    220
  • trunk/Source/WebCore/rendering/svg/SVGPathData.cpp

    r159281 r159559  
    7777static void updatePathFromPolygonElement(SVGElement* element, Path& path)
    7878{
    79     SVGPointList& points = toSVGPolygonElement(element)->pointList();
     79    SVGPointList& points = toSVGPolygonElement(element)->animatedPoints()->values();
    8080    if (points.isEmpty())
    8181        return;
     
    9292static void updatePathFromPolylineElement(SVGElement* element, Path& path)
    9393{
    94     SVGPointList& points = toSVGPolylineElement(element)->pointList();
     94    SVGPointList& points = toSVGPolylineElement(element)->animatedPoints()->values();
    9595    if (points.isEmpty())
    9696        return;
Note: See TracChangeset for help on using the changeset viewer.