WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
222520
[LFC][IFC] Every line box must have a root inline box
https://bugs.webkit.org/show_bug.cgi?id=222520
Summary
[LFC][IFC] Every line box must have a root inline box
zalan
Reported
2021-02-27 15:31:13 PST
let's construct the m_rootInlineBox in LineBox c'tor
Attachments
Patch
(9.39 KB, patch)
2021-02-27 15:48 PST
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(8.84 KB, patch)
2021-02-27 15:53 PST
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(11.23 KB, patch)
2021-02-27 20:50 PST
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2021-02-27 15:48:11 PST
Created
attachment 421760
[details]
Patch
zalan
Comment 2
2021-02-27 15:53:44 PST
Created
attachment 421761
[details]
Patch
Sam Weinig
Comment 3
2021-02-27 18:43:50 PST
Comment on
attachment 421761
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=421761&action=review
> Source/WebCore/ChangeLog:4 > + [LFC][IFC] Every line box must have a root inline box > +
https://bugs.webkit.org/show_bug.cgi?id=222520
Should it use a UniqueRef instead of a unique_ptr then, to indicate this via types?
> Source/WebCore/ChangeLog:18 > + * layout/inlineformatting/InlineFormattingContextGeometry.cpp: > + (WebCore::Layout::LineBoxBuilder::build): > + (WebCore::Layout::LineBoxBuilder::constructInlineLevelBoxes): > + * layout/inlineformatting/InlineLineBox.cpp: > + (WebCore::Layout::LineBox::LineBox): > + (WebCore::Layout::m_horizontalAlignmentOffset): > + (WebCore::Layout::LineBox::logicalRectForTextRun const): > + (WebCore::Layout::m_contentLogicalWidth): Deleted. > + (WebCore::Layout::LineBox::addRootInlineBox): Deleted. > + * layout/inlineformatting/InlineLineBox.h: > + (WebCore::Layout::LineBox::InlineLevelBox::createRootInlineBox): Deleted.
This could be fleshed out a bit.
> Source/WebCore/layout/inlineformatting/InlineLineBox.cpp:91 > + , m_horizontalAlignmentOffset(horizontalAlignmentOffset) > { > + m_rootInlineBox = makeUnique<LineBox::InlineLevelBox>(rootLayoutBox, horizontalAlignmentOffset.valueOr(InlineLayoutUnit { }), InlineLayoutSize { contentLogicalWidth, { } }, InlineLevelBox::Type::RootInlineBox);
This seems like it should be in the list above.
zalan
Comment 4
2021-02-27 20:22:57 PST
(In reply to Sam Weinig from
comment #3
)
> Comment on
attachment 421761
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=421761&action=review
> > > Source/WebCore/ChangeLog:4 > > + [LFC][IFC] Every line box must have a root inline box > > +
https://bugs.webkit.org/show_bug.cgi?id=222520
> > Should it use a UniqueRef instead of a unique_ptr then, to indicate this via > types? >
I keep forgetting UniqueRef!!! Thanks.
zalan
Comment 5
2021-02-27 20:50:42 PST
Created
attachment 421765
[details]
Patch
EWS
Comment 6
2021-02-28 08:22:25 PST
Committed
r273636
: <
https://commits.webkit.org/r273636
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 421765
[details]
.
Radar WebKit Bug Importer
Comment 7
2021-02-28 08:23:14 PST
<
rdar://problem/74838464
>
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