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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerStackingNodeIterator.cpp

Issue 1798263002: Rename isTreatedAsOrStackingContext to isStacked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile Created 4 years, 9 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Vector<PaintLayerStackingNode*>* negZOrderList = m_root.negZOrderList(); 51 Vector<PaintLayerStackingNode*>* negZOrderList = m_root.negZOrderList();
52 if (negZOrderList && m_index < negZOrderList->size()) 52 if (negZOrderList && m_index < negZOrderList->size())
53 return negZOrderList->at(m_index++); 53 return negZOrderList->at(m_index++);
54 54
55 m_index = 0; 55 m_index = 0;
56 m_remainingChildren &= ~NegativeZOrderChildren; 56 m_remainingChildren &= ~NegativeZOrderChildren;
57 } 57 }
58 58
59 if (m_remainingChildren & NormalFlowChildren) { 59 if (m_remainingChildren & NormalFlowChildren) {
60 for (; m_currentNormalFlowChild; m_currentNormalFlowChild = m_currentNor malFlowChild->nextSibling()) { 60 for (; m_currentNormalFlowChild; m_currentNormalFlowChild = m_currentNor malFlowChild->nextSibling()) {
61 if (!m_currentNormalFlowChild->stackingNode()->isTreatedAsOrStacking Context() && !m_currentNormalFlowChild->isReflection()) { 61 if (!m_currentNormalFlowChild->stackingNode()->isStacked() && !m_cur rentNormalFlowChild->isReflection()) {
62 PaintLayer* normalFlowChild = m_currentNormalFlowChild; 62 PaintLayer* normalFlowChild = m_currentNormalFlowChild;
63 m_currentNormalFlowChild = m_currentNormalFlowChild->nextSibling (); 63 m_currentNormalFlowChild = m_currentNormalFlowChild->nextSibling ();
64 return normalFlowChild->stackingNode(); 64 return normalFlowChild->stackingNode();
65 } 65 }
66 } 66 }
67 67
68 // We reset the iterator in case we reuse it. 68 // We reset the iterator in case we reuse it.
69 m_currentNormalFlowChild = m_root.layer()->firstChild(); 69 m_currentNormalFlowChild = m_root.layer()->firstChild();
70 m_remainingChildren &= ~NormalFlowChildren; 70 m_remainingChildren &= ~NormalFlowChildren;
71 } 71 }
(...skipping 16 matching lines...) Expand all
88 Vector<PaintLayerStackingNode*>* negZOrderList = m_root.negZOrderList(); 88 Vector<PaintLayerStackingNode*>* negZOrderList = m_root.negZOrderList();
89 if (negZOrderList && m_index >= 0) 89 if (negZOrderList && m_index >= 0)
90 return negZOrderList->at(m_index--); 90 return negZOrderList->at(m_index--);
91 91
92 m_remainingChildren &= ~NegativeZOrderChildren; 92 m_remainingChildren &= ~NegativeZOrderChildren;
93 setIndexToLastItem(); 93 setIndexToLastItem();
94 } 94 }
95 95
96 if (m_remainingChildren & NormalFlowChildren) { 96 if (m_remainingChildren & NormalFlowChildren) {
97 for (; m_currentNormalFlowChild; m_currentNormalFlowChild = m_currentNor malFlowChild->previousSibling()) { 97 for (; m_currentNormalFlowChild; m_currentNormalFlowChild = m_currentNor malFlowChild->previousSibling()) {
98 if (!m_currentNormalFlowChild->stackingNode()->isTreatedAsOrStacking Context() && !m_currentNormalFlowChild->isReflection()) { 98 if (!m_currentNormalFlowChild->stackingNode()->isStacked() && !m_cur rentNormalFlowChild->isReflection()) {
99 PaintLayer* normalFlowChild = m_currentNormalFlowChild; 99 PaintLayer* normalFlowChild = m_currentNormalFlowChild;
100 m_currentNormalFlowChild = m_currentNormalFlowChild->previousSib ling(); 100 m_currentNormalFlowChild = m_currentNormalFlowChild->previousSib ling();
101 return normalFlowChild->stackingNode(); 101 return normalFlowChild->stackingNode();
102 } 102 }
103 } 103 }
104 104
105 m_remainingChildren &= ~NormalFlowChildren; 105 m_remainingChildren &= ~NormalFlowChildren;
106 setIndexToLastItem(); 106 setIndexToLastItem();
107 } 107 }
108 108
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 m_remainingChildren &= ~PositiveZOrderChildren; 145 m_remainingChildren &= ~PositiveZOrderChildren;
146 } 146 }
147 147
148 // No more list to visit. 148 // No more list to visit.
149 ASSERT(!m_remainingChildren); 149 ASSERT(!m_remainingChildren);
150 m_index = -1; 150 m_index = -1;
151 } 151 }
152 152
153 } // namespace blink 153 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp ('k') | third_party/WebKit/Source/core/paint/PaintPhase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698