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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.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/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index 6dbd59d04c465754686bfba017cc12c80bf81e43..310e5ba95c64657e2f88d276db23fb2511be344c 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -1887,8 +1887,9 @@ static Node* getParentNodeForComputeParent(Node* node) {
AXObject* AXNodeObject::computeParent() const {
ASSERT(!isDetached());
- if (Node* parentNode = getParentNodeForComputeParent(getNode()))
+ if (Node* parentNode = getParentNodeForComputeParent(getNode())) {
return axObjectCache().getOrCreate(parentNode);
+ }
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698