mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
compositing/script: Do not dispatch the resize event when initially loading.
No bug report corresponds to this, but I noticed it while trying to reduce #10593
This commit is contained in:
parent
75d99eec0f
commit
7940b22158
10 changed files with 103 additions and 48 deletions
|
@ -41,7 +41,7 @@ use gfx_traits::Epoch;
|
|||
use gfx_traits::LayerId;
|
||||
use ipc_channel::ipc::{IpcReceiver, IpcSender};
|
||||
use libc::c_void;
|
||||
use msg::constellation_msg::{ConstellationChan, PanicMsg, PipelineId, WindowSizeData};
|
||||
use msg::constellation_msg::{ConstellationChan, PanicMsg, PipelineId, WindowSizeData, WindowSizeType};
|
||||
use msg::constellation_msg::{Key, KeyModifiers, KeyState, LoadData};
|
||||
use msg::constellation_msg::{PipelineNamespaceId, SubpageId};
|
||||
use msg::webdriver_msg::WebDriverScriptCommand;
|
||||
|
@ -109,7 +109,7 @@ pub enum ConstellationControlMsg {
|
|||
/// Gives a channel and ID to a layout thread, as well as the ID of that layout's parent
|
||||
AttachLayout(NewLayoutInfo),
|
||||
/// Window resized. Sends a DOM event eventually, but first we combine events.
|
||||
Resize(PipelineId, WindowSizeData),
|
||||
Resize(PipelineId, WindowSizeData, WindowSizeType),
|
||||
/// Notifies script that window has been resized but to not take immediate action.
|
||||
ResizeInactive(PipelineId, WindowSizeData),
|
||||
/// Notifies the script that a pipeline should be closed.
|
||||
|
@ -220,7 +220,7 @@ pub enum MouseEventType {
|
|||
#[derive(Deserialize, Serialize)]
|
||||
pub enum CompositorEvent {
|
||||
/// The window was resized.
|
||||
ResizeEvent(WindowSizeData),
|
||||
ResizeEvent(WindowSizeData, WindowSizeType),
|
||||
/// A mouse button state changed.
|
||||
MouseButtonEvent(MouseEventType, MouseButton, Point2D<f32>),
|
||||
/// The mouse was moved over a point (or was moved out of the recognizable region).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue