Changeset 91653 in webkit


Ignore:
Timestamp:
Jul 24, 2011, 7:16:57 PM (14 years ago)
Author:
rwlbuis@webkit.org
Message:

2011-07-24 Rob Buis <rbuis@rim.com>

Crash in SVGUseElement::updateContainerOffsets on <use> with no parent
https://bugs.webkit.org/show_bug.cgi?id=63646

Reviewed by Darin Adler.

Prevent using invalid targetElementInstance->shadowTreeElement after shadow render tree recreation. This situation can
only occur when there was a valid shadowTreeElement before setting xlink:href to empty/invalid.

Test: svg/custom/use-shadow-root-parent-removal.svg

  • svg/SVGUseElement.cpp: (WebCore::SVGUseElement::svgAttributeChanged):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r91650 r91653  
     12011-07-24  Rob Buis  <rbuis@rim.com>
     2
     3        Crash in SVGUseElement::updateContainerOffsets on <use> with no parent
     4        https://bugs.webkit.org/show_bug.cgi?id=63646
     5
     6        Reviewed by Darin Adler.
     7
     8        * svg/custom/use-shadow-root-parent-removal-expected.txt: Added.
     9        * svg/custom/use-shadow-root-parent-removal.svg: Added.
     10
    1112011-07-24  Balazs Kelemen  <kbalazs@webkit.org>
    212
  • trunk/Source/WebCore/ChangeLog

    r91652 r91653  
     12011-07-24  Rob Buis  <rbuis@rim.com>
     2
     3        Crash in SVGUseElement::updateContainerOffsets on <use> with no parent
     4        https://bugs.webkit.org/show_bug.cgi?id=63646
     5
     6        Reviewed by Darin Adler.
     7
     8        Prevent using invalid targetElementInstance->shadowTreeElement after shadow render tree recreation. This situation can
     9        only occur when there was a valid shadowTreeElement before setting xlink:href to empty/invalid.
     10
     11        Test: svg/custom/use-shadow-root-parent-removal.svg
     12
     13        * svg/SVGUseElement.cpp:
     14        (WebCore::SVGUseElement::svgAttributeChanged):
     15
    1162011-07-24  Patrick Gansterer  <paroga@webkit.org>
    217
  • trunk/Source/WebCore/svg/SVGUseElement.cpp

    r91404 r91653  
    228228        }
    229229
     230        m_targetElementInstance = 0;
    230231        invalidateShadowTree();
    231232        return;
Note: See TracChangeset for help on using the changeset viewer.