mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 504311. Don't reframe text when white-space changes between preformatted values, or between non-preformatted values. r=bz
--HG-- extra : rebase_source : 35015fafdb92544eea6bcc572122b0c2cda4305c
This commit is contained in:
parent
5d0d5bb89c
commit
acd36f5672
@ -2057,13 +2057,14 @@ nsStyleText::~nsStyleText(void) { }
|
||||
|
||||
nsChangeHint nsStyleText::CalcDifference(const nsStyleText& aOther) const
|
||||
{
|
||||
if (mWhiteSpace != aOther.mWhiteSpace) {
|
||||
if (NewlineIsSignificant() != aOther.NewlineIsSignificant()) {
|
||||
// This may require construction of suppressed text frames
|
||||
return NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
|
||||
if ((mTextAlign != aOther.mTextAlign) ||
|
||||
(mTextTransform != aOther.mTextTransform) ||
|
||||
(mWhiteSpace != aOther.mWhiteSpace) ||
|
||||
(mWordWrap != aOther.mWordWrap) ||
|
||||
(mLetterSpacing != aOther.mLetterSpacing) ||
|
||||
(mLineHeight != aOther.mLineHeight) ||
|
||||
|
Loading…
Reference in New Issue
Block a user