diff options
author | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-04-17 18:48:11 -0500 |
---|---|---|
committer | Connor Brewster <connor.brewster@eagles.oc.edu> | 2017-05-12 11:53:43 -0600 |
commit | d004db95cf135dd5ac49c2b83b55feadcb480372 (patch) | |
tree | ce7b65297fba8a6aca72d1d2549e1e6150f8462a /components/script/layout_wrapper.rs | |
parent | f5794055108adf508bb0fd16222c4e5cf1d416d8 (diff) | |
download | servo-d004db95cf135dd5ac49c2b83b55feadcb480372.tar.gz servo-d004db95cf135dd5ac49c2b83b55feadcb480372.zip |
Make non-initial about:blank loads asynchronous
Don't update iframe pipeline until load completes
To preserve the previous functionality of delaying load events when a
new navigation is triggered, pending pipeline id represents the
current pending load. The load event is only fired if the load message's
pipeline id matches the pending pipeline id.
Track frame size on Frame instead of Pipeline
Disabled matchMedia test
Track creator pipeline id
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 7ae6a7e621e..278856c67f3 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -44,7 +44,7 @@ use dom::node::{LayoutNodeHelpers, Node}; use dom::text::Text; use gfx_traits::ByteIndex; use html5ever::{LocalName, Namespace}; -use msg::constellation_msg::PipelineId; +use msg::constellation_msg::{FrameId, PipelineId}; use range::Range; use script_layout_interface::{HTMLCanvasData, LayoutNodeType, SVGSVGData, TrustedNodeAddress}; use script_layout_interface::{OpaqueStyleAndLayoutData, PartialPersistentLayoutData}; @@ -908,6 +908,11 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> { this.svg_data() } + fn iframe_frame_id(&self) -> FrameId { + let this = unsafe { self.get_jsmanaged() }; + this.iframe_frame_id() + } + fn iframe_pipeline_id(&self) -> PipelineId { let this = unsafe { self.get_jsmanaged() }; this.iframe_pipeline_id() |