From 0bc711b0236576995156cce4d62a28435db52dd1 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Mon, 5 Dec 2016 13:51:34 -1000 Subject: [PATCH] stylo: Support remaining display property values. MozReview-Commit-ID: HjLu7t2g7gF --- components/style/properties/gecko.mako.rs | 8 ++++++-- components/style/properties/longhand/box.mako.rs | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 95cd6409c37..00be40d30a9 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1028,9 +1028,13 @@ fn static_assert() { <% display_keyword = 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 flex none " + - "-moz-box -moz-inline-box", + "inline-flex grid inline-grid ruby ruby-base ruby-base-container " + + "ruby-text ruby-text-container contents -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_inexhaustive=True) %> + gecko_strip_moz_prefix=False) %> ${impl_keyword('display', 'mDisplay', display_keyword, True)} // overflow-y is implemented as a newtype of overflow-x, so we need special handling. diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 486105e33dd..818ed9316e1 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -22,7 +22,11 @@ none """.split() if product == "gecko": - values += "-moz-box -moz-inline-box".split() + values += """inline-flex grid inline-grid ruby ruby-base ruby-base-container + ruby-text ruby-text-container contents -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""".split() %> pub use self::computed_value::T as SpecifiedValue; use values::computed::ComputedValueAsSpecified;