mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Move clear property out of gecko.mako.rs
Differential Revision: https://phabricator.services.mozilla.com/D158225
This commit is contained in:
parent
f4e10192ca
commit
fea3f9fbc1
4 changed files with 4 additions and 10 deletions
|
@ -1127,7 +1127,7 @@ fn static_assert() {
|
|||
${impl_copy_animation_value(ident, gecko_ffi_name)}
|
||||
</%def>
|
||||
|
||||
<% skip_box_longhands= """display clear""" %>
|
||||
<% skip_box_longhands= """display""" %>
|
||||
<%self:impl_trait style_struct_name="Box" skip_longhands="${skip_box_longhands}">
|
||||
#[inline]
|
||||
pub fn set_display(&mut self, v: longhands::display::computed_value::T) {
|
||||
|
@ -1159,13 +1159,6 @@ fn static_assert() {
|
|||
pub fn clone_display(&self) -> longhands::display::computed_value::T {
|
||||
self.gecko.mDisplay
|
||||
}
|
||||
|
||||
<% clear_keyword = Keyword(
|
||||
"clear",
|
||||
"Left Right None Both",
|
||||
gecko_enum_prefix="StyleClear",
|
||||
) %>
|
||||
${impl_keyword('clear', 'mBreakType', clear_keyword)}
|
||||
</%self:impl_trait>
|
||||
|
||||
<%def name="simple_image_array_property(name, shorthand, field_name)">
|
||||
|
|
|
@ -80,7 +80,7 @@ ${helpers.predefined_type(
|
|||
engines="gecko servo",
|
||||
animation_value_type="discrete",
|
||||
gecko_ffi_name="mBreakType",
|
||||
spec="https://drafts.csswg.org/css-box/#propdef-clear",
|
||||
spec="https://drafts.csswg.org/css2/#propdef-clear",
|
||||
servo_restyle_damage="rebuild_and_reflow",
|
||||
)}
|
||||
|
||||
|
|
|
@ -152,6 +152,7 @@ impl ToComputedValue for SpecifiedFloat {
|
|||
ToResolvedValue,
|
||||
)]
|
||||
/// A computed value for the `clear` property.
|
||||
#[repr(u8)]
|
||||
pub enum Clear {
|
||||
None,
|
||||
Left,
|
||||
|
|
|
@ -1684,7 +1684,7 @@ pub enum Float {
|
|||
#[derive(
|
||||
Clone, Copy, Debug, Eq, Hash, MallocSizeOf, Parse, PartialEq, SpecifiedValueInfo, ToCss, ToShmem,
|
||||
)]
|
||||
/// https://drafts.csswg.org/css-box/#propdef-clear
|
||||
/// https://drafts.csswg.org/css2/#propdef-clear
|
||||
pub enum Clear {
|
||||
None,
|
||||
Left,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue