mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Handle reference cycles in SVG gradient linking
Since SVG gradients can reference each other, we have to keep track of visited gradients when traversing the link chain, or we will recurse infinitely when there's a reference cycle.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 02:14:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2e0297d703 Pull-request: https://github.com/SerenityOS/serenity/pull/23549
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<script src="../include.js"></script>
|
||||
<svg>
|
||||
<linearGradient id="lol" href="#lmao"/>
|
||||
<linearGradient id="lmao" href="#even"/>
|
||||
<linearGradient id="even" href="#lol"/>
|
||||
<rect fill="url(#lol)" />
|
||||
</svg>
|
||||
<script>
|
||||
test(() => {
|
||||
println("PASS (didn't hang or crash)");
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user