mirror of
https://github.com/servo/servo.git
synced 2025-07-25 00:00:20 +01: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)
|
page.reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor)
|
||||||
}
|
}
|
||||||
|
|
||||||
let fragment_node = page.fragment_name
|
let fragment_node =
|
||||||
.borrow()
|
page.fragment_name
|
||||||
.as_ref()
|
.borrow_mut()
|
||||||
.and_then(|name| {
|
.take()
|
||||||
page.find_fragment_node(name.clone())
|
.and_then(|name| page.find_fragment_node(name))
|
||||||
}).root();
|
.root();
|
||||||
match fragment_node {
|
match fragment_node {
|
||||||
Some(node) => self.scroll_fragment_point(pipeline_id, *node),
|
Some(node) => self.scroll_fragment_point(pipeline_id, *node),
|
||||||
None => {}
|
None => {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue