Dynamic changes in the style attributes of an SVGElement do no affect the <use> instances
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2019 00:13:41 +0000 (00:13 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2019 00:13:41 +0000 (00:13 +0000)
commitd4892c021b98bf88311006f68ad4a6f97f8e8f93
tree694fa31e58c026252c94d0f4ab58a3ff873ff9c4
parent3b88ef34cb8d6b5d8a7412c54203c5d15e30da43
Dynamic changes in the style attributes of an SVGElement do no affect the <use> instances
https://bugs.webkit.org/show_bug.cgi?id=193647

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2019-01-22
Reviewed by Simon Fraser.

Source/WebCore:

Changing a style attribute of an SVGELement needs to call invalidateInstances().

Tests: svg/custom/svg-use-style-dynamic-change-invalidate.svg

* svg/SVGElement.cpp:
(WebCore::SVGElement::attributeChanged):

LayoutTests:

* svg/custom/svg-use-style-dynamic-change-invalidate-expected.svg: Added.
* svg/custom/svg-use-style-dynamic-change-invalidate.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/svg-use-style-dynamic-change-invalidate-expected.svg [new file with mode: 0644]
LayoutTests/svg/custom/svg-use-style-dynamic-change-invalidate.svg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/svg/SVGElement.cpp