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

Unified Diff: Source/core/rendering/RenderDetailsMarker.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderCounter.cpp ('k') | Source/core/rendering/RenderFieldset.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « Source/core/rendering/RenderCounter.cpp ('k') | Source/core/rendering/RenderFieldset.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698