From 2a4e690cf42ad683a863e6a1ec68a97d81c90d82 Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Thu, 15 Aug 2019 01:28:11 +0000 Subject: [PATCH] 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 --- layout/base/nsDocumentViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 0ad44f8759c0..194ab6e595c4 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -2097,7 +2097,7 @@ nsDocumentViewer::SetBoundsWithFlags(const nsIntRect& aBounds, uint32_t aFlags) { NS_ENSURE_TRUE(mDocument, NS_ERROR_NOT_AVAILABLE); - bool boundsChanged = mBounds.IsEqualEdges(aBounds); + bool boundsChanged = !mBounds.IsEqualEdges(aBounds); mBounds = aBounds; if (mWindow && !mAttachedToParent) {