Bug 235010 - [LFC][IFC] Introduce a dedicated structure for Line::Run's trailing whitespace information
Summary: [LFC][IFC] Introduce a dedicated structure for Line::Run's trailing whitespac...
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: 2022-01-08 17:39 PST by zalan
Modified: 2022-01-09 10:25 PST (History)
5 users (show)

See Also:


Attachments
Patch (9.11 KB, patch)
2022-01-08 17:40 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (9.58 KB, patch)
2022-01-09 07:07 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 2022-01-08 17:39:29 PST
-        TrailingWhitespace m_trailingWhitespaceType { TrailingWhitespace::None };
-        InlineLayoutUnit m_trailingWhitespaceWidth { 0 };
+        TrailingWhitespace m_trailingWhitespace { };
Comment 1 zalan 2022-01-08 17:40:54 PST
Created attachment 448689 [details]
Patch
Comment 2 Antti Koivisto 2022-01-08 23:03:09 PST
Comment on attachment 448689 [details]
Patch

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

> Source/WebCore/layout/formattingContexts/inline/InlineLine.h:160
> +        TrailingWhitespace m_trailingWhitespace { };

I suppose std::optional<TrailingWhitespace> without the None value would be an alternative.
Comment 3 zalan 2022-01-09 06:16:25 PST
(In reply to Antti Koivisto from comment #2)
> Comment on attachment 448689 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=448689&action=review
> 
> > Source/WebCore/layout/formattingContexts/inline/InlineLine.h:160
> > +        TrailingWhitespace m_trailingWhitespace { };
> 
> I suppose std::optional<TrailingWhitespace> without the None value would be
> an alternative.
Good point!
Comment 4 zalan 2022-01-09 07:07:09 PST
Created attachment 448701 [details]
Patch
Comment 5 EWS 2022-01-09 10:24:00 PST
Committed r287824 (245876@main): <https://commits.webkit.org/245876@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448701 [details].
Comment 6 Radar WebKit Bug Importer 2022-01-09 10:25:19 PST
<rdar://problem/87312941>