@@ -1150,7 +1150,7 @@ nsWebBrowser::InitWindow(nativeWindow aParentNativeWindow,
11501150 NS_ENSURE_SUCCESS (SetParentNativeWindow(aParentNativeWindow),
11511151 NS_ERROR_FAILURE);
11521152
1153- NS_ENSURE_SUCCESS (SetPositionAndSize(aX, aY, aCX, aCY, false ),
1153+ NS_ENSURE_SUCCESS (SetPositionAndSize(aX, aY, aCX, aCY, 0 ),
11541154 NS_ERROR_FAILURE);
11551155
11561156 return NS_OK ;
@@ -1325,7 +1325,7 @@ nsWebBrowser::SetPosition(int32_t aX, int32_t aY)
13251325
13261326 GetSize (&cx, &cy);
13271327
1328- return SetPositionAndSize (aX, aY, cx, cy, false );
1328+ return SetPositionAndSize (aX, aY, cx, cy, 0 );
13291329}
13301330
13311331NS_IMETHODIMP
@@ -1342,7 +1342,8 @@ nsWebBrowser::SetSize(int32_t aCX, int32_t aCY, bool aRepaint)
13421342
13431343 GetPosition (&x, &y);
13441344
1345- return SetPositionAndSize (x, y, aCX, aCY, aRepaint);
1345+ return SetPositionAndSize (x, y, aCX, aCY,
1346+ aRepaint ? nsIBaseWindow::eRepaint : 0 );
13461347}
13471348
13481349NS_IMETHODIMP
@@ -1353,7 +1354,7 @@ nsWebBrowser::GetSize(int32_t* aCX, int32_t* aCY)
13531354
13541355NS_IMETHODIMP
13551356nsWebBrowser::SetPositionAndSize (int32_t aX, int32_t aY,
1356- int32_t aCX, int32_t aCY, bool aRepaint )
1357+ int32_t aCX, int32_t aCY, uint32_t aFlags )
13571358{
13581359 if (!mDocShell ) {
13591360 mInitInfo ->x = aX;
@@ -1369,12 +1370,13 @@ nsWebBrowser::SetPositionAndSize(int32_t aX, int32_t aY,
13691370 // We also need to resize our widget then.
13701371 if (mInternalWidget ) {
13711372 doc_x = doc_y = 0 ;
1372- NS_ENSURE_SUCCESS (mInternalWidget ->Resize (aX, aY, aCX, aCY, aRepaint),
1373+ NS_ENSURE_SUCCESS (mInternalWidget ->Resize (aX, aY, aCX, aCY,
1374+ !!(aFlags & nsIBaseWindow::eRepaint)),
13731375 NS_ERROR_FAILURE);
13741376 }
13751377 // Now reposition/ resize the doc
13761378 NS_ENSURE_SUCCESS (
1377- mDocShellAsWin ->SetPositionAndSize (doc_x, doc_y, aCX, aCY, aRepaint ),
1379+ mDocShellAsWin ->SetPositionAndSize (doc_x, doc_y, aCX, aCY, aFlags ),
13781380 NS_ERROR_FAILURE);
13791381 }
13801382
0 commit comments