Bug 1574016. Fix logic error in patch from bug 1547277. r=bradwerth

The fixed still worked because we get another SetBounds call right after with the same bounds. But it does mean we are doing some useless invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D42059

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Timothy Nikkel 2019-08-15 01:28:11 +00:00
Родитель 1e3d00af59
Коммит 2a4e690cf4
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2097,7 +2097,7 @@ nsDocumentViewer::SetBoundsWithFlags(const nsIntRect& aBounds,
uint32_t aFlags) { uint32_t aFlags) {
NS_ENSURE_TRUE(mDocument, NS_ERROR_NOT_AVAILABLE); NS_ENSURE_TRUE(mDocument, NS_ERROR_NOT_AVAILABLE);
bool boundsChanged = mBounds.IsEqualEdges(aBounds); bool boundsChanged = !mBounds.IsEqualEdges(aBounds);
mBounds = aBounds; mBounds = aBounds;
if (mWindow && !mAttachedToParent) { if (mWindow && !mAttachedToParent) {