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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 2390783006: [DevTools] Accessibility: Show siblings and children of selected node (Closed)
Patch Set: Ready for a first look Created 4 years, 2 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: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
index dfff8fc9842bb39f3eb8c8d20a5e0bf0ceb06eb2..8ef1fd57e2ed92cea0defee76dc340258bd4f807 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
@@ -351,11 +351,13 @@ AXObject* AXObjectCacheImpl::getOrCreate(Node* node) {
// If the node has a layout object, prefer using that as the primary key for
// the AXObject, with the exception of an HTMLAreaElement, which is created
// based on its node.
- if (node->layoutObject() && !isHTMLAreaElement(node))
+ if (node->layoutObject() && !isHTMLAreaElement(node)) {
return getOrCreate(node->layoutObject());
+ }
- if (!node->parentElement())
+ if (!node->parentElement()) {
return 0;
+ }
if (isHTMLHeadElement(node))
return 0;

Powered by Google App Engine
This is Rietveld 408576698