• paulmeyer's avatar
    Don't report single find match after all matches have already been reported. · 8d7aa843
    paulmeyer authored
    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
    
    Review-Url: https://codereview.chromium.org/2122263004
    Cr-Commit-Position: refs/heads/master@{#406008}
    8d7aa843
render_frame_impl.cc 247 KB