mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
script: Ignore redundant resize notifications.
This commit is contained in:
parent
7c365b0324
commit
2aa5ddf922
1 changed files with 9 additions and 0 deletions
|
@ -3696,6 +3696,15 @@ impl ScriptThread {
|
||||||
};
|
};
|
||||||
|
|
||||||
let window = document.window();
|
let window = document.window();
|
||||||
|
if window.window_size() == new_size {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
debug!(
|
||||||
|
"resizing pipeline {:?} from {:?} to {:?}",
|
||||||
|
pipeline_id,
|
||||||
|
window.window_size(),
|
||||||
|
new_size
|
||||||
|
);
|
||||||
window.set_window_size(new_size);
|
window.set_window_size(new_size);
|
||||||
window.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize);
|
window.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue