mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix "a serious bug" in the bind_to_tree
functions
This commit is contained in:
parent
479a2c1217
commit
f8121ae60d
2 changed files with 9 additions and 3 deletions
|
@ -71,9 +71,12 @@ impl VirtualMethods for HTMLTitleElement {
|
|||
}
|
||||
}
|
||||
|
||||
fn bind_to_tree(&self, is_in_doc: bool) {
|
||||
fn bind_to_tree(&self, tree_in_doc: bool) {
|
||||
if let Some(ref s) = self.super_type() {
|
||||
s.bind_to_tree(tree_in_doc);
|
||||
}
|
||||
let node = self.upcast::<Node>();
|
||||
if is_in_doc {
|
||||
if tree_in_doc {
|
||||
node.owner_doc().title_changed();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue