mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
style: Avoid some signed -> unsigned conversions for box-ordinal-group.
This is consistent with the `order` property anyhow, and allows to simplify some code. Negatives are still not parsed, but rust uses a similar representation for all CSS <integer> values and so should C++. Differential Revision: https://phabricator.services.mozilla.com/D42912
This commit is contained in:
parent
7c4dc9e797
commit
14c7e133ad
1 changed files with 1 additions and 13 deletions
|
@ -3040,19 +3040,7 @@ clip-path
|
|||
${impl_simple_type_with_conversion("_moz_force_broken_image_icon", "mForceBrokenImageIcon")}
|
||||
</%self:impl_trait>
|
||||
|
||||
<%self:impl_trait style_struct_name="XUL"
|
||||
skip_longhands="-moz-box-ordinal-group">
|
||||
#[allow(non_snake_case)]
|
||||
pub fn set__moz_box_ordinal_group(&mut self, v: i32) {
|
||||
self.gecko.mBoxOrdinal = v as u32;
|
||||
}
|
||||
|
||||
${impl_simple_copy("_moz_box_ordinal_group", "mBoxOrdinal")}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn clone__moz_box_ordinal_group(&self) -> i32 {
|
||||
self.gecko.mBoxOrdinal as i32
|
||||
}
|
||||
<%self:impl_trait style_struct_name="XUL">
|
||||
</%self:impl_trait>
|
||||
|
||||
% for style_struct in data.style_structs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue