Bug 1218618 - Assert that the hit-testing tree's root node doesn't have siblings. r=kats
authorBotond Ballo <botond@mozilla.com>
Wed, 28 Oct 2015 15:27:35 -0400
changeset 270093 086aa469aa8470dd14b2348db14be715b367718b
parent 270092 a6cd337118c4a10fc9bdceed0b41afd8f56162d7
child 270094 33df0bbcc1ae809bb6461f7b929a271fe542d6b3
push id29599
push usercbook@mozilla.com
push dateThu, 29 Oct 2015 10:49:48 +0000
treeherdermozilla-central@67a788db9f07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs1218618
milestone44.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 1218618 - Assert that the hit-testing tree's root node doesn't have siblings. r=kats
gfx/layers/apz/src/APZCTreeManager.cpp
--- a/gfx/layers/apz/src/APZCTreeManager.cpp
+++ b/gfx/layers/apz/src/APZCTreeManager.cpp
@@ -185,16 +185,19 @@ APZCTreeManager::UpdateHitTestingTree(Co
     LayerMetricsWrapper root(aRoot);
     UpdateHitTestingTree(state, root,
                          // aCompositor is null in gtest scenarios
                          aCompositor ? aCompositor->RootLayerTreeId() : 0,
                          Matrix4x4(), nullptr, nullptr);
     mApzcTreeLog << "[end]\n";
   }
 
+  // We do not support tree structures where the root node has siblings.
+  MOZ_ASSERT(!(mRootNode && mRootNode->GetPrevSibling()));
+
   for (size_t i = 0; i < state.mNodesToDestroy.Length(); i++) {
     APZCTM_LOG("Destroying node at %p with APZC %p\n",
         state.mNodesToDestroy[i].get(),
         state.mNodesToDestroy[i]->GetApzc());
     state.mNodesToDestroy[i]->Destroy();
   }
 
 #if ENABLE_APZCTM_LOGGING