forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PDF Viewer - Search results don't work after rotating pdf
Currently search results are cleared when user rotates pdf document. As a result, the forward/backward buttons in find bar do not work if user rotates pdf document after finding some text in the document. This happens because |find_results_| is cleared in the method InvalidateAllPages(), which is called after rotation. This patch introduces a new method to restore find results state after invalidate operation is done. New find operation is done to ensure rects are correctly identified for search results and correct region is highlighted on pressing forward/backward buttons in find bar. BUG=389782 Review URL: https://codereview.chromium.org/555803002 Cr-Commit-Position: refs/heads/master@{#298083}
- Loading branch information
n.bansal
authored and
Commit bot
committed
Oct 3, 2014
1 parent
e343b54
commit 3a8252c
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters