WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
189035
[LFC][Floating] Remove redundant FloatAvoider functions.
https://bugs.webkit.org/show_bug.cgi?id=189035
Summary
[LFC][Floating] Remove redundant FloatAvoider functions.
zalan
Reported
2018-08-27 16:39:53 PDT
and move some code from FloatingContext to FloatAvoider
Attachments
Patch
(13.56 KB, patch)
2018-08-27 16:46 PDT
,
zalan
koivisto
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2018-08-27 16:46:02 PDT
Created
attachment 348239
[details]
Patch
Antti Koivisto
Comment 2
2018-08-28 07:26:28 PDT
Comment on
attachment 348239
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=348239&action=review
> Source/WebCore/layout/floats/FloatAvoider.h:64 > + void resetHorizontalConstraint();
Some of these are singulars like here "Constraint".
> Source/WebCore/layout/floats/FloatingContext.cpp:71 > + FloatAvoider::HorizontalConstraints horizontalConstraints() const;
And some are plural. Is there some logic to this?
Antti Koivisto
Comment 3
2018-08-28 07:29:11 PDT
Comment on
attachment 348239
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=348239&action=review
> Source/WebCore/layout/floats/FloatingContext.cpp:228 > + floatAvoider.setHorizontalConstraints(floats.horizontalConstraints()); > + floatAvoider.setVerticalConstraint(floats.verticalPosition());
It looks strange that the second one is reading floats.verticalPosition instead of floats.verticalConstraint. But maybe it makes sense?
zalan
Comment 4
2018-08-28 08:01:44 PDT
Committed
r235423
: <
https://trac.webkit.org/changeset/235423
>
Radar WebKit Bug Importer
Comment 5
2018-08-28 08:03:10 PDT
<
rdar://problem/43797393
>
zalan
Comment 6
2018-08-28 08:03:26 PDT
(In reply to Antti Koivisto from
comment #2
)
> Comment on
attachment 348239
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=348239&action=review
> > > Source/WebCore/layout/floats/FloatAvoider.h:64 > > + void resetHorizontalConstraint(); > > Some of these are singulars like here "Constraint". > > > Source/WebCore/layout/floats/FloatingContext.cpp:71 > > + FloatAvoider::HorizontalConstraints horizontalConstraints() const; > > And some are plural. Is there some logic to this?
Fixed. No logic, oversight.
Radar WebKit Bug Importer
Comment 7
2018-08-28 08:03:41 PDT
<
rdar://problem/43797406
>
zalan
Comment 8
2018-08-28 08:03:45 PDT
(In reply to Antti Koivisto from
comment #3
)
> Comment on
attachment 348239
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=348239&action=review
> > > Source/WebCore/layout/floats/FloatingContext.cpp:228 > > + floatAvoider.setHorizontalConstraints(floats.horizontalConstraints()); > > + floatAvoider.setVerticalConstraint(floats.verticalPosition()); > > It looks strange that the second one is reading floats.verticalPosition > instead of floats.verticalConstraint. But maybe it makes sense?
Fixed.
Radar WebKit Bug Importer
Comment 9
2018-08-28 08:03:57 PDT
<
rdar://problem/43797410
>
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