зеркало из https://github.com/mozilla/pjs.git
Uneven justification with new textframe. Bug 380062, r+sr=roc
This commit is contained in:
Родитель
b837206744
Коммит
f265ac81d0
|
@ -2132,11 +2132,11 @@ static PRUint32 GetSkippedDistance(const gfxSkipCharsIterator& aStart,
|
|||
void
|
||||
PropertyProvider::FindEndOfJustificationRange(gfxSkipCharsIterator* aIter)
|
||||
{
|
||||
if (!(mFrame->GetStateBits() & TEXT_END_OF_LINE))
|
||||
return;
|
||||
aIter->SetOriginalOffset(mStart.GetOriginalOffset() + mLength);
|
||||
|
||||
// Ignore trailing cluster at end of line for justification purposes
|
||||
aIter->SetOriginalOffset(mStart.GetOriginalOffset() + mLength);
|
||||
if (!(mFrame->GetStateBits() & TEXT_END_OF_LINE))
|
||||
return;
|
||||
while (aIter->GetOriginalOffset() > mStart.GetOriginalOffset()) {
|
||||
aIter->AdvanceOriginal(-1);
|
||||
if (!aIter->IsOriginalCharSkipped() &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче