Index: content/common/ax_content_node_data.cc |
diff --git a/content/common/ax_content_node_data.cc b/content/common/ax_content_node_data.cc |
index 677503c2285697231b0ef1c07713ba0adb86c087..0c7359a93cb0bda72cf7bfdccd76dea8a6e536db 100644 |
--- a/content/common/ax_content_node_data.cc |
+++ b/content/common/ax_content_node_data.cc |
@@ -69,12 +69,6 @@ std::string AXContentNodeData::ToString() const { |
for (auto iter : content_int_attributes) { |
std::string value = IntToString(iter.second); |
switch (iter.first) { |
- case AX_CONTENT_ATTR_ROUTING_ID: |
- result += " routing_id=" + value; |
- break; |
- case AX_CONTENT_ATTR_PARENT_ROUTING_ID: |
- result += " parent_routing_id=" + value; |
- break; |
case AX_CONTENT_ATTR_CHILD_ROUTING_ID: |
result += " child_routing_id=" + value; |
break; |
@@ -90,4 +84,23 @@ std::string AXContentNodeData::ToString() const { |
return result; |
} |
+AXContentTreeData::AXContentTreeData() |
+ : routing_id(-1), |
+ parent_routing_id(-1) { |
+} |
+ |
+AXContentTreeData::~AXContentTreeData() { |
+} |
+ |
+std::string AXContentTreeData::ToString() const { |
+ std::string result = AXTreeData::ToString(); |
+ |
+ if (routing_id != -1) |
+ result += " routing_id=" + IntToString(routing_id); |
+ if (parent_routing_id != -1) |
+ result += " parent_routing_id=" + IntToString(parent_routing_id); |
+ |
+ return result; |
+} |
+ |
} // namespace ui |