Auto merge of #29771 - michaelgrigoryan25:libmlservo#29768, r=jdm

Fix #29768

<!-- Please describe your changes on the following line: -->

Fixes #29768.

---
<!-- 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 #29768 (GitHub issue number if applicable)

<!-- Either: -->

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2023-05-23 00:14:45 +02:00 committed by GitHub
commit a4f936cd72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,14 +170,12 @@ pub unsafe extern "C" fn init_servo(
let opts = InitOptions { let opts = InitOptions {
args, args,
url: Some(url.to_string()),
density: hidpi, density: hidpi,
enable_subpixel_text_antialiasing: false,
vr_init,
xr_discovery, xr_discovery,
coordinates, coordinates,
gl_context_pointer: Some(ctxt), gl_context_pointer: Some(ctxt),
native_display_pointer: Some(disp), native_display_pointer: Some(disp),
..Default::default()
}; };
let wakeup = Box::new(EventLoopWakerInstance); let wakeup = Box::new(EventLoopWakerInstance);
let shut_down_complete = Rc::new(Cell::new(false)); let shut_down_complete = Rc::new(Cell::new(false));