mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement base machinery of Range
The actual boundary points are behind a Rc<_> value to let nodes be able to store weak references to them in the future.
This commit is contained in:
parent
5386cb31d0
commit
184fb7bd86
19 changed files with 521 additions and 98593 deletions
|
@ -1166,7 +1166,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
|
|||
|
||||
// https://dom.spec.whatwg.org/#dom-document-createrange
|
||||
fn CreateRange(self) -> Temporary<Range> {
|
||||
Range::new(self)
|
||||
Range::new_with_doc(self)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue