aboutsummaryrefslogtreecommitdiffstats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-09-25 15:18:58 +0200
committerbptato <nincsnevem662@gmail.com>2024-09-25 15:18:58 +0200
commit052697585d5d31691229693a9d4ed03b6dfb2337 (patch)
treea67a8f734eae7a5371d68eee65fe0143ba06a857 /src/html
parent2426863e1853f1d97762f3e48f0858730bc0405a (diff)
downloadchawan-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.nim1
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()
)
)