WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
194328
[LFC][IFC] Move line layout code to a dedicated file
https://bugs.webkit.org/show_bug.cgi?id=194328
Summary
[LFC][IFC] Move line layout code to a dedicated file
zalan
Reported
2019-02-05 20:37:31 PST
ssia
Attachments
Patch
(36.95 KB, patch)
2019-02-05 20:41 PST
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(56.85 KB, patch)
2019-02-05 20:56 PST
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(64.75 KB, patch)
2019-02-06 07:52 PST
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2019-02-05 20:41:41 PST
Created
attachment 361271
[details]
Patch
zalan
Comment 2
2019-02-05 20:56:43 PST
Created
attachment 361274
[details]
Patch
Antti Koivisto
Comment 3
2019-02-06 00:48:09 PST
Comment on
attachment 361274
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=361274&action=review
> Source/WebCore/Sources.txt:1346 > +layout/inlineformatting/InlineLineLayout.cpp
Since you are keeping LineLayout in InlineFormattingContext namespace you might also consider longer 'InlineFormattingContextLineLayout.cpp'. Or just LineLayout.cpp, especially if the plan is to move it outside of the namespace.
> Source/WebCore/layout/inlineformatting/InlineFormattingContext.h:61 > + class Line { > + public: > + void init(const LayoutPoint& topLeft, LayoutUnit availableWidth, LayoutUnit minimalHeight); > + void close();
LineLayout::Line seems like a line layout internal thing so, maybe you can also move its definition to the new cpp file. You can forward declare a nested class (class Line;) here and define it later class LineLayout::Line { public: ... The same pattern might work for the LineLayout type itself too.
zalan
Comment 4
2019-02-06 07:52:20 PST
Created
attachment 361295
[details]
Patch
WebKit Commit Bot
Comment 5
2019-02-06 09:04:50 PST
Comment on
attachment 361295
[details]
Patch Clearing flags on attachment: 361295 Committed
r241023
: <
https://trac.webkit.org/changeset/241023
>
WebKit Commit Bot
Comment 6
2019-02-06 09:04:51 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2019-02-06 09:15:49 PST
<
rdar://problem/47851839
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug