Changeset 70323 in webkit


Ignore:
Timestamp:
Oct 22, 2010 12:00:36 PM (14 years ago)
Author:
krit@webkit.org
Message:

2010-10-22 Cosmin Truta <ctruta@chromium.org>

Reviewed by Dirk Schulze.

getBoundingClientRect does not work with SVG <text>
https://bugs.webkit.org/show_bug.cgi?id=46775

Added back to SVGStyledTransformableElement overloads of the following
methods: nearestViewportElement, farthestViewportElement, getBBox.
This was necessary to appease the Visual C++ compiler, which warned on
inheritance via dominance.

  • svg/SVGStyledTransformableElement.cpp:
  • svg/SVGStyledTransformableElement.h: (SVGStyledTransformableElement::nearestViewportElement): (SVGStyledTransformableElement::farthestViewportElement): (SVGStyledTransformableElement::getBBox):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r70321 r70323  
     12010-10-22  Cosmin Truta  <ctruta@chromium.org>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        getBoundingClientRect does not work with SVG <text>
     6        https://bugs.webkit.org/show_bug.cgi?id=46775
     7
     8        Added back to SVGStyledTransformableElement overloads of the following
     9        methods: nearestViewportElement, farthestViewportElement, getBBox.
     10        This was necessary to appease the Visual C++ compiler, which warned on
     11        inheritance via dominance.
     12
     13        * svg/SVGStyledTransformableElement.cpp:
     14        * svg/SVGStyledTransformableElement.h:
     15        (SVGStyledTransformableElement::nearestViewportElement):
     16        (SVGStyledTransformableElement::farthestViewportElement):
     17        (SVGStyledTransformableElement::getBBox):
     18
    1192010-10-21  Chris Marrin  <cmarrin@apple.com>
    220
  • trunk/WebCore/svg/SVGStyledTransformableElement.cpp

    r70317 r70323  
    9191}
    9292
     93SVGElement* SVGStyledTransformableElement::nearestViewportElement() const
     94{
     95    return SVGTransformable::nearestViewportElement(this);
     96}
     97
     98SVGElement* SVGStyledTransformableElement::farthestViewportElement() const
     99{
     100    return SVGTransformable::farthestViewportElement(this);
     101}
     102
     103FloatRect SVGStyledTransformableElement::getBBox(StyleUpdateStrategy styleUpdateStrategy) const
     104{
     105    return SVGTransformable::getBBox(this, styleUpdateStrategy);
     106}
     107
    93108RenderObject* SVGStyledTransformableElement::createRenderer(RenderArena* arena, RenderStyle*)
    94109{
  • trunk/WebCore/svg/SVGStyledTransformableElement.h

    r70317 r70323  
    3838    virtual AffineTransform getCTM(StyleUpdateStrategy = AllowStyleUpdate) const;
    3939    virtual AffineTransform getScreenCTM(StyleUpdateStrategy = AllowStyleUpdate) const;
     40    virtual SVGElement* nearestViewportElement() const;
     41    virtual SVGElement* farthestViewportElement() const;
    4042
    4143    virtual AffineTransform localCoordinateSpaceTransform(SVGLocatable::CTMScope mode) const { return SVGTransformable::localCoordinateSpaceTransform(mode); }
    4244    virtual AffineTransform animatedLocalTransform() const;
    4345    virtual AffineTransform* supplementalTransform();
     46
     47    virtual FloatRect getBBox(StyleUpdateStrategy = AllowStyleUpdate) const;
    4448
    4549    bool isKnownAttribute(const QualifiedName&);
Note: See TracChangeset for help on using the changeset viewer.