diff options
Diffstat (limited to 'components/script/dom/intersectionobserver.rs')
-rw-r--r-- | components/script/dom/intersectionobserver.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/intersectionobserver.rs b/components/script/dom/intersectionobserver.rs index 3c02238f52f..7b926e4909a 100644 --- a/components/script/dom/intersectionobserver.rs +++ b/components/script/dom/intersectionobserver.rs @@ -5,8 +5,7 @@ use std::rc::Rc; use dom_struct::dom_struct; -use js::jsval::{JSVal, NullValue}; -use js::rust::HandleObject; +use js::rust::{HandleObject, MutableHandleValue}; use super::bindings::codegen::Bindings::IntersectionObserverBinding::{ IntersectionObserverCallback, IntersectionObserverMethods, @@ -93,9 +92,7 @@ impl IntersectionObserverMethods for IntersectionObserver { /// > constructor, or the sequence is empty, the value of this attribute will be [0]. /// /// <https://w3c.github.io/IntersectionObserver/#dom-intersectionobserver-thresholds> - fn Thresholds(&self, _context: JSContext) -> JSVal { - NullValue() - } + fn Thresholds(&self, _context: JSContext, _retval: MutableHandleValue) {} /// > A number indicating the minimum delay in milliseconds between notifications from /// > this observer for a given target. |