Introduce Replacement class in find_in_page.js to do DOM operations for
highlighting search results in a better way. This CL introduces the Replacement class into find_in_page.js to support better DOM operations for highlighting search results. This will fix the bug that whitespaces are reduced when users search for a single whitespace and cancel the search. This CL is also a necessary preliminary work for supporting searching across multiple HTML nodes. Bug: 228585, 895839 Change-Id: I960a012daef93824039ff22b824f70dcc6d1e3b7 Reviewed-on: https://chromium-review.googlesource.com/c/1341918Reviewed-by:Eric Noyau <noyau@chromium.org> Reviewed-by:
Justin Cohen <justincohen@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Commit-Queue: Yi Su <mrsuyi@chromium.org> Cr-Commit-Position: refs/heads/master@{#610085}
Showing
Please register or sign in to comment