Changeset 31859 in webkit


Ignore:
Timestamp:
Apr 13, 2008 11:53:48 PM (16 years ago)
Author:
rwlbuis@webkit.org
Message:

Reviewed by Eric.

http://bugs.webkit.org/show_bug.cgi?id=18230
tspan in link not working

Implement SVG Errata: "The 'a' element may contain any
element that its parent may contain, except itself."

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r31836 r31859  
     12008-04-14  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        Testcase for:
     6        http://bugs.webkit.org/show_bug.cgi?id=18230
     7        tspan in link not working
     8
     9        * platform/mac/svg/custom/text-linking-expected.txt: Added.
     10        * svg/custom/text-linking.svg: Added.
     11
    1122008-04-11  Dan Bernstein  <mitz@apple.com>
    213
  • trunk/WebCore/ChangeLog

    r31858 r31859  
     12008-04-14  Rob Buis  <buis@kde.org>
     2
     3        Reviewed by Eric.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=18230
     6        tspan in link not working
     7
     8        Implement SVG Errata: "The 'a' element may contain any
     9        element that its parent may contain, except itself."
     10
     11        * svg/SVGAElement.cpp:
     12        (WebCore::SVGAElement::childShouldCreateRenderer):
     13
    1142008-04-13  David Hyatt  <hyatt@apple.com>
    215
  • trunk/WebCore/svg/SVGAElement.cpp

    r31817 r31859  
    202202bool SVGAElement::childShouldCreateRenderer(Node* child) const
    203203{
    204     if (static_cast<SVGElement*>(parent())->isTextContent())
    205         return child->isTextNode();
     204    // http://www.w3.org/2003/01/REC-SVG11-20030114-errata#linking-text-environment
     205    // The 'a' element may contain any element that its parent may contain, except itself.
     206    if (child->hasTagName(SVGNames::aTag))
     207        return false;
     208    if (parent() && parent()->isSVGElement())
     209        return static_cast<SVGElement*>(parent())->childShouldCreateRenderer(child);
    206210
    207211    return SVGElement::childShouldCreateRenderer(child);
Note: See TracChangeset for help on using the changeset viewer.