diff options
author | eshyong <eric.shyong@gmail.com> | 2014-07-06 23:48:31 -0400 |
---|---|---|
committer | eshyong <eric.shyong@gmail.com> | 2014-07-06 23:49:01 -0400 |
commit | f085655cc6a3f04ff5232e367f6b825e98c1b7de (patch) | |
tree | edbd6405460b8abb30cd6c24a7c94a7a0da2882a /src/components/msg | |
parent | e62637fee2f1c9627468dde81a68df1dd40b6bc9 (diff) | |
download | servo-f085655cc6a3f04ff5232e367f6b825e98c1b7de.tar.gz servo-f085655cc6a3f04ff5232e367f6b825e98c1b7de.zip |
Made Page.window_size and Page.next_subpage_id Traceable, added trait Encodable for WindowSizeData, ViewportPx, PagePx, and DevicePixel
Diffstat (limited to 'src/components/msg')
-rw-r--r-- | src/components/msg/constellation_msg.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/msg/constellation_msg.rs b/src/components/msg/constellation_msg.rs index 84207ee7f7e..1969b7d7513 100644 --- a/src/components/msg/constellation_msg.rs +++ b/src/components/msg/constellation_msg.rs @@ -8,6 +8,7 @@ use geom::rect::Rect; use geom::size::TypedSize2D; use geom::scale_factor::ScaleFactor; +use serialize::Encodable; use servo_util::geometry::{DevicePixel, PagePx, ViewportPx}; use std::comm::{channel, Sender, Receiver}; use url::Url; @@ -35,6 +36,7 @@ pub struct Failure { pub subpage_id: Option<SubpageId>, } +#[deriving(Encodable)] pub struct WindowSizeData { /// The size of the initial layout viewport, before parsing an /// http://www.w3.org/TR/css-device-adapt/#initial-viewport |