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

Issue 14964004: Implement preserveAspectRatio=none for SVG images (Closed)

Created:
7 years, 7 months ago by pdr.
Modified:
7 years, 7 months ago
Reviewers:
Stephen Chennney
CC:
blink-reviews, pdr, Stephen Chennney, f(malita), jchaffraix+rendering
Visibility:
Public.

Description

Implement preserveAspectRatio=none for SVG images Previously, preserveAspectRatio=none had no effect on SVG images. This change fixes this so we follow the special handling of preserveAspectRatio on images as defined in the spec: http://www.w3.org/TR/SVG/single-page.html, 7.8 The ‘preserveAspectRatio’ attribute. Images that depend on a container size (such as SVG images) require a call to setContainerSizeForRenderer(...) to set this size. By passing the image's intrinsic size as the container size, the non-uniform scaling defined in the spec will be achieved. BUG=173360 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149936

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -5 lines) Patch
A LayoutTests/svg/custom/image-with-preserveAspectRatio-none.html View 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/image-with-preserveAspectRatio-none-expected.html View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGImage.cpp View 1 chunk +21 lines, -5 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
pdr.
schenney, ping?
7 years, 7 months ago (2013-05-07 03:03:24 UTC) #1
Stephen Chennney
lgtm
7 years, 7 months ago (2013-05-07 14:05:20 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pdr@chromium.org/14964004/1
7 years, 7 months ago (2013-05-08 05:40:42 UTC) #3
commit-bot: I haz the power
7 years, 7 months ago (2013-05-08 06:16:15 UTC) #4
Message was sent while issue was closed.
Change committed as 149936

Powered by Google App Engine
This is Rietveld 408576698