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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 if (toRenderListItem(object).hasExplicitValue()) { | 141 if (toRenderListItem(object).hasExplicitValue()) { |
142 value = toRenderListItem(object).explicitValue(); | 142 value = toRenderListItem(object).explicitValue(); |
143 isReset = true; | 143 isReset = true; |
144 return true; | 144 return true; |
145 } | 145 } |
146 value = 1; | 146 value = 1; |
147 isReset = false; | 147 isReset = false; |
148 return true; | 148 return true; |
149 } | 149 } |
150 if (Node* e = object.node()) { | 150 if (Node* e = object.node()) { |
151 if (e->hasTagName(olTag)) { | 151 if (isHTMLOListElement(*e)) { |
152 value = toHTMLOListElement(e)->start(); | 152 value = toHTMLOListElement(e)->start(); |
153 isReset = true; | 153 isReset = true; |
154 return true; | 154 return true; |
155 } | 155 } |
156 if (e->hasTagName(ulTag) || e->hasTagName(menuTag) || e->hasTagName(
dirTag)) { | 156 if (isHTMLUListElement(*e) || isHTMLMenuElement(*e) || isHTMLDirecto
ryElement(*e)) { |
157 value = 0; | 157 value = 0; |
158 isReset = true; | 158 isReset = true; |
159 return true; | 159 return true; |
160 } | 160 } |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 return false; | 164 return false; |
165 } | 165 } |
166 | 166 |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 fprintf(stderr, " "); | 609 fprintf(stderr, " "); |
610 fprintf(stderr, "%p N:%p P:%p PS:%p NS:%p C:%p\n", | 610 fprintf(stderr, "%p N:%p P:%p PS:%p NS:%p C:%p\n", |
611 current, current->node(), current->parent(), current->previousSiblin
g(), | 611 current, current->node(), current->parent(), current->previousSiblin
g(), |
612 current->nextSibling(), current->hasCounterNodeMap() ? | 612 current->nextSibling(), current->hasCounterNodeMap() ? |
613 counterName ? WebCore::counterMaps().get(current)->get(identifier) :
(WebCore::CounterNode*)1 : (WebCore::CounterNode*)0); | 613 counterName ? WebCore::counterMaps().get(current)->get(identifier) :
(WebCore::CounterNode*)1 : (WebCore::CounterNode*)0); |
614 } | 614 } |
615 fflush(stderr); | 615 fflush(stderr); |
616 } | 616 } |
617 | 617 |
618 #endif // NDEBUG | 618 #endif // NDEBUG |
OLD | NEW |