Bug 218690 - [LFC][Integration] Cleanup LayoutIntegration::Line interface
Summary: [LFC][Integration] Cleanup LayoutIntegration::Line interface
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-11-07 13:00 PST by zalan
Modified: 2020-11-09 13:09 PST (History)
2 users (show)

See Also:


Attachments
Patch (1.86 KB, patch)
2020-11-07 13:02 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (16.26 KB, patch)
2020-11-07 16:15 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (16.36 KB, patch)
2020-11-08 10:40 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2020-11-07 13:00:34 PST
ssia
Comment 1 zalan 2020-11-07 13:02:11 PST
Created attachment 413533 [details]
Patch
Comment 2 zalan 2020-11-07 16:15:58 PST
Created attachment 413536 [details]
Patch
Comment 3 Daniel Bates 2020-11-07 23:42:25 PST
Comment on attachment 413536 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=413536&action=review

> Source/WebCore/layout/inlineformatting/InlineLineGeometry.h:38
> +    InlineLineGeometry(const InlineRect& lineLogicalRect, const InlineLayoutSize& lineBoxLogicalSize, InlineLayoutUnit aligmentBaseline, InlineLayoutUnit horizontalAlignmentOffset);

Ok as-is. Consider removing names for first 2 params now that they have different types.
Comment 4 Antti Koivisto 2020-11-08 06:45:43 PST
Comment on attachment 413536 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=413536&action=review

> Source/WebCore/layout/integration/LayoutIntegrationPagination.cpp:134
>              moveVertically(line.rect(), offset),
> +            line.rect().size(),
>              moveVertically(line.rect(), offset),

Not from this patch but the last one should be enclosingRect().
Comment 5 zalan 2020-11-08 10:40:04 PST
Created attachment 413542 [details]
Patch
Comment 6 EWS 2020-11-08 12:06:03 PST
Committed r269571: <https://trac.webkit.org/changeset/269571>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 413542 [details].
Comment 7 Radar WebKit Bug Importer 2020-11-08 12:07:18 PST
<rdar://problem/71168177>
Comment 8 zalan 2020-11-09 13:09:36 PST
(In reply to Daniel Bates from comment #3)
> Comment on attachment 413536 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=413536&action=review
> 
> > Source/WebCore/layout/inlineformatting/InlineLineGeometry.h:38
> > +    InlineLineGeometry(const InlineRect& lineLogicalRect, const InlineLayoutSize& lineBoxLogicalSize, InlineLayoutUnit aligmentBaseline, InlineLayoutUnit horizontalAlignmentOffset);
> 
> Ok as-is. Consider removing names for first 2 params now that they have
> different types.
I'd rather keep them as one is about the line while the other is about the line box geometry.