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

Side by Side Diff: Source/core/rendering/RenderCounter.cpp

Issue 197283025: Use new is*Element() helper functions more in rendering code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderButton.cpp ('k') | Source/core/rendering/RenderDetailsMarker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderButton.cpp ('k') | Source/core/rendering/RenderDetailsMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698