diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2013-12-13 15:06:51 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2013-12-13 15:10:04 -0800 |
commit | 971f77d2c69740ef625aff6aacab6297ce537765 (patch) | |
tree | c5e485ebdf2f22725098b6f09c1f910a30c31e80 /src/components/script/dom/htmliframeelement.rs | |
parent | aa1ebbbdb0243f098921103f02bb9b7dbcc40441 (diff) | |
download | servo-971f77d2c69740ef625aff6aacab6297ce537765.tar.gz servo-971f77d2c69740ef625aff6aacab6297ce537765.zip |
layout: Stop going to the DOM for iframe sizes
Diffstat (limited to 'src/components/script/dom/htmliframeelement.rs')
-rw-r--r-- | src/components/script/dom/htmliframeelement.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 7f39cfa58d8..3f8ff80a5c7 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -11,8 +11,7 @@ use dom::node::{AbstractNode, Node, ScriptView}; use dom::windowproxy::WindowProxy; use extra::url::Url; -use geom::rect::Rect; -use servo_msg::constellation_msg::{ConstellationChan, FrameRectMsg, PipelineId, SubpageId}; +use servo_msg::constellation_msg::{PipelineId, SubpageId}; use std::ascii::StrAsciiExt; enum SandboxAllowance { @@ -32,16 +31,9 @@ pub struct HTMLIFrameElement { sandbox: Option<u8> } -struct IFrameSize { +pub struct IFrameSize { pipeline_id: PipelineId, subpage_id: SubpageId, - constellation_chan: ConstellationChan, -} - -impl IFrameSize { - pub fn set_rect(&mut self, rect: Rect<f32>) { - self.constellation_chan.send(FrameRectMsg(self.pipeline_id, self.subpage_id, rect)); - } } impl HTMLIFrameElement { |