aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-01-15 11:09:37 -0500
committerJosh Matthews <josh@joshmatthews.net>2020-01-15 11:09:37 -0500
commitc385953c97d5f1eb0190487c314274c02904b7f7 (patch)
tree5f651d733950a07d2ff44a1a5f99f56bc6baabc0 /components/script/dom/window.rs
parent9a518cf7979b79b34611135d09c1dd0a96945255 (diff)
downloadservo-c385953c97d5f1eb0190487c314274c02904b7f7.tar.gz
servo-c385953c97d5f1eb0190487c314274c02904b7f7.zip
Revert "Auto merge of #24677 - jdm:iframe-sizing-cleanup, r=asajeffrey"jdm-revert4
This reverts commit 9a518cf7979b79b34611135d09c1dd0a96945255, reversing changes made to a33d493a4ff6f8a629a9b82202c49c41ecbefa49.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 95326b46352..70099ee5866 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -89,7 +89,7 @@ use js::jsval::{JSVal, NullValue};
use js::rust::wrappers::JS_DefineProperty;
use js::rust::{CustomAutoRooter, CustomAutoRooterGuard, HandleValue};
use media::WindowGLContext;
-use msg::constellation_msg::{BrowsingContextId, PipelineId};
+use msg::constellation_msg::PipelineId;
use net_traits::image_cache::{ImageCache, ImageResponder, ImageResponse};
use net_traits::image_cache::{PendingImageId, PendingImageResponse};
use net_traits::storage_thread::StorageType;
@@ -1829,16 +1829,6 @@ impl Window {
DOMString::from(resolved)
}
- pub fn inner_window_dimensions_query(
- &self,
- browsing_context: BrowsingContextId,
- ) -> Option<Size2D<f32, CSSPixel>> {
- if !self.layout_reflow(QueryMsg::InnerWindowDimensionsQuery(browsing_context)) {
- return None;
- }
- self.layout_rpc.inner_window_dimensions()
- }
-
#[allow(unsafe_code)]
pub fn offset_parent_query(&self, node: &Node) -> (Option<DomRoot<Element>>, UntypedRect<Au>) {
if !self.layout_reflow(QueryMsg::OffsetParentQuery(node.to_opaque())) {
@@ -2369,7 +2359,6 @@ fn debug_reflow_events(id: PipelineId, reflow_goal: &ReflowGoal, reason: &Reflow
&QueryMsg::StyleQuery(_n) => "\tStyleQuery",
&QueryMsg::TextIndexQuery(..) => "\tTextIndexQuery",
&QueryMsg::ElementInnerTextQuery(_) => "\tElementInnerTextQuery",
- &QueryMsg::InnerWindowDimensionsQuery(_) => "\tInnerWindowDimensionsQuery",
},
});