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

Unified Diff: ui/accessibility/tree_generator.cc

Issue 2860883003: A11y: Add/refactor methods for manipulating bitfields on AXNodeData. (Closed)
Patch Set: Delete AXNodeData::Init() and clear bitfields in AXNodeData() instead. Created 3 years, 7 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: ui/accessibility/tree_generator.cc
diff --git a/ui/accessibility/tree_generator.cc b/ui/accessibility/tree_generator.cc
index 480a040e921a4ef3eb121208ec865eda6d3af727..faebbfb94271f28b34c88fb68f9a56aee88bc3d2 100644
--- a/ui/accessibility/tree_generator.cc
+++ b/ui/accessibility/tree_generator.cc
@@ -88,18 +88,15 @@ void TreeGenerator::BuildUniqueTreeWithSize(
update.root_id = permuted[0];
update.nodes.resize(node_count);
update.nodes[0].id = permuted[0];
- update.nodes[0].state = AX_STATE_NONE;
if (node_count > 1) {
update.nodes[0].child_ids.push_back(permuted[1]);
update.nodes[1].id = permuted[1];
- update.nodes[1].state = AX_STATE_NONE;
}
// The remaining nodes are assigned based on their parent
// selected from the next bits from |tree_index|.
for (int i = 2; i < node_count; ++i) {
update.nodes[i].id = permuted[i];
- update.nodes[i].state = AX_STATE_NONE;
int parent_index = (tree_index % i);
tree_index /= i;
update.nodes[parent_index].child_ids.push_back(permuted[i]);

Powered by Google App Engine
This is Rietveld 408576698