summaryrefslogtreecommitdiffstats
path: root/layout/style/nsRuleNode.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-01 19:32:49 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-01 19:32:49 +0200
commit1f4ce97ecd5fa47eead41e1408d2d26ce50749fa (patch)
treed47291e5471dc98ebf2e4f4d5281d9c3eda15518 /layout/style/nsRuleNode.cpp
parentdc8aad9b9dc6983bb88aa586f34d9db007840eb8 (diff)
downloadUXP-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/nsRuleNode.cpp')
-rw-r--r--layout/style/nsRuleNode.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/layout/style/nsRuleNode.cpp b/layout/style/nsRuleNode.cpp
index fa29fe0f1..9b9fc3948 100644
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -1414,6 +1414,7 @@ struct SetEnumValueHelper
DEFINE_ENUM_CLASS_SETTER(StyleFillRule, Nonzero, Evenodd)
DEFINE_ENUM_CLASS_SETTER(StyleFloat, None, InlineEnd)
DEFINE_ENUM_CLASS_SETTER(StyleFloatEdge, ContentBox, MarginBox)
+ DEFINE_ENUM_CLASS_SETTER(StyleTextJustify, None, InterCharacter)
DEFINE_ENUM_CLASS_SETTER(StyleUserFocus, None, SelectMenu)
DEFINE_ENUM_CLASS_SETTER(StyleUserSelect, None, MozText)
DEFINE_ENUM_CLASS_SETTER(StyleUserInput, None, Auto)
@@ -4783,6 +4784,12 @@ nsRuleNode::ComputeTextData(void* aStartStruct,
SETCOORD_UNSET_INHERIT,
aContext, mPresContext, conditions);
+ // text-justify: enum, inherit, initial
+ SetValue(*aRuleData->ValueForTextJustify(), text->mTextJustify, conditions,
+ SETVAL_ENUMERATED | SETVAL_UNSET_INHERIT,
+ parentText->mTextJustify,
+ StyleTextJustify::Auto);
+
// text-transform: enum, inherit, initial
SetValue(*aRuleData->ValueForTextTransform(), text->mTextTransform, conditions,
SETVAL_ENUMERATED | SETVAL_UNSET_INHERIT,