[Bug 799407] Fix build warnings in layout r=roc

This commit is contained in:
David Zbarsky
2012-10-10 01:00:05 -04:00
parent 3904369181
commit b22e7c6a8e
26 changed files with 68 additions and 74 deletions

View File

@@ -165,8 +165,8 @@ nsTextFrameUtils::TransformText(const uint8_t* aText, uint32_t aLength,
uint32_t i;
for (i = 0; i < aLength; ++i) {
uint8_t ch = *aText++;
if (IsDiscardable(ch, &flags) ||
ch == '\n' && aCompression == DISCARD_NEWLINE) {
if (IsDiscardable(ch, &flags) ||
(ch == '\n' && aCompression == DISCARD_NEWLINE)) {
aSkipChars->SkipChar();
} else {
aSkipChars->KeepChar();