| Summary: | [LFC Display] Give display boxes a previousSibling pointer | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||||
| Component: | Layout and Rendering | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||
| Status: | NEW --- | ||||||||
| Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Simon Fraser (smfr)
2020-12-31 12:32:19 PST
Created attachment 416869 [details]
Patch
Note to self: need to add a lastChild pointer to ContainerBox. Created attachment 435554 [details]
Patch
Comment on attachment 435554 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435554&action=review > Source/WebCore/ChangeLog:10 > + Hit-testing will need to iterate Display::Box siblings in reverse order, so add > + a pointer to the previous sibling box, and assign it during tree building. Also > + add a lastChild pointer to Display::ContainerBox. In integration we just iterate the vector backwards. nvm, it looks like DisplayBox objects are already forming a tree. > Source/WebCore/display/css/DisplayBox.h:101 > + Box* m_previousSibling { nullptr }; WeakPtr? > Source/WebCore/display/css/DisplayContainerBox.h:51 > + Box* m_lastChild { nullptr }; WeakPtr? |