Bug 1450360 - Reland chunk that got accidentally removed during a branch merge. r=mattwoodrow

MozReview-Commit-ID: 7gVvlsNcJnn

--HG--
extra : rebase_source : 3431ceb7ac784b378c7723b4d4f38a5770ee3f9c
This commit is contained in:
Matt Woodrow 2018-04-04 11:30:35 +12:00
parent 9048f2f6cb
commit 3cd23bdc29

View File

@ -993,7 +993,15 @@ RetainedDisplayListBuilder::AttemptPartialUpdate(
// Do not allow partial builds if the retained display list is empty, or if
// ShouldBuildPartial heuristic fails.
const bool shouldBuildPartial = !mList.IsEmpty() && ShouldBuildPartial(modifiedFrames.Frames());
bool shouldBuildPartial = !mList.IsEmpty() && ShouldBuildPartial(modifiedFrames.Frames());
// We don't support retaining with overlay scrollbars, since they require
// us to look at the display list and pick the highest z-index, which
// we can't do during partial building.
if (mBuilder.BuiltOverlayScrollbars()) {
shouldBuildPartial = false;
mBuilder.SetBuiltOverlayScrollbars(false);
}
if (mPreviousCaret != mBuilder.GetCaretFrame()) {
if (mPreviousCaret) {