Bug 1099557 - Make -moz-control-character-visibility default to 'visible' rather than 'hidden', so that spurious control characters are rendered as hexboxes. r=dbaron

This commit is contained in:
Jonathan Kew 2015-09-11 16:47:03 +01:00
Родитель 85d7b073ac
Коммит e61857780b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -4364,13 +4364,13 @@ nsRuleNode::ComputeTextData(void* aStartStruct,
parentText->mTextCombineUpright,
NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE, 0, 0, 0, 0);
// -moz-text-discard: enum, inherit, initial
// -moz-control-character-visibility: enum, inherit, initial
SetDiscrete(*aRuleData->ValueForControlCharacterVisibility(),
text->mControlCharacterVisibility,
conditions,
SETDSC_ENUMERATED | SETDSC_UNSET_INHERIT,
parentText->mControlCharacterVisibility,
NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN, 0, 0, 0, 0);
NS_STYLE_CONTROL_CHARACTER_VISIBILITY_VISIBLE, 0, 0, 0, 0);
COMPUTE_END_INHERITED(Text, text)
}

Просмотреть файл

@ -3408,7 +3408,7 @@ nsStyleText::nsStyleText(void)
mRubyPosition = NS_STYLE_RUBY_POSITION_OVER;
mTextSizeAdjust = NS_STYLE_TEXT_SIZE_ADJUST_AUTO;
mTextCombineUpright = NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE;
mControlCharacterVisibility = NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN;
mControlCharacterVisibility = NS_STYLE_CONTROL_CHARACTER_VISIBILITY_VISIBLE;
mLetterSpacing.SetNormalValue();
mLineHeight.SetNormalValue();