Bug 1601025 - Optimize changehint for modifications to underline-offset or skip-ink rendering; a full reflow should not be needed. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D55705

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jonathan Kew 2019-12-03 20:29:55 +00:00
Родитель c66ada7245
Коммит 48d038ba75
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -3499,8 +3499,6 @@ nsChangeHint nsStyleText::CalcDifference(const nsStyleText& aNewData) const {
(mLetterSpacing != aNewData.mLetterSpacing) ||
(mLineHeight != aNewData.mLineHeight) ||
(mTextIndent != aNewData.mTextIndent) ||
(mTextUnderlineOffset != aNewData.mTextUnderlineOffset) ||
(mTextDecorationSkipInk != aNewData.mTextDecorationSkipInk) ||
(mTextJustify != aNewData.mTextJustify) ||
(mWordSpacing != aNewData.mWordSpacing) ||
(mMozTabSize != aNewData.mMozTabSize)) {
@ -3527,6 +3525,8 @@ nsChangeHint nsStyleText::CalcDifference(const nsStyleText& aNewData) const {
if (mTextShadow != aNewData.mTextShadow ||
mTextEmphasisStyle != aNewData.mTextEmphasisStyle ||
mWebkitTextStrokeWidth != aNewData.mWebkitTextStrokeWidth ||
mTextUnderlineOffset != aNewData.mTextUnderlineOffset ||
mTextDecorationSkipInk != aNewData.mTextDecorationSkipInk ||
mTextUnderlinePosition != aNewData.mTextUnderlinePosition) {
hint |= nsChangeHint_UpdateSubtreeOverflow | nsChangeHint_SchedulePaint |
nsChangeHint_RepaintFrame;