mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Make Document::root private, in preparation for removing it as part of making Document a Node.
This commit is contained in:
parent
fc9fdf30a6
commit
b6b2606c96
4 changed files with 17 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue