Index: Source/core/rendering/RenderCounter.cpp |
diff --git a/Source/core/rendering/RenderCounter.cpp b/Source/core/rendering/RenderCounter.cpp |
index 2d27bd08cebad85c11a68c909e93ea887db9bbb7..3f16dff83f7be1b96a179d5715387723411c491e 100644 |
--- a/Source/core/rendering/RenderCounter.cpp |
+++ b/Source/core/rendering/RenderCounter.cpp |
@@ -148,12 +148,12 @@ static bool planCounter(RenderObject& object, const AtomicString& identifier, bo |
return true; |
} |
if (Node* e = object.node()) { |
- if (e->hasTagName(olTag)) { |
+ if (isHTMLOListElement(*e)) { |
value = toHTMLOListElement(e)->start(); |
isReset = true; |
return true; |
} |
- if (e->hasTagName(ulTag) || e->hasTagName(menuTag) || e->hasTagName(dirTag)) { |
+ if (isHTMLUListElement(*e) || isHTMLMenuElement(*e) || isHTMLDirectoryElement(*e)) { |
value = 0; |
isReset = true; |
return true; |