Make sure a container size is always set for SVG images in <svg:image>

If a referenced image had the same dimensions as the referencing <image>,
a container size would not be set. This could cause the wrong scaling (etc)
to be applied if there existed another reference to the same image resource
that ended up applying a different scale-factor.
To ensure that a container size is set in this case, determine if the
referenced image has a container size set or not by checking if what
the "base" image (as returned by ImageResource::image()) differs from the
RenderObject-specific image (as returned by
ImageResource::imageForRenderer)

BUG=453169

Review URL: https://codereview.chromium.org/889613002

git-svn-id: svn://svn.chromium.org/blink/trunk@189241 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 4e460e78a4d537be95d279a3c03a5a06a3380d7d
  1. third_party/