Bug 1535507 - Don't create new display items for InvalidateLayer, since only the Layer tree should need to change. r=miko
☠☠ backed out by 5fd21107e394 ☠ ☠
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 18 Mar 2019 21:11:06 +0000
changeset 464873 a9c6e9e27b17013a4ff9793b052ec1383c7f9b7f
parent 464872 f2061889974a1a7ce5410689e542a0c39a084540
child 464874 f7a60828b0ad40b755c22b978ac85c6d1d7f00db
push id35727
push userdvarga@mozilla.com
push dateTue, 19 Mar 2019 09:48:59 +0000
treeherdermozilla-central@70baa37ae1eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmiko
bugs1535507
milestone68.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 1535507 - Don't create new display items for InvalidateLayer, since only the Layer tree should need to change. r=miko Differential Revision: https://phabricator.services.mozilla.com/D23609
layout/generic/nsFrame.cpp
--- a/layout/generic/nsFrame.cpp
+++ b/layout/generic/nsFrame.cpp
@@ -7094,17 +7094,17 @@ Layer* nsIFrame::InvalidateLayer(Display
                                  const nsIntRect* aDamageRect,
                                  const nsRect* aFrameDamageRect,
                                  uint32_t aFlags /* = 0 */) {
   NS_ASSERTION(aDisplayItemKey > DisplayItemType::TYPE_ZERO, "Need a key");
 
   Layer* layer = FrameLayerBuilder::GetDedicatedLayer(this, aDisplayItemKey);
 
   nsIFrame* displayRoot = nsLayoutUtils::GetDisplayRootFrame(this);
-  InvalidateRenderingObservers(displayRoot, this);
+  InvalidateRenderingObservers(displayRoot, this, false);
 
   // Check if frame supports WebRender's async update
   if ((aFlags & UPDATE_IS_ASYNC) &&
       WebRenderUserData::SupportsAsyncUpdate(this)) {
     // WebRender does not use layer, then return nullptr.
     return nullptr;
   }