Changeset 86978 in webkit


Ignore:
Timestamp:
May 20, 2011 12:53:13 PM (13 years ago)
Author:
rwlbuis@webkit.org
Message:

2011-05-20 Rob Buis <rbuis@rim.com>

Reviewed by Dirk Schulze.

Use test from ietestcenter fails
https://bugs.webkit.org/show_bug.cgi?id=60844

When an id changes on an in-document element, we need to check whether the id
is part of the pending elements. Since this is the same thing as happens in
insertedIntoDocument, split out the common code into buildPendingResourcesIfNeeded.

Test: svg/W3C-SVG-1.1-SE/struct-use-14-f.svg

  • svg/SVGStyledElement.cpp: (WebCore::SVGStyledElement::svgAttributeChanged): (WebCore::SVGStyledElement::insertedIntoDocument): (WebCore::SVGStyledElement::buildPendingResourcesIfNeeded):
  • svg/SVGStyledElement.h:

2011-05-20 Rob Buis <rbuis@rim.com>

Reviewed by Dirk Schulze.

Use test from ietestcenter fails
https://bugs.webkit.org/show_bug.cgi?id=60844

  • platform/mac/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.png: Added.
  • platform/mac/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.txt: Added.
  • svg/W3C-SVG-1.1-SE/struct-use-14-f.svg: Added.
Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86977 r86978  
     12011-05-20  Rob Buis  <rbuis@rim.com>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        Use test from ietestcenter fails
     6        https://bugs.webkit.org/show_bug.cgi?id=60844
     7
     8        * platform/mac/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.png: Added.
     9        * platform/mac/svg/W3C-SVG-1.1-SE/struct-use-14-f-expected.txt: Added.
     10        * svg/W3C-SVG-1.1-SE/struct-use-14-f.svg: Added.
     11
    1122011-05-20  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r86976 r86978  
     12011-05-20  Rob Buis  <rbuis@rim.com>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        Use test from ietestcenter fails
     6        https://bugs.webkit.org/show_bug.cgi?id=60844
     7
     8        When an id changes on an in-document element, we need to check whether the id
     9        is part of the pending elements. Since this is the same thing as happens in
     10        insertedIntoDocument, split out the common code into buildPendingResourcesIfNeeded.
     11
     12        Test: svg/W3C-SVG-1.1-SE/struct-use-14-f.svg
     13
     14        * svg/SVGStyledElement.cpp:
     15        (WebCore::SVGStyledElement::svgAttributeChanged):
     16        (WebCore::SVGStyledElement::insertedIntoDocument):
     17        (WebCore::SVGStyledElement::buildPendingResourcesIfNeeded):
     18        * svg/SVGStyledElement.h:
     19
    1202011-05-20  Abhishek Arya  <inferno@chromium.org>
    221
  • trunk/Source/WebCore/svg/SVGStyledElement.cpp

    r86365 r86978  
    337337        if (object && object->isSVGResourceContainer())
    338338            object->toRenderSVGResourceContainer()->idChanged();
     339        if (inDocument())
     340            buildPendingResourcesIfNeeded();
    339341    }
    340342
     
    363365    SVGElement::insertedIntoDocument();
    364366    updateRelativeLengthsInformation();
    365 
     367    buildPendingResourcesIfNeeded();
     368}
     369
     370void SVGStyledElement::buildPendingResourcesIfNeeded() const
     371{
    366372    Document* document = this->document();
    367373    if (!needsPendingResourceHandling() || !document)
  • trunk/Source/WebCore/svg/SVGStyledElement.h

    r86365 r86978  
    8888    virtual bool isStyled() const { return true; }
    8989
     90    void buildPendingResourcesIfNeeded() const;
     91
    9092    HashSet<SVGStyledElement*> m_elementsWithRelativeLengths;
    9193
Note: See TracChangeset for help on using the changeset viewer.