summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-04-18 14:47:04 +0200
committerMoonchild <moonchild@palemoon.org>2022-04-18 14:47:04 +0200
commit145947d86b7d8072b4b12a955e642e21873dd212 (patch)
tree47205b4162fd429d90248ea70fea018674c272cc /layout
parentc2b4aa8cf2374d6178be94199e6e9def21bad51a (diff)
downloaduxp-145947d86b7d8072b4b12a955e642e21873dd212.tar.gz
Issue #1860 - Follow-up: Fix indentation.
Diffstat (limited to 'layout')
-rw-r--r--layout/base/FrameLayerBuilder.cpp16
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()) {