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

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

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/accessibility/AXListBoxOption.cpp ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index afaf45881c8d6ded3b4a2ab1107437609ed9e598..42807ddaccdd138387f4752dc4abc05d5604ea57 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -290,6 +290,9 @@ static PassRefPtr<AXObject> createFromRenderer(RenderObject* renderer)
if (node && node->isMediaControlElement())
return AccessibilityMediaControl::create(renderer);
+ if (isHTMLOptionElement(node))
+ return AXListBoxOption::create(renderer);
+
if (renderer->isSVGRoot())
return AXSVGRoot::create(renderer);
@@ -460,9 +463,6 @@ AXObject* AXObjectCache::getOrCreate(AccessibilityRole role)
// will be filled in...
switch (role) {
- case ListBoxOptionRole:
- obj = AXListBoxOption::create();
- break;
case ImageMapLinkRole:
obj = AXImageMapLink::create();
break;
« no previous file with comments | « Source/core/accessibility/AXListBoxOption.cpp ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698