зеркало из https://github.com/mozilla/pjs.git
Fixing bustage
This commit is contained in:
Родитель
a3501517f5
Коммит
44277edcad
|
@ -734,8 +734,8 @@ NS_IMETHODIMP nsAccessibleText::GetCharacterExtents(PRInt32 aOffset,
|
||||||
tmpY = NSTwipsToIntPixels(tmpY, t2p);
|
tmpY = NSTwipsToIntPixels(tmpY, t2p);
|
||||||
|
|
||||||
//change to screen co-ord
|
//change to screen co-ord
|
||||||
nsIWidget *frameWidget;
|
nsIWidget *frameWidget = tmpFrame->GetWindow();
|
||||||
if (NS_SUCCEEDED(tmpFrame->GetWindow(context, &frameWidget))) {
|
if (frameWidget) {
|
||||||
nsRect oldRect(tmpX, tmpY, 0, 0), newRect;
|
nsRect oldRect(tmpX, tmpY, 0, 0), newRect;
|
||||||
if (NS_SUCCEEDED(frameWidget->WidgetToScreen(oldRect, newRect))) {
|
if (NS_SUCCEEDED(frameWidget->WidgetToScreen(oldRect, newRect))) {
|
||||||
tmpX = newRect.x;
|
tmpX = newRect.x;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче