diff options
author | Jonathan Kew <jkew@mozilla.com> | 2019-12-06 13:42:37 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-12-06 13:42:37 +0100 |
commit | 0ede53051a5b30b0141538db0f66a31367b288f7 (patch) | |
tree | 0c1d12df3999b10ddb594b335153a34724f6ed99 /layout | |
parent | 94f2351162d1965762c38c743ed9dce27724061a (diff) | |
download | aura-central-0ede53051a5b30b0141538db0f66a31367b288f7.tar.gz |
Check if we're already at the end of the frame's content.
Diffstat (limited to 'layout')
-rw-r--r-- | layout/generic/nsTextFrame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index 0641c7439..59ef020ce 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -7525,7 +7525,8 @@ nsTextFrame::GetCharacterRectsInRange(int32_t aInOffset, gfxSkipCharsIterator nextIter(iter); nextIter.AdvanceOriginal(1); if (!nextIter.IsOriginalCharSkipped() && - !mTextRun->IsClusterStart(nextIter.GetSkippedOffset())) { + !mTextRun->IsClusterStart(nextIter.GetSkippedOffset()) && + nextIter.GetOriginalOffset() < kContentEnd) { FindClusterEnd(mTextRun, kContentEnd, &nextIter); } |