Index: Source/core/rendering/RenderDetailsMarker.cpp |
diff --git a/Source/core/rendering/RenderDetailsMarker.cpp b/Source/core/rendering/RenderDetailsMarker.cpp |
index d5fac0ab3f50741db484d428b8c8cd2dd17d4ce8..d6717f30e2337b097f23d2cd619cca87c5956535 100644 |
--- a/Source/core/rendering/RenderDetailsMarker.cpp |
+++ b/Source/core/rendering/RenderDetailsMarker.cpp |
@@ -23,6 +23,7 @@ |
#include "HTMLNames.h" |
#include "core/dom/Element.h" |
+#include "core/html/HTMLElement.h" |
#include "core/rendering/PaintInfo.h" |
#include "platform/graphics/GraphicsContext.h" |
@@ -141,9 +142,9 @@ bool RenderDetailsMarker::isOpen() const |
for (RenderObject* renderer = parent(); renderer; renderer = renderer->parent()) { |
if (!renderer->node()) |
continue; |
- if (renderer->node()->hasTagName(detailsTag)) |
+ if (isHTMLDetailsElement(*renderer->node())) |
return !toElement(renderer->node())->getAttribute(openAttr).isNull(); |
- if (renderer->node()->hasTagName(inputTag)) |
+ if (isHTMLInputElement(*renderer->node())) |
return true; |
} |