Bug 729146 - Check aRepaint in Resize in gonk's nsWindow, r=cjones
authorMichael Wu <mwu@mozilla.com>
Wed, 22 Feb 2012 09:50:44 +0100
changeset 87427 83c85131bcfee30ac02052b295e8feb64488fac5
parent 87426 c673d54a76595fdf6faf190aeeecda76f8cf3208
child 87428 75ea99f22bf7ccca29a144999ba32aa33017373e
push id22119
push userbmo@edmorley.co.uk
push dateWed, 22 Feb 2012 22:23:32 +0000
treeherdermozilla-central@49956e0cc0bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs729146
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 729146 - Check aRepaint in Resize in gonk's nsWindow, r=cjones
widget/gonk/nsWindow.cpp
--- a/widget/gonk/nsWindow.cpp
+++ b/widget/gonk/nsWindow.cpp
@@ -275,16 +275,19 @@ nsWindow::Resize(PRInt32 aX,
     nsIntRect rect(aX, aY, aWidth, aHeight);
     mBounds = rect;
     event.windowSize = &rect;
     event.mWinWidth = sVirtualBounds.width;
     event.mWinHeight = sVirtualBounds.height;
 
     (*mEventCallback)(&event);
 
+    if (aRepaint && gWindowToRedraw)
+        gWindowToRedraw->Invalidate(sVirtualBounds);
+
     return NS_OK;
 }
 
 NS_IMETHODIMP
 nsWindow::Enable(bool aState)
 {
     return NS_OK;
 }