mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add mozbrowser events for location + title change.
This commit is contained in:
parent
da2231a8fa
commit
7163a3c580
6 changed files with 83 additions and 23 deletions
|
@ -78,7 +78,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLTitleElement> {
|
|||
let node: JSRef<Node> = NodeCast::from_ref(*self);
|
||||
if node.is_in_doc() {
|
||||
let document = node.owner_doc().root();
|
||||
document.r().send_title_to_compositor();
|
||||
document.r().title_changed();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLTitleElement> {
|
|||
let node: JSRef<Node> = NodeCast::from_ref(*self);
|
||||
if is_in_doc {
|
||||
let document = node.owner_doc().root();
|
||||
document.r().send_title_to_compositor()
|
||||
document.r().title_changed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue