mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
servo: Move FontComputationData to the end of ServoComputedValues to make size check easier, make it NonZero
We fail bindgen layout tests on 32 bit because FontComputationData does not accurately reflect the size/alignment of the rust-side replacement. We move it to the end so that alignment is more straightforward, and use a NonZero enum so that the representation can be more accurately handled on the C++ side. MozReview-Commit-ID: 8GlSma3Wl9W
This commit is contained in:
parent
3d3f30a3f9
commit
ac1bae4f7a
4 changed files with 78 additions and 37 deletions
|
@ -1984,10 +1984,10 @@ extern "C" {
|
|||
-> ServoStyleContextStrong;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleContext_AddRef(ctx: ServoStyleContextBorrowed);
|
||||
pub fn Servo_StyleContext_AddRef(ctx: &ServoStyleContext);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleContext_Release(ctx: ServoStyleContextBorrowed);
|
||||
pub fn Servo_StyleContext_Release(ctx: &ServoStyleContext);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_MightHaveAttributeDependency(set:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue