Bug 913247 followup: Remove superfluous call to imagesToRefresh.Clear(). rs=bz
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 06 Sep 2013 10:57:40 -0700
changeset 158919 94e1942ba37883e0bc20dd512b48cafb2ed45489
parent 158918 3f316248eb01203d495914f71e3d20c1d39b6db3
child 158920 1699c4e7afdc3cc6e347412c59ace7a6f8ab17c3
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs913247
milestone26.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 913247 followup: Remove superfluous call to imagesToRefresh.Clear(). rs=bz
layout/base/nsRefreshDriver.cpp
--- a/layout/base/nsRefreshDriver.cpp
+++ b/layout/base/nsRefreshDriver.cpp
@@ -1163,17 +1163,16 @@ nsRefreshDriver::Tick(int64_t aNowEpoch,
     // images to refresh, and then we refresh each image in that array.
     nsCOMArray<imgIContainer> imagesToRefresh(mRequests.Count());
     mRequests.EnumerateEntries(nsRefreshDriver::ImageRequestEnumerator,
                                &imagesToRefresh);
 
     for (uint32_t i = 0; i < imagesToRefresh.Length(); i++) {
       imagesToRefresh[i]->RequestRefresh(aNowTime);
     }
-    imagesToRefresh.Clear();
   }
 
   for (uint32_t i = 0; i < mPresShellsToInvalidateIfHidden.Length(); i++) {
     mPresShellsToInvalidateIfHidden[i]->InvalidatePresShellIfHidden();
   }
   mPresShellsToInvalidateIfHidden.Clear();
 
   if (mViewManagerFlushIsPending) {