Bug 1512244 - Part 8: Use common path in more cases r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D13837

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Miko Mynttinen 2019-01-04 18:33:15 +00:00
Родитель 234fe21fd4
Коммит 91278a0c3b
1 изменённых файлов: 3 добавлений и 5 удалений

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

@ -3676,11 +3676,9 @@ void nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
child->MarkAbsoluteFramesForDisplayList(aBuilder);
const bool differentAGR =
buildingForChild.IsAnimatedGeometryRoot() || isPositioned;
const bool differentAGR = buildingForChild.IsAnimatedGeometryRoot();
if (!awayFromCommonPath && !differentAGR &&
!buildingForChild.MaybeAnimatedGeometryRoot()) {
if (!awayFromCommonPath) {
// The shortcut is available for the child for next time.
child->AddStateBits(NS_FRAME_SIMPLE_DISPLAYLIST);
}
@ -3711,7 +3709,7 @@ void nsIFrame::BuildDisplayListForChild(nsDisplayListBuilder* aBuilder,
nsDisplayListCollection pseudoStack(aBuilder);
aBuilder->BuildCompositorHitTestInfoIfNeeded(
child, pseudoStack.BorderBackground(), differentAGR);
child, pseudoStack.BorderBackground(), differentAGR || isPositioned);
aBuilder->AdjustWindowDraggingRegion(child);
nsDisplayListBuilder::AutoContainerASRTracker contASRTracker(aBuilder);