bug 726483 remove unnecessary DispatchResized() parameters r=roc

--HG--
extra : rebase_source : 70e8eac6d1ce0ec713f553c50c85a724602008a7
This commit is contained in:
Karl Tomlinson 2015-11-10 15:09:52 +13:00
parent 4f99faeaed
commit a21405714b
2 changed files with 8 additions and 7 deletions

View File

@ -528,13 +528,14 @@ nsWindow::DispatchDeactivateEvent(void)
}
void
nsWindow::DispatchResized(int32_t aWidth, int32_t aHeight)
nsWindow::DispatchResized()
{
if (mWidgetListener) {
mWidgetListener->WindowResized(this, aWidth, aHeight);
mWidgetListener->WindowResized(this, mBounds.width, mBounds.height);
}
if (mAttachedWidgetListener) {
mAttachedWidgetListener->WindowResized(this, aWidth, aHeight);
mAttachedWidgetListener->WindowResized(this,
mBounds.width, mBounds.height);
}
}
@ -1095,7 +1096,7 @@ nsWindow::Resize(double aWidth, double aHeight, bool aRepaint)
// send a resize notification if this is a toplevel
if (mIsTopLevel || mListenForResizes) {
DispatchResized(width, height);
DispatchResized();
}
return NS_OK;
@ -1126,7 +1127,7 @@ nsWindow::Resize(double aX, double aY, double aWidth, double aHeight,
ResizePluginSocketWidget();
if (mIsTopLevel || mListenForResizes) {
DispatchResized(width, height);
DispatchResized();
}
return NS_OK;
@ -2455,7 +2456,7 @@ nsWindow::OnSizeAllocate(GtkAllocation *aAllocation)
if (!mGdkWindow)
return;
DispatchResized(size.width, size.height);
DispatchResized();
}
void

View File

@ -356,7 +356,7 @@ protected:
// event handling code
void DispatchActivateEvent(void);
void DispatchDeactivateEvent(void);
void DispatchResized(int32_t aWidth, int32_t aHeight);
void DispatchResized();
// Helper for SetParent and ReparentNativeWidget.
void ReparentNativeWidgetInternal(nsIWidget* aNewParent,