mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Make Node.owner_doc private.
This commit is contained in:
parent
34f89b27b3
commit
c08e4fe36b
4 changed files with 30 additions and 20 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue