
NodeIndex() is O(n) and the difference is measurable if a single node has many siblings, like in a paragraph with a lot of explicit line breaks. Bug: 921789 Change-Id: I0540105cb2947efffda6958797d16cbcfaa2c583 Reviewed-on: https://chromium-review.googlesource.com/c/1410175 Reviewed-by: Alice Boxhall <aboxhall@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#623289}