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