mirror of
https://github.com/servo/servo
synced 2026-05-01 20:07:22 +02:00
Replace Root::deref by a custom get_unsound_ref_forever method.
This will hopefully make it clearer that this is not the correct function to call.
This commit is contained in:
@@ -170,6 +170,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
||||
fn GetContentWindow(self) -> Option<Temporary<Window>> {
|
||||
self.subpage_id.get().and_then(|subpage_id| {
|
||||
let window = window_from_node(self).root();
|
||||
let window = window.r();
|
||||
let children = window.page().children.borrow();
|
||||
let child = children.iter().find(|child| {
|
||||
child.subpage_id.unwrap() == subpage_id
|
||||
|
||||
Reference in New Issue
Block a user