| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 2 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef CounterNode_h | 22 #ifndef CounterNode_h |
| 23 #define CounterNode_h | 23 #define CounterNode_h |
| 24 | 24 |
| 25 #include "wtf/Forward.h" | 25 #include "platform/wtf/Forward.h" |
| 26 #include "wtf/Noncopyable.h" | 26 #include "platform/wtf/Noncopyable.h" |
| 27 #include "wtf/RefCounted.h" | 27 #include "platform/wtf/RefCounted.h" |
| 28 | 28 |
| 29 // This implements a counter tree that is used for finding parents in counters() | 29 // This implements a counter tree that is used for finding parents in counters() |
| 30 // lookup, and for propagating count changes when nodes are added or removed. | 30 // lookup, and for propagating count changes when nodes are added or removed. |
| 31 | 31 |
| 32 // Parents represent unique counters and their scope, which are created either | 32 // Parents represent unique counters and their scope, which are created either |
| 33 // explicitly by "counter-reset" style rules or implicitly by referring to a | 33 // explicitly by "counter-reset" style rules or implicitly by referring to a |
| 34 // counter that is not in scope. | 34 // counter that is not in scope. |
| 35 // Such nodes are tagged as "reset" nodes, although they are not all due to | 35 // Such nodes are tagged as "reset" nodes, although they are not all due to |
| 36 // "counter-reset". | 36 // "counter-reset". |
| 37 | 37 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace blink | 102 } // namespace blink |
| 103 | 103 |
| 104 #ifndef NDEBUG | 104 #ifndef NDEBUG |
| 105 // Outside the WebCore namespace for ease of invocation from gdb. | 105 // Outside the WebCore namespace for ease of invocation from gdb. |
| 106 void showCounterTree(const blink::CounterNode*); | 106 void showCounterTree(const blink::CounterNode*); |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 #endif // CounterNode_h | 109 #endif // CounterNode_h |
| OLD | NEW |