mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make DOMPoint and DOMPointReadOnly serializable (#35989)
* script: Make DOMPointReadOnly serializable. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Make DOMPoint serializable. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Shrink worker script event. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Update components/script/dom/dompoint.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
1df1ba58d6
commit
53a2e61fec
13 changed files with 224 additions and 45 deletions
|
@ -64,7 +64,10 @@ impl ServiceWorker {
|
|||
fn forward_dom_message(&self, msg: DOMMessage) {
|
||||
let DOMMessage { origin, data } = msg;
|
||||
let _ = self.sender.send(ServiceWorkerScriptMsg::CommonWorker(
|
||||
WorkerScriptMsg::DOMMessage { origin, data },
|
||||
WorkerScriptMsg::DOMMessage {
|
||||
origin,
|
||||
data: Box::new(data),
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue