From 055a5d09a9058a79e9cacb04e9b8b6d59c47d228 Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Mon, 13 Jul 2015 13:57:23 +1200 Subject: [PATCH] bug 1182972 remove unused aRepaint parameter from NativeResize methods r=acomminos --HG-- extra : rebase_source : 8b3f01e7c32e8cb5dc125fdd756e983538a4943d --- widget/gtk/nsWindow.cpp | 20 +++++++++----------- widget/gtk/nsWindow.h | 6 ++---- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 064116c4420f..978b772c30d7 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -973,10 +973,9 @@ nsWindow::Show(bool aState) // resize the widget. if (aState) { if (mNeedsMove) { - NativeResize(mBounds.x, mBounds.y, mBounds.width, mBounds.height, - false); + NativeResize(mBounds.x, mBounds.y, mBounds.width, mBounds.height); } else if (mNeedsResize) { - NativeResize(mBounds.width, mBounds.height, false); + NativeResize(mBounds.width, mBounds.height); } } @@ -1025,9 +1024,9 @@ nsWindow::Resize(double aWidth, double aHeight, bool aRepaint) // moved back then if (mNeedsMove) NativeResize(mBounds.x, mBounds.y, - mBounds.width, mBounds.height, aRepaint); + mBounds.width, mBounds.height); else - NativeResize(mBounds.width, mBounds.height, aRepaint); + NativeResize(mBounds.width, mBounds.height); // Does it need to be shown because it was previously insane? if (mNeedsShow) @@ -1053,7 +1052,7 @@ nsWindow::Resize(double aWidth, double aHeight, bool aRepaint) // For widgets that we listen for resizes for (widgets created // with native parents) we apparently _always_ have to resize. I // dunno why, but apparently we're lame like that. - NativeResize(width, height, aRepaint); + NativeResize(width, height); } else { mNeedsResize = true; @@ -1101,7 +1100,7 @@ nsWindow::Resize(double aX, double aY, double aWidth, double aHeight, // Are the bounds sane? if (AreBoundsSane()) { // Yep? Resize the window - NativeResize(x, y, width, height, aRepaint); + NativeResize(x, y, width, height); // Does it need to be shown because it was previously insane? if (mNeedsShow) NativeShow(true); @@ -1126,7 +1125,7 @@ nsWindow::Resize(double aX, double aY, double aWidth, double aHeight, // For widgets that we listen for resizes for (widgets created // with native parents) we apparently _always_ have to resize. I // dunno why, but apparently we're lame like that. - NativeResize(x, y, width, height, aRepaint); + NativeResize(x, y, width, height); } else { mNeedsResize = true; @@ -3873,7 +3872,7 @@ nsWindow::SetWindowClass(const nsAString &xulWinType) } void -nsWindow::NativeResize(int32_t aWidth, int32_t aHeight, bool aRepaint) +nsWindow::NativeResize(int32_t aWidth, int32_t aHeight) { gint width = DevicePixelsToGdkCoordRoundUp(aWidth); gint height = DevicePixelsToGdkCoordRoundUp(aHeight); @@ -3904,8 +3903,7 @@ nsWindow::NativeResize(int32_t aWidth, int32_t aHeight, bool aRepaint) void nsWindow::NativeResize(int32_t aX, int32_t aY, - int32_t aWidth, int32_t aHeight, - bool aRepaint) + int32_t aWidth, int32_t aHeight) { gint width = DevicePixelsToGdkCoordRoundUp(aWidth); gint height = DevicePixelsToGdkCoordRoundUp(aHeight); diff --git a/widget/gtk/nsWindow.h b/widget/gtk/nsWindow.h index 947f12db9b3e..ffb85a8b0789 100644 --- a/widget/gtk/nsWindow.h +++ b/widget/gtk/nsWindow.h @@ -203,14 +203,12 @@ private: void UpdateAlpha(gfxPattern* aPattern, nsIntRect aBoundsRect); void NativeResize(int32_t aWidth, - int32_t aHeight, - bool aRepaint); + int32_t aHeight); void NativeResize(int32_t aX, int32_t aY, int32_t aWidth, - int32_t aHeight, - bool aRepaint); + int32_t aHeight); void NativeShow (bool aAction); void SetHasMappedToplevel(bool aState);