Back out 6 changesets (bug 881832) for failures in test_Debugger.Source.prototype.element.html
CLOSED TREE Backed out changeset fac50ce10b07 (bug 881832) Backed out changeset 32e01c144cd4 (bug 881832) Backed out changeset 779f5336b81e (bug 881832) Backed out changeset 95efd250e29f (bug 881832) Backed out changeset 7fe79f07189f (bug 881832) Backed out changeset 8ee1824f2a57 (bug 881832)
This commit is contained in:
@@ -5596,7 +5596,7 @@ nsDocShell::InitWindow(nativeWindow aParentNativeWindow,
|
||||
int32_t aWidth, int32_t aHeight)
|
||||
{
|
||||
SetParentWidget(aParentWidget);
|
||||
SetPositionAndSize(aX, aY, aWidth, aHeight, 0);
|
||||
SetPositionAndSize(aX, aY, aWidth, aHeight, false);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@@ -5842,8 +5842,7 @@ nsDocShell::SetSize(int32_t aWidth, int32_t aHeight, bool aRepaint)
|
||||
{
|
||||
int32_t x = 0, y = 0;
|
||||
GetPosition(&x, &y);
|
||||
return SetPositionAndSize(x, y, aWidth, aHeight,
|
||||
aRepaint ? nsIBaseWindow::eRepaint : 0);
|
||||
return SetPositionAndSize(x, y, aWidth, aHeight, aRepaint);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@@ -5854,7 +5853,7 @@ nsDocShell::GetSize(int32_t* aWidth, int32_t* aHeight)
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::SetPositionAndSize(int32_t aX, int32_t aY, int32_t aWidth,
|
||||
int32_t aHeight, uint32_t aFlags)
|
||||
int32_t aHeight, bool aFRepaint)
|
||||
{
|
||||
mBounds.x = aX;
|
||||
mBounds.y = aY;
|
||||
@@ -5864,11 +5863,8 @@ nsDocShell::SetPositionAndSize(int32_t aX, int32_t aY, int32_t aWidth,
|
||||
// Hold strong ref, since SetBounds can make us null out mContentViewer
|
||||
nsCOMPtr<nsIContentViewer> viewer = mContentViewer;
|
||||
if (viewer) {
|
||||
uint32_t cvflags = (aFlags & nsIBaseWindow::eDelayResize) ?
|
||||
nsIContentViewer::eDelayResize : 0;
|
||||
// XXX Border figured in here or is that handled elsewhere?
|
||||
nsresult rv = viewer->SetBoundsWithFlags(mBounds, cvflags);
|
||||
NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(viewer->SetBounds(mBounds), NS_ERROR_FAILURE);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
@@ -5882,7 +5878,7 @@ nsDocShell::GetPositionAndSize(int32_t* aX, int32_t* aY, int32_t* aWidth,
|
||||
// ensure size is up-to-date if window has changed resolution
|
||||
LayoutDeviceIntRect r;
|
||||
mParentWidget->GetClientBounds(r);
|
||||
SetPositionAndSize(mBounds.x, mBounds.y, r.width, r.height, 0);
|
||||
SetPositionAndSize(mBounds.x, mBounds.y, r.width, r.height, false);
|
||||
}
|
||||
|
||||
// We should really consider just getting this information from
|
||||
|
||||
Reference in New Issue
Block a user