b=793501 don't resize toplevel window in response to resized notification r=bz

--HG--
extra : transplant_source : U%3E%D3b%3D%AE0%0D%C7%8D%27%F5a%D4%F6%2C%27%EE%EA%A1
This commit is contained in:
Karl Tomlinson 2012-10-23 11:32:24 +13:00
Родитель 06d7fccaeb
Коммит 257facb956
1 изменённых файлов: 3 добавлений и 13 удалений

Просмотреть файл

@ -1869,19 +1869,9 @@ DocumentViewerImpl::SetBounds(const nsIntRect& aBounds)
mBounds = aBounds;
if (mWindow) {
// When attached to a top level window, change the client area, not the
// window frame.
// Don't have the widget repaint. Layout will generate repaint requests
// during reflow.
if (mAttachedToParent) {
if (aBounds.x != 0 || aBounds.y != 0) {
mWindow->ResizeClient(aBounds.x, aBounds.y,
aBounds.width, aBounds.height,
false);
} else {
mWindow->ResizeClient(aBounds.width, aBounds.height, false);
}
} else {
if (!mAttachedToParent) {
// Don't have the widget repaint. Layout will generate repaint requests
// during reflow.
mWindow->Resize(aBounds.x, aBounds.y,
aBounds.width, aBounds.height,
false);