From 8641866a505733686e24d588ae8d5c9e86e2bcfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Thu, 14 Feb 2019 15:47:02 +0100 Subject: [PATCH] Fix Document.Element(s)FromPoint --- components/script/dom/documentorshadowroot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs index 70e49ca5ad5..eda3432dc5a 100644 --- a/components/script/dom/documentorshadowroot.rs +++ b/components/script/dom/documentorshadowroot.rs @@ -115,7 +115,7 @@ impl DocumentOrShadowRoot { let point = &Point2D::new(x, y); let viewport = self.window.window_size().initial_viewport; - if has_browsing_context { + if !has_browsing_context { return None; }