Commit 274e9f70 authored by Alexander Surkov's avatar Alexander Surkov Committed by Commit Bot

ax_dump_tree: NULL value of AXSubrole is prefixed by const_

Bug: 1124366
Change-Id: I2ab34d8aeee10e7598fd0eb05ce9cb294e835d4d
AX-Relnotes: n/a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2412452Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: Alexander Surkov <asurkov@igalia.com>
Cr-Commit-Position: refs/heads/master@{#808830}
parent c1dbfd39
...@@ -444,9 +444,14 @@ std::string AccessibilityTreeFormatterMac::ProcessTreeForOutput( ...@@ -444,9 +444,14 @@ std::string AccessibilityTreeFormatterMac::ProcessTreeForOutput(
std::string subrole_attr = SysNSStringToUTF8(NSAccessibilitySubroleAttribute); std::string subrole_attr = SysNSStringToUTF8(NSAccessibilitySubroleAttribute);
value = dict.FindStringPath(subrole_attr); value = dict.FindStringPath(subrole_attr);
if (value) { if (value) {
WriteAttribute(false, if (*value == kNULLValue) {
StringPrintf("%s=%s", subrole_attr.c_str(), value->c_str()), WriteAttribute(false, StringPrintf("%s=NULL", subrole_attr.c_str()),
&line); &line);
} else {
WriteAttribute(
false, StringPrintf("%s=%s", subrole_attr.c_str(), value->c_str()),
&line);
}
} }
// Expose all other attributes. // Expose all other attributes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment