mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
auto merge of #1051 : Ms2ger/servo/private-root, r=jdm
In preparation for removing it as part of making Document a Node.
This commit is contained in:
commit
8d3c7a2ded
4 changed files with 17 additions and 22 deletions
|
@ -418,7 +418,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