diff options
author | Mukilan Thiyagarajan <mukilan@igalia.com> | 2025-02-06 19:51:29 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-06 14:21:29 +0000 |
commit | e0689c1f0b2c032c5259ee0446469f4935e6518e (patch) | |
tree | a00ceae8d5e6aa771b5b21516e25611d8ac6b9fa /components/servo/lib.rs | |
parent | e7a6691628fa1c53baf714d844be19aa99c4bfec (diff) | |
download | servo-e0689c1f0b2c032c5259ee0446469f4935e6518e.tar.gz servo-e0689c1f0b2c032c5259ee0446469f4935e6518e.zip |
Migrate Android and OHOS ports to the delegate API (#35315)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 886efc32991..795e1038074 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -613,7 +613,7 @@ impl Servo { ) } - fn handle_window_event(&mut self, event: EmbedderEvent) { + fn handle_window_event(&self, event: EmbedderEvent) { match event { EmbedderEvent::Idle => {}, @@ -913,7 +913,7 @@ impl Servo { std::mem::take(&mut *self.messages_for_embedder.borrow_mut()) } - pub fn handle_events(&mut self, events: impl IntoIterator<Item = EmbedderEvent>) { + pub fn handle_events(&self, events: impl IntoIterator<Item = EmbedderEvent>) { if self.compositor.borrow_mut().receive_messages() { self.receive_messages(); } |