Skip to content

Commit 989c64c

Browse files
Fredrik Söderquistchromium-wpt-export-bot
authored andcommitted
Clear SVG resource invalidation mask when performing cycle-check
The invalidation mask could prevent invalidation of the SVGResource cycle-cache if an edge was introduced that caused a cycle before a paint that would clear the invalidation mask had happened. Clear the invalidation mask in SVGResource before performing a cycle-check. Factor this into a new ResourceContainerForCycleCheck() function. Fixed: 565674533 Change-Id: I5c6ab97fdd3746e694271f5387b0fd684feceab7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8501797 Auto-Submit: Fredrik Söderquist <[email protected]> Reviewed-by: Philip Rogers <[email protected]> Commit-Queue: Philip Rogers <[email protected]> Cr-Commit-Position: refs/heads/main@{#1710542}
1 parent dcab91a commit 989c64c

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<title>Dynamic &lt;pattern> cycle</title>
3+
<link rel="help" href="https://issues.chromium.org/565674533">
4+
<svg>
5+
<pattern id="p2" width="1" height="1">
6+
<line id="l" y2="1" x2="2" stroke="url(#p1) green"/>
7+
</pattern>
8+
<pattern id="p1" width="1" height="1"/>
9+
<polygon id="r" points="0,0 200,0 200,200 0,200" fill="url(#p1) lime"/>
10+
</svg>
11+
<script>
12+
r.getBBox();
13+
requestAnimationFrame(() => requestAnimationFrame(() => {
14+
p1.setAttribute('width', '2');
15+
l.setAttribute('x2', '1');
16+
r.setAttribute('points', '0,0 100,0 100,100 0,100');
17+
r.getBBox();
18+
p1.setAttribute('href', '#p2');
19+
}));
20+
</script>

0 commit comments

Comments
 (0)