| Summary: | [Win] Expose "Inverted Colors" option in WinLauncher | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||
| Component: | Tools / Tests | Assignee: | Brent Fulgham <bfulgham> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | ||||||
| Priority: | P2 | ||||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 148461 | ||||||
| Attachments: |
|
||||||
|
Description
Brent Fulgham
2015-08-25 16:33:33 PDT
Created attachment 259899 [details]
Patch
Comment on attachment 259899 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259899&action=review > Tools/WinLauncher/Common.cpp:494 > + case IDM_INVERT_COLORS: WinProc() and ToggleMenuItem() checks for the same set of wmIds. Can't we make ToggleMenuItem() returns true if handles the wmId and false if it does not? The default case of switch (wmId) in WinProc can be like this: default: if (!ToggleMenuItem(hWnd, mId)) return CallWindowProc(parentProc, hWnd, message, wParam, lParam); } Committed r188939: <http://trac.webkit.org/changeset/188939> (In reply to comment #2) > Comment on attachment 259899 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=259899&action=review > > > Tools/WinLauncher/Common.cpp:494 > > + case IDM_INVERT_COLORS: > > WinProc() and ToggleMenuItem() checks for the same set of wmIds. Can't we > make ToggleMenuItem() returns true if handles the wmId and false if it does > not? The default case of switch (wmId) in WinProc can be like this: > > default: > if (!ToggleMenuItem(hWnd, mId)) > return CallWindowProc(parentProc, hWnd, message, wParam, > lParam); > } That's a great idea! I'll try to put a patch together for that. Thanks! |