Reorganize member initialization code of TextIterator
This patch reorganizes the initialization of TextIterator for better code health. 1. Members originally initialized in the function body of TextIterator::ctor are changed to be initialized in the initialization list. Some wrapper functions are created for members with non-trivial initialization. - start_container_ - start_offset_ - end_container_ - end_offset_ - end_node_ - past_end_node_ - node_ - iteration_progress_ - shadow_depth_ 2. Members with trivial initialization are initialized in class declaration instead of ctor: - needs_another_new_line_ - needs_handle_replaced_element_ - should_stop_ - handle_shadow_root_ BUG=721957 TEST=n/a; no behavioral change Review-Url: https://codereview.chromium.org/2921483002 Cr-Commit-Position: refs/heads/master@{#476393}
Showing
Please register or sign in to comment