зеркало из https://github.com/mozilla/gecko-dev.git
Bug 805261 - Implement nsChildView::GetScreenBounds() (MacOSX). r=BenWa
This commit is contained in:
Родитель
975bb9343d
Коммит
de2176af78
|
@ -400,6 +400,7 @@ public:
|
|||
NS_IMETHOD SetFocus(bool aRaise);
|
||||
NS_IMETHOD GetBounds(nsIntRect &aRect);
|
||||
NS_IMETHOD GetClientBounds(nsIntRect &aRect);
|
||||
NS_IMETHOD GetScreenBounds(nsIntRect &aRect);
|
||||
|
||||
// Returns the "backing scale factor" of the view's window, which is the
|
||||
// ratio of pixels in the window's backing store to Cocoa points. Prior to
|
||||
|
|
|
@ -796,6 +796,13 @@ NS_IMETHODIMP nsChildView::GetClientBounds(nsIntRect &aRect)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsChildView::GetScreenBounds(nsIntRect &aRect)
|
||||
{
|
||||
GetBounds(aRect);
|
||||
aRect.MoveTo(WidgetToScreenOffset());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
double
|
||||
nsChildView::GetDefaultScaleInternal()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче