Bug 1094360: Move nsRuleNode::ComputeTextData's chunk for 'mControlCharacterVisibility' down, to match the style struct's member-var ordering. r=roc

This commit is contained in:
Daniel Holbert 2014-11-05 16:08:30 -08:00
Родитель 56803c672c
Коммит 97c3b91bc1
1 изменённых файлов: 8 добавлений и 8 удалений

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

@ -4374,14 +4374,6 @@ nsRuleNode::ComputeTextData(void* aStartStruct,
NS_STYLE_TEXT_SIZE_ADJUST_NONE, // none value
0, 0);
// -moz-text-discard: enum, inherit, initial
SetDiscrete(*aRuleData->ValueForControlCharacterVisibility(),
text->mControlCharacterVisibility,
canStoreInRuleTree,
SETDSC_ENUMERATED | SETDSC_UNSET_INHERIT,
parentText->mControlCharacterVisibility,
NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN, 0, 0, 0, 0);
// text-orientation: enum, inherit, initial
SetDiscrete(*aRuleData->ValueForTextOrientation(), text->mTextOrientation,
canStoreInRuleTree,
@ -4397,6 +4389,14 @@ nsRuleNode::ComputeTextData(void* aStartStruct,
parentText->mTextCombineUpright,
NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE, 0, 0, 0, 0);
// -moz-text-discard: enum, inherit, initial
SetDiscrete(*aRuleData->ValueForControlCharacterVisibility(),
text->mControlCharacterVisibility,
canStoreInRuleTree,
SETDSC_ENUMERATED | SETDSC_UNSET_INHERIT,
parentText->mControlCharacterVisibility,
NS_STYLE_CONTROL_CHARACTER_VISIBILITY_HIDDEN, 0, 0, 0, 0);
COMPUTE_END_INHERITED(Text, text)
}