mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
bug 726483 remove unnecessary DispatchResized() parameters r=roc
--HG-- extra : rebase_source : 70e8eac6d1ce0ec713f553c50c85a724602008a7
This commit is contained in:
parent
4f99faeaed
commit
a21405714b
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user