зеркало из https://github.com/mozilla/gecko-dev.git
Make sure to break out of the loop when converting from UTF-8 to UTF-16 line breakes. Otherwise we could re-use the already converted number and re-convert the value again. This should fix problems on sites like kr.yahoo.com. Not part of the default build.
This commit is contained in:
Родитель
f4a48e2f49
Коммит
218b5f34e9
|
@ -674,6 +674,7 @@ nsFontMetricsPango::GetTextDimensions(const PRUnichar* aString,
|
|||
// if (aNumCharsFit != aBreaks[i])
|
||||
// printf("Fixing utf8 -> utf16 %d -> %d\n", aNumCharsFit, aBreaks[i]);
|
||||
aNumCharsFit = aBreaks[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче