| Summary: | [LFC] Add support for geometry/quirks virtual functions | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> | ||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
zalan
2021-05-22 21:15:45 PDT
Created attachment 429452 [details]
Patch
Created attachment 429461 [details]
Patch
Comment on attachment 429461 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=429461&action=review > Source/WebCore/layout/formattingContexts/block/BlockFormattingContext.h:59 > + const FormattingGeometry& formattingGeometry() const final { return m_blockFormattingGeometry; } > + const FormattingQuirks& formattingQuirks() const final { return m_blockFormattingQuirks; } I think you could just return BlockFormattingFoo& here and remove the specialised versions. You can override with more narrow type. Created attachment 429555 [details]
Patch
Committed r277972 (238094@main): <https://commits.webkit.org/238094@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429555 [details]. |