Changeset 90003 in webkit


Ignore:
Timestamp:
Jun 29, 2011 2:32:21 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-06-29 Ryan Sleevi <rsleevi@chromium.org>

Reviewed by Dirk Schulze.

SVGRadialGradientElement::selfHasRelativeLengths() doesn't consider if cx() is relative
https://bugs.webkit.org/show_bug.cgi?id=61600

Correct the logic for checking for relative lengths in a SVGRadialGradientElement to consider cx() in addition to cy()

No new tests, as there is no way to currently test this. With the bug present, a side-effect is causing the
expected/correct image to be rendered. This is because the cached SVG resource is getting invalided through a
different path, forcing a repaint. The repaint takes into consideration the proper dimensions, hiding the bug.

  • svg/SVGRadialGradientElement.cpp: (WebCore::SVGRadialGradientElement::selfHasRelativeLengths):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r89993 r90003  
     12011-06-29  Ryan Sleevi  <rsleevi@chromium.org>
     2
     3        Reviewed by Dirk Schulze.
     4
     5        SVGRadialGradientElement::selfHasRelativeLengths() doesn't consider if cx() is relative
     6        https://bugs.webkit.org/show_bug.cgi?id=61600
     7
     8        Correct the logic for checking for relative lengths in a SVGRadialGradientElement to consider cx() in addition to cy()
     9       
     10        No new tests, as there is no way to currently test this. With the bug present, a side-effect is causing the
     11        expected/correct image to be rendered. This is because the cached SVG resource is getting invalided through a
     12        different path, forcing a repaint. The repaint takes into consideration the proper dimensions, hiding the bug.
     13
     14        * svg/SVGRadialGradientElement.cpp:
     15        (WebCore::SVGRadialGradientElement::selfHasRelativeLengths):
     16
    1172011-06-28  Dirk Schulze  <krit@webkit.org>
    218
  • trunk/Source/WebCore/svg/SVGRadialGradientElement.cpp

    r89550 r90003  
    306306bool SVGRadialGradientElement::selfHasRelativeLengths() const
    307307{
    308     return cy().isRelative()
     308    return cx().isRelative()
    309309        || cy().isRelative()
    310310        || r().isRelative()
Note: See TracChangeset for help on using the changeset viewer.