Bug 1261752. Part 1. r=mats
authorTimothy Nikkel <tnikkel@gmail.com>
Tue, 10 May 2016 22:58:26 -0500
changeset 335918 34fe8a381ee93b850e8d7c0f64dd9a9eaa0de446
parent 335917 c18a17e91f35ee8e4d4448d563932c688c7f9235
child 335919 ed485cc76a622813190f3da12d27f79032bdbade
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs1261752
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1261752. Part 1. r=mats
view/nsViewManager.cpp
--- a/view/nsViewManager.cpp
+++ b/view/nsViewManager.cpp
@@ -441,17 +441,17 @@ nsViewManager::ProcessPendingUpdatesRecu
 }
 
 void
 nsViewManager::ProcessPendingUpdatesPaint(nsIWidget* aWidget)
 {
   if (aWidget->NeedsPaint()) {
     // If an ancestor widget was hidden and then shown, we could
     // have a delayed resize to handle.
-    for (nsViewManager *vm = this; vm;
+    for (RefPtr<nsViewManager> vm = this; vm;
          vm = vm->mRootView->GetParent()
            ? vm->mRootView->GetParent()->GetViewManager()
            : nullptr) {
       if (vm->mDelayedResize != nsSize(NSCOORD_NONE, NSCOORD_NONE) &&
           vm->mRootView->IsEffectivelyVisible() &&
           vm->mPresShell && vm->mPresShell->IsVisible()) {
         vm->FlushDelayedResize(true);
       }