Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0423]: expected value, found struct `CanvasState`
- --> components\script\dom\canvasrenderingcontext2d.rs:165:43
- |
- 165 | reflect_dom_object(boxed, global, CanvasState)
- | ^^^^^^^^^^^ did you mean `CanvasState { /* fields */ }`?
- error[E0277]: the trait bound `dom::canvasrenderingcontext2d::CanvasState: dom::bindings::reflector::DomObject` is not satisfied
- --> components\script\dom\canvasrenderingcontext2d.rs:165:9
- |
- 165 | reflect_dom_object(boxed, global, CanvasState)
- | ^^^^^^^^^^^^^^^^^^ the trait `dom::bindings::reflector::DomObject` is not implemented for `dom::canvasrenderingcontext2d::CanvasState`
- |
- note: required by `dom::bindings::reflector::reflect_dom_object`
- --> components\script\dom\bindings\reflector.rs:16:1
- |
- 16 | / pub fn reflect_dom_object<T, U>(
- 17 | | obj: Box<T>,
- 18 | | global: &U,
- 19 | | wrap_fn: unsafe fn(*mut JSContext, &GlobalScope, Box<T>) -> DomRoot<T>,
- ... |
- 26 | | unsafe { wrap_fn(global_scope.get_cx(), global_scope, obj) }
- 27 | | }
- | |_^
- error[E0277]: the trait bound `dom::canvasrenderingcontext2d::CanvasState: dom::bindings::reflector::DomObject` is not satisfied
- --> components\script\dom\canvasrenderingcontext2d.rs:165:9
- |
- 165 | reflect_dom_object(boxed, global, CanvasState)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `dom::bindings::reflector::DomObject` is not implemented for `dom::canvasrenderingcontext2d::CanvasState`
- |
- = note: required because of the requirements on the impl of `dom::bindings::root::StableTraceObject` for `dom::bindings::root::Dom<dom::canvasrenderingcontext2d::CanvasState>`
- note: required by `dom::bindings::root::Root`
- --> components\script\dom\bindings\root.rs:50:1
- |
- 50 | pub struct Root<T: StableTraceObject> {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- error[E0308]: mismatched types
- --> components\script\dom\canvasrenderingcontext2d.rs:165:9
- |
- 158 | ) -> CanvasState {
- | ----------- expected `dom::canvasrenderingcontext2d::CanvasState` because of return type
- ...
- 165 | reflect_dom_object(boxed, global, CanvasState)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `dom::canvasrenderingcontext2d::CanvasState`, found struct `dom::bindings::root::Root`
- |
- = note: expected type `dom::canvasrenderingcontext2d::CanvasState`
- found type `dom::bindings::root::Root<dom::bindings::root::Dom<dom::canvasrenderingcontext2d::CanvasState>>`
- error[E0308]: mismatched types
- --> components\script\dom\offscreencanvasrenderingcontext2d.rs:32:68
- |
- 32 | canvas_state: DomRefCell::new(CanvasState::new(_global,_size)),
- | ^^^^^ expected u32, found u64
- |
- = note: expected type `euclid::size::TypedSize2D<u32, _>`
- found type `euclid::size::TypedSize2D<u64, _>`
- error: aborting due to 5 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement