aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2018-12-09 14:16:14 -0500
committerJosh Matthews <josh@joshmatthews.net>2018-12-14 13:12:46 -0500
commit231a37be24ee62cef69d69e0d1919b7b7f80cfed (patch)
tree5534da80c10e6c47cfb22687311a75cdcaf9fa33 /components/script_traits/lib.rs
parent34e77f62afcd4a4f64bc28bb8c6fb45b4c0a983a (diff)
downloadservo-231a37be24ee62cef69d69e0d1919b7b7f80cfed.tar.gz
servo-231a37be24ee62cef69d69e0d1919b7b7f80cfed.zip
Initial window sizes are mandatory.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 51e3417e274..2dfc2378d2f 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -190,7 +190,7 @@ pub struct NewLayoutInfo {
/// Network request data which will be initiated by the script thread.
pub load_data: LoadData,
/// Information about the initial window size.
- pub window_size: Option<WindowSizeData>,
+ pub window_size: WindowSizeData,
/// A port on which layout can receive messages from the pipeline.
pub pipeline_port: IpcReceiver<LayoutControlMsg>,
/// A shutdown channel so that layout can tell the content process to shut down when it's done.
@@ -566,7 +566,7 @@ pub struct InitialScriptState {
/// A channel to the developer tools, if applicable.
pub devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>,
/// Information about the initial window size.
- pub window_size: Option<WindowSizeData>,
+ pub window_size: WindowSizeData,
/// The ID of the pipeline namespace for this script thread.
pub pipeline_namespace_id: PipelineNamespaceId,
/// A ping will be sent on this channel once the script thread shuts down.