Avoid scaling a zero-sized image
Since scaling a zero-sized image can result in dealing with NaNs (in case that we're scaling it using an inf, which is fairly possible), we should avoid doing that. This CL makes sure that we do. As to why we're dealing with zero sized images to begin with, I've opened crbug.com/522637, but it seems like something that can happen regardless, when ImageResource doesn't have an Image. BUG=521954 Review URL: https://codereview.chromium.org/1299493005 git-svn-id: svn://svn.chromium.org/blink/trunk@200879 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
This diff is collapsed.
Please register or sign in to comment