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/base | |
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/base')
-rw-r--r-- | layout/base/nsLayoutUtils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index c8c91b251..86874f404 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -7013,7 +7013,8 @@ nsLayoutUtils::GetTextRunFlagsForStyle(nsStyleContext* aStyleContext, nscoord aLetterSpacing) { uint32_t result = 0; - if (aLetterSpacing != 0) { + if (aLetterSpacing != 0 || + aStyleText->mTextJustify == StyleTextJustify::InterCharacter) { result |= gfxTextRunFactory::TEXT_DISABLE_OPTIONAL_LIGATURES; } if (aStyleText->mControlCharacterVisibility == NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN) { |