Bug 260693

Summary: [IFC] Introduce InlineItem type 'opaque'
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, koivisto, ntim, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
[fast-cq]Patch none

zalan
Reported 2023-08-24 20:53:38 PDT
ssia
Attachments
Patch (23.72 KB, patch)
2023-08-24 20:58 PDT, zalan
no flags
Patch (40.26 KB, patch)
2023-08-25 18:45 PDT, zalan
no flags
[fast-cq]Patch (40.06 KB, patch)
2023-08-25 19:22 PDT, zalan
no flags
zalan
Comment 1 2023-08-24 20:58:41 PDT
Tim Nguyen (:ntim)
Comment 2 2023-08-24 22:07:35 PDT
What is an opaque box?
zalan
Comment 3 2023-08-25 18:45:13 PDT
Antti Koivisto
Comment 4 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.
zalan
Comment 5 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.
zalan
Comment 6 2023-08-25 19:22:22 PDT
Created attachment 467449 [details] [fast-cq]Patch
Tim Nguyen (:ntim)
Comment 7 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
zalan
Comment 8 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.
EWS
Comment 9 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].
Radar WebKit Bug Importer
Comment 10 2023-08-26 08:53:18 PDT
Note You need to log in before you can comment on or make changes to this bug.