diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-01 19:32:49 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-01 19:32:49 +0200 |
commit | 1f4ce97ecd5fa47eead41e1408d2d26ce50749fa (patch) | |
tree | d47291e5471dc98ebf2e4f4d5281d9c3eda15518 /layout/style/nsCSSProps.cpp | |
parent | dc8aad9b9dc6983bb88aa586f34d9db007840eb8 (diff) | |
download | UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar.gz UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar.lz UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.tar.xz UXP-1f4ce97ecd5fa47eead41e1408d2d26ce50749fa.zip |
moebius#90: CSS - implement text-justify property
Diffstat (limited to 'layout/style/nsCSSProps.cpp')
-rw-r--r-- | layout/style/nsCSSProps.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layout/style/nsCSSProps.cpp b/layout/style/nsCSSProps.cpp index f3a7f898d..9805eae14 100644 --- a/layout/style/nsCSSProps.cpp +++ b/layout/style/nsCSSProps.cpp @@ -2035,6 +2035,17 @@ KTableEntry nsCSSProps::kTextAlignLastKTable[] = { { eCSSKeyword_UNKNOWN, -1 } }; +const KTableEntry nsCSSProps::kTextJustifyKTable[] = { + { eCSSKeyword_none, StyleTextJustify::None }, + { eCSSKeyword_auto, StyleTextJustify::Auto }, + { eCSSKeyword_inter_word, StyleTextJustify::InterWord }, + { eCSSKeyword_inter_character, StyleTextJustify::InterCharacter }, + // For legacy reasons, UAs must also support the keyword "distribute" with + // the exact same meaning and behavior as "inter-character". + { eCSSKeyword_distribute, StyleTextJustify::InterCharacter }, + { eCSSKeyword_UNKNOWN, -1 } +}; + const KTableEntry nsCSSProps::kTextCombineUprightKTable[] = { { eCSSKeyword_none, NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE }, { eCSSKeyword_all, NS_STYLE_TEXT_COMBINE_UPRIGHT_ALL }, |