зеркало из https://github.com/mozilla/pjs.git
Bug 375768. Fix minor textrun-related bugs, only affects new textframe. r=pavlov
This commit is contained in:
Родитель
dc4ef4acf3
Коммит
5ec7d3d207
|
@ -450,10 +450,10 @@ gfxFontGroup::GetSpecialStringTextRun(SpecialString aString,
|
|||
gfxTextRun* textRun;
|
||||
|
||||
switch (aString) {
|
||||
case STRING_ELLIPSIS:
|
||||
case STRING_HYPHEN:
|
||||
textRun = MakeTextRun(&unicodeHyphen, 1, ¶ms);
|
||||
break;
|
||||
case STRING_HYPHEN:
|
||||
case STRING_ELLIPSIS:
|
||||
textRun = MakeTextRun(&unicodeEllipsis, 1, ¶ms);
|
||||
break;
|
||||
default:
|
||||
|
@ -1094,7 +1094,7 @@ gfxTextRun::BreakAndMeasureText(PRUint32 aStart, PRUint32 aMaxLength,
|
|||
PRPackedBool hyphenBuffer[MEASUREMENT_BUFFER_SIZE];
|
||||
PRBool haveHyphenation = (mFlags & gfxTextRunFactory::TEXT_ENABLE_HYPHEN_BREAKS) != 0;
|
||||
if (haveHyphenation) {
|
||||
aProvider->GetHyphenationBreaks(bufferStart, bufferStart + bufferLength,
|
||||
aProvider->GetHyphenationBreaks(bufferStart, bufferLength,
|
||||
hyphenBuffer);
|
||||
}
|
||||
|
||||
|
@ -1120,7 +1120,7 @@ gfxTextRun::BreakAndMeasureText(PRUint32 aStart, PRUint32 aMaxLength,
|
|||
spacingBuffer);
|
||||
}
|
||||
if (haveHyphenation) {
|
||||
aProvider->GetHyphenationBreaks(bufferStart, bufferStart + bufferLength,
|
||||
aProvider->GetHyphenationBreaks(bufferStart, bufferLength,
|
||||
hyphenBuffer);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче