зеркало из 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)
|
if (aStart.GetSkippedOffset() > aOffset)
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
gfxSkipCharsIterator iter(aStart);
|
gfxSkipCharsIterator iter(aStart);
|
||||||
iter.AdvanceSkipped(aLength);
|
iter.AdvanceOriginal(aContentLength);
|
||||||
return iter.GetOriginalOffset() <= aStart.GetOriginalOffset() + aContentLength;
|
return iter.GetSkippedOffset() >= aOffset + aLength;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче