зеркало из https://github.com/mozilla/gecko-dev.git
Not Part Of The Build (new textframe). IsInBounds uses incorrect logic and produces spurious warnings.
This commit is contained in:
Родитель
f303dbe9c8
Коммит
6b140b8909
|
@ -1825,8 +1825,8 @@ static PRBool IsInBounds(const gfxSkipCharsIterator& aStart, PRInt32 aContentLen
|
|||
if (aStart.GetSkippedOffset() > aOffset)
|
||||
return PR_FALSE;
|
||||
gfxSkipCharsIterator iter(aStart);
|
||||
iter.AdvanceSkipped(aLength);
|
||||
return iter.GetOriginalOffset() <= aStart.GetOriginalOffset() + aContentLength;
|
||||
iter.AdvanceOriginal(aContentLength);
|
||||
return iter.GetSkippedOffset() >= aOffset + aLength;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче