aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-11-06 15:55:11 -0500
committerJosh Matthews <josh@joshmatthews.net>2019-11-06 16:13:55 -0500
commitfd260f78c80a070727ba88d7b5f7cc40eb7efb5a (patch)
treee5d20c19d3a8e3a79f88e9ceff0e8b8f772568a9 /components/layout_thread_2020
parent38e4ae0833fbc15c8579d40bca7fc87e9d37cb03 (diff)
downloadservo-fd260f78c80a070727ba88d7b5f7cc40eb7efb5a.tar.gz
servo-fd260f78c80a070727ba88d7b5f7cc40eb7efb5a.zip
dom: Calculate the viewport size of iframes when they are first added to the tree.
Diffstat (limited to 'components/layout_thread_2020')
-rw-r--r--components/layout_thread_2020/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/layout_thread_2020/lib.rs b/components/layout_thread_2020/lib.rs
index 13cf35975ee..6ab5768ad02 100644
--- a/components/layout_thread_2020/lib.rs
+++ b/components/layout_thread_2020/lib.rs
@@ -523,6 +523,7 @@ impl LayoutThread {
text_index_response: TextIndexResponse(None),
nodes_from_point_response: vec![],
element_inner_text_response: String::new(),
+ inner_window_dimensions_response: None,
})),
timer: if pref!(layout.animations.test.enabled) {
Timer::test_mode()
@@ -937,6 +938,9 @@ impl LayoutThread {
&QueryMsg::ElementInnerTextQuery(_) => {
rw_data.element_inner_text_response = String::new();
},
+ &QueryMsg::InnerWindowDimensionsQuery(_) => {
+ rw_data.inner_window_dimensions_response = None;
+ },
},
ReflowGoal::Full | ReflowGoal::TickAnimations => {},
}
@@ -1189,6 +1193,11 @@ impl LayoutThread {
let node = unsafe { ServoLayoutNode::new(&node) };
rw_data.element_inner_text_response = process_element_inner_text_query(node);
},
+ &QueryMsg::InnerWindowDimensionsQuery(_browsing_context_id) => {
+ // TODO(jdm): port the iframe sizing code from layout2013's display
+ // builder in order to support query iframe sizing.
+ rw_data.inner_window_dimensions_response = None;
+ },
},
ReflowGoal::Full | ReflowGoal::TickAnimations => {},
}