зеркало из https://github.com/mozilla/gecko-dev.git
bug 1182972 create NativeMove helper method r=acomminos
--HG-- extra : rebase_source : 7a2eb54a0f1892a498251b4553b5f67794fcc365
This commit is contained in:
Родитель
055a5d09a9
Коммит
3c97c275f9
|
@ -1206,9 +1206,19 @@ nsWindow::Move(double aX, double aY)
|
|||
if (!mCreated)
|
||||
return NS_OK;
|
||||
|
||||
NativeMove();
|
||||
|
||||
NotifyRollupGeometryChange();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
nsWindow::NativeMove()
|
||||
{
|
||||
mNeedsMove = false;
|
||||
|
||||
GdkPoint point = DevicePixelsToGdkPointRoundDown(nsIntPoint(x, y));
|
||||
GdkPoint point = DevicePixelsToGdkPointRoundDown(mBounds.TopLeft());
|
||||
|
||||
if (mIsTopLevel) {
|
||||
gtk_window_move(GTK_WINDOW(mShell), point.x, point.y);
|
||||
|
@ -1216,9 +1226,6 @@ nsWindow::Move(double aX, double aY)
|
|||
else if (mGdkWindow) {
|
||||
gdk_window_move(mGdkWindow, point.x, point.y);
|
||||
}
|
||||
|
||||
NotifyRollupGeometryChange();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
|
@ -202,6 +202,7 @@ public:
|
|||
private:
|
||||
void UpdateAlpha(gfxPattern* aPattern, nsIntRect aBoundsRect);
|
||||
|
||||
void NativeMove();
|
||||
void NativeResize(int32_t aWidth,
|
||||
int32_t aHeight);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче