WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 213162
[LFC][Floats] Floating positioned box is always a float avoider.
https://bugs.webkit.org/show_bug.cgi?id=213162
Summary
[LFC][Floats] Floating positioned box is always a float avoider.
zalan
Reported
2020-06-12 20:50:09 PDT
it avoids other floats.
Attachments
Patch
(3.72 KB, patch)
2020-06-12 21:52 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2020-06-12 21:52:58 PDT
Created
attachment 401825
[details]
Patch
Darin Adler
Comment 2
2020-06-13 14:38:20 PDT
Comment on
attachment 401825
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=401825&action=review
> Source/WebCore/layout/layouttree/LayoutBox.cpp:180 > + if (isFloatingPositioned() || hasFloatClear()) > + return true; > + > + return establishesTableFormattingContext() || establishesIndependentFormattingContext() || (establishesBlockFormattingContext() && !establishesInlineFormattingContext());
Would one long chain of conditions separated by || be more logical and readable than a separate if statement? Or are we making a point by using a separate if?
zalan
Comment 3
2020-06-13 15:20:54 PDT
(In reply to Darin Adler from
comment #2
)
> Comment on
attachment 401825
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=401825&action=review
> > > Source/WebCore/layout/layouttree/LayoutBox.cpp:180 > > + if (isFloatingPositioned() || hasFloatClear()) > > + return true; > > + > > + return establishesTableFormattingContext() || establishesIndependentFormattingContext() || (establishesBlockFormattingContext() && !establishesInlineFormattingContext()); > > Would one long chain of conditions separated by || be more logical and > readable than a separate if statement? Or are we making a point by using a > separate if?
Yes, I was trying to make dedicated explicit/implicit groups here (whether the reason for the float avoiding behavior is some float related styles such as clear or some other seemingly unrelated reasons like table element etc.)
EWS
Comment 4
2020-06-13 17:39:16 PDT
Committed
r263007
: <
https://trac.webkit.org/changeset/263007
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 401825
[details]
.
Radar WebKit Bug Importer
Comment 5
2020-06-13 17:40:17 PDT
<
rdar://problem/64334402
>
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