| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 2 * Copyright (C) 2004 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, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "wtf/StdLibExtras.h" | 34 #include "wtf/StdLibExtras.h" |
| 35 | 35 |
| 36 #ifndef NDEBUG | 36 #ifndef NDEBUG |
| 37 #include <stdio.h> | 37 #include <stdio.h> |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 using namespace HTMLNames; | 42 using namespace HTMLNames; |
| 43 | 43 |
| 44 typedef HashMap<AtomicString, RefPtr<CounterNode> > CounterMap; | 44 typedef HashMap<AtomicString, RefPtr<CounterNode>> CounterMap; |
| 45 typedef HashMap<const LayoutObject*, OwnPtr<CounterMap>> CounterMaps; | 45 typedef HashMap<const LayoutObject*, OwnPtr<CounterMap>> CounterMaps; |
| 46 | 46 |
| 47 static CounterNode* makeCounterNode(LayoutObject&, const AtomicString& identifie
r, bool alwaysCreateCounter); | 47 static CounterNode* makeCounterNode(LayoutObject&, const AtomicString& identifie
r, bool alwaysCreateCounter); |
| 48 | 48 |
| 49 static CounterMaps& counterMaps() | 49 static CounterMaps& counterMaps() |
| 50 { | 50 { |
| 51 DEFINE_STATIC_LOCAL(CounterMaps, staticCounterMaps, ()); | 51 DEFINE_STATIC_LOCAL(CounterMaps, staticCounterMaps, ()); |
| 52 return staticCounterMaps; | 52 return staticCounterMaps; |
| 53 } | 53 } |
| 54 | 54 |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 fprintf(stderr, " "); | 603 fprintf(stderr, " "); |
| 604 fprintf(stderr, "%p N:%p P:%p PS:%p NS:%p C:%p\n", | 604 fprintf(stderr, "%p N:%p P:%p PS:%p NS:%p C:%p\n", |
| 605 current, current->node(), current->parent(), current->previousSiblin
g(), | 605 current, current->node(), current->parent(), current->previousSiblin
g(), |
| 606 current->nextSibling(), current->hasCounterNodeMap() ? | 606 current->nextSibling(), current->hasCounterNodeMap() ? |
| 607 counterName ? blink::counterMaps().get(current)->get(identifier) : (
blink::CounterNode*)1 : (blink::CounterNode*)0); | 607 counterName ? blink::counterMaps().get(current)->get(identifier) : (
blink::CounterNode*)1 : (blink::CounterNode*)0); |
| 608 } | 608 } |
| 609 fflush(stderr); | 609 fflush(stderr); |
| 610 } | 610 } |
| 611 | 611 |
| 612 #endif // NDEBUG | 612 #endif // NDEBUG |
| OLD | NEW |