mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Get rid of reflow_all
This refactoring should not alter behavior.
This commit is contained in:
parent
dd0bb08927
commit
39fc9eb868
2 changed files with 13 additions and 20 deletions
|
@ -12,7 +12,7 @@ use dom::node::{AbstractNode, ScriptView};
|
|||
use dom::location::Location;
|
||||
use dom::navigator::Navigator;
|
||||
|
||||
use layout_interface::ReflowForDisplay;
|
||||
use layout_interface::{ReflowForDisplay, ContentChangedDocumentDamage};
|
||||
use script_task::{ExitWindowMsg, FireTimerMsg, Page, ScriptChan};
|
||||
use servo_msg::compositor_msg::ScriptListener;
|
||||
use servo_net::image_cache_task::ImageCacheTask;
|
||||
|
@ -189,7 +189,8 @@ impl Window {
|
|||
// FIXME This should probably be ReflowForQuery, not Display. All queries currently
|
||||
// currently rely on the display list, which means we can't destroy it by
|
||||
// doing a query reflow.
|
||||
self.page.reflow_all(ReflowForDisplay, self.script_chan.clone(), self.compositor);
|
||||
self.page.damage(ContentChangedDocumentDamage);
|
||||
self.page.reflow(ReflowForDisplay, self.script_chan.clone(), self.compositor);
|
||||
}
|
||||
|
||||
pub fn wait_until_safe_to_modify_dom(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue