Updating href on textPath doesn't update its rendering
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2018 22:06:35 +0000 (22:06 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Nov 2018 22:06:35 +0000 (22:06 +0000)
commit081746923be39a9c89316e910b505ccd84f6af71
treedfc204b0f93e95d85c266b5245296b968bb9618a
parentea816a59d5ebf3b139204631527c5048cdb71147
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238464 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/text/textpath-reference-update-expected.html [new file with mode: 0644]
LayoutTests/svg/text/textpath-reference-update.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGTextPathElement.cpp