Skip to content

Commit

Permalink
Add white-space: -moz-pre-space for geckolib
Browse files Browse the repository at this point in the history
  • Loading branch information
upsuper committed Apr 12, 2017
1 parent 8fa0d37 commit 0da416f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/style/properties/longhand/inherited_text.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ ${helpers.single_keyword("text-align-last",

<%helpers:single_keyword_computed name="white-space"
values="normal pre nowrap pre-wrap pre-line"
extra_gecko_values="-moz-pre-space"
gecko_constant_prefix="NS_STYLE_WHITESPACE"
needs_conversion="True"
animation_type="none"
Expand All @@ -673,6 +674,7 @@ ${helpers.single_keyword("text-align-last",
impl ComputedValueAsSpecified for SpecifiedValue {}
no_viewport_percentage!(SpecifiedValue);

% if product != "gecko":
impl SpecifiedValue {
pub fn allow_wrap(&self) -> bool {
match *self {
Expand Down Expand Up @@ -704,6 +706,7 @@ ${helpers.single_keyword("text-align-last",
}
}
}
% endif
</%helpers:single_keyword_computed>

<%helpers:longhand name="text-shadow" animation_type="normal"
Expand Down

0 comments on commit 0da416f

Please sign in to comment.