Bug 1761995 - Skip content-visibility: hidden content in display lists r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D142341
This commit is contained in:
Martin Robinson
2022-04-05 09:10:42 +00:00
parent 3b6457c94b
commit ca0375e365
44 changed files with 162 additions and 73 deletions

View File

@@ -351,6 +351,10 @@ void nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
return;
}
if (IsContentHidden()) {
return;
}
// If we're passing pointer events to children then we have to descend into
// subdocuments no matter what, to determine which parts are transparent for
// hit-testing or event regions.