diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-11-06 16:13:43 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-11-06 16:13:55 -0500 |
commit | 91dfa354b16535f1c55c722b10cf4538f2385e0e (patch) | |
tree | 9a5478316b86291294812809e62504ecfb14972e /components/script | |
parent | 2aa5ddf9221b77a6144391eb37855737a9ede083 (diff) | |
download | servo-91dfa354b16535f1c55c722b10cf4538f2385e0e.tar.gz servo-91dfa354b16535f1c55c722b10cf4538f2385e0e.zip |
Ensure layout/script always have a correct viewport size when a new pipeline is created.
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 2 | ||||
-rw-r--r-- | components/script/script_thread.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 41ac20cc2ed..e58e65ea5bb 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -190,6 +190,7 @@ impl HTMLIFrameElement { load_data: load_data.clone(), old_pipeline_id: old_pipeline_id, sandbox: sandboxed, + window_size, }; global_scope .script_to_constellation_chan() @@ -216,6 +217,7 @@ impl HTMLIFrameElement { load_data: load_data, old_pipeline_id: old_pipeline_id, sandbox: sandboxed, + window_size, }; global_scope .script_to_constellation_chan() diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index fec8c878012..191df335ec5 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -2392,6 +2392,7 @@ impl ScriptThread { load_data.url.clone(), ), layout_is_busy: layout_is_busy.clone(), + window_size, }); // Pick a layout thread, any layout thread |