In ancient double-digit-issue times, our forefather brson suggested that we
could store some sort of promise or future in the display list, for images
pending load:
https://github.com/servo/servo/issues/43

Would something like this work?  It might make sense to store the futures
in the flow tree instead of (or in addition to?) the display list.  The
future would contain sort of identifier that corresponds to an image
request.  Each time layout runs, any "image future" fragment would check to
see if its request was now finished.  When any image load completes, we
could trigger a layout pass that triggers these checks.  (This could use a
new RestyleDamage flag, or maybe just make sure these fragments have an
existing flag like REPAINT set for as long as they contain an unfulfilled
future.)
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to