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

Side by Side Diff: sky/engine/core/rendering/RenderLayerStackingNodeIterator.h

Issue 873983007: Remove negative z-index. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODEITERATOR_H_ 31 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODEITERATOR_H_
32 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODEITERATOR_H_ 32 #define SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODEITERATOR_H_
33 33
34 #include "sky/engine/wtf/Noncopyable.h" 34 #include "sky/engine/wtf/Noncopyable.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 enum ChildrenIteration { 38 enum ChildrenIteration {
39 NegativeZOrderChildren = 1, 39 NormalFlowChildren = 1,
40 NormalFlowChildren = 1 << 1, 40 PositiveZOrderChildren = 1 << 1,
41 PositiveZOrderChildren = 1 << 2, 41 AllChildren = NormalFlowChildren | PositiveZOrderChildren
42 AllChildren = NegativeZOrderChildren | NormalFlowChildren | PositiveZOrderCh ildren
43 }; 42 };
44 43
45 class RenderLayerStackingNode; 44 class RenderLayerStackingNode;
46 45
47 // This iterator walks the RenderLayerStackingNode lists in the following order: 46 // This iterator walks the RenderLayerStackingNode lists in the following order:
48 // NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren. 47 // NormalFlowChildren -> PositiveZOrderChildren.
49 class RenderLayerStackingNodeIterator { 48 class RenderLayerStackingNodeIterator {
50 WTF_MAKE_NONCOPYABLE(RenderLayerStackingNodeIterator); 49 WTF_MAKE_NONCOPYABLE(RenderLayerStackingNodeIterator);
51 public: 50 public:
52 RenderLayerStackingNodeIterator(const RenderLayerStackingNode& root, unsigne d whichChildren) 51 RenderLayerStackingNodeIterator(const RenderLayerStackingNode& root, unsigne d whichChildren)
53 : m_root(root) 52 : m_root(root)
54 , m_remainingChildren(whichChildren) 53 , m_remainingChildren(whichChildren)
55 , m_index(0) 54 , m_index(0)
56 { 55 {
57 } 56 }
58 57
(...skipping 23 matching lines...) Expand all
82 void setIndexToLastItem(); 81 void setIndexToLastItem();
83 82
84 const RenderLayerStackingNode& m_root; 83 const RenderLayerStackingNode& m_root;
85 unsigned m_remainingChildren; 84 unsigned m_remainingChildren;
86 int m_index; 85 int m_index;
87 }; 86 };
88 87
89 } // namespace blink 88 } // namespace blink
90 89
91 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODEITERATOR_H_ 90 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYERSTACKINGNODEITERATOR_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerStackingNode.cpp ('k') | sky/engine/core/rendering/RenderLayerStackingNodeIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698