Bug 1368252 - Call GetLayerActivity() instead of directly looking up frame's LayerActivityProperty(). r=mats
authorJonathan Kew <jkew@mozilla.com>
Sun, 28 May 2017 11:22:39 +0100
changeset 409167 dc315bf0beb37b169a427de86bc233f98f06c854
parent 409166 6414aec048aea01d726832dec33e83f3d8503f0c
child 409168 021d6fb6bd8c3db50f34218ca0c158a739636901
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats
bugs1368252
milestone55.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 1368252 - Call GetLayerActivity() instead of directly looking up frame's LayerActivityProperty(). r=mats
layout/painting/ActiveLayerTracker.cpp
--- a/layout/painting/ActiveLayerTracker.cpp
+++ b/layout/painting/ActiveLayerTracker.cpp
@@ -192,17 +192,17 @@ GetLayerActivity(nsIFrame* aFrame)
     return nullptr;
   }
   return aFrame->GetProperty(LayerActivityProperty());
 }
 
 static LayerActivity*
 GetLayerActivityForUpdate(nsIFrame* aFrame)
 {
-  LayerActivity* layerActivity = aFrame->GetProperty(LayerActivityProperty());
+  LayerActivity* layerActivity = GetLayerActivity(aFrame);
   if (layerActivity) {
     gLayerActivityTracker->MarkUsed(layerActivity);
   } else {
     if (!gLayerActivityTracker) {
       gLayerActivityTracker = new LayerActivityTracker(
         SystemGroup::EventTargetFor(TaskCategory::Other));
     }
     layerActivity = new LayerActivity(aFrame);