WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
Bug 225590
[css-flexbox] Do not clamp flex base size with {min|max}-{height|width}
https://bugs.webkit.org/show_bug.cgi?id=225590
Summary
[css-flexbox] Do not clamp flex base size with {min|max}-{height|width}
Sergio Villar Senin
Reported
2021-05-10 04:34:44 PDT
[css-flexbox] Do not clamp flex base size with {min|max}-{height|width}
Attachments
Patch
(11.30 KB, patch)
2021-05-10 04:48 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Patch
(11.97 KB, patch)
2021-06-14 09:27 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Patch
(8.57 KB, patch)
2021-10-18 03:18 PDT
,
Sergio Villar Senin
rego
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2021-05-10 04:48:56 PDT
Created
attachment 428165
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2021-05-17 04:35:17 PDT
<
rdar://problem/78100329
>
Sergio Villar Senin
Comment 3
2021-06-14 09:27:53 PDT
Created
attachment 431337
[details]
Patch
zalan
Comment 4
2021-06-24 20:29:53 PDT
Comment on
attachment 431337
[details]
Patch :( same as
https://bugs.webkit.org/show_bug.cgi?id=226634#c5
Simon Fraser (smfr)
Comment 5
2021-06-24 20:37:35 PDT
Comment on
attachment 431337
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431337&action=review
> Source/WebCore/rendering/RenderFlexibleBox.cpp:1309 > +// A scoped class that resets either min-width & max-witdh or min-height & max-height (depending on the
witdh
> Source/WebCore/rendering/RenderFlexibleBox.cpp:1314 > +class ScopedUnboundedBox {
Can we share some of this with DisableMinMaxConstrainsScope?
Sergio Villar Senin
Comment 6
2021-06-25 01:06:12 PDT
(In reply to Simon Fraser (smfr) from
comment #5
)
> Comment on
attachment 431337
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=431337&action=review
> > > Source/WebCore/rendering/RenderFlexibleBox.cpp:1309 > > +// A scoped class that resets either min-width & max-witdh or min-height & max-height (depending on the > > witdh > > > Source/WebCore/rendering/RenderFlexibleBox.cpp:1314 > > +class ScopedUnboundedBox { > > Can we share some of this with DisableMinMaxConstrainsScope?
No without making them unnecessarily complex because there are some usages of ScopedUnboundedBox that do not imply DisableMinMaxConstrainScope
Sergio Villar Senin
Comment 7
2021-06-25 01:59:23 PDT
Committed
r279271
(
239150@main
): <
https://commits.webkit.org/239150@main
>
Sergio Villar Senin
Comment 8
2021-06-25 03:00:02 PDT
(In reply to Sergio Villar Senin from
comment #6
)
> (In reply to Simon Fraser (smfr) from
comment #5
) > > Comment on
attachment 431337
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=431337&action=review
> > > > > Source/WebCore/rendering/RenderFlexibleBox.cpp:1309 > > > +// A scoped class that resets either min-width & max-witdh or min-height & max-height (depending on the > > > > witdh > > > > > Source/WebCore/rendering/RenderFlexibleBox.cpp:1314 > > > +class ScopedUnboundedBox { > > > > Can we share some of this with DisableMinMaxConstrainsScope? > > No without making them unnecessarily complex because there are some usages > of ScopedUnboundedBox that do not imply DisableMinMaxConstrainScope
Oh wait I thought you're talking about the overriding scope. Now that you mention I think I have messed it up and reported two bugs for the same issue... I'll mark
bug 226634
as duplicate. Sorry for the mess
Sergio Villar Senin
Comment 9
2021-06-25 03:00:35 PDT
***
Bug 226634
has been marked as a duplicate of this bug. ***
WebKit Commit Bot
Comment 10
2021-07-07 12:35:18 PDT
Re-opened since this is blocked by
bug 227764
Sergio Villar Senin
Comment 11
2021-10-01 05:17:54 PDT
I've a new patch for this issue that does not suffer from the Gmail bug. It's based on the previous work done in
bug 230755
so I need to get that in before posting a new patch here (which BTW fixes 3 tests with no regressions).
Sergio Villar Senin
Comment 12
2021-10-18 03:18:36 PDT
Created
attachment 441578
[details]
Patch
Manuel Rego Casasnovas
Comment 13
2021-10-18 04:17:55 PDT
Comment on
attachment 441578
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=441578&action=review
r=me, let's hope there's no more unexpected breakage.
> Source/WebCore/rendering/RenderFlexibleBox.cpp:1010 > + m_originalMin = m_isHorizontalWritingModeInParallelFlow ? m_child.style().minWidth() : m_child.style().minHeight(); > + m_originalMax = m_isHorizontalWritingModeInParallelFlow ? m_child.style().maxWidth() : m_child.style().maxHeight();
Nit: We've the very same if just below, maybe we can put this inside that if directly.
> Source/WebCore/rendering/RenderFlexibleBox.cpp:1048 > Length m_originalLength; > + Length m_originalMin; > + Length m_originalMax;
Nit: I've the feeling that m_originalSize, m_originalMinSize and m_originalMaxSize might be easier to understand.
Sergio Villar Senin
Comment 14
2021-10-18 04:24:46 PDT
Comment on
attachment 441578
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=441578&action=review
Thanks for the review!
>> Source/WebCore/rendering/RenderFlexibleBox.cpp:1010 >> + m_originalMax = m_isHorizontalWritingModeInParallelFlow ? m_child.style().maxWidth() : m_child.style().maxHeight(); > > Nit: We've the very same if just below, maybe we can put this inside that if directly.
Sure, I developed both patches independently so came up with two different presentations. I'll move them there.
>> Source/WebCore/rendering/RenderFlexibleBox.cpp:1048 >> + Length m_originalMax; > > Nit: I've the feeling that m_originalSize, m_originalMinSize and m_originalMaxSize might be easier to understand.
Makes sense. I'll rename before landing
Sergio Villar Senin
Comment 15
2021-10-18 13:51:10 PDT
Committed
r284397
(
243173@main
): <
https://commits.webkit.org/243173@main
>
Yusuke Suzuki
Comment 16
2021-10-29 13:18:32 PDT
Reverted in
https://trac.webkit.org/changeset/285045/webkit
Because the relying change causes 100% CPU usage in Twitter
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug