stylo: Add support for text-align match-parent and the <th> -moz-center-or-inherit behavior

MozReview-Commit-ID: GEDM7JfJB8A
This commit is contained in:
Manish Goregaokar 2017-03-26 13:53:34 -07:00 committed by Manish Goregaokar
parent 6a67688924
commit 0392e58a2f
No known key found for this signature in database
GPG key ID: 3BBF4D3E2EF79F98
3 changed files with 123 additions and 13 deletions

View file

@ -2797,8 +2797,12 @@ fn static_assert() {
-webkit-text-stroke-width text-emphasis-position -moz-tab-size -moz-text-size-adjust">
<% text_align_keyword = Keyword("text-align", "start end left right center justify -moz-center -moz-left " +
"-moz-right match-parent char") %>
"-moz-right char") %>
<% text_align_reachable_keyword = Keyword("text-align", "start end left right center justify char") %>
${impl_keyword('text_align', 'mTextAlign', text_align_keyword, need_clone=False)}
// Stable rust errors on unreachable patterns, and there is overlap, so we run with the overlapping
// constants removed
${impl_keyword_clone('text_align', 'mTextAlign', text_align_reachable_keyword)}
pub fn set_text_shadow(&mut self, v: longhands::text_shadow::computed_value::T) {
self.gecko.mTextShadow.replace_with_new(v.0.len() as u32);