Use floats for image slices in NinePieceImageGrid
When we get fractional slice values, either directly or by zooming, the source rectangles can end up shifting and distorting the result when the <image> is not a raster image. Compute, and store, Edge::slice as float rather than int to preserve the fractional component of a slice, letting the lower level rendering primitives handle it. Bug: 596075, 1134145 Change-Id: I0669d0af9131c7937b984e47adf00a37991fcefa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584805Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#836183}
Showing
Please register or sign in to comment