You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we need to iterate over all browsing contexts in a frame tree and save their IDs in a Vec. Then, we need to iterate over them and retrieve the actual BrowsingContext instances, again and do the actual procedure of setting the is_visible field and calling Pipeline::notify_visibility. Here's the code.
It'd be nice not to have to make that copy in the beginning and lookup each browsing context twice, and instead mutate the browsing contexts in place as we iterate over them with a mutable version of AllBrowsingContextsIterator, but I'm not sure if this is possible (alas, my rust-lifetime-fu is not very advanced yet).
The text was updated successfully, but these errors were encountered:
Currently we need to iterate over all browsing contexts in a frame tree and save their IDs in a Vec. Then, we need to iterate over them and retrieve the actual
BrowsingContext
instances, again and do the actual procedure of setting theis_visible
field and callingPipeline::notify_visibility
. Here's the code.It'd be nice not to have to make that copy in the beginning and lookup each browsing context twice, and instead mutate the browsing contexts in place as we iterate over them with a mutable version of
AllBrowsingContextsIterator
, but I'm not sure if this is possible (alas, my rust-lifetime-fu is not very advanced yet).The text was updated successfully, but these errors were encountered: