diff options
author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2019-07-25 10:09:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-25 10:09:33 +0900 |
commit | caf7a2488eda6218ccf8dc8d81f090531b4c77e8 (patch) | |
tree | 2712b566869664297ab33495612bfbbea52365dd /components/script/dom/offscreencanvas.rs | |
parent | 16b4e3446bc466c87327fac3402736d3636a5f73 (diff) | |
parent | 82f649751c045730419f9d1704305717c4f346ec (diff) | |
download | servo-caf7a2488eda6218ccf8dc8d81f090531b4c77e8.tar.gz servo-caf7a2488eda6218ccf8dc8d81f090531b4c77e8.zip |
Merge branch 'master' into tojson
Diffstat (limited to 'components/script/dom/offscreencanvas.rs')
-rw-r--r-- | components/script/dom/offscreencanvas.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/components/script/dom/offscreencanvas.rs b/components/script/dom/offscreencanvas.rs index 2087c47c91f..142379519fb 100644 --- a/components/script/dom/offscreencanvas.rs +++ b/components/script/dom/offscreencanvas.rs @@ -15,9 +15,9 @@ use crate::dom::eventtarget::EventTarget; use crate::dom::globalscope::GlobalScope; use crate::dom::htmlcanvaselement::HTMLCanvasElement; use crate::dom::offscreencanvasrenderingcontext2d::OffscreenCanvasRenderingContext2D; +use crate::script_runtime::JSContext; use dom_struct::dom_struct; use euclid::default::Size2D; -use js::jsapi::JSContext; use js::rust::HandleValue; use ref_filter_map; use std::cell::Cell; @@ -108,10 +108,9 @@ impl OffscreenCanvas { impl OffscreenCanvasMethods for OffscreenCanvas { // https://html.spec.whatwg.org/multipage/#dom-offscreencanvas-getcontext - #[allow(unsafe_code)] - unsafe fn GetContext( + fn GetContext( &self, - _cx: *mut JSContext, + _cx: JSContext, id: DOMString, _options: HandleValue, ) -> Option<OffscreenRenderingContext> { |