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

Unified Diff: Source/core/accessibility/AXListBox.cpp

Issue 192413002: Use new is*Element() helper functions in accessibility 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
Index: Source/core/accessibility/AXListBox.cpp
diff --git a/Source/core/accessibility/AXListBox.cpp b/Source/core/accessibility/AXListBox.cpp
index 444c3047fe0b10f4830c135728d70d79f13a0796..d306616316c55295841118ba1065f0a3a96692dc 100644
--- a/Source/core/accessibility/AXListBox.cpp
+++ b/Source/core/accessibility/AXListBox.cpp
@@ -126,7 +126,7 @@ void AXListBox::selectedChildren(AccessibilityChildrenVector& result)
AXObject* AXListBox::listBoxOptionAXObject(HTMLElement* element) const
{
// skip hr elements
- if (!element || element->hasTagName(hrTag))
+ if (!element || isHTMLHRElement(*element))
return 0;
AXObject* listBoxObject = m_renderer->document().axObjectCache()->getOrCreate(ListBoxOptionRole);

Powered by Google App Engine
This is Rietveld 408576698