aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/documentorshadowroot.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-02-14 18:19:06 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 10:17:48 +0200
commit07e2f41c34d6676afd2a510cef9ea74b0fde576e (patch)
treef52776a3bfab90b0b5f29876c36c29f797f0200e /components/script/dom/documentorshadowroot.rs
parent8641866a505733686e24d588ae8d5c9e86e2bcfe (diff)
downloadservo-07e2f41c34d6676afd2a510cef9ea74b0fde576e.tar.gz
servo-07e2f41c34d6676afd2a510cef9ea74b0fde576e.zip
Retarget result of shadowRoot.element(s)FromPoint
Diffstat (limited to 'components/script/dom/documentorshadowroot.rs')
-rw-r--r--components/script/dom/documentorshadowroot.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs
index eda3432dc5a..51846baa443 100644
--- a/components/script/dom/documentorshadowroot.rs
+++ b/components/script/dom/documentorshadowroot.rs
@@ -155,7 +155,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 vec![];
}