зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
85d7b073ac
Коммит
e61857780b
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче