Bug 1575839: part 4) Remove `nsPlainTextSerializer::Write::atFirstColumn`. r=hsivonen

Its value was at all places where it's read equal to
`outputLineBreak` which is now used instead.

Differential Revision: https://phabricator.services.mozilla.com/D43418

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mirko Brodesser 2019-08-27 10:40:47 +00:00
Родитель 85412ffd47
Коммит ff890f861f
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -1507,7 +1507,6 @@ void nsPlainTextSerializer::Write(const nsAString& aStr) {
// Have to put it in before every line.
while (bol < totLen) {
const bool outputQuotes = mAtFirstColumn;
bool atFirstColumn;
bool outputLineBreak = false;
bool spacesOnly = true;
@ -1545,7 +1544,6 @@ void nsPlainTextSerializer::Write(const nsAString& aStr) {
}
}
mEmptyLines = -1;
atFirstColumn = false;
bol = totLen;
} else {
// There is a newline
@ -1553,7 +1551,6 @@ void nsPlainTextSerializer::Write(const nsAString& aStr) {
mInWhitespace = true;
outputLineBreak = true;
mEmptyLines = 0;
atFirstColumn = true;
bol = newline + 1;
if ('\r' == *iter && bol < totLen && '\n' == *++iter) {
// There was a CRLF in the input. This used to be illegal and
@ -1585,7 +1582,7 @@ void nsPlainTextSerializer::Write(const nsAString& aStr) {
}
Output(mCurrentLineContent.mValue);
mAtFirstColumn = atFirstColumn;
mAtFirstColumn = outputLineBreak;
}
// Reset mCurrentLineContent.mValue.