Bug 1395670 - Update HitTestingTreeNode logging to indicate scrollbar and scrollthumb nodes. r?botond draft
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 31 Aug 2017 17:07:23 -0400
changeset 656925 c796a08cd80b831fdfdc5593add48d9409d28868
parent 656783 4984da22242841a5d84c4e5fd866e93a450d9723
child 656926 64eab9658e7a820d86fe7e02f12633a62413713b
push id77377
push userkgupta@mozilla.com
push dateThu, 31 Aug 2017 21:35:27 +0000
reviewersbotond
bugs1395670
milestone57.0a1
Bug 1395670 - Update HitTestingTreeNode logging to indicate scrollbar and scrollthumb nodes. r?botond MozReview-Commit-ID: 9bLuervrPp5
gfx/layers/apz/src/HitTestingTreeNode.cpp
--- a/gfx/layers/apz/src/HitTestingTreeNode.cpp
+++ b/gfx/layers/apz/src/HitTestingTreeNode.cpp
@@ -333,24 +333,26 @@ HitTestingTreeNode::GetVisibleRegion() c
 }
 
 void
 HitTestingTreeNode::Dump(const char* aPrefix) const
 {
   if (mPrevSibling) {
     mPrevSibling->Dump(aPrefix);
   }
-  printf_stderr("%sHitTestingTreeNode (%p) APZC (%p) g=(%s) %s%s%sr=(%s) t=(%s) c=(%s)\n",
+  printf_stderr("%sHitTestingTreeNode (%p) APZC (%p) g=(%s) %s%s%sr=(%s) t=(%s) c=(%s)%s%s\n",
     aPrefix, this, mApzc.get(),
     mApzc ? Stringify(mApzc->GetGuid()).c_str() : nsPrintfCString("l=%" PRIu64, mLayersId).get(),
     (mOverride & EventRegionsOverride::ForceDispatchToContent) ? "fdtc " : "",
     (mOverride & EventRegionsOverride::ForceEmptyHitRegion) ? "fehr " : "",
     (mFixedPosTarget != FrameMetrics::NULL_SCROLL_ID) ? nsPrintfCString("fixed=%" PRIu64 " ", mFixedPosTarget).get() : "",
     Stringify(mEventRegions).c_str(), Stringify(mTransform).c_str(),
-    mClipRegion ? Stringify(mClipRegion.ref()).c_str() : "none");
+    mClipRegion ? Stringify(mClipRegion.ref()).c_str() : "none",
+    mIsScrollbarContainer ? " scrollbar" : "",
+    IsScrollThumbNode() ? " scrollthumb" : "");
   if (mLastChild) {
     mLastChild->Dump(nsPrintfCString("%s  ", aPrefix).get());
   }
 }
 
 void
 HitTestingTreeNode::SetApzcParent(AsyncPanZoomController* aParent)
 {