зеркало из https://github.com/mozilla/gecko-dev.git
Allow text that fits exactly to be measured faster by changing < to <=. Patch from Daniel Bratell <bratell@lysator.liu.se>. r=shanjian sr=waterson b=90867
This commit is contained in:
Родитель
bfd986ab4e
Коммит
82cc6db0e2
|
@ -1644,7 +1644,7 @@ nsRenderingContextWin::GetTextDimensions(const char* aString,
|
||||||
|
|
||||||
// Find the nearest place to break that is less than or equal to
|
// Find the nearest place to break that is less than or equal to
|
||||||
// the estimated break offset
|
// the estimated break offset
|
||||||
if (aLength < estimatedBreakOffset) {
|
if (aLength <= estimatedBreakOffset) {
|
||||||
// All the characters should fit
|
// All the characters should fit
|
||||||
numChars = aLength - start;
|
numChars = aLength - start;
|
||||||
breakIndex = aNumBreaks - 1;
|
breakIndex = aNumBreaks - 1;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче