Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged r236991 - REGRESSION(r234620): SVGLangSpace::svgAttributeChang…
…ed() should invalidate the renderer of the SVGGeometryElement descendant only https://bugs.webkit.org/show_bug.cgi?id=190411 Reviewed by Simon Fraser. Source/WebCore: Test: svg/dynamic-updates/SVGStopElement-dom-xml-lang-attrr.html When changing the attributes of the SVGLangSpace, we should invalidate the renderer of the SVGGeometryElement descendant only. Renderer of other elements, like SVGStopElement, should not be invalidated because they do not have geometry and they can be used as resources for drawing another SVGGeometryElement. * svg/SVGElement.h: (WebCore::SVGElement::isSVGGeometryElement const): * svg/SVGGeometryElement.h: (isType): * svg/SVGLangSpace.cpp: (WebCore::SVGLangSpace::svgAttributeChanged): LayoutTests: * svg/dynamic-updates/SVGStopElement-dom-xml-lang-attrr-expected.txt: Added. * svg/dynamic-updates/SVGStopElement-dom-xml-lang-attrr.html: Added.
- Loading branch information
Showing
7 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
LayoutTests/svg/dynamic-updates/SVGStopElement-dom-xml-lang-attrr-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Passes if no crash happens. | ||
|
||
|
21 changes: 21 additions & 0 deletions
21
LayoutTests/svg/dynamic-updates/SVGStopElement-dom-xml-lang-attrr.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<body> | ||
<p>Passes if no crash happens.</p> | ||
<svg> | ||
<linearGradient id="gradient"> | ||
<stop id="stop1" offset="0%" stop-color="green" /> | ||
<stop id="stop2" offset="50%" stop-color="green" /> | ||
</linearGradient> | ||
<rect fill="url(#gradient)" x="10" y="10" width="200" height="100"/> | ||
</svg> | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.waitUntilDone(); | ||
} | ||
setTimeout(function(){ | ||
stop1.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:lang", "jw"); | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
}, 0); | ||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters