mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
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:
parent
9048f2f6cb
commit
3cd23bdc29
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user