mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Ensure that the buffer offset in nsTextTransformer::GetNextWord is correctly positioned after transforming ligatures. Bug 1888759, r/sr=rbs.
This commit is contained in:
parent
c47b8bed9d
commit
2a850617fd
@ -1081,9 +1081,12 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
|
||||
if ((mTextTransform != NS_STYLE_TEXT_TRANSFORM_NONE) ||
|
||||
(*aWordLenResult != *aContentLenResult)) {
|
||||
*aWasTransformed = PR_TRUE;
|
||||
mBufferPos = prevBufferPos + *aWordLenResult;
|
||||
}
|
||||
|
||||
mOffset = offset;
|
||||
|
||||
NS_ASSERTION(mBufferPos == prevBufferPos + *aWordLenResult, "internal error");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -1081,9 +1081,12 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
|
||||
if ((mTextTransform != NS_STYLE_TEXT_TRANSFORM_NONE) ||
|
||||
(*aWordLenResult != *aContentLenResult)) {
|
||||
*aWasTransformed = PR_TRUE;
|
||||
mBufferPos = prevBufferPos + *aWordLenResult;
|
||||
}
|
||||
|
||||
mOffset = offset;
|
||||
|
||||
NS_ASSERTION(mBufferPos == prevBufferPos + *aWordLenResult, "internal error");
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user