stylo: Remove usage of ServoComputedValues from binding functions

This commit is contained in:
Manish Goregaokar 2017-07-18 23:17:34 -07:00 committed by Manish Goregaokar
parent 9776d070ea
commit 3c3e4399da
7 changed files with 71 additions and 46 deletions

View file

@ -227,7 +227,8 @@ impl ComputedValuesInner {
) -> Arc<ComputedValues> {
let arc = unsafe {
let arc: Arc<ComputedValues> = Arc::new(uninitialized());
bindings::Gecko_ServoStyleContext_Init(&arc.0 as *const _ as *mut _, parent, pres_context,
bindings::Gecko_ServoStyleContext_Init(&arc.0 as *const _ as *mut _,
parent, pres_context,
&self, pseudo_ty, pseudo_tag);
// We're simulating a move by having C++ do a memcpy and then forgetting
// it on this end.