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+
zalan
Comment 1 2018-08-27 16:46:02 PDT
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
Radar WebKit Bug Importer
Comment 5 2018-08-28 08:03:10 PDT
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
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
Note You need to log in before you can comment on or make changes to this bug.