diff options
Diffstat (limited to 'layout')
-rw-r--r-- | layout/base/FrameLayerBuilder.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index ff4661e1c8..993572cf3a 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -5581,20 +5581,20 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder, // Restore DisplayItemData auto iter = data->mDisplayItems.begin(); - while (iter != data->mDisplayItems.end()) { - DisplayItemData* did = iter->get(); + while (iter != data->mDisplayItems.end()) { + DisplayItemData* did = iter->get(); if (did->mUsed && did->mContainerLayerGeneration >= mContainerLayerGeneration) { if (iter != data->mDisplayItems.end() - 1) { - std::iter_swap(iter, data->mDisplayItems.end() - 1); - data->mDisplayItems.pop_back(); + std::iter_swap(iter, data->mDisplayItems.end() - 1); + data->mDisplayItems.pop_back(); } else { - data->mDisplayItems.pop_back(); - break; + data->mDisplayItems.pop_back(); + break; } - } else { + } else { iter++; - } } + } // Restore PaintedLayerItemEntries for (auto iter = mPaintedLayerItems.Iter(); !iter.Done(); iter.Next()) { |