summaryrefslogtreecommitdiffstats
path: root/layout/style/nsStyleStruct.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/nsStyleStruct.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/nsStyleStruct.cpp')
-rw-r--r--layout/style/nsStyleStruct.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/style/nsStyleStruct.cpp b/layout/style/nsStyleStruct.cpp
index 2f12d6201..68ae88d24 100644
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -3797,6 +3797,7 @@ nsStyleText::nsStyleText(StyleStructContext aContext)
, mTextAlignLast(NS_STYLE_TEXT_ALIGN_AUTO)
, mTextAlignTrue(false)
, mTextAlignLastTrue(false)
+ , mTextJustify(StyleTextJustify::Auto)
, mTextTransform(NS_STYLE_TEXT_TRANSFORM_NONE)
, mWhiteSpace(NS_STYLE_WHITESPACE_NORMAL)
, mWordBreak(NS_STYLE_WORDBREAK_NORMAL)
@@ -3833,6 +3834,7 @@ nsStyleText::nsStyleText(const nsStyleText& aSource)
, mTextAlignLast(aSource.mTextAlignLast)
, mTextAlignTrue(false)
, mTextAlignLastTrue(false)
+ , mTextJustify(aSource.mTextJustify)
, mTextTransform(aSource.mTextTransform)
, mWhiteSpace(aSource.mWhiteSpace)
, mWordBreak(aSource.mWordBreak)
@@ -3894,6 +3896,7 @@ nsStyleText::CalcDifference(const nsStyleText& aNewData) const
(mTextSizeAdjust != aNewData.mTextSizeAdjust) ||
(mLetterSpacing != aNewData.mLetterSpacing) ||
(mLineHeight != aNewData.mLineHeight) ||
+ (mTextJustify != aNewData.mTextJustify) ||
(mTextIndent != aNewData.mTextIndent) ||
(mWordSpacing != aNewData.mWordSpacing) ||
(mTabSize != aNewData.mTabSize)) {