mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 393923. Fix text-offset calculation for first-letter. r=smontagu,a=dbaron
This commit is contained in:
parent
60b878b0b3
commit
fa88299620
@ -4959,7 +4959,7 @@ FindFirstLetterRange(const nsTextFragment* aFrag,
|
||||
gfxSkipCharsIterator iter(aIter);
|
||||
PRInt32 nextClusterStart;
|
||||
for (nextClusterStart = i + 1; nextClusterStart < length; ++nextClusterStart) {
|
||||
iter.SetOriginalOffset(nextClusterStart);
|
||||
iter.SetOriginalOffset(aOffset + nextClusterStart);
|
||||
if (iter.IsOriginalCharSkipped() ||
|
||||
aTextRun->IsClusterStart(iter.GetSkippedOffset()))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user