Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h

Issue 1188363002: Compute the normal flow list on the fly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix reverse iterator (OOPS). Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
diff --git a/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h b/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
index 0ffc7f9e4a177bff07f4f522d13ca9f34adfaadd..1523ef847563216f16f87447dc18214b6341c2e1 100644
--- a/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
+++ b/Source/core/paint/DeprecatedPaintLayerStackingNodeIterator.h
@@ -43,18 +43,14 @@ enum ChildrenIteration {
};
class DeprecatedPaintLayerStackingNode;
+class DeprecatedPaintLayer;
// This iterator walks the DeprecatedPaintLayerStackingNode lists in the following order:
// NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren.
class DeprecatedPaintLayerStackingNodeIterator {
WTF_MAKE_NONCOPYABLE(DeprecatedPaintLayerStackingNodeIterator);
public:
- DeprecatedPaintLayerStackingNodeIterator(const DeprecatedPaintLayerStackingNode& root, unsigned whichChildren)
- : m_root(root)
- , m_remainingChildren(whichChildren)
- , m_index(0)
- {
- }
+ DeprecatedPaintLayerStackingNodeIterator(const DeprecatedPaintLayerStackingNode& root, unsigned whichChildren);
DeprecatedPaintLayerStackingNode* next();
@@ -62,6 +58,7 @@ private:
const DeprecatedPaintLayerStackingNode& m_root;
unsigned m_remainingChildren;
unsigned m_index;
+ DeprecatedPaintLayer* m_normalFlowCurrent;
};
// This iterator is similar to DeprecatedPaintLayerStackingNodeIterator but it walks the lists in reverse order
@@ -84,6 +81,7 @@ private:
const DeprecatedPaintLayerStackingNode& m_root;
unsigned m_remainingChildren;
int m_index;
+ DeprecatedPaintLayer* m_normalFlowCurrent;
Julien - ping for review 2015/06/24 16:51:57 Renamed this variable too as Dan pointed out the n
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698