mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Privatize Window
This commit is contained in:
parent
8825296869
commit
da7590d108
9 changed files with 57 additions and 25 deletions
|
@ -171,7 +171,7 @@ impl<'a> HTMLIFrameElementMethods for JSRef<'a, HTMLIFrameElement> {
|
|||
fn GetContentWindow(self) -> Option<Temporary<Window>> {
|
||||
self.size.get().and_then(|size| {
|
||||
let window = window_from_node(self).root();
|
||||
let children = window.page.children.borrow();
|
||||
let children = window.page().children.borrow();
|
||||
let child = children.iter().find(|child| {
|
||||
child.subpage_id.unwrap() == size.subpage_id
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue