Make Node.owner_doc private.

This commit is contained in:
Ms2ger 2013-10-15 19:40:45 +02:00
parent 34f89b27b3
commit c08e4fe36b
4 changed files with 30 additions and 20 deletions

View file

@ -90,7 +90,7 @@ impl AbstractDocument {
pub fn set_root(&self, root: AbstractNode<ScriptView>) {
assert!(root.traverse_preorder().all(|node| {
do node.with_base |node| {
node.owner_doc == *self
node.owner_doc() == *self
}
}));
self.with_mut_base(|document| {