aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-22 14:25:51 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-22 14:25:51 -0700
commit47a0f58f98e1a6ddcf5db24347fc6bf890d4a7d6 (patch)
tree996fe771cd42d716f721943a8aa0f51213daae9a /components/script_traits/lib.rs
parent0a3a50a1293e4e8f3e04161014d03802765140c7 (diff)
parent7940b22158d892293641aa25df7720316db7e573 (diff)
downloadservo-47a0f58f98e1a6ddcf5db24347fc6bf890d4a7d6.tar.gz
servo-47a0f58f98e1a6ddcf5db24347fc6bf890d4a7d6.zip
Auto merge of #10654 - notriddle:no_resize_on_initial_load, r=asajeffrey
compositing/script: Do not dispatch the resize event when initially l… …oading. No bug report corresponds to this, but I noticed it while trying to reduce #10593 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10654) <!-- Reviewable:end -->
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index b8b0a34c77d..46c3e860643 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -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).