Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(r258464): SVG use element doesn't render if it references …
…a subsequent element after a style resolution https://bugs.webkit.org/show_bug.cgi?id=216363 Reviewed by Said Abou-Hallawa. The bug was caused by SVGPathElement::insertedIntoAncestor and a few other insertedIntoAncestor functions ignoring the value returned by SVGElement::insertedIntoAncestor requesting a post insertion callback, and SVGMPathElement::didFinishInsertingNode not calling SVGMPathElement::didFinishInsertingNode, which updates SVG elements referencing the element. This PR fixes all insertedIntoAncestor functions in SVG to respect the value returned by super class' insertedIntoAncestor but many of them don't have any consequences at the moment. * LayoutTests/svg/dom/use-element-refers-subsequent-image-element-after-style-update-expected.svg: Added. * LayoutTests/svg/dom/use-element-refers-subsequent-image-element-after-style-update.svg: Added. * LayoutTests/svg/dom/use-element-refers-subsequent-path-element-after-style-update-expected.svg: Added. * LayoutTests/svg/dom/use-element-refers-subsequent-path-element-after-style-update.svg: Added. * Source/WebCore/svg/SVGFEImageElement.cpp: (WebCore::SVGFEImageElement::didFinishInsertingNode): * Source/WebCore/svg/SVGFontFaceElement.cpp: (WebCore::SVGFontFaceElement::insertedIntoAncestor): * Source/WebCore/svg/SVGImageElement.cpp: (WebCore::SVGImageElement::insertedIntoAncestor): * Source/WebCore/svg/SVGMPathElement.cpp: (WebCore::SVGMPathElement::insertedIntoAncestor): (WebCore::SVGMPathElement::didFinishInsertingNode): * Source/WebCore/svg/SVGPathElement.cpp: (WebCore::SVGPathElement::insertedIntoAncestor): * Source/WebCore/svg/SVGScriptElement.cpp: (WebCore::SVGScriptElement::insertedIntoAncestor): * Source/WebCore/svg/SVGTRefElement.cpp: (WebCore::SVGTRefElement::insertedIntoAncestor): (WebCore::SVGTRefElement::didFinishInsertingNode): * Source/WebCore/svg/SVGTextPathElement.cpp: (WebCore::SVGTextPathElement::didFinishInsertingNode): * Source/WebCore/svg/SVGTitleElement.cpp: (WebCore::SVGTitleElement::insertedIntoAncestor): * Source/WebCore/svg/SVGUseElement.cpp: (WebCore::SVGUseElement::insertedIntoAncestor): (WebCore::SVGUseElement::didFinishInsertingNode): * Source/WebCore/svg/animation/SVGSMILElement.cpp: (WebCore::SVGSMILElement::didFinishInsertingNode): Canonical link: https://commits.webkit.org/264085@main
- Loading branch information
Showing
15 changed files
with
51 additions
and
16 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...dom/use-element-refers-subsequent-image-element-after-style-update-expected.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
...ests/svg/dom/use-element-refers-subsequent-image-element-after-style-update.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
.../dom/use-element-refers-subsequent-path-element-after-style-update-expected.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
...Tests/svg/dom/use-element-refers-subsequent-path-element-after-style-update.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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