Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Issue 889613002: Make sure a container size is always set for SVG images in <svg:image> (Closed)

Created:
5 years, 10 months ago by fs
Modified:
5 years, 10 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-rendering, Dominik Röttsches, krit, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung.kim_webkit.org, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189241

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -1 line) Patch
A LayoutTests/svg/custom/svg-image-container-size.html View 1 chunk +33 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/svg-image-container-size-expected.html View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGImage.cpp View 2 chunks +11 lines, -1 line 2 comments Download

Messages

Total messages: 7 (2 generated)
fs
The method that just keeps on giving... (stock of brown paper bags soon to be ...
5 years, 10 months ago (2015-01-29 16:37:34 UTC) #2
pdr.
Ahh, our old friend :) LGTM https://codereview.chromium.org/889613002/diff/1/Source/core/rendering/svg/RenderSVGImage.cpp File Source/core/rendering/svg/RenderSVGImage.cpp (right): https://codereview.chromium.org/889613002/diff/1/Source/core/rendering/svg/RenderSVGImage.cpp#newcode80 Source/core/rendering/svg/RenderSVGImage.cpp:80: static bool containerSizeIsSetForRenderer(ImageResource& ...
5 years, 10 months ago (2015-01-29 19:32:21 UTC) #3
fs
On 2015/01/29 19:32:21, pdr wrote: > Ahh, our old friend :) Old - certainly. Friend ...
5 years, 10 months ago (2015-01-30 09:30:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889613002/1
5 years, 10 months ago (2015-01-30 09:30:51 UTC) #6
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 10:31:03 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189241

Powered by Google App Engine
This is Rietveld 408576698