RESOLVED FIXED 201076
Implement layout system independent text box iterator
https://bugs.webkit.org/show_bug.cgi?id=201076
Summary Implement layout system independent text box iterator
Antti Koivisto
Reported 2019-08-23 05:52:53 PDT
Add a generic way to traverse line layout without caring about the details of the underlying layout system.
Attachments
patch (21.17 KB, patch)
2019-08-23 06:00 PDT, Antti Koivisto
no flags
patch (21.17 KB, patch)
2019-08-23 06:19 PDT, Antti Koivisto
no flags
patch (21.46 KB, patch)
2019-08-23 23:33 PDT, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2019-08-23 06:00:35 PDT
Antti Koivisto
Comment 2 2019-08-23 06:19:50 PDT
Simon Fraser (smfr)
Comment 3 2019-08-23 11:13:56 PDT
Comment on attachment 377125 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=377125&action=review > Source/WebCore/rendering/line/DisplayAccessTextBoxes.h:39 > +namespace DisplayAccess { I don't like this name for two reasons. First, "Display" can be read as a verb. Second you're not accessing displays.
Antti Koivisto
Comment 4 2019-08-23 12:01:53 PDT
Display as in "display tree". But suggestions are welcome.
Antti Koivisto
Comment 5 2019-08-23 13:43:53 PDT
I think I'll go with 'LineInterface' for the namespace.
Sam Weinig
Comment 6 2019-08-23 14:35:06 PDT
Can you help me understand what a LineInterface::TextBox (or DisplayAccess::TextBox) is supposed to represent. With both of those names, I can't quite wrap my head around it.
Antti Koivisto
Comment 7 2019-08-23 14:54:00 PDT
(In reply to Sam Weinig from comment #6) > Can you help me understand what a LineInterface::TextBox (or > DisplayAccess::TextBox) is supposed to represent. With both of those names, > I can't quite wrap my head around it. It is an interface for accessing (layout generated) text box properties that hides the underlying data structures. There will be similar interfaces for other inline box types. Note that TextBox itself is just a temporary generated by the iterator, it is not an interesting type in itself. The goal is be able to write code that accesses line layout without having to write multiple versions for different paths (we have two and a third one on the way).
Antti Koivisto
Comment 8 2019-08-23 23:33:52 PDT
Antti Koivisto
Comment 9 2019-08-23 23:35:09 PDT
Called it LineLayoutInterface
WebKit Commit Bot
Comment 10 2019-08-24 06:31:56 PDT
Comment on attachment 377204 [details] patch Clearing flags on attachment: 377204 Committed r249084: <https://trac.webkit.org/changeset/249084>
WebKit Commit Bot
Comment 11 2019-08-24 06:31:58 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12 2019-08-24 06:32:16 PDT
Simon Fraser (smfr)
Comment 13 2019-08-26 10:58:51 PDT
Comment on attachment 377204 [details] patch I would prefer we avoid "interface" in names. See VideoFullscreenInterface, for which I can never grok the meaning of "interface".
Note You need to log in before you can comment on or make changes to this bug.