mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
script: Cache the <iframe>
list per-Document (#34702)
This change creates a new struct `IFrameCollection` that is used to cache the list of `<iframe>`s in a `Document` as long as the `Document`'s DOM has not changed. This prevent constantly iterating the entire DOM during *update the rendering*, which runs up to 60 times per second as well as for other operations. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
adfee3daa5
commit
a5c461146f
7 changed files with 225 additions and 107 deletions
|
@ -55,6 +55,8 @@ mod layout_image;
|
|||
|
||||
#[warn(deprecated)]
|
||||
pub mod document_collection;
|
||||
#[warn(deprecated)]
|
||||
pub mod iframe_collection;
|
||||
pub mod layout_dom;
|
||||
#[warn(deprecated)]
|
||||
mod mem;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue