Bug 1500864 - Don't record a display list mutation based on the partial build rect, rely on comparisons during merging. r=mstange

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matt Woodrow 2018-12-16 23:34:20 +00:00
Родитель 7204b38327
Коммит f0ee7a9279
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -1263,11 +1263,6 @@ auto RetainedDisplayListBuilder::AttemptPartialUpdate(
modifiedDirty,
mBuilder.RootReferenceFrame()->GetVisualOverflowRectRelativeToSelf());
PartialUpdateResult result = PartialUpdateResult::NoChange;
if (!modifiedDirty.IsEmpty() || !framesWithProps.IsEmpty()) {
result = PartialUpdateResult::Updated;
}
mBuilder.SetDirtyRect(modifiedDirty);
mBuilder.SetPartialUpdate(true);
@ -1309,6 +1304,7 @@ auto RetainedDisplayListBuilder::AttemptPartialUpdate(
// we call RestoreState on nsDisplayWrapList it resets the clip to the base
// clip, and we need the UpdateBounds call (within MergeDisplayLists) to
// move it to the correct inner clip.
PartialUpdateResult result = PartialUpdateResult::NoChange;
Maybe<const ActiveScrolledRoot*> dummy;
if (MergeDisplayLists(&modifiedDL, &mList, &mList, dummy)) {
result = PartialUpdateResult::Updated;