Lines Matching refs:counter
112 // - Finds the insertion point for the counter described by counterOwner, isReset and
115 // - The function returns true if the counter whose insertion point is searched is NOT
117 // - The root of the tree is a counter reference that is not in the scope of any other
118 // counter with the same identifier.
119 // - All the counter references with the same identifier as this one that are in
123 // - A subtree rooted at any reset node in the tree is equivalent to all counter
124 // references that are in the scope of the counter or nested counter defined by that
131 // check this renderer, because it may affect the positioning in the tree of our counter.
133 // We check renderers in preOrder from the renderer that our counter is attached to
139 // A sibling without a parent means that the counter node tree was not constructed correctly so we stop
141 // render tree at counter node creation. See bug 43812.
148 // We have a suitable counter on the EndSearchRenderer.
149 if (previousSibling) { // But we already found another counter that we come after.
151 // We found a reset counter that is on a renderer that is a sibling of ours or a parent.
153 // We are also a reset counter and the previous reset was on a sibling renderer
154 // hence we are the next sibling of that counter if that reset is not a root or
161 // hence we must be a child of that reset counter.
166 // CurrentCounter, the counter at the EndSearchRenderer, is not reset.
168 // If the node we are placing is not reset or we have found a counter that is attached
169 // to an ancestor of the placed counter's renderer we know we are a sibling of that node.
177 // previousSibling, and when we are a sibling of the end counter we must set previousSibling
197 // good counter, or we are a reset node and the counter on the previous sibling
198 // of our renderer was not a reset counter.
203 // counter being placed is attached to.
205 // We found a suitable counter.
207 // Since we had a suitable previous counter before, we should only consider this one as our
208 // previousSibling if it is a reset counter and hence the current previousSibling is its child.
212 // as counters they may have attached cannot be the previous sibling of the counter we are placing.
264 // Checking if some nodes that were previously counter tree root nodes
288 RenderCounter::RenderCounter(Document* node, const CounterContent& counter)
290 , m_counter(counter)
399 // a style change for the renderer involving removal of all counter
406 // RenderCounter::destroyCounterNodes() handles destruction of the counter