Changeset 96052 in webkit


Ignore:
Timestamp:
Sep 26, 2011 5:36:19 PM (13 years ago)
Author:
timothy_horton@apple.com
Message:

<animateColor> applied to filtered ellipse does not update
https://bugs.webkit.org/show_bug.cgi?id=68457
<rdar://problem/10154777>

Reviewed by Darin Adler.

Invalidate the filter's cache when style changes take place so that style changes are respected.

Test: svg/filters/animate-fill.svg

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r96048 r96052  
     12011-09-26  Tim Horton  <timothy_horton@apple.com>
     2
     3        <animateColor> applied to filtered ellipse does not update
     4        https://bugs.webkit.org/show_bug.cgi?id=68457
     5        <rdar://problem/10154777>
     6
     7        Reviewed by Darin Adler.
     8
     9        Test that changing the fill on a filtered shape properly invalidates the filtered result.
     10
     11        * svg/filters/animate-fill-expected.png: Added.
     12        * svg/filters/animate-fill-expected.txt: Added.
     13        * svg/filters/animate-fill.svg: Added.
     14
    1152011-09-26  Mihai Parparita  <mihaip@chromium.org>
    216
  • trunk/Source/WebCore/ChangeLog

    r96030 r96052  
     12011-09-26  Tim Horton  <timothy_horton@apple.com>
     2
     3        <animateColor> applied to filtered ellipse does not update
     4        https://bugs.webkit.org/show_bug.cgi?id=68457
     5        <rdar://problem/10154777>
     6
     7        Reviewed by Darin Adler.
     8
     9        Invalidate the filter's cache when style changes take place so that style changes are respected.
     10
     11        Test: svg/filters/animate-fill.svg
     12
     13        * rendering/svg/SVGResourcesCache.cpp:
     14        (WebCore::SVGResourcesCache::clientStyleChanged):
     15        (WebCore::SVGResourcesCache::clientUpdatedFromElement):
     16
    1172011-09-26  Max Perepelitsyn  <pph34r@gmail.com>
    218
  • trunk/Source/WebCore/rendering/svg/SVGResourcesCache.cpp

    r95901 r96052  
    129129        return;
    130130
    131     // In this case the proper SVGFE*Element will imply whether the modifided CSS properties implies a relayout or repaint.
     131    // In this case the proper SVGFE*Element will decide whether the modified CSS properties require a relayout or repaint.
    132132    if (renderer->isSVGResourceFilterPrimitive() && diff == StyleDifferenceRepaint)
    133133        return;
     
    145145    cache->removeResourcesFromRenderObject(renderer);
    146146    cache->addResourcesFromRenderObject(renderer, newStyle);
     147
     148    SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(renderer);
     149    if (!resources)
     150        return;
     151
     152    resources->removeClientFromCache(renderer);
    147153}
    148154
Note: See TracChangeset for help on using the changeset viewer.