Bug 604318 - Personas: entering/exiting full screen mode fails to paint chrome. r=vlad, a=final.
authorJim Mathies <jmathies@mozilla.com>
Fri, 15 Oct 2010 13:32:35 -0500
changeset 55890 e226f886e301c7187b93443e711767148b6e3df2
parent 55889 d30d0303cd0f32905151c12ec6457f768e079fa6
child 55891 7a19236fc95469b01b4f24c987fc75b32e2ab5e1
push idunknown
push userunknown
push dateunknown
reviewersvlad, final
bugs604318
milestone2.0b8pre
Bug 604318 - Personas: entering/exiting full screen mode fails to paint chrome. r=vlad, a=final.
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -2740,16 +2740,17 @@ nsWindow::MakeFullScreen(PRBool aFullScr
   // Will call hide chrome, reposition window. Note this will
   // also cache dimensions for restoration, so it should only
   // be called once per fullscreen request.
   nsresult rv = nsBaseWidget::MakeFullScreen(aFullScreen);
 
   if (nsUXThemeData::CheckForCompositor()) {
     style = GetWindowLong(mWnd, GWL_STYLE);
     SetWindowLong(mWnd, GWL_STYLE, style | WS_VISIBLE);
+    Invalidate(PR_FALSE);
   }
 
   // Let the dom know via web shell window
   nsSizeModeEvent event(PR_TRUE, NS_SIZEMODE, this);
   event.mSizeMode = mSizeMode;
   InitEvent(event);
   DispatchWindowEvent(&event);