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

Issue 1587023002: SVG with zero intrinsic size should be respected always (Closed)

Created:
4 years, 11 months ago by Shanmuga Pandi
Modified:
4 years, 10 months ago
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 with zero intrinsic size should be respected always. Earlier it was assumed that a zero intrinsic size means no intrinsic size. BUG=363949 Committed: https://crrev.com/da94afcf81b0564c60b759895245011b42662d7b Cr-Commit-Position: refs/heads/master@{#373475}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Align with review comments #

Total comments: 7

Patch Set 3 : Used LengthSize instead of FloatSize #

Patch Set 4 : Align with review comments #

Patch Set 5 : Added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height.html View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutReplaced.cpp View 1 2 3 4 4 chunks +31 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
Shanmuga Pandi
PTAL!! Thanks
4 years, 11 months ago (2016-01-14 09:49:50 UTC) #3
rwlbuis
Looks good to me.
4 years, 11 months ago (2016-01-15 15:18:45 UTC) #4
Shanmuga Pandi
4 years, 11 months ago (2016-01-18 04:58:24 UTC) #6
fs
+davve
4 years, 11 months ago (2016-01-18 10:24:06 UTC) #8
davve
https://codereview.chromium.org/1587023002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): https://codereview.chromium.org/1587023002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode286 third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:286: hasIntrinsicWidth = contentLayoutObject->style()->logicalWidth().isFixed(); You rely on the (logical) intrinsic ...
4 years, 11 months ago (2016-01-18 15:52:48 UTC) #9
fs
On 2016/01/18 at 15:52:48, davve wrote: ... > I think we need something more elaborate ...
4 years, 11 months ago (2016-01-18 16:00:03 UTC) #10
Shanmuga Pandi
Done the changes. Please review it. Thanks https://codereview.chromium.org/1587023002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): https://codereview.chromium.org/1587023002/diff/1/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode286 third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:286: hasIntrinsicWidth = ...
4 years, 11 months ago (2016-01-20 06:09:34 UTC) #11
davve
https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html File third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html (right): https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html#newcode4 third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html:4: <!--There should not be any red rectangle visible. --> ...
4 years, 11 months ago (2016-01-20 07:54:22 UTC) #12
Shanmuga Pandi
> https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode306 > third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:306: bool > hasIntrinsicWidth = constrainedSize.width() > 0 || > hasIntrinsicWidthForLayoutBox(contentLayoutObject); > ...
4 years, 11 months ago (2016-01-20 13:41:40 UTC) #13
davve
https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html File third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html (right): https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html#newcode4 third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html:4: <!--There should not be any red rectangle visible. --> ...
4 years, 11 months ago (2016-01-20 16:05:19 UTC) #14
Shanmuga Pandi
> https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp > File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): > > https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp#newcode306 > third_party/WebKit/Source/core/layout/LayoutReplaced.cpp:306: bool > hasIntrinsicWidth = ...
4 years, 11 months ago (2016-01-25 11:23:25 UTC) #15
davve
On 2016/01/25 11:23:25, Shanmuga Pandi wrote: > > > https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp > > File third_party/WebKit/Source/core/layout/LayoutReplaced.cpp (right): ...
4 years, 11 months ago (2016-01-25 13:22:55 UTC) #16
Shanmuga Pandi
On 2016/01/25 13:22:55, David Vest wrote: > On 2016/01/25 11:23:25, Shanmuga Pandi wrote: > > ...
4 years, 11 months ago (2016-01-25 14:02:59 UTC) #17
davve
> We can propagate this info from LayoutSVGRoot --> SVGSVGElement --> > intrinsicWidth/Height. > But ...
4 years, 11 months ago (2016-01-25 17:01:50 UTC) #18
fs
On 2016/01/25 at 17:01:50, davve wrote: ... > > > > OR > > > ...
4 years, 11 months ago (2016-01-25 17:06:36 UTC) #19
Shanmuga Pandi
Please check this. Thanks https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html File third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html (right): https://codereview.chromium.org/1587023002/diff/20001/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html#newcode4 third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html:4: <!--There should not be any ...
4 years, 11 months ago (2016-01-28 11:21:57 UTC) #20
fs
On 2016/01/28 at 11:21:57, shanmuga.m wrote: > Please check this. I think that PS3 keeps ...
4 years, 10 months ago (2016-01-29 11:26:42 UTC) #21
Shanmuga Pandi
On 2016/01/29 11:26:42, fs wrote: > On 2016/01/28 at 11:21:57, shanmuga.m wrote: > > Please ...
4 years, 10 months ago (2016-01-29 13:43:19 UTC) #22
davve
On 2016/01/29 13:43:19, Shanmuga Pandi wrote: > @davve, > Your opinion ? Agreed. Landing the ...
4 years, 10 months ago (2016-01-30 08:55:25 UTC) #23
davve
On 2016/01/30 08:55:25, David Vest wrote: > On 2016/01/29 13:43:19, Shanmuga Pandi wrote: > > ...
4 years, 10 months ago (2016-01-30 08:56:44 UTC) #24
fs
On 2016/01/30 at 08:56:44, davve wrote: > On 2016/01/30 08:55:25, David Vest wrote: > > ...
4 years, 10 months ago (2016-02-01 10:16:33 UTC) #25
davve
On 2016/02/01 10:16:33, fs wrote: > On 2016/01/30 at 08:56:44, davve wrote: > > On ...
4 years, 10 months ago (2016-02-01 10:29:48 UTC) #26
Shanmuga Pandi
On 2016/02/01 10:29:48, David Vest wrote: > On 2016/02/01 10:16:33, fs wrote: > > On ...
4 years, 10 months ago (2016-02-03 05:58:14 UTC) #27
davve
On 2016/02/03 05:58:14, Shanmuga Pandi wrote: > Updated with TODO!! Please check! Non-owner LGTM.
4 years, 10 months ago (2016-02-03 07:45:11 UTC) #28
fs
lgtm
4 years, 10 months ago (2016-02-03 11:32:29 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1587023002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1587023002/80001
4 years, 10 months ago (2016-02-04 05:24:14 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-04 06:41:57 UTC) #33
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 06:44:10 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/da94afcf81b0564c60b759895245011b42662d7b
Cr-Commit-Position: refs/heads/master@{#373475}

Powered by Google App Engine
This is Rietveld 408576698