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

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

Issue 2468803002: [DevTools] migrate InspectorDOMAgent to new style (Closed)
Patch Set: addressed comments and rebased Created 4 years, 1 month 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/InspectorAccessibilityAgent.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp b/third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp
index 6b7ddcc722fb34ac001493c2a70b9aea0fc7bda3..0e5d71f0738b04a9bdf5c30dfaf17b824a125cc6 100644
--- a/third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/InspectorAccessibilityAgent.cpp
@@ -389,9 +389,12 @@ void InspectorAccessibilityAgent::getAXNodeChain(
*errorString = "DOM agent must be enabled";
return;
}
- Node* domNode = m_domAgent->assertNode(errorString, domNodeId);
- if (!domNode)
+ Node* domNode = nullptr;
+ Response response = m_domAgent->assertNode(domNodeId, domNode);
+ if (!response.isSuccess()) {
+ *errorString = response.errorMessage();
return;
+ }
Document& document = domNode->document();
document.updateStyleAndLayoutIgnorePendingStylesheets();
« no previous file with comments | « third_party/WebKit/Source/core/inspector/LayoutEditor.cpp ('k') | third_party/inspector_protocol/CodeGenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698