diff options
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index fe55c035ff7..fd4bb67370b 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -641,7 +641,7 @@ impl Document { // Update the focus state for all elements in the focus chain. // https://html.spec.whatwg.org/multipage/#focus-chain if focus_type == FocusType::Element { - let event = ConstellationMsg::Focus(self.window.pipeline()); + let event = ConstellationMsg::Focus(self.window.pipeline_id()); self.window.constellation_chan().send(event).unwrap(); } } @@ -661,7 +661,7 @@ impl Document { pub fn send_title_to_compositor(&self) { let window = self.window(); window.constellation_chan() - .send(ConstellationMsg::SetTitle(window.pipeline(), + .send(ConstellationMsg::SetTitle(window.pipeline_id(), Some(String::from(self.Title())))) .unwrap(); } @@ -1367,7 +1367,7 @@ impl Document { // TODO: Should tick animation only when document is visible if !self.running_animation_callbacks.get() { let event = ConstellationMsg::ChangeRunningAnimationsState( - self.window.pipeline(), + self.window.pipeline_id(), AnimationState::AnimationCallbacksPresent); self.window.constellation_chan().send(event).unwrap(); } @@ -1405,7 +1405,7 @@ impl Document { if self.animation_frame_list.borrow().is_empty() { mem::swap(&mut *self.animation_frame_list.borrow_mut(), &mut animation_frame_list); - let event = ConstellationMsg::ChangeRunningAnimationsState(self.window.pipeline(), + let event = ConstellationMsg::ChangeRunningAnimationsState(self.window.pipeline_id(), AnimationState::NoAnimationCallbacksPresent); self.window.constellation_chan().send(event).unwrap(); } @@ -1469,7 +1469,7 @@ impl Document { let loader = self.loader.borrow(); if !loader.is_blocked() && !loader.events_inhibited() { let win = self.window(); - let msg = MainThreadScriptMsg::DocumentLoadsComplete(win.pipeline()); + let msg = MainThreadScriptMsg::DocumentLoadsComplete(win.pipeline_id()); win.main_thread_script_chan().send(msg).unwrap(); } } @@ -1567,7 +1567,7 @@ impl Document { } pub fn notify_constellation_load(&self) { - let pipeline_id = self.window.pipeline(); + let pipeline_id = self.window.pipeline_id(); let load_event = ConstellationMsg::LoadComplete(pipeline_id); self.window.constellation_chan().send(load_event).unwrap(); } @@ -1593,7 +1593,7 @@ impl Document { self.upcast::<Node>() .traverse_preorder() .filter_map(Root::downcast::<HTMLIFrameElement>) - .find(|node| node.pipeline() == Some(pipeline)) + .find(|node| node.pipeline_id() == Some(pipeline)) } pub fn get_dom_loading(&self) -> u64 { |