RESOLVED FIXED 218975
[css-flex] Images as flex items should use the overridingLogicalHeight when defined to compute the logical width
https://bugs.webkit.org/show_bug.cgi?id=218975
Summary [css-flex] Images as flex items should use the overridingLogicalHeight when d...
Sergio Villar Senin
Reported 2020-11-16 02:56:21 PST
RenderReplaced should use the overridingLogicalHeight when defined to compute the logical width
Attachments
Patch (12.72 KB, patch)
2020-11-16 03:07 PST, Sergio Villar Senin
no flags
Patch (12.94 KB, patch)
2020-11-17 02:13 PST, Sergio Villar Senin
no flags
Patch (12.99 KB, patch)
2020-11-18 05:32 PST, Sergio Villar Senin
rego: review+
Sergio Villar Senin
Comment 1 2020-11-16 03:07:29 PST
Sergio Villar Senin
Comment 2 2020-11-17 02:13:56 PST
Manuel Rego Casasnovas
Comment 3 2020-11-17 13:19:45 PST
Comment on attachment 414322 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414322&action=review > Source/WebCore/rendering/RenderReplaced.cpp:527 > + ASSERT(intrinsicRatio); intrisicRatio can be zero, so this ASSERT will crash (like it's happening on the debug EWS), Shouldn't we add it in the previous check?
Sergio Villar Senin
Comment 4 2020-11-18 02:28:53 PST
(In reply to Manuel Rego Casasnovas from comment #3) > Comment on attachment 414322 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=414322&action=review > > > Source/WebCore/rendering/RenderReplaced.cpp:527 > > + ASSERT(intrinsicRatio); > > intrisicRatio can be zero, so this ASSERT will crash (like it's happening on > the debug EWS), Shouldn't we add it in the previous check? I'm trying to know how intrinsicRatio is zero given that both the intrinsic width and the intrinsic height are > 0. I thought it won't be possible, that's why I added the ASSERT.
Sergio Villar Senin
Comment 5 2020-11-18 05:17:03 PST
(In reply to Sergio Villar Senin from comment #4) > (In reply to Manuel Rego Casasnovas from comment #3) > > Comment on attachment 414322 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=414322&action=review > > > > > Source/WebCore/rendering/RenderReplaced.cpp:527 > > > + ASSERT(intrinsicRatio); > > > > intrisicRatio can be zero, so this ASSERT will crash (like it's happening on > > the debug EWS), Shouldn't we add it in the previous check? > > I'm trying to know how intrinsicRatio is zero given that both the intrinsic > width and the intrinsic height are > 0. I thought it won't be possible, > that's why I added the ASSERT. Right so for example an iframe has indeed a intrinsic size but not necessarily an aspect ratio. Will change the condition and remove the assert
Sergio Villar Senin
Comment 6 2020-11-18 05:32:52 PST
Manuel Rego Casasnovas
Comment 7 2020-11-19 01:42:34 PST
Comment on attachment 414442 [details] Patch r=me
Sergio Villar Senin
Comment 8 2020-11-20 01:33:52 PST
Radar WebKit Bug Importer
Comment 9 2020-11-20 01:34:40 PST
Note You need to log in before you can comment on or make changes to this bug.