[Multipaste] Calculate scaling ratio depending on the image type
This CL implements a new feature of the multipaste menu: (1) If the image to show is a bitmap image, scale the image up to fill the contents area. For example, the size of the contents area is 128x66 while the image's size is 64x22. After scaling up, the image's size becomes 192x66. (2) If the image to show is rendered from HTML, scale the image up until its size matches one edge of the contents area. Use the same example. After scaling up, the image's size becomes 128x44. Bug: 1139498 Change-Id: I982a17125a1b67669e7d528403010605f4a34d23 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2506669Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Reviewed-by:
David Black <dmblack@google.com> Commit-Queue: Andrew Xu <andrewxu@chromium.org> Cr-Commit-Position: refs/heads/master@{#822828}
Showing
Please register or sign in to comment