mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Clear the fragment_name field when resizing.
This reinstates the behaviour from before the change in
a1bf49c1ce
.
This commit is contained in:
parent
7508ca94b3
commit
4cc24e727b
1 changed files with 6 additions and 6 deletions
|
@ -874,12 +874,12 @@ impl ScriptTask {
|
|||
page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor)
|
||||
}
|
||||
|
||||
let fragment_node = page.fragment_name
|
||||
.borrow()
|
||||
.as_ref()
|
||||
.and_then(|name| {
|
||||
page.find_fragment_node(name.clone())
|
||||
}).root();
|
||||
let fragment_node =
|
||||
page.fragment_name
|
||||
.borrow_mut()
|
||||
.take()
|
||||
.and_then(|name| page.find_fragment_node(name))
|
||||
.root();
|
||||
match fragment_node {
|
||||
Some(node) => self.scroll_fragment_point(pipeline_id, *node),
|
||||
None => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue