| Summary: | Adjust and refactor some UA styles and logic for injecting Live Text | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Wenson Hsieh <wenson_hsieh> | ||||||
| Component: | Platform | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | akeerthi, cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, hi, kangil.han, katherine_cheney, megan_gardner, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Wenson Hsieh
2022-04-06 16:58:51 PDT
Created attachment 456879 [details]
Patch
Comment on attachment 456879 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456879&action=review > Source/WebCore/dom/ImageOverlay.cpp:445 > + if (lines.size() > 2) Nit: Named constant? Comment on attachment 456879 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456879&action=review Thanks for the review! >> Source/WebCore/dom/ImageOverlay.cpp:445 >> + if (lines.size() > 2) > > Nit: Named constant? Makes sense — I'll change this to use `constexpr auto maxLineCountForCenterAlignedText = 2;` Created attachment 456924 [details]
Patch for landing
Committed r292543 (249381@main): <https://commits.webkit.org/249381@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456924 [details]. |