mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Previously, `Document::notify_css_background_image_loaded()` walked the entire `PaintableBox` subtree and cleared each box's paintable cache whenever any CSS image finished loading. Replace this with per-image observers owned by the layout node. During `apply_style`, each node registers as an `ImageStyleValue::Client` for the images its style references. On load, only the affected layout node's paintables are invalidated.
2.3 KiB
2.3 KiB