зеркало из https://github.com/mozilla/gecko-dev.git
Changes for qnx(photon) platform only. They should not affect building/runtime other platforms.
The height of characters was calculated incorrectly in nsFontMetricsPh, leading to an error in the email composition window ( non html composing, moving the cursor with keyboard will make the cursor jump at the end of lines ).
This commit is contained in:
Родитель
9c21f95baa
Коммит
be288667d6
|
@ -240,7 +240,7 @@ printf( "\tCall PfLoadMetrics for NSFullFontName=%s\n", NSFullFontName );
|
|||
|
||||
dev2app = mDeviceContext->DevUnitsToAppUnits();
|
||||
onePixel = NSToCoordRound(1 * dev2app);
|
||||
height = node->descender - node->ascender + 1.0;
|
||||
height = node->descender - node->ascender;
|
||||
PfExtent( &extent, NULL, NSFullFontName, 0L, 0L, " ", 1, PF_SIMPLE_METRICS, NULL );
|
||||
mSpaceWidth = NSToCoordRound((extent.lr.x - extent.ul.x + 1) * dev2app);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче