Bug 1178060 - Ensure that if there is a document-level apz-aware event listener on a subdocument, we build the nsDisplaySubdocument item to hold that information. r=tn

This commit is contained in:
Kartikaya Gupta 2015-06-30 06:43:07 -04:00
Родитель 0fd5c563da
Коммит 26766c4f1e
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -466,6 +466,11 @@ nsSubDocumentFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
{
needsOwnLayer = true;
}
if (!needsOwnLayer && aBuilder->IsBuildingLayerEventRegions() &&
nsLayoutUtils::HasDocumentLevelListenersForApzAwareEvents(presShell))
{
needsOwnLayer = true;
}
nsDisplayList childItems;