diff options
author | Tim Kuehn <tkuehn@cmu.edu> | 2013-08-08 12:43:11 -0700 |
---|---|---|
committer | Tim Kuehn <tkuehn@cmu.edu> | 2013-08-19 19:11:12 -0400 |
commit | bd5526de940c4cdd2413666be56ca86860f493d9 (patch) | |
tree | ed737b3ceb22eaca22e6d626464d8faea532d7d4 /src/components/script/dom/htmliframeelement.rs | |
parent | 93368a2bf34300610b720d25b70e236273b89e33 (diff) | |
download | servo-bd5526de940c4cdd2413666be56ca86860f493d9.tar.gz servo-bd5526de940c4cdd2413666be56ca86860f493d9.zip |
add iframe support
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| { |