Summary: | Make scroll granularity an enum class | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nikos Mouchtaris <nmouchtaris> | ||||||||||||||||||||
Component: | New Bugs | Assignee: | Nikos Mouchtaris <nmouchtaris> | ||||||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||||||
Severity: | Normal | CC: | cdumez, changseok, cmarcelo, esprehn+autocc, ews-watchlist, glenn, heycam, kangil.han, kondapallykalyan, mifenton, pdr, webkit-bug-importer | ||||||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||
Attachments: |
|
Description
Nikos Mouchtaris
2021-11-02 14:44:05 PDT
Created attachment 443137 [details]
Patch
Created attachment 443340 [details]
Patch
Created attachment 443360 [details]
Patch
Created attachment 443573 [details]
Patch
Created attachment 443589 [details]
Patch
Comment on attachment 443589 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443589&action=review > Source/WebKit/UIProcess/WebPageProxy.cpp:3272 > + send(Messages::WebPage::ScrollBy(direction, static_cast<uint32_t>(granularity))); Can you make the IPC message take the enum directly? You should be able to change WebPage.messages.in to use `enum:uint8_t WebCore::ScrollGranularity` or so. (In reply to Cameron McCormack (:heycam) from comment #6) > Can you make the IPC message take the enum directly? You should be able to > change WebPage.messages.in to use `enum:uint8_t WebCore::ScrollGranularity` > or so. And that might need doing some EnumTraits stuff to get that to work. The rest of the patch looked fine, but I'll wait to see another version. *** Bug 232575 has been marked as a duplicate of this bug. *** Created attachment 443875 [details]
Patch
Created attachment 443879 [details]
Patch
Created attachment 443884 [details]
Patch
Comment on attachment 443884 [details]
Patch
Looks good, thanks!
Created attachment 443913 [details]
Patch
Committed r285640 (244141@main): <https://commits.webkit.org/244141@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 443913 [details]. |