From b4687fa515f53b242dd25d2f937be30a05d5ed18 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 15 May 2018 14:21:05 +1200 Subject: [PATCH] Bug 1460526 - Don't attempt to do a partial rebuild when a sublist DAG gets too complex, always rebuild the whole display list. r=miko MozReview-Commit-ID: 5u3sBSepgJa --HG-- extra : rebase_source : f08034d384cac0353017ff6dd6fe4f152d77d48d extra : source : 21ab7bb3b993f2b2778f9dde10ff16c3c20f320f --- layout/painting/RetainedDisplayListBuilder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/painting/RetainedDisplayListBuilder.cpp b/layout/painting/RetainedDisplayListBuilder.cpp index 2e6aaff78900..6f8b7794d04f 100644 --- a/layout/painting/RetainedDisplayListBuilder.cpp +++ b/layout/painting/RetainedDisplayListBuilder.cpp @@ -149,8 +149,7 @@ RetainedDisplayListBuilder::PreProcessDisplayList(RetainedDisplayList* aList, if (item->GetChildren()) { if (!PreProcessDisplayList(item->GetChildren(), SelectAGRForFrame(f, aAGR))) { - mBuilder.MarkFrameForDisplayIfVisible(f, mBuilder.RootReferenceFrame()); - mBuilder.MarkFrameModifiedDuringBuilding(f); + return false; } }