diff options
Diffstat (limited to 'src/components/script/dom/htmliframeelement.rs')
-rw-r--r-- | src/components/script/dom/htmliframeelement.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 8fa028baff2..4b8199e0bdd 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -7,26 +7,28 @@ use dom::document::AbstractDocument; use dom::htmlelement::HTMLElement; use dom::windowproxy::WindowProxy; use geom::size::Size2D; +use geom::rect::Rect; -use servo_msg::constellation_msg::SubpageId; +use servo_msg::constellation_msg::{ConstellationChan, FrameRectMsg, PipelineId, SubpageId}; use std::comm::ChanOne; use extra::url::Url; +use std::util::replace; pub struct HTMLIFrameElement { parent: HTMLElement, frame: Option<Url>, - size: Option<IframeSize>, + size: Option<IFrameSize>, } -struct IframeSize { +struct IFrameSize { pipeline_id: PipelineId, subpage_id: SubpageId, future_chan: Option<ChanOne<Size2D<uint>>>, constellation_chan: ConstellationChan, } -impl IframeSize { +impl IFrameSize { pub fn set_rect(&mut self, rect: Rect<f32>) { let future_chan = replace(&mut self.future_chan, None); do future_chan.map_consume |future_chan| { |