Remove unnecessary Option.

This commit is contained in:
Josh Matthews 2019-12-19 18:10:42 -05:00
parent 6aacc9001b
commit f02e516f32
6 changed files with 10 additions and 18 deletions

View file

@ -519,7 +519,7 @@ impl Document {
// Set the document's activity level, reflow if necessary, and suspend or resume timers.
self.activity.set(activity);
let media = ServoMedia::get().unwrap();
let pipeline_id = self.window().pipeline_id().expect("doc with no pipeline");
let pipeline_id = self.window().pipeline_id();
let client_context_id =
ClientContextId::build(pipeline_id.namespace_id.0, pipeline_id.index.0.get());
@ -3318,7 +3318,7 @@ impl Document {
let script_msg = CommonScriptMsg::Task(
ScriptThreadEventCategory::EnterFullscreen,
handler,
pipeline_id,
Some(pipeline_id),
TaskSourceName::DOMManipulation,
);
let msg = MainThreadScriptMsg::Common(script_msg);