Bug 204561

Summary: [LFC][IFC] Construct only one LineLayout object per inline formatting context
Product: WebKit Reporter: alan <zalan>
Component: Layout and RenderingAssignee: alan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch koivisto: review+

alan
Reported 2019-11-24 18:57:33 PST
and not one for each line.
Attachments
Patch (17.50 KB, patch)
2019-11-24 19:14 PST, alan
koivisto: review+
Radar WebKit Bug Importer
Comment 1 2019-11-24 18:58:02 PST
alan
Comment 2 2019-11-24 19:14:33 PST
Antti Koivisto
Comment 3 2019-11-25 07:13:06 PST
Comment on attachment 384263 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=384263&action=review > Source/WebCore/ChangeLog:9 > + Let's construct only one LineLayout object per IFC. I kinda liked that one object represents layout of one line. What do we gain from reusing it?
alan
Comment 4 2019-11-25 08:04:36 PST
(In reply to Antti Koivisto from comment #3) > Comment on attachment 384263 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=384263&action=review > > > Source/WebCore/ChangeLog:9 > > + Let's construct only one LineLayout object per IFC. > > I kinda liked that one object represents layout of one line. What do we gain > from reusing it? What I am trying to achieve here is (and probably failing because of bad naming) to have something similar to what we do with the formatting contexts. In this setup the context is the LineLayout class. It is not a per-line-context but rather for the entire inline content. Let me find a better name for LineLayout and address it in a separate patch.
alan
Comment 5 2019-11-25 08:05:48 PST
(In reply to Antti Koivisto from comment #3) > Comment on attachment 384263 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=384263&action=review > > > Source/WebCore/ChangeLog:9 > > + Let's construct only one LineLayout object per IFC. > > I kinda liked that one object represents layout of one line. What do we gain > from reusing it? Line (or as we discussed the LineBuilder) class represents the layout of one line.
alan
Comment 6 2019-11-25 08:13:24 PST
Note You need to log in before you can comment on or make changes to this bug.