stylo: Use unsafe accessors for coord data; regen bindings

This commit is contained in:
Manish Goregaokar 2016-07-28 17:52:57 +05:30
parent 232a0ffc6d
commit a0f203a3a8
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
6 changed files with 825 additions and 706 deletions

View file

@ -661,9 +661,10 @@ fn static_assert() {
use gecko_bindings::structs::nsStyleUnit;
// z-index is never a calc(). If it were, we'd be leaking here, so
// assert that it isn't.
debug_assert!(self.gecko.mZIndex.mUnit != nsStyleUnit::eStyleUnit_Calc);
self.gecko.mZIndex.mUnit = other.gecko.mZIndex.mUnit;
self.gecko.mZIndex.mValue = other.gecko.mZIndex.mValue;
debug_assert!(self.gecko.mZIndex.unit() != nsStyleUnit::eStyleUnit_Calc);
unsafe {
self.gecko.mZIndex.copy_from_unchecked(&other.gecko.mZIndex);
}
}
pub fn clone_z_index(&self) -> longhands::z_index::computed_value::T {