Changeset 74629 in webkit


Ignore:
Timestamp:
Dec 24, 2010 3:54:24 AM (13 years ago)
Author:
jschuh@chromium.org
Message:

2010-12-24 Justin Schuh <jschuh@chromium.org>

Reviewed by Darin Adler.

setTargetAttributeAnimatedValue should check for a null shadowTreeElement.
https://bugs.webkit.org/show_bug.cgi?id=51576

  • svg/custom/animate-disallowed-use-element-expected.txt: Added.
  • svg/custom/animate-disallowed-use-element.svg: Added.

2010-12-24 Justin Schuh <jschuh@chromium.org>

Reviewed by Darin Adler.

setTargetAttributeAnimatedValue should check for a null shadowTreeElement.
https://bugs.webkit.org/show_bug.cgi?id=51576

Disallowed elements may be pruned from the shadow tree, leaving a null
shadowTreeElement. We should check for that before setting attributes.

Test: svg/custom/animate-disallowed-use-element.svg

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

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r74627 r74629  
     12010-12-24  Justin Schuh  <jschuh@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        setTargetAttributeAnimatedValue should check for a null shadowTreeElement.
     6        https://bugs.webkit.org/show_bug.cgi?id=51576
     7
     8        * svg/custom/animate-disallowed-use-element-expected.txt: Added.
     9        * svg/custom/animate-disallowed-use-element.svg: Added.
     10
    1112010-12-24  Andrei Popescu  <andreip@google.com>
    212
  • trunk/WebCore/ChangeLog

    r74628 r74629  
     12010-12-24  Justin Schuh  <jschuh@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        setTargetAttributeAnimatedValue should check for a null shadowTreeElement.
     6        https://bugs.webkit.org/show_bug.cgi?id=51576
     7
     8        Disallowed elements may be pruned from the shadow tree, leaving a null
     9        shadowTreeElement. We should check for that before setting attributes.
     10
     11        Test: svg/custom/animate-disallowed-use-element.svg
     12
     13        * svg/SVGAnimationElement.cpp:
     14        (WebCore::SVGAnimationElement::setTargetAttributeAnimatedValue):
     15
    1162010-12-24  Evan Martin  <evan@chromium.org>
    217
  • trunk/WebCore/svg/SVGAnimationElement.cpp

    r74472 r74629  
    353353    for (HashSet<SVGElementInstance*>::const_iterator it = instances.begin(); it != end; ++it) {
    354354        SVGElement* shadowTreeElement = (*it)->shadowTreeElement();
    355         ASSERT(shadowTreeElement);
     355        if (!shadowTreeElement)
     356            continue;
    356357        if (isCSS)
    357358            shadowTreeElement->style()->setProperty(attributeName, value, "", ec);
Note: See TracChangeset for help on using the changeset viewer.