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

Issue 551043006: Use correct viewport for intrinsic size-less SVG images in <svg:image> (Closed)

Created:
6 years, 3 months ago by fs
Modified:
6 years, 3 months ago
Reviewers:
pdr., f(malita)
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, rwlbuis, Stephen Chennney, rune+blink
Project:
blink
Visibility:
Public.

Description

Use correct viewport for intrinsic size-less SVG images in <svg:image> Prior to https://codereview.chromium.org/403393002, an SVG image which had no intrinsic size specified, would (somewhat accidentally) get the <image>'s bounds set as their container size. After said CL, the container size would never be set, and hence remain as 300x150. This will result in incorrect scale factors being used when painting, and hence an incorrectly scaled result. Revert to setting the <image>'s bounds when the SVG image does not have an intrinsic size. BUG=411906 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181752

Patch Set 1 #

Total comments: 4

Patch Set 2 : Shuffle code; Add additional test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -3 lines) Patch
A LayoutTests/svg/custom/svg-image-par-none-no-intrinsic-size.html View 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/svg-image-par-none-no-intrinsic-size-expected.html View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/svg-image-par-none-zero-intrinsic-size.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
A + LayoutTests/svg/custom/svg-image-par-none-zero-intrinsic-size-expected.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGImage.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGImage.cpp View 1 3 chunks +28 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
fs
The interacts here are a bit hairy (hairier than I initially thought...). Not sure this ...
6 years, 3 months ago (2014-09-09 13:00:15 UTC) #2
pdr.
I don't think this is too bad. We have a little time; how do you ...
6 years, 3 months ago (2014-09-10 03:21:48 UTC) #3
pdr.
Forgot to mention... I tested this in FF and IE and both seem to agree ...
6 years, 3 months ago (2014-09-10 03:53:56 UTC) #4
fs
>I don't think this is too bad. We have a little time; how do you ...
6 years, 3 months ago (2014-09-10 09:31:00 UTC) #5
pdr.
On 2014/09/10 09:31:00, fs wrote: > >I don't think this is too bad. We have ...
6 years, 3 months ago (2014-09-10 18:36:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/551043006/20001
6 years, 3 months ago (2014-09-10 18:37:12 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 181752
6 years, 3 months ago (2014-09-10 18:41:31 UTC) #9
fs
On 2014/09/10 18:36:25, pdr wrote: > On 2014/09/10 09:31:00, fs wrote: > > >I don't ...
6 years, 3 months ago (2014-09-22 10:56:04 UTC) #10
pdr.
6 years, 3 months ago (2014-09-22 20:38:24 UTC) #11
Message was sent while issue was closed.
On 2014/09/22 10:56:04, fs wrote:
> On 2014/09/10 18:36:25, pdr wrote:
> > On 2014/09/10 09:31:00, fs wrote:
> > > >I don't think this is too bad. We have a little time; how do you feel
about
> > > >landing this approach, letting it sit in trunk for a week, then merging
> into
> > > the
> > > >release branches?
> > > 
> > > sgtm
> > > 
> 
> Time to execute?

+1! Thank you for seeing this all the way through. I will add the appropriate
merge request label. We will need to wait for one of the release managers to
approve this; they will add a comment on the bug once everything is ready to go.

Powered by Google App Engine
This is Rietveld 408576698