Make Document::root private, in preparation for removing it as part of making Document a Node.

This commit is contained in:
Ms2ger 2013-10-13 14:08:37 +02:00
parent fc9fdf30a6
commit b6b2606c96
4 changed files with 17 additions and 22 deletions

View file

@ -417,7 +417,7 @@ impl<'self, View> AbstractNode<View> {
pub fn is_in_doc(&self) -> bool {
do self.with_base |node| {
do node.owner_doc.with_base |document| {
match document.root {
match document.GetDocumentElement() {
None => false,
Some(root) => {
let mut node = *self;