aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/webdriver_handlers.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2016-05-17 13:27:45 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2016-05-20 09:20:45 -0500
commite2203f81d31bb865e9d73765de33c87178fa2d14 (patch)
tree5354083f72d8a22fbe7668186382b34eea8be3ad /components/script/webdriver_handlers.rs
parent5acf0f9a0515c8358b3170f8d9a117c50b41bd7d (diff)
downloadservo-e2203f81d31bb865e9d73765de33c87178fa2d14.tar.gz
servo-e2203f81d31bb865e9d73765de33c87178fa2d14.zip
Made SetWindowSize synchronous.
Diffstat (limited to 'components/script/webdriver_handlers.rs')
-rw-r--r--components/script/webdriver_handlers.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/components/script/webdriver_handlers.rs b/components/script/webdriver_handlers.rs
index 5e5424b131e..8c84c950ae0 100644
--- a/components/script/webdriver_handlers.rs
+++ b/components/script/webdriver_handlers.rs
@@ -283,26 +283,6 @@ pub fn handle_get_url(context: &BrowsingContext,
reply.send((*url).clone()).unwrap();
}
-pub fn handle_get_window_size(context: &BrowsingContext,
- _pipeline: PipelineId,
- reply: IpcSender<Option<WindowSizeData>>) {
- let window = context.active_window();
- let size = window.window_size();
- reply.send(size).unwrap();
-}
-
-pub fn handle_set_window_size(context: &BrowsingContext,
- _pipeline: PipelineId,
- size: TypedSize2D<ViewportPx, f32>,
- reply: IpcSender<()>) {
- let window = context.active_window();
- // TODO: converting to a dimensionless size is error-prone
- let untyped = size.to_untyped();
- // TODO: when window puts in security checks for resize, we will need to rewrite this
- window.ResizeTo(untyped.width as i32, untyped.height as i32);
- reply.send(()).unwrap();
-}
-
pub fn handle_is_enabled(context: &BrowsingContext,
pipeline: PipelineId,
element_id: String,