⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 238464 in webkit


Ignore:
Timestamp:
Nov 23, 2018, 2:06:35 PM (8 years ago)
Author:
rniwa@webkit.org
Message:

Updating href on textPath doesn't update its rendering
https://bugs.webkit.org/show_bug.cgi?id=191920

Reviewed by Dean Jackson.

Source/WebCore:

Fixed the bug by invalidating the RenderSVGResource in SVGTextPathElement::svgAttributeChanged
in addition to updating the pending resources.

Test: svg/text/textpath-reference-update.html

  • svg/SVGTextPathElement.cpp:

(WebCore::SVGTextPathElement::svgAttributeChanged):

LayoutTests:

Added a ref test.

  • svg/text/textpath-reference-update-expected.html: Added.
  • svg/text/textpath-reference-update.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r238460 r238464  
     12018-11-22  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Updating href on textPath doesn't update its rendering
     4        https://bugs.webkit.org/show_bug.cgi?id=191920
     5
     6        Reviewed by Dean Jackson.
     7
     8        Added a ref test.
     9
     10        * svg/text/textpath-reference-update-expected.html: Added.
     11        * svg/text/textpath-reference-update.html: Added.
     12
    1132018-11-23  Zalan Bujtas  <zalan@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r238463 r238464  
     12018-11-22  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Updating href on textPath doesn't update its rendering
     4        https://bugs.webkit.org/show_bug.cgi?id=191920
     5
     6        Reviewed by Dean Jackson.
     7
     8        Fixed the bug by invalidating the RenderSVGResource in SVGTextPathElement::svgAttributeChanged
     9        in addition to updating the pending resources.
     10
     11        Test: svg/text/textpath-reference-update.html
     12
     13        * svg/SVGTextPathElement.cpp:
     14        (WebCore::SVGTextPathElement::svgAttributeChanged):
     15
    1162018-11-23  Ross Kirsling  <ross.kirsling@sony.com>
    217
  • trunk/Source/WebCore/svg/SVGTextPathElement.cpp

    r238452 r238464  
    104104    if (SVGURIReference::isKnownAttribute(attrName)) {
    105105        buildPendingResource();
     106        if (auto renderer = this->renderer())
     107            RenderSVGResource::markForLayoutAndParentResourceInvalidation(*renderer);
    106108        return;
    107109    }
Note: See TracChangeset for help on using the changeset viewer.