зеркало из https://github.com/mozilla/gecko-dev.git
adjust XIM spot location code scince we change the nsCaret to return the bottom of the cursor intead of the top of the cursor ow. It look a little bit weired since the GFX didn't alight Japanese text base line right. r=erik
This commit is contained in:
Родитель
ddab7e05d7
Коммит
5c0c5ef12e
|
@ -2683,7 +2683,11 @@ nsWidget::GetXYFromPosition(unsigned long *aX,
|
|||
mIC->mask = GDK_IC_PREEDIT_FONTSET; // hack
|
||||
gdk_ic_get_attr((GdkIC*)mIC, attr, attrMask);
|
||||
if (attr->preedit_fontset) {
|
||||
*aY += attr->preedit_fontset->ascent;
|
||||
// this is currently not working well
|
||||
// We change from += ascent to -= descent because we change the nsCaret
|
||||
// code to return the nsPoint from the top of the cursor to the bottom
|
||||
// of the cursor
|
||||
*aY -= attr->preedit_fontset->descent;
|
||||
}
|
||||
gdk_ic_attr_destroy(attr);
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче