0

PDF Viewer: Update selection when the plugin size changes.

If the plugin size changes, e.g. when toggling the side tab, and there
is a selection, then the selection should be redrawn as well.

Change-Id: I9ac7991599e585b0ba9a480ec1c9ebf515b8591a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2898782
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#883314}
This commit is contained in:
Lei Zhang
2021-05-16 06:06:09 +00:00
committed by Chromium LUCI CQ
parent d35bffa377
commit de9a7a2e6e

@ -585,6 +585,7 @@ void PDFiumEngine::PluginSizeUpdated(const gfx::Size& size) {
plugin_size_ = size;
CalculateVisiblePages();
OnSelectionPositionChanged();
}
void PDFiumEngine::ScrolledToXPosition(int position) {