Bug 1744354 - Do not build print string for apz.printree logging unless the pref is enabled. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D147569
This commit is contained in:
Dan Robertson 2022-05-29 00:52:36 +00:00
Родитель 59f561e464
Коммит ff6c4f5304
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -952,7 +952,7 @@ bool APZCTreeManager::AdvanceAnimationsInternal(
}
void APZCTreeManager::PrintLayerInfo(const ScrollNode& aLayer) {
if (aLayer.Dump(mApzcTreeLog) > 0) {
if (StaticPrefs::apz_printtree() && aLayer.Dump(mApzcTreeLog) > 0) {
mApzcTreeLog << "\n";
}
}