зеркало из https://github.com/mozilla/gecko-dev.git
Fix comment. Bug 132561, r+sr=dbaron
This commit is contained in:
Родитель
c0de956a63
Коммит
a0b34c7ff7
|
@ -2648,8 +2648,9 @@ nsLineLayout::TrimTrailingWhiteSpaceIn(PerSpanData* psd,
|
||||||
}
|
}
|
||||||
else if (!pfd->GetFlag(PFD_ISTEXTFRAME) &&
|
else if (!pfd->GetFlag(PFD_ISTEXTFRAME) &&
|
||||||
!pfd->GetFlag(PFD_SKIPWHENTRIMMINGWHITESPACE)) {
|
!pfd->GetFlag(PFD_SKIPWHENTRIMMINGWHITESPACE)) {
|
||||||
// If we hit a frame on the end that's not text and not a placeholder,
|
// If we hit a frame on the end that we're not supposed to be skipping
|
||||||
// then there is no trailing whitespace to trim. Stop the search.
|
// (not text, not a placeholder and not a br frame) then there is no
|
||||||
|
// trailing whitespace to trim. Stop the search.
|
||||||
*aDeltaWidth = 0;
|
*aDeltaWidth = 0;
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2648,8 +2648,9 @@ nsLineLayout::TrimTrailingWhiteSpaceIn(PerSpanData* psd,
|
||||||
}
|
}
|
||||||
else if (!pfd->GetFlag(PFD_ISTEXTFRAME) &&
|
else if (!pfd->GetFlag(PFD_ISTEXTFRAME) &&
|
||||||
!pfd->GetFlag(PFD_SKIPWHENTRIMMINGWHITESPACE)) {
|
!pfd->GetFlag(PFD_SKIPWHENTRIMMINGWHITESPACE)) {
|
||||||
// If we hit a frame on the end that's not text and not a placeholder,
|
// If we hit a frame on the end that we're not supposed to be skipping
|
||||||
// then there is no trailing whitespace to trim. Stop the search.
|
// (not text, not a placeholder and not a br frame) then there is no
|
||||||
|
// trailing whitespace to trim. Stop the search.
|
||||||
*aDeltaWidth = 0;
|
*aDeltaWidth = 0;
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче