mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Privatize Document
This commit is contained in:
parent
d0addd36bb
commit
8825296869
8 changed files with 38 additions and 22 deletions
|
@ -26,7 +26,7 @@ impl Range {
|
|||
}
|
||||
|
||||
pub fn new(document: JSRef<Document>) -> Temporary<Range> {
|
||||
let window = document.window.root();
|
||||
let window = document.window().root();
|
||||
reflect_dom_object(box Range::new_inherited(),
|
||||
&Window(*window),
|
||||
RangeBinding::Wrap)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue