Repository navigation
Move Ctrl-F12 keybindings outside of libservo - #17652
Conversation
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @asajeffrey (or someone else) soon. |
| KeyEvent(Option<char>, Key, KeyState, KeyModifiers), | ||
| /// Sent when Ctr+R/Apple+R is called to reload the current page. | ||
| Reload, | ||
| //Toggles the profiler on and off |
There was a problem hiding this comment.
Use 3 slashes + space: // -> ///
There was a problem hiding this comment.
Is there a use for just //, if not maybe this schould be added to test-tidy
There was a problem hiding this comment.
Yes. double slashes are for regular comments. triple are for documentation.
There was a problem hiding this comment.
Ah ok, that makes sense
| } | ||
| } | ||
|
|
||
| WindowEvent::ToggleProfiler => { |
There was a problem hiding this comment.
Can you rename this to ToggleWebRenderProfiler? Because their is also a regular profiler.
paulrouget
left a comment
There was a problem hiding this comment.
Maybe use a better commit message: "Move WR profiler keybindings to /ports/"
| self.event_queue.borrow_mut().push(WindowEvent::Quit); | ||
| } | ||
| } | ||
| (CMD_OR_CONTROL, None, Key::F12) => { |
There was a problem hiding this comment.
Use just "CONTROL" here, not "CMD_OR_CONTROL".
|
Also: I realize this is probably not necessary anymore: Line 247 in 2475039 servo/components/compositing/compositor.rs Line 1642 in 2475039 … and when you catch |
|
@bors-servo delegate=paulroget |
|
✌️ @paulroget can now approve this pull request |
|
@bors-servo delegate=paulrouget
|
|
✌️ @paulrouget can now approve this pull request |
…dings are located
|
I just run the failing tests |
|
@Tremoneck that's just a travis issue. The retry will happen once you push again (or explicitly ask for a retry). Your changes look good. Once you address #17652 (comment) it should be fine. |
|
@bors-servo: retry |
…and servo/lib.rs and inlining this function in compositing/compositor.rs
paulrouget
left a comment
There was a problem hiding this comment.
@bors-servo r+
This looks good to me. Thank you.
|
@bors-servo r=paulrouget |
|
📌 Commit 6309d51 has been approved by |
Move Ctrl-F12 keybindings outside of libservo <!-- Please describe your changes on the following line: --> Creates a new WindowEvent called ToggleProfiller, when this Event is queued the profiler is toggled. When Crtl + F12 are pressed the Event is queued. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17647 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17652) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
|
Thank you @Tremoneck |
|
I enjoyed it and will probably start doing more, when I have more time available |
Creates a new WindowEvent called ToggleProfiller, when this Event is queued the profiler is toggled.
When Crtl + F12 are pressed the Event is queued.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is