| Summary: | [LFC] Transition containing block 'for' loops to range loops | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | commit-queue, koivisto, webkit-bug-importer | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| Bug Depends on: | 226379 | ||||||||||||||
| Bug Blocks: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
zalan
2021-05-26 20:55:27 PDT
Created attachment 429840 [details]
Patch
Created attachment 429946 [details]
Patch
Created attachment 429947 [details]
Patch
Comment on attachment 429947 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429947&action=review > Source/WebCore/layout/formattingContexts/block/BlockFormattingContext.cpp:235 > + for (auto& ancestor : containingBlockChain(layoutBox, root())) I like how you are utilizing block chain technology here. Might consider a helper for this case, "containingBlockChainWithinFormattingContext" or similar. Created attachment 430008 [details]
Patch
(In reply to Antti Koivisto from comment #4) > Comment on attachment 429947 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=429947&action=review > > > Source/WebCore/layout/formattingContexts/block/BlockFormattingContext.cpp:235 > > + for (auto& ancestor : containingBlockChain(layoutBox, root())) > > I like how you are utilizing block chain technology here. > > Might consider a helper for this case, > "containingBlockChainWithinFormattingContext" or similar. Good idea! Committed r278196 (238239@main): <https://commits.webkit.org/238239@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430008 [details]. Re-opened since this is blocked by bug 226379 Created attachment 430088 [details]
Patch
Committed r278238 (238275@main): <https://commits.webkit.org/238275@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430088 [details]. |