зеркало из https://github.com/mozilla/gecko-dev.git
Bug 375768. Fix minor textrun-related bugs, only affects new textframe. r=pavlov
This commit is contained in:
Родитель
d1e87c848a
Коммит
cc74e411be
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче