diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-09-25 15:18:58 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-09-25 15:18:58 +0200 |
| commit | 052697585d5d31691229693a9d4ed03b6dfb2337 (patch) | |
| tree | a67a8f734eae7a5371d68eee65fe0143ba06a857 /src/html | |
| parent | 2426863e1853f1d97762f3e48f0858730bc0405a (diff) | |
| download | chawan-052697585d5d31691229693a9d4ed03b6dfb2337.tar.gz | |
dom: invalidate shared images on load
fixes the race where reused images wouldn't show up after page load
Diffstat (limited to 'src/html')
| -rw-r--r-- | src/html/dom.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 98d1f7ea..2a4e2d97 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -3273,6 +3273,7 @@ proc loadResource(window: Window; image: HTMLImageElement) = cachedURL.bmp = bmp for share in cachedURL.shared: share.bitmap = bmp + share.setInvalid() image.setInvalid() ) ) |