slint/api
Simon Hausmann 753ec83a05 Fix crash with VRc::borrow() on wasm32
When converting a Weak<VT, T> into Weak<VT, Dyn>, we were ignoring that
while T inside VRcInner may be at a certain offset to satisfy alignment,
the empty Dyn field may not and thus be at a different offset.

On wasm32 for example the compiler generated component struct has a
16-byte alignment, while the Dyn has none. So converting the Weak<VT,
Dyn> to a VRc<VT, Dyn> and then calling borrow() would use the wrong
instance pointer.

To fix this, this patch introduces an extra offset field that's
preserved during the casting and that's used for borrow() as well as
drop().
2020-11-12 11:04:56 +01:00
..
sixtyfps-cpp Fix crash with VRc::borrow() on wasm32 2020-11-12 11:04:56 +01:00
sixtyfps-node Remove the component parameter from GenericWindow::process_key_input 2020-11-11 19:16:26 +01:00
sixtyfps-rs Remove the component parameter from GenericWindow::process_key_input 2020-11-11 19:16:26 +01:00
sixtyfps-wasm-interpreter Begin passing the VRC<ComponentVTable, Dyn> into the run-time library 2020-11-11 18:31:51 +01:00