Skip to content

Commit

Permalink
Expand/ceil default object size in SVGImagePainter
Browse files Browse the repository at this point in the history
Ceil the default object size passed to LayoutImageResource::GetImage, to
increase the chances of the (container) size round-tripping through
Image::Size() (which we use as the source rect).
SVGImageForContainer::Size uses RoundedIntSize(), so depending on the
fractional part of the default object size it could end up either
smaller or larger.

Bug: 944739
Change-Id: Ifc62ddfad760ade87135b356ce6f6e07ed8e5dc5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1538421
Reviewed-by: Stephen Chenney <[email protected]>
Commit-Queue: Fredrik Söderquist <[email protected]>
Cr-Commit-Position: refs/heads/master@{#644238}
  • Loading branch information
Fredrik Söderquist authored and chromium-wpt-export-bot committed Mar 26, 2019
1 parent e5cb5a6 commit b1a2ae2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions svg/embedded/image-embedding-svg-viewref-with-viewbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b1a2ae2

Please sign in to comment.