summaryrefslogtreecommitdiff
path: root/layout/base
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-04-29 18:52:17 +0200
committerGitHub <noreply@github.com>2018-04-29 18:52:17 +0200
commiteea5a8ff69beb36ef6ef3389d85b80b8a3de6814 (patch)
tree55b4af8af161bdd67185974bab818c474eb7cab6 /layout/base
parentb036a613d81c806f0666e57c9a0b8e7f73917bde (diff)
parent1ff8ad0ef25bcd481f025077177cde7e3577f835 (diff)
downloaduxp-eea5a8ff69beb36ef6ef3389d85b80b8a3de6814.tar.gz
Merge pull request #297 from janekptacijarabaci/css_text-justify_1
CSS - implement text-justify property
Diffstat (limited to 'layout/base')
-rw-r--r--layout/base/nsLayoutUtils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp
index c8c91b251c..86874f4041 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) {