Changeset 52665 in webkit


Ignore:
Timestamp:
Dec 30, 2009 9:50:25 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-30 Dirk Schulze <krit@webkit.org>

Reviewed by Eric Seidel.

SVGResourceClipper needs to invalidate content
https://bugs.webkit.org/show_bug.cgi?id=33054

Added invalidate() to SVGResourceClipper to reset clipData
and drawing area after attribute changes.

This fixes two LayoutTests.

  • svg/graphics/SVGResourceClipper.cpp: (WebCore::SVGResourceClipper::resetClipData): (WebCore::SVGResourceClipper::invalidate):
  • svg/graphics/SVGResourceClipper.h:

2009-12-30 Dirk Schulze <krit@webkit.org>

Reviewed by Eric Seidel.

SVGResourceClipper needs to invalidate content
https://bugs.webkit.org/show_bug.cgi?id=33054

Drawing area should change after attribute changes in clipPath or
it's childs.

  • platform/mac/svg/custom/clip-path-child-changes-expected.txt:
  • platform/mac/svg/custom/clip-path-units-changes-expected.txt:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r52660 r52665  
     12009-12-30  Dirk Schulze  <krit@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        SVGResourceClipper needs to invalidate content
     6        https://bugs.webkit.org/show_bug.cgi?id=33054
     7
     8        Drawing area should change after attribute changes in clipPath or
     9        it's childs.
     10
     11        * platform/mac/svg/custom/clip-path-child-changes-expected.txt:
     12        * platform/mac/svg/custom/clip-path-units-changes-expected.txt:
     13
    1142009-12-30  Jakub Wieczorek  <faw217@gmail.com>
    215
  • trunk/LayoutTests/platform/mac/svg/custom/clip-path-child-changes-expected.txt

    r38794 r52665  
    33  RenderView at (0,0) size 800x600
    44layer at (0,0) size 800x600
    5   RenderSVGRoot {svg} at (0,0) size 200x200
     5  RenderSVGRoot {svg} at (0,0) size 100x100
    66    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    7     RenderSVGContainer {g} at (0,0) size 200x200 [clip path="myclip"]
     7    RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"]
    88      RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"]
    99      RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"]
  • trunk/LayoutTests/platform/mac/svg/custom/clip-path-units-changes-expected.txt

    r38794 r52665  
    33  RenderView at (0,0) size 800x600
    44layer at (0,0) size 800x600
    5   RenderSVGRoot {svg} at (0,0) size 200x200
     5  RenderSVGRoot {svg} at (0,0) size 100x100
    66    RenderSVGHiddenContainer {defs} at (0,0) size 0x0
    7     RenderSVGContainer {g} at (0,0) size 200x200 [clip path="myclip"]
     7    RenderSVGContainer {g} at (0,0) size 100x100 [clip path="myclip"]
    88      RenderPath {rect} at (0,0) size 200x200 [fill={[type=SOLID] [color=#FF0000]}] [data="M0.00,0.00 L200.00,0.00 L200.00,200.00 L0.00,200.00 Z"]
    99      RenderPath {rect} at (0,0) size 100x100 [fill={[type=SOLID] [color=#008000]}] [data="M0.00,0.00 L100.00,0.00 L100.00,100.00 L0.00,100.00 Z"]
  • trunk/WebCore/ChangeLog

    r52664 r52665  
     12009-12-30  Dirk Schulze  <krit@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        SVGResourceClipper needs to invalidate content
     6        https://bugs.webkit.org/show_bug.cgi?id=33054
     7
     8        Added invalidate() to SVGResourceClipper to reset clipData
     9        and drawing area after attribute changes.
     10
     11        This fixes two LayoutTests.
     12
     13        * svg/graphics/SVGResourceClipper.cpp:
     14        (WebCore::SVGResourceClipper::resetClipData):
     15        (WebCore::SVGResourceClipper::invalidate):
     16        * svg/graphics/SVGResourceClipper.h:
     17
    1182009-12-30  Carol Szabo  <carol.szabo@nokia.com>
    219
  • trunk/WebCore/svg/graphics/SVGResourceClipper.cpp

    r52647 r52665  
    5252{
    5353    m_clipData.clear();
     54    m_clipperBoundingBox = FloatRect();
     55}
     56
     57void SVGResourceClipper::invalidate()
     58{
     59    SVGResource::invalidate();
     60    resetClipData();
    5461}
    5562
  • trunk/WebCore/svg/graphics/SVGResourceClipper.h

    r52647 r52665  
    6767        static PassRefPtr<SVGResourceClipper> create() { return adoptRef(new SVGResourceClipper); }
    6868        virtual ~SVGResourceClipper();
    69      
     69
     70        virtual void invalidate();
     71
    7072        void resetClipData();
    7173        void addClipData(const Path&, WindRule, bool bboxUnits);
Note: See TracChangeset for help on using the changeset viewer.