Bug 192840

Summary: SVGUseElement::findTarget should return nullptr when there is a cycle
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: SVGAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: koivisto, sabouhallawa, simon.fraser, thorton, webkit-bug-importer, zalan, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Cleanup thorton: review+

Ryosuke Niwa
Reported 2018-12-18 19:20:53 PST
https://trac.webkit.org/changeset/233366 added an early return to updateShadowTree() when there is a cycle but there is a separate cycle detection for when there is a corresponding element in SVGUseElement::findTarget. Support detecting a cycle in SVGUseElement::findTarget to consolidate these two cycle detection code paths.
Attachments
Cleanup (2.35 KB, patch)
2018-12-18 19:49 PST, Ryosuke Niwa
thorton: review+
Ryosuke Niwa
Comment 1 2018-12-18 19:49:01 PST
Tim Horton
Comment 2 2018-12-19 14:30:39 PST
Comment on attachment 357647 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=357647&action=review > Source/WebCore/ChangeLog:12 > + No new tests since there shoul be no behavioral change. s/shoul/should/
Ryosuke Niwa
Comment 3 2018-12-19 15:51:06 PST
Radar WebKit Bug Importer
Comment 4 2018-12-19 15:52:26 PST
Note You need to log in before you can comment on or make changes to this bug.