mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
style: Autogenerate StyleAppearance.
This builds on bug 1428676 and introduces StyleAppearance, which replaces the NS_THEME_* constants. Really sorry for the size of the patch. There's a non-trivial change in the gtk theme, which I submitted separately as bug 1478385. Differential Revision: https://phabricator.services.mozilla.com/D2361
This commit is contained in:
parent
798d45f38d
commit
0cab212052
7 changed files with 291 additions and 40 deletions
|
@ -508,41 +508,16 @@ ${helpers.predefined_type("contain",
|
|||
spec="https://drafts.csswg.org/css-contain/#contain-property")}
|
||||
|
||||
// Non-standard
|
||||
${helpers.single_keyword("-moz-appearance",
|
||||
"""none button button-arrow-down button-arrow-next button-arrow-previous button-arrow-up
|
||||
button-bevel button-focus caret checkbox checkbox-container checkbox-label checkmenuitem
|
||||
dialog dualbutton groupbox inner-spin-button listbox listitem menuarrow menubar menucheckbox
|
||||
menuimage menuitem menuitemtext menulist menulist-button menulist-text menulist-textfield
|
||||
menupopup menuradio menuseparator meterbar meterchunk number-input progressbar
|
||||
progressbar-vertical progresschunk progresschunk-vertical radio radio-container radio-label
|
||||
radiomenuitem range range-thumb resizer resizerpanel scale-horizontal scalethumbend
|
||||
scalethumb-horizontal scalethumbstart scalethumbtick scalethumb-vertical scale-vertical
|
||||
scrollbar scrollbar-horizontal scrollbar-small scrollbar-vertical scrollbarbutton-down
|
||||
scrollbarbutton-left scrollbarbutton-right scrollbarbutton-up scrollbarthumb-horizontal
|
||||
scrollbarthumb-vertical scrollbartrack-horizontal scrollbartrack-vertical scrollcorner
|
||||
searchfield separator
|
||||
spinner spinner-downbutton spinner-textfield spinner-upbutton splitter statusbar
|
||||
statusbarpanel tab tabpanel tabpanels tab-scroll-arrow-back tab-scroll-arrow-forward
|
||||
textfield textfield-multiline toolbar toolbarbutton toolbarbutton-dropdown toolbargripper
|
||||
toolbox tooltip treeheader treeheadercell treeheadersortarrow treeitem treeline treetwisty
|
||||
treetwistyopen treeview window
|
||||
-moz-gtk-info-bar -moz-mac-active-source-list-selection -moz-mac-disclosure-button-closed
|
||||
-moz-mac-disclosure-button-open -moz-mac-fullscreen-button -moz-mac-help-button
|
||||
-moz-mac-source-list -moz-mac-source-list-selection -moz-mac-vibrancy-dark
|
||||
-moz-mac-vibrancy-light -moz-mac-vibrant-titlebar-light -moz-mac-vibrant-titlebar-dark
|
||||
-moz-win-borderless-glass -moz-win-browsertabbar-toolbox
|
||||
-moz-win-communications-toolbox -moz-win-exclude-glass -moz-win-glass -moz-win-media-toolbox
|
||||
-moz-window-button-box -moz-window-button-box-maximized -moz-window-button-close
|
||||
-moz-window-button-maximize -moz-window-button-minimize -moz-window-button-restore
|
||||
-moz-window-frame-bottom -moz-window-frame-left -moz-window-frame-right -moz-window-titlebar
|
||||
-moz-window-titlebar-maximized
|
||||
""",
|
||||
gecko_ffi_name="mAppearance",
|
||||
gecko_constant_prefix="ThemeWidgetType_NS_THEME",
|
||||
products="gecko",
|
||||
alias="-webkit-appearance:layout.css.webkit-appearance.enabled",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance)",
|
||||
animation_value_type="discrete")}
|
||||
${helpers.predefined_type(
|
||||
"-moz-appearance",
|
||||
"Appearance",
|
||||
"computed::Appearance::None",
|
||||
products="gecko",
|
||||
alias="-webkit-appearance:layout.css.webkit-appearance.enabled",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance)",
|
||||
needs_context=False,
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
||||
${helpers.predefined_type("-moz-binding", "url::UrlOrNone", "computed::url::UrlOrNone::none()",
|
||||
products="gecko",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue