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

Issue 2230963002: SVG Image intrinsic size should be used if css style size is 'auto' (Closed)

Created:
4 years, 4 months ago by Shanmuga Pandi
Modified:
4 years, 3 months ago
Reviewers:
davve, pdr., fs, foolip, rwlbuis
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SVG Image intrinsic size should be used if css style size is 'auto' SVG Image's width and height attributes will use intrinsic size, if css style size is 'auto' Spec: https://svgwg.org/svg2-draft/embedded.html#Placement https://svgwg.org/svg2-draft/geometry.html#Sizing BUG=493681 Committed: https://crrev.com/3c1a3822848d986337573cfaf2817c8a69417791 Cr-Commit-Position: refs/heads/master@{#419133}

Patch Set 1 #

Patch Set 2 : SVG intrinsic size should be used if css style size is 'auto' #

Total comments: 10

Patch Set 3 : applied only for SVG Image #

Patch Set 4 : nits #

Total comments: 6

Patch Set 5 : Align with review comments #

Total comments: 10

Patch Set 6 : Align with review comments #

Patch Set 7 : rename file #

Total comments: 21

Patch Set 8 : applied intrinsic ratio #

Total comments: 10

Patch Set 9 : Align with review comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html View 1 2 3 4 5 6 7 8 1 chunk +91 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -1 line 3 comments Download

Messages

Total messages: 42 (17 generated)
Shanmuga Pandi
Please take a look. Thank you
4 years, 4 months ago (2016-08-10 13:21:14 UTC) #3
rwlbuis
Peer looks good to me. https://codereview.chromium.org/2230963002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html#newcode5 third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html:5: foreignObject {width: auto} Please ...
4 years, 4 months ago (2016-08-10 15:25:25 UTC) #8
fs
https://codereview.chromium.org/2230963002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp (right): https://codereview.chromium.org/2230963002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp#newcode97 third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp:97: styleRef().width().isAuto() ? foreign->width()->currentValue()->value(lengthContext) : lengthContext.valueForLength(styleRef().width(), styleRef(), SVGLengthMode::Width), I guess ...
4 years, 4 months ago (2016-08-10 18:01:34 UTC) #9
Shanmuga Pandi
Done the changes as per review comments. Please take a look!! Thanks https://codereview.chromium.org/2230963002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html ...
4 years, 4 months ago (2016-08-11 05:54:20 UTC) #11
fs
https://codereview.chromium.org/2230963002/diff/60001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/60001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html#newcode9 third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html:9: <image width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAABcAgMAAADR3DkbAAAACVBMVEUisUztHCT///+Wt+Z1AAAAT0lEQVR4XmNYhR/QR35UfmooFhA1iOSBbHQwlbD8qPyo/AoGdMA1yOTR3N9Aqvyo/Kh8KAI4sEIZg0YeChDuhwK6yI/Ko4NBID842j+j8gD+5Vkn+nqy2gAAAABJRU5ErkJggg==" /> We should add tests ...
4 years, 4 months ago (2016-08-11 15:52:57 UTC) #12
fs
https://codereview.chromium.org/2230963002/diff/60001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2230963002/diff/60001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode143 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:143: void LayoutSVGImage::imageChanged(WrappedImagePtr, const IntRect*) Probably need to make sure ...
4 years, 4 months ago (2016-08-11 16:39:36 UTC) #13
Shanmuga Pandi
PTAL!! Thanks https://codereview.chromium.org/2230963002/diff/60001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/60001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html#newcode9 third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html:9: <image width="100" height="100" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHwAAABcAgMAAADR3DkbAAAACVBMVEUisUztHCT///+Wt+Z1AAAAT0lEQVR4XmNYhR/QR35UfmooFhA1iOSBbHQwlbD8qPyo/AoGdMA1yOTR3N9Aqvyo/Kh8KAI4sEIZg0YeChDuhwK6yI/Ko4NBID842j+j8gD+5Vkn+nqy2gAAAABJRU5ErkJggg==" /> On 2016/08/11 ...
4 years, 4 months ago (2016-08-16 10:24:57 UTC) #14
fs
https://codereview.chromium.org/2230963002/diff/80001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/80001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html#newcode2 third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html:2: <script src="../../resources/testharness.js"></script> I'd suggest adding a <title> ("<svg:image> 'auto' ...
4 years, 4 months ago (2016-08-16 12:43:08 UTC) #17
Shanmuga Pandi
PTAL!! https://codereview.chromium.org/2230963002/diff/80001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/80001/third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html#newcode2 third_party/WebKit/LayoutTests/svg/custom/svg-intrinsic-size-with-cssstyle-auto.html:2: <script src="../../resources/testharness.js"></script> On 2016/08/16 12:43:07, fs wrote: > ...
4 years, 4 months ago (2016-08-19 07:20:28 UTC) #21
fs
https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html File third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html (right): https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html#newcode10 third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html:10: async_test(function(t) { Switch the order of these two lines, ...
4 years, 4 months ago (2016-08-19 08:59:45 UTC) #22
Shanmuga Pandi
https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html#newcode27 third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html:27: <image xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>"/> On 2016/08/19 08:59:45, fs wrote: > ...
4 years, 4 months ago (2016-08-19 11:56:42 UTC) #23
fs
https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html File third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html (right): https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html#newcode27 third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto.html:27: <image xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>"/> On 2016/08/19 at 11:56:42, Shanmuga Pandi ...
4 years, 4 months ago (2016-08-19 12:01:31 UTC) #24
Shanmuga Pandi
Spec has updated based on bug we raised. https://svgwg.org/svg2-draft/embedded.html#Placement To achieve the expected dimension based ...
4 years, 3 months ago (2016-08-25 07:42:31 UTC) #25
fs
On 2016/08/25 at 07:42:31, shanmuga.m wrote: > Spec has updated based on bug we raised. ...
4 years, 3 months ago (2016-08-25 07:56:39 UTC) #26
Shanmuga Pandi
Please take a look. Thanks. https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html File third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html (right): https://codereview.chromium.org/2230963002/diff/120001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html#newcode10 third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html:10: async_test(function(t) { On 2016/08/19 ...
4 years, 3 months ago (2016-09-14 09:20:16 UTC) #27
fs
+davve https://codereview.chromium.org/2230963002/diff/140001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html File third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html (right): https://codereview.chromium.org/2230963002/diff/140001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html#newcode22 third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html:22: }, document.title); document.title not needed here (it's the ...
4 years, 3 months ago (2016-09-14 11:31:52 UTC) #29
Shanmuga Pandi
PTAL!! Thanks https://codereview.chromium.org/2230963002/diff/140001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html File third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html (right): https://codereview.chromium.org/2230963002/diff/140001/third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html#newcode22 third_party/WebKit/LayoutTests/svg/custom/svg-image-intrinsic-size-with-cssstyle-auto-dynamic-image-change.html:22: }, document.title); On 2016/09/14 11:31:52, fs wrote: ...
4 years, 3 months ago (2016-09-14 13:15:36 UTC) #30
fs
LGTM, but please allow some time for other reviewers to comment.
4 years, 3 months ago (2016-09-14 13:34:42 UTC) #31
davve
https://codereview.chromium.org/2230963002/diff/160001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2230963002/diff/160001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode91 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:91: bool LayoutSVGImage::updateBoundingBox() Having updateBoundingBox() both set a member variable ...
4 years, 3 months ago (2016-09-14 14:13:18 UTC) #32
fs
https://codereview.chromium.org/2230963002/diff/160001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2230963002/diff/160001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode91 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:91: bool LayoutSVGImage::updateBoundingBox() On 2016/09/14 at 14:13:17, davve wrote: > ...
4 years, 3 months ago (2016-09-14 14:37:12 UTC) #33
davve
The commit description looks like it could use some line-breaking at 80 cols or so. ...
4 years, 3 months ago (2016-09-15 12:34:43 UTC) #34
Shanmuga Pandi
On 2016/09/15 12:34:43, davve wrote: > The commit description looks like it could use some ...
4 years, 3 months ago (2016-09-16 05:31:48 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2230963002/160001
4 years, 3 months ago (2016-09-16 07:19:59 UTC) #38
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-16 08:46:45 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 08:48:48 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3c1a3822848d986337573cfaf2817c8a69417791
Cr-Commit-Position: refs/heads/master@{#419133}

Powered by Google App Engine
This is Rietveld 408576698