Bug 1931798. Only check for apz listeners when building compositor hit test info. r=gfx-reviewers,nical
The info that we get from the check is only used for compositor hit test info and it takes a decent amount of time to check. Differential Revision: https://phabricator.services.mozilla.com/D229290
This commit is contained in:
@@ -467,12 +467,16 @@ void nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||||||
visible, dirty);
|
visible, dirty);
|
||||||
|
|
||||||
if (subdocRootFrame) {
|
if (subdocRootFrame) {
|
||||||
bool hasDocumentLevelListenersForApzAwareEvents =
|
if (aBuilder->BuildCompositorHitTestInfo()) {
|
||||||
gfxPlatform::AsyncPanZoomEnabled() &&
|
bool hasDocumentLevelListenersForApzAwareEvents =
|
||||||
nsLayoutUtils::HasDocumentLevelListenersForApzAwareEvents(presShell);
|
gfxPlatform::AsyncPanZoomEnabled() &&
|
||||||
|
nsLayoutUtils::HasDocumentLevelListenersForApzAwareEvents(
|
||||||
|
presShell);
|
||||||
|
|
||||||
|
aBuilder->SetAncestorHasApzAwareEventHandler(
|
||||||
|
hasDocumentLevelListenersForApzAwareEvents);
|
||||||
|
}
|
||||||
|
|
||||||
aBuilder->SetAncestorHasApzAwareEventHandler(
|
|
||||||
hasDocumentLevelListenersForApzAwareEvents);
|
|
||||||
subdocRootFrame->BuildDisplayListForStackingContext(aBuilder,
|
subdocRootFrame->BuildDisplayListForStackingContext(aBuilder,
|
||||||
&childItems);
|
&childItems);
|
||||||
if (!aBuilder->IsForEventDelivery()) {
|
if (!aBuilder->IsForEventDelivery()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user