зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1077085 - Insure puppet widgets don't skip sending resize notifications to the view manager when the user navigates through history items. r=tn
This commit is contained in:
Родитель
901be380e7
Коммит
8250de3687
|
@ -1930,14 +1930,13 @@ nsDocumentViewer::SetBounds(const nsIntRect& aBounds)
|
||||||
NS_ENSURE_TRUE(mDocument, NS_ERROR_NOT_AVAILABLE);
|
NS_ENSURE_TRUE(mDocument, NS_ERROR_NOT_AVAILABLE);
|
||||||
|
|
||||||
mBounds = aBounds;
|
mBounds = aBounds;
|
||||||
if (mWindow) {
|
|
||||||
if (!mAttachedToParent) {
|
if (mWindow && !mAttachedToParent) {
|
||||||
// Don't have the widget repaint. Layout will generate repaint requests
|
// Resize the widget, but don't trigger repaint. Layout will generate
|
||||||
// during reflow.
|
// repaint requests during reflow.
|
||||||
mWindow->Resize(aBounds.x, aBounds.y,
|
mWindow->Resize(aBounds.x, aBounds.y,
|
||||||
aBounds.width, aBounds.height,
|
aBounds.width, aBounds.height,
|
||||||
false);
|
false);
|
||||||
}
|
|
||||||
} else if (mPresContext && mViewManager) {
|
} else if (mPresContext && mViewManager) {
|
||||||
int32_t p2a = mPresContext->AppUnitsPerDevPixel();
|
int32_t p2a = mPresContext->AppUnitsPerDevPixel();
|
||||||
mViewManager->SetWindowDimensions(NSIntPixelsToAppUnits(mBounds.width, p2a),
|
mViewManager->SetWindowDimensions(NSIntPixelsToAppUnits(mBounds.width, p2a),
|
||||||
|
|
Загрузка…
Ссылка в новой задаче