Changeset 249216 in webkit


Ignore:
Timestamp:
Aug 28, 2019 12:57:00 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

XLinkNames namespace is required before the 'href' attribute of SVG animate elements
https://bugs.webkit.org/show_bug.cgi?id=201227

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2019-08-28
Reviewed by Ryosuke Niwa.

Source/WebCore:

To get the animation target element, get the value of the "href" attribute
or the "xlink:href" attribute.

Tests: svg/custom/href-svg-namespace-animate-target.svg

  • svg/animation/SVGSMILElement.cpp:

(WebCore::SVGSMILElement::buildPendingResource):

LayoutTests:

  • svg/custom/href-svg-namespace-animate-target-expected.svg: Added.
  • svg/custom/href-svg-namespace-animate-target.svg: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r249214 r249216  
     12019-08-28  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        XLinkNames namespace is required before the 'href' attribute of SVG animate elements
     4        https://bugs.webkit.org/show_bug.cgi?id=201227
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * svg/custom/href-svg-namespace-animate-target-expected.svg: Added.
     9        * svg/custom/href-svg-namespace-animate-target.svg: Added.
     10
    1112019-08-28  Myles C. Maxfield  <mmaxfield@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r249215 r249216  
     12019-08-28  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        XLinkNames namespace is required before the 'href' attribute of SVG animate elements
     4        https://bugs.webkit.org/show_bug.cgi?id=201227
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        To get the animation target element, get the value of the "href" attribute
     9        or the "xlink:href" attribute.
     10
     11        Tests: svg/custom/href-svg-namespace-animate-target.svg
     12
     13        * svg/animation/SVGSMILElement.cpp:
     14        (WebCore::SVGSMILElement::buildPendingResource):
     15
    1162019-08-28  Truitt Savell  <tsavell@apple.com>
    217
  • trunk/Source/WebCore/svg/animation/SVGSMILElement.cpp

    r247102 r249216  
    182182    String id;
    183183    RefPtr<Element> target;
    184     auto& href = getAttribute(XLinkNames::hrefAttr);
     184    auto& href = getAttribute(SVGNames::hrefAttr, XLinkNames::hrefAttr);
    185185    if (href.isEmpty())
    186186        target = parentElement();
Note: See TracChangeset for help on using the changeset viewer.