mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Re-order Appearance values.
Differential Revision: https://phabricator.services.mozilla.com/D83437
This commit is contained in:
parent
862b7d1249
commit
da503c4b48
1 changed files with 23 additions and 23 deletions
|
@ -1530,8 +1530,31 @@ pub enum Appearance {
|
||||||
/// This value doesn't make sense for -moz-default-appearance, but we don't bother to guard
|
/// This value doesn't make sense for -moz-default-appearance, but we don't bother to guard
|
||||||
/// against parsing it.
|
/// against parsing it.
|
||||||
Auto,
|
Auto,
|
||||||
|
/// A searchfield.
|
||||||
|
Searchfield,
|
||||||
|
/// A multi-line text field, e.g. HTML <textarea>.
|
||||||
|
#[parse(aliases = "textfield-multiline")]
|
||||||
|
Textarea,
|
||||||
|
/// A checkbox element.
|
||||||
|
Checkbox,
|
||||||
|
/// A radio element within a radio group.
|
||||||
|
Radio,
|
||||||
|
/// A dropdown list.
|
||||||
|
Menulist,
|
||||||
|
/// List boxes.
|
||||||
|
Listbox,
|
||||||
|
/// A horizontal meter bar.
|
||||||
|
#[parse(aliases = "meterbar")]
|
||||||
|
Meter,
|
||||||
|
/// A horizontal progress bar.
|
||||||
|
#[parse(aliases = "progressbar")]
|
||||||
|
ProgressBar,
|
||||||
/// A typical dialog button.
|
/// A typical dialog button.
|
||||||
Button,
|
Button,
|
||||||
|
/// A single-line text field, e.g. HTML <input type=text>.
|
||||||
|
Textfield,
|
||||||
|
/// The dropdown button(s) that open up a dropdown list.
|
||||||
|
MenulistButton,
|
||||||
/// Various arrows that go in buttons
|
/// Various arrows that go in buttons
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
ButtonArrowDown,
|
ButtonArrowDown,
|
||||||
|
@ -1550,8 +1573,6 @@ pub enum Appearance {
|
||||||
/// A groupbox.
|
/// A groupbox.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Groupbox,
|
Groupbox,
|
||||||
/// List boxes.
|
|
||||||
Listbox,
|
|
||||||
/// Menu Bar background
|
/// Menu Bar background
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Menubar,
|
Menubar,
|
||||||
|
@ -1565,10 +1586,6 @@ pub enum Appearance {
|
||||||
/// For text on non-iconic menuitems only
|
/// For text on non-iconic menuitems only
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Menuitemtext,
|
Menuitemtext,
|
||||||
/// A dropdown list.
|
|
||||||
Menulist,
|
|
||||||
/// The dropdown button(s) that open up a dropdown list.
|
|
||||||
MenulistButton,
|
|
||||||
/// The text part of a dropdown list, to left of button.
|
/// The text part of a dropdown list, to left of button.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
MenulistText,
|
MenulistText,
|
||||||
|
@ -1587,9 +1604,6 @@ pub enum Appearance {
|
||||||
/// An image in the menu gutter, like in bookmarks or history.
|
/// An image in the menu gutter, like in bookmarks or history.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Menuimage,
|
Menuimage,
|
||||||
/// A horizontal meter bar.
|
|
||||||
#[parse(aliases = "meterbar")]
|
|
||||||
Meter,
|
|
||||||
/// The meter bar's meter indicator.
|
/// The meter bar's meter indicator.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Meterchunk,
|
Meterchunk,
|
||||||
|
@ -1598,16 +1612,9 @@ pub enum Appearance {
|
||||||
MozMenulistArrowButton,
|
MozMenulistArrowButton,
|
||||||
/// For HTML's <input type=number>
|
/// For HTML's <input type=number>
|
||||||
NumberInput,
|
NumberInput,
|
||||||
/// A horizontal progress bar.
|
|
||||||
#[parse(aliases = "progressbar")]
|
|
||||||
ProgressBar,
|
|
||||||
/// The progress bar's progress indicator
|
/// The progress bar's progress indicator
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Progresschunk,
|
Progresschunk,
|
||||||
/// A checkbox element.
|
|
||||||
Checkbox,
|
|
||||||
/// A radio element within a radio group.
|
|
||||||
Radio,
|
|
||||||
/// A generic container that always repaints on state changes. This is a
|
/// A generic container that always repaints on state changes. This is a
|
||||||
/// hack to make XUL checkboxes and radio buttons work.
|
/// hack to make XUL checkboxes and radio buttons work.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
|
@ -1666,8 +1673,6 @@ pub enum Appearance {
|
||||||
/// The scroll corner
|
/// The scroll corner
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Scrollcorner,
|
Scrollcorner,
|
||||||
/// A searchfield.
|
|
||||||
Searchfield,
|
|
||||||
/// A separator. Can be horizontal or vertical.
|
/// A separator. Can be horizontal or vertical.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Separator,
|
Separator,
|
||||||
|
@ -1706,11 +1711,6 @@ pub enum Appearance {
|
||||||
TabScrollArrowBack,
|
TabScrollArrowBack,
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
TabScrollArrowForward,
|
TabScrollArrowForward,
|
||||||
/// A multi-line text field, e.g. HTML <textarea>.
|
|
||||||
#[parse(aliases = "textfield-multiline")]
|
|
||||||
Textarea,
|
|
||||||
/// A single-line text field, e.g. HTML <input type=text>.
|
|
||||||
Textfield,
|
|
||||||
/// A toolbar in an application window.
|
/// A toolbar in an application window.
|
||||||
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
Toolbar,
|
Toolbar,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue