diff options
author | bors-servo <release+servo@mozilla.com> | 2013-12-13 11:28:10 -0800 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2013-12-13 11:28:10 -0800 |
commit | aa1ebbbdb0243f098921103f02bb9b7dbcc40441 (patch) | |
tree | 03204e5058c7b16f07a3718d240d3bacfd9a0021 /src/components/script/dom/htmliframeelement.rs | |
parent | 499aa97fa4424cad9585e57987665542003e2597 (diff) | |
parent | 21e8c72a7526a32733453221d4ed10ac070521dd (diff) | |
download | servo-aa1ebbbdb0243f098921103f02bb9b7dbcc40441.tar.gz servo-aa1ebbbdb0243f098921103f02bb9b7dbcc40441.zip |
auto merge of #1405 : pcwalton/servo/defuture, r=larsbergstrom
This will allow us to stop going to the DOM in order to handle iframe
sizing. Instead we can just store the pipeline and frame IDs of iframes
inside the flow tree itself.
r? @kmcallister
Diffstat (limited to 'src/components/script/dom/htmliframeelement.rs')
-rw-r--r-- | src/components/script/dom/htmliframeelement.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/script/dom/htmliframeelement.rs b/src/components/script/dom/htmliframeelement.rs index 73172cb0ad8..7f39cfa58d8 100644 --- a/src/components/script/dom/htmliframeelement.rs +++ b/src/components/script/dom/htmliframeelement.rs @@ -9,15 +9,11 @@ use dom::element::HTMLIframeElementTypeId; use dom::htmlelement::HTMLElement; use dom::node::{AbstractNode, Node, ScriptView}; use dom::windowproxy::WindowProxy; -use geom::size::Size2D; -use geom::rect::Rect; +use extra::url::Url; +use geom::rect::Rect; use servo_msg::constellation_msg::{ConstellationChan, FrameRectMsg, PipelineId, SubpageId}; - use std::ascii::StrAsciiExt; -use std::comm::ChanOne; -use extra::url::Url; -use std::util::replace; enum SandboxAllowance { AllowNothing = 0x00, @@ -39,17 +35,11 @@ pub struct HTMLIFrameElement { struct IFrameSize { pipeline_id: PipelineId, subpage_id: SubpageId, - future_chan: Option<ChanOne<Size2D<uint>>>, constellation_chan: ConstellationChan, } impl IFrameSize { pub fn set_rect(&mut self, rect: Rect<f32>) { - let future_chan = replace(&mut self.future_chan, None); - do future_chan.map |future_chan| { - let Size2D { width, height } = rect.size; - future_chan.send(Size2D(width as uint, height as uint)); - }; self.constellation_chan.send(FrameRectMsg(self.pipeline_id, self.subpage_id, rect)); } } |