script: Ignore redundant resize notifications.

This commit is contained in:
Josh Matthews 2019-11-06 16:13:08 -05:00
parent 7c365b0324
commit 2aa5ddf922

View file

@ -3696,6 +3696,15 @@ impl ScriptThread {
};
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.force_reflow(ReflowGoal::Full, ReflowReason::WindowResize);