Bug 260693 - [IFC] Introduce InlineItem type 'opaque'
Summary: [IFC] Introduce InlineItem type 'opaque'
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: 2023-08-24 20:53 PDT by zalan
Modified: 2023-08-26 08:53 PDT (History)
6 users (show)

See Also:


Attachments
Patch (23.72 KB, patch)
2023-08-24 20:58 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (40.26 KB, patch)
2023-08-25 18:45 PDT, zalan
no flags Details | Formatted Diff | Diff
[fast-cq]Patch (40.06 KB, patch)
2023-08-25 19:22 PDT, 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 2023-08-24 20:53:38 PDT
ssia
Comment 1 zalan 2023-08-24 20:58:41 PDT
Created attachment 467428 [details]
Patch
Comment 2 Tim Nguyen (:ntim) 2023-08-24 22:07:35 PDT
What is an opaque box?
Comment 3 zalan 2023-08-25 18:45:13 PDT
Created attachment 467447 [details]
Patch
Comment 4 Antti Koivisto 2023-08-25 18:52:31 PDT
Comment on attachment 467447 [details]
Patch

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

> Source/WebCore/layout/formattingContexts/inline/InlineItem.h:39
> -    enum class Type : uint8_t {
> +    enum class Type : uint16_t {

I don't think this enum type needs to grow. uint8_t does fit 9 values.
Comment 5 zalan 2023-08-25 18:54:50 PDT
(In reply to Antti Koivisto from comment #4)
> Comment on attachment 467447 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=467447&action=review
> 
> > Source/WebCore/layout/formattingContexts/inline/InlineItem.h:39
> > -    enum class Type : uint8_t {
> > +    enum class Type : uint16_t {
> 
> I don't think this enum type needs to grow. uint8_t does fit 9 values.
oh you are right, I was fixing some crash which ended up being the other enum and forgot to undo this.
Comment 6 zalan 2023-08-25 19:22:22 PDT
Created attachment 467449 [details]
[fast-cq]Patch
Comment 7 Tim Nguyen (:ntim) 2023-08-25 19:35:22 PDT
Comment on attachment 467449 [details]
[fast-cq]Patch

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

> COMMIT_MESSAGE:13
> +An opaque item:
> +  - does not introduce a soft wrap opportunity
> +  - does not participate in line breaking (zero logical width)
> +  - has the bidi level of 0xff
> +  - does not affect parent inline box/line box height
> +  - does not create display box

Can we have this comment in the code? It would be helpful for someone new to this code, especially if this is not a spec concept
Comment 8 zalan 2023-08-25 19:38:08 PDT
(In reply to Tim Nguyen (:ntim) from comment #7)
> Comment on attachment 467449 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=467449&action=review
> 
> > COMMIT_MESSAGE:13
> > +An opaque item:
> > +  - does not introduce a soft wrap opportunity
> > +  - does not participate in line breaking (zero logical width)
> > +  - has the bidi level of 0xff
> > +  - does not affect parent inline box/line box height
> > +  - does not create display box
> 
> Can we have this comment in the code? It would be helpful for someone new to
> this code, especially if this is not a spec concept
This will get clear when we start using this type for a particular box type (out-of-flow). That's a spec concept.
Comment 9 EWS 2023-08-26 08:52:06 PDT
Committed 267327@main (b82a10b890c0): <https://commits.webkit.org/267327@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 467449 [details].
Comment 10 Radar WebKit Bug Importer 2023-08-26 08:53:18 PDT
<rdar://problem/114498075>