mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1618501 - Don't go into the hit-testing tree dumping codepath if we're not actually dumping. r=botond
This avoids doing a full recursive walk of the tree for no purpose unless the logging is actually enabled. Differential Revision: https://phabricator.services.mozilla.com/D64657 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
06bbe43c45
commit
1d2638f1bb
@ -642,7 +642,7 @@ APZCTreeManager::UpdateHitTestingTreeImpl(const ScrollNode& aRoot,
|
||||
}
|
||||
|
||||
APZCTM_LOG("APZCTreeManager (%p)\n", this);
|
||||
if (mRootNode) {
|
||||
if (mRootNode && MOZ_LOG_TEST(sApzMgrLog, LogLevel::Debug)) {
|
||||
mRootNode->Dump(" ");
|
||||
}
|
||||
SendSubtreeTransformsToChromeMainThread(nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user