Changeset 70617 in webkit


Ignore:
Timestamp:
Oct 26, 2010 11:38:35 PM (14 years ago)
Author:
rwlbuis@webkit.org
Message:

2010-10-26 Rob Buis <rwlbuis@gmail.com>

Reviewed by Nikolas Zimmermann.

Title-Element has no popup on <svg>-Elements, but on <g>
https://bugs.webkit.org/show_bug.cgi?id=47669

Allow tooltips on non-root svg elements.

No new tests.

  • svg/SVGStyledElement.cpp: (WebCore::SVGStyledElement::title):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70615 r70617  
     12010-10-26  Rob Buis  <rwlbuis@gmail.com>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        Title-Element has no popup on <svg>-Elements, but on <g>
     6        https://bugs.webkit.org/show_bug.cgi?id=47669
     7
     8        Allow tooltips on non-root svg elements.
     9
     10        No new tests.
     11
     12        * svg/SVGStyledElement.cpp:
     13
    1142010-10-26  Dai Mikurube  <dmikurube@google.com>
    215
  • trunk/WebCore/svg/SVGStyledElement.cpp

    r69437 r70617  
    6767String SVGStyledElement::title() const
    6868{
    69     // According to spec, we should not return titles when hovering over <svg> elements (those
     69    // According to spec, we should not return titles when hovering over root <svg> elements (those
    7070    // <title> elements are the title of the document, not a tooltip) so we instantly return.
    71     if (hasTagName(SVGNames::svgTag))
    72         return String();
     71    if (hasTagName(SVGNames::svgTag)) {
     72        const SVGSVGElement* svg = static_cast<const SVGSVGElement*>(this);
     73        if (svg->isOutermostSVG())
     74            return String();
     75    }
    7376   
    7477    // Walk up the tree, to find out whether we're inside a <use> shadow tree, to find the right title.
Note: See TracChangeset for help on using the changeset viewer.