mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update gecko bindings.
I'm in the process of making the binding generator easier to use, so that we can check it into the tree. More patches in that direction soon, but I wanted to first just update the existing bindings to match the state of the world in gecko.
This commit is contained in:
parent
3ff5082798
commit
c4aa7cd862
3 changed files with 64 additions and 90 deletions
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use bindings::ServoStyleSetData;
|
||||
use bindings::RawServoStyleSet;
|
||||
use euclid::Size2D;
|
||||
use euclid::size::TypedSize2D;
|
||||
use num_cpus;
|
||||
|
@ -61,7 +61,7 @@ impl PerDocumentStyleData {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn borrow_mut_from_raw<'a>(data: *mut ServoStyleSetData) -> &'a mut Self {
|
||||
pub fn borrow_mut_from_raw<'a>(data: *mut RawServoStyleSet) -> &'a mut Self {
|
||||
unsafe { &mut *(data as *mut PerDocumentStyleData) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue