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:
Anthony Ramine 2015-04-10 00:02:00 +02:00
parent 5386cb31d0
commit 184fb7bd86
19 changed files with 521 additions and 98593 deletions

View file

@ -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