mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Auto merge of #16380 - upsuper:small-fixes, r=Manishearth
Some small fixes for stylo <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16380) <!-- Reviewable:end -->
This commit is contained in:
commit
528302a300
3 changed files with 5 additions and 1 deletions
|
@ -220,7 +220,7 @@ ${helpers.single_keyword("position", "static absolute relative fixed",
|
||||||
<% vertical_align = data.longhands_by_name["vertical-align"] %>
|
<% vertical_align = data.longhands_by_name["vertical-align"] %>
|
||||||
<% vertical_align.keyword = Keyword("vertical-align",
|
<% vertical_align.keyword = Keyword("vertical-align",
|
||||||
"baseline sub super top text-top middle bottom text-bottom",
|
"baseline sub super top text-top middle bottom text-bottom",
|
||||||
extra_gecko_values="middle-with-baseline") %>
|
extra_gecko_values="-moz-middle-with-baseline") %>
|
||||||
<% vertical_align_keywords = vertical_align.keyword.values_for(product) %>
|
<% vertical_align_keywords = vertical_align.keyword.values_for(product) %>
|
||||||
|
|
||||||
${helpers.gecko_keyword_conversion(vertical_align.keyword)}
|
${helpers.gecko_keyword_conversion(vertical_align.keyword)}
|
||||||
|
|
|
@ -95,6 +95,7 @@ ${helpers.predefined_type("stroke-dasharray",
|
||||||
"Either::Second(0.0)",
|
"Either::Second(0.0)",
|
||||||
"parse_non_negative",
|
"parse_non_negative",
|
||||||
vector="True",
|
vector="True",
|
||||||
|
allow_empty="True",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
animation_type="none",
|
animation_type="none",
|
||||||
space_separated_allowed="True",
|
space_separated_allowed="True",
|
||||||
|
|
|
@ -664,6 +664,7 @@ ${helpers.single_keyword("text-align-last",
|
||||||
|
|
||||||
<%helpers:single_keyword_computed name="white-space"
|
<%helpers:single_keyword_computed name="white-space"
|
||||||
values="normal pre nowrap pre-wrap pre-line"
|
values="normal pre nowrap pre-wrap pre-line"
|
||||||
|
extra_gecko_values="-moz-pre-space"
|
||||||
gecko_constant_prefix="NS_STYLE_WHITESPACE"
|
gecko_constant_prefix="NS_STYLE_WHITESPACE"
|
||||||
needs_conversion="True"
|
needs_conversion="True"
|
||||||
animation_type="none"
|
animation_type="none"
|
||||||
|
@ -673,6 +674,7 @@ ${helpers.single_keyword("text-align-last",
|
||||||
impl ComputedValueAsSpecified for SpecifiedValue {}
|
impl ComputedValueAsSpecified for SpecifiedValue {}
|
||||||
no_viewport_percentage!(SpecifiedValue);
|
no_viewport_percentage!(SpecifiedValue);
|
||||||
|
|
||||||
|
% if product != "gecko":
|
||||||
impl SpecifiedValue {
|
impl SpecifiedValue {
|
||||||
pub fn allow_wrap(&self) -> bool {
|
pub fn allow_wrap(&self) -> bool {
|
||||||
match *self {
|
match *self {
|
||||||
|
@ -704,6 +706,7 @@ ${helpers.single_keyword("text-align-last",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
% endif
|
||||||
</%helpers:single_keyword_computed>
|
</%helpers:single_keyword_computed>
|
||||||
|
|
||||||
<%helpers:longhand name="text-shadow" animation_type="normal"
|
<%helpers:longhand name="text-shadow" animation_type="normal"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue