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

Unified Diff: Source/core/layout/LayerStackingNodeIterator.h

Issue 898783003: Move rendering/RenderLayer* to layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/LayerStackingNode.cpp ('k') | Source/core/layout/LayerStackingNodeIterator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayerStackingNodeIterator.h
diff --git a/Source/core/rendering/RenderLayerStackingNodeIterator.h b/Source/core/layout/LayerStackingNodeIterator.h
similarity index 72%
rename from Source/core/rendering/RenderLayerStackingNodeIterator.h
rename to Source/core/layout/LayerStackingNodeIterator.h
index 53963a52b7a7db564957c3c068e1077dc55cb8e0..9f7aeacdbb575efcaa61e1b4a3141fcf63772943 100644
--- a/Source/core/rendering/RenderLayerStackingNodeIterator.h
+++ b/Source/core/layout/LayerStackingNodeIterator.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RenderLayerStackingNodeIterator_h
-#define RenderLayerStackingNodeIterator_h
+#ifndef LayerStackingNodeIterator_h
+#define LayerStackingNodeIterator_h
#include "wtf/Noncopyable.h"
@@ -42,50 +42,50 @@ enum ChildrenIteration {
AllChildren = NegativeZOrderChildren | NormalFlowChildren | PositiveZOrderChildren
};
-class RenderLayerStackingNode;
+class LayerStackingNode;
-// This iterator walks the RenderLayerStackingNode lists in the following order:
+// This iterator walks the LayerStackingNode lists in the following order:
// NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren.
-class RenderLayerStackingNodeIterator {
- WTF_MAKE_NONCOPYABLE(RenderLayerStackingNodeIterator);
+class LayerStackingNodeIterator {
+ WTF_MAKE_NONCOPYABLE(LayerStackingNodeIterator);
public:
- RenderLayerStackingNodeIterator(const RenderLayerStackingNode& root, unsigned whichChildren)
+ LayerStackingNodeIterator(const LayerStackingNode& root, unsigned whichChildren)
: m_root(root)
, m_remainingChildren(whichChildren)
, m_index(0)
{
}
- RenderLayerStackingNode* next();
+ LayerStackingNode* next();
private:
- const RenderLayerStackingNode& m_root;
+ const LayerStackingNode& m_root;
unsigned m_remainingChildren;
unsigned m_index;
};
-// This iterator is similar to RenderLayerStackingNodeIterator but it walks the lists in reverse order
+// This iterator is similar to LayerStackingNodeIterator but it walks the lists in reverse order
// (from the last item to the first one).
-class RenderLayerStackingNodeReverseIterator {
- WTF_MAKE_NONCOPYABLE(RenderLayerStackingNodeReverseIterator);
+class LayerStackingNodeReverseIterator {
+ WTF_MAKE_NONCOPYABLE(LayerStackingNodeReverseIterator);
public:
- RenderLayerStackingNodeReverseIterator(const RenderLayerStackingNode& root, unsigned whichChildren)
+ LayerStackingNodeReverseIterator(const LayerStackingNode& root, unsigned whichChildren)
: m_root(root)
, m_remainingChildren(whichChildren)
{
setIndexToLastItem();
}
- RenderLayerStackingNode* next();
+ LayerStackingNode* next();
private:
void setIndexToLastItem();
- const RenderLayerStackingNode& m_root;
+ const LayerStackingNode& m_root;
unsigned m_remainingChildren;
int m_index;
};
} // namespace blink
-#endif // RenderLayerStackingNodeIterator_h
+#endif // LayerStackingNodeIterator_h
« no previous file with comments | « Source/core/layout/LayerStackingNode.cpp ('k') | Source/core/layout/LayerStackingNodeIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698