mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Remove intrinsic Root::r()
This commit is contained in:
parent
51bcf516c8
commit
0b3ab875f4
55 changed files with 275 additions and 310 deletions
|
@ -220,7 +220,6 @@ impl HTMLIFrameElement {
|
|||
pub fn set_visible(&self, visible: bool) {
|
||||
if let Some(pipeline_id) = self.pipeline_id.get() {
|
||||
let window = window_from_node(self);
|
||||
let window = window.r();
|
||||
let msg = ConstellationMsg::SetVisible(pipeline_id, visible);
|
||||
window.upcast::<GlobalScope>().constellation_chan().send(msg).unwrap();
|
||||
}
|
||||
|
@ -265,7 +264,6 @@ impl HTMLIFrameElement {
|
|||
pub fn get_content_window(&self) -> Option<Root<Window>> {
|
||||
self.pipeline_id.get().and_then(|pipeline_id| {
|
||||
let window = window_from_node(self);
|
||||
let window = window.r();
|
||||
let browsing_context = window.browsing_context();
|
||||
browsing_context.find_child_by_id(pipeline_id)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue