RESOLVED FIXED 181348
[RenderTreeBuilder] Move RenderBlockFlow addChild logic to RenderTreeBuilder
https://bugs.webkit.org/show_bug.cgi?id=181348
Summary [RenderTreeBuilder] Move RenderBlockFlow addChild logic to RenderTreeBuilder
zalan
Reported 2018-01-05 14:57:40 PST
ssia
Attachments
Patch (15.01 KB, patch)
2018-01-05 15:01 PST, zalan
no flags
Patch (16.56 KB, patch)
2018-01-08 11:42 PST, zalan
no flags
Radar WebKit Bug Importer
Comment 1 2018-01-05 14:58:46 PST
zalan
Comment 2 2018-01-05 15:01:41 PST
Antti Koivisto
Comment 3 2018-01-06 04:02:01 PST
Comment on attachment 330590 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=330590&action=review > Source/WebCore/rendering/RenderBlockFlow.cpp:3835 > void RenderBlockFlow::addChild(RenderTreeBuilder& builder, RenderPtr<RenderObject> newChild, RenderObject* beforeChild) > { > - if (multiColumnFlow() && (!isFieldset() || !newChild->isLegend())) > - return builder.insertChild(*multiColumnFlow(), WTFMove(newChild), beforeChild); > - auto* beforeChildOrPlaceholder = beforeChild; > - if (auto* containingFragmentedFlow = enclosingFragmentedFlow()) > - beforeChildOrPlaceholder = containingFragmentedFlow->resolveMovedChild(beforeChild); > - RenderBlock::addChild(builder, WTFMove(newChild), beforeChildOrPlaceholder); > + builder.insertChildToRenderBlockFlow(*this, WTFMove(newChild), beforeChild); > } Are there still some RenderBlockFlow subclasses with custom addChilds left? If not this could just move completely. > Source/WebCore/rendering/updating/RenderTreeBuilderBlockFlow.h:32 > +class RenderTreeBuilder::BlockFlow { Not sure how many of these we want. Could all Block stuff go to a single helper?
zalan
Comment 4 2018-01-08 11:42:06 PST
WebKit Commit Bot
Comment 5 2018-01-08 14:04:05 PST
Comment on attachment 330716 [details] Patch Clearing flags on attachment: 330716 Committed r226537: <https://trac.webkit.org/changeset/226537>
WebKit Commit Bot
Comment 6 2018-01-08 14:04:07 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.