Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 625178b

Browse files
Clarify comment
1 parent d5527dd commit 625178b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

third_party/accessibility/ax/ax_position.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,6 +1950,8 @@ class AXPosition {
19501950
parent_affinity = ax::mojom::TextAffinity::kDownstream;
19511951
}
19521952

1953+
// This dummy position serves to retrieve the max text offset of the
1954+
// anchor-node in which we want to create the parent position.
19531955
AXPositionInstance dummy_position =
19541956
CreateTextPosition(tree_id, parent_id, 0, parent_affinity);
19551957
max_text_offset_in_parent = dummy_position->MaxTextOffset();

0 commit comments

Comments
 (0)