mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Checking in a infinite loop fix done by Vidur, not part of the build.
This commit is contained in:
parent
023a68e714
commit
90cc9d88a4
@ -374,7 +374,13 @@ nsHTMLContentSerializer::AppendToStringWrapped(const nsAReadableString& aStr,
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
|
||||
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
|
||||
if ((strOffset + start) < length) {
|
||||
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
|
||||
}
|
||||
else {
|
||||
indx = kNotFound;
|
||||
}
|
||||
|
||||
// if there is no break than just add the entire string
|
||||
if (indx == kNotFound)
|
||||
{
|
||||
|
@ -374,7 +374,13 @@ nsHTMLContentSerializer::AppendToStringWrapped(const nsAReadableString& aStr,
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
|
||||
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
|
||||
if ((strOffset + start) < length) {
|
||||
indx = aStr.FindChar(PRUnichar(' '), strOffset + start);
|
||||
}
|
||||
else {
|
||||
indx = kNotFound;
|
||||
}
|
||||
|
||||
// if there is no break than just add the entire string
|
||||
if (indx == kNotFound)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user