Bug 1261752. Part 1. r=mats a=ritu
authorTimothy Nikkel <tnikkel@gmail.com>
Tue, 10 May 2016 22:58:26 -0500
changeset 324377 00774a92ff12859050db769eba21398aa17606db
parent 324376 6ff99c31005136ddc700914fce18e82a5d7381fc
child 324378 9910c3c3639ff537d3407e69a2558bf2ce4dc3eb
push id5992
push userkwierso@gmail.com
push dateSat, 14 May 2016 00:16:42 +0000
treeherdermozilla-beta@a9e1d0bc8a8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats, ritu
bugs1261752
milestone47.0
Bug 1261752. Part 1. r=mats a=ritu
view/nsViewManager.cpp
--- a/view/nsViewManager.cpp
+++ b/view/nsViewManager.cpp
@@ -426,17 +426,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);
       }