Changeset 32528 in webkit


Ignore:
Timestamp:
Apr 24, 2008 5:58:11 PM (16 years ago)
Author:
mrowe@apple.com
Message:

2008-04-24 Cameron McCormack <cam@mcc.id.au>

Reviewed by Maciej Stachowiak.

Ensure that changes to rx="" and ry="" attributes on an SVG <rect>
element cause a relayout.

Test: svg/dom/SVGRectElement/rect-modify-rx.svg

  • svg/SVGRectElement.cpp: (WebCore::SVGRectElement::svgAttributeChanged): Call needsLayout() when the attribute is rx or ry. (WebCore::SVGRectElement::hasRelativeValues): Return true when the attribute is rx or ry, since they also can have relative values.

2008-04-24 Cameron McCormack <cam@mcc.id.au>

Reviewed by Maciej Stachowiak.

Test for:
http://bugs.webkit.org/show_bug.cgi?id=18328
Modifying rx="" or ry="" on a <rect> doesn't relayout

  • svg/dom/SVGRectElement: Added.
  • svg/dom/SVGRectElement/rect-modify-rx-expected.txt: Added.
  • svg/dom/SVGRectElement/rect-modify-rx.svg: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r32526 r32528  
     12008-04-24  Cameron McCormack  <cam@mcc.id.au>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Test for:
     6        http://bugs.webkit.org/show_bug.cgi?id=18328
     7        Modifying rx="" or ry="" on a <rect> doesn't relayout
     8
     9        * svg/dom/SVGRectElement: Added.
     10        * svg/dom/SVGRectElement/rect-modify-rx-expected.txt: Added.
     11        * svg/dom/SVGRectElement/rect-modify-rx.svg: Added.
     12
    1132008-04-24  Adam Barth  <hk9565@gmail.com>
    214
  • trunk/WebCore/ChangeLog

    r32526 r32528  
     12008-04-24  Cameron McCormack  <cam@mcc.id.au>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        Ensure that changes to rx="" and ry="" attributes on an SVG <rect>
     6        element cause a relayout.
     7
     8        Test: svg/dom/SVGRectElement/rect-modify-rx.svg
     9
     10        * svg/SVGRectElement.cpp:
     11        (WebCore::SVGRectElement::svgAttributeChanged): Call needsLayout()
     12        when the attribute is rx or ry.
     13        (WebCore::SVGRectElement::hasRelativeValues): Return true when the
     14        attribute is rx or ry, since they also can have relative values.
     15
    1162008-04-24  Adam Barth  <hk9565@gmail.com>
    217
  • trunk/WebCore/svg/SVGRectElement.cpp

    r31600 r32528  
    9999    if (attrName == SVGNames::xAttr || attrName == SVGNames::yAttr ||
    100100        attrName == SVGNames::widthAttr || attrName == SVGNames::heightAttr ||
     101        attrName == SVGNames::rxAttr || attrName == SVGNames::ryAttr ||
    101102        SVGTests::isKnownAttribute(attrName) ||
    102103        SVGLangSpace::isKnownAttribute(attrName) ||
     
    124125{
    125126    return (x().isRelative() || width().isRelative() ||
    126             y().isRelative() || height().isRelative());
     127            y().isRelative() || height().isRelative() ||
     128            rx().isRelative() || ry().isRelative());
    127129}
    128130
Note: See TracChangeset for help on using the changeset viewer.