style: Remove useless StyleDisplay conversion.

Differential Revision: https://phabricator.services.mozilla.com/D3896
This commit is contained in:
Emilio Cobos Álvarez 2018-08-21 17:34:21 +02:00
parent ae671a7d26
commit c3a4b27441
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 2 additions and 20 deletions

View file

@ -23,24 +23,6 @@ ${helpers.predefined_type(
needs_context=product == "gecko"
)}
// FIXME(emilio): Listing all the display values here is very unfortunate, we should teach C++ to use the
// Rust enum directly, or generate the conversions to `StyleDisplay`.
${helpers.gecko_keyword_conversion(
Keyword('display', """
inline block inline-block
table inline-table table-row-group table-header-group table-footer-group
table-row table-column-group table-column table-cell table-caption
list-item none flex inline-flex grid inline-grid ruby ruby-base ruby-base-container
ruby-text ruby-text-container contents flow-root -webkit-box
-webkit-inline-box -moz-box -moz-inline-box -moz-grid -moz-inline-grid
-moz-grid-group -moz-grid-line -moz-stack -moz-inline-stack -moz-deck
-moz-popup -moz-groupbox
""",
gecko_enum_prefix='StyleDisplay',
gecko_strip_moz_prefix=False),
type="::values::specified::Display"
)}
${helpers.single_keyword(
"-moz-top-layer",
"none top",