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:
Robert O'Callahan 2009-07-30 15:02:22 +12:00
parent 5d0d5bb89c
commit acd36f5672

View File

@ -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) ||