DescriptionDon't report single find match after all matches have already been reported.
There is a place in RenderFrameImpl::OnFind where after one find match is found, it reports that single match just to indicate that there is at least one match in the frame. This is useful when searching the frame for the first time, but pretty meaningless during a "find next" request since the whole frame will have already been searched and all of the matches reported beforehand. It's also detrimental since it will temporarily lower the global match count and then have to recalculate various things when it goes back up.
This patch prevents this single match reply during "find next" requests.
BUG=457440
Committed: https://crrev.com/8d7aa843119033dc876d3017931d0272d048b20e
Cr-Commit-Position: refs/heads/master@{#406008}
Patch Set 1 #
Messages
Total messages: 16 (7 generated)
|