mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00: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
45cf11272c
commit
d26efdf2da
@ -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