| Summary: | Rename FontCascade::fontMetrics() and RenderStyle::fontMetrics() to fontMetricsOfPrimaryFont() | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> | ||||||||||||||
| Component: | New Bugs | Assignee: | Myles C. Maxfield <mmaxfield> | ||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||
| Severity: | Normal | CC: | aboxhall, andresg_22, apinheiro, cdumez, cfleizach, changseok, darin, dbarton, dino, dmazzoni, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, gyuyoung.kim, hi, jcraig, jdiggs, jer.noble, joepeck, kondapallykalyan, macpherson, menard, mifenton, pangle, pdr, philipj, sabouhallawa, samuel_white, schenney, sergio, webkit-bug-importer, zalan | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Myles C. Maxfield
2022-01-31 20:33:22 PST
Created attachment 450493 [details]
Patch
Created attachment 450494 [details]
Patch
Created attachment 450495 [details]
Patch for committing
Created attachment 450496 [details]
Patch for committing
Created attachment 450497 [details]
Patch for committing
Created attachment 450499 [details]
Patch for committing
Committed r288868 (246620@main): <https://commits.webkit.org/246620@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 450499 [details]. (In reply to Myles C. Maxfield from comment #0) > Rename FontCascade::fontMetrics() and RenderStyle::fontMetrics() to > fontMetricsOfPrimaryFont() But do we need the word "font" twice in this name. (In reply to Darin Adler from comment #9) > (In reply to Myles C. Maxfield from comment #0) > > Rename FontCascade::fontMetrics() and RenderStyle::fontMetrics() to > > fontMetricsOfPrimaryFont() > > But do we need the word "font" twice in this name. I thought that would be better than “primaryFontsMetrics” because the missing apostrophe makes it unclear whether “font” is plural or possessive. Also making it a wordy name has the extra benefit that people might be less likely to call it in the future 😅 (And also better than primaryFontMetrics because it’s unclear whether the “primary” applies to the font or to the metrics.) Maybe “metricsOfPrimaryFont()” is better? (In reply to Myles C. Maxfield from comment #11) > Maybe “metricsOfPrimaryFont()” is better? Yes, if I caught you in time I would have suggested that. Since fontMetricsOfPrimaryFont is a long unique name we can do it mechanically. do-webcore-rename can do it for us. Committed r288942 (246672@trunk): <https://commits.webkit.org/246672@trunk> |