mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Refactor document damage to distinguish it from layout/style damage.
Also, standardize on the name "reflow" instead of "relayout" or "build".
This commit is contained in:
parent
40a69fc517
commit
7a435fc6ed
4 changed files with 106 additions and 58 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use dom::bindings::utils::WrapperCache;
|
||||
use dom::bindings::window;
|
||||
use layout_interface::MatchSelectorsDamage;
|
||||
use layout_interface::ReflowForScriptQuery;
|
||||
use script_task::{ExitMsg, FireTimerMsg, ScriptMsg, ScriptContext};
|
||||
|
||||
use core::comm::{Chan, SharedChan};
|
||||
|
@ -83,7 +83,7 @@ pub impl Window {
|
|||
|
||||
fn content_changed(&self) {
|
||||
unsafe {
|
||||
(*self.script_context).trigger_relayout(MatchSelectorsDamage);
|
||||
(*self.script_context).reflow_all(ReflowForScriptQuery)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue