mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #21871 - paulrouget:servooptions, r=jdm
Make JNI code more robust and introduce antialiasing option This throws exceptions in various places. Trying to reduce the amount of unwrap/expect. --- <!-- 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 #21306 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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. --> <!-- 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/21871) <!-- Reviewable:end -->
This commit is contained in:
commit
65710bee94
9 changed files with 270 additions and 152 deletions
|
@ -968,6 +968,11 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
.as_boolean()
|
||||
.unwrap();
|
||||
|
||||
let enable_subpixel_text_antialiasing = !debug_options.disable_subpixel_aa && PREFS
|
||||
.get("gfx.subpixel-text-antialiasing.enabled")
|
||||
.as_boolean()
|
||||
.unwrap();
|
||||
|
||||
let is_printing_version = opt_match.opt_present("v") || opt_match.opt_present("version");
|
||||
|
||||
let opts = Opts {
|
||||
|
@ -1003,7 +1008,7 @@ pub fn from_cmdline_args(args: &[String]) -> ArgumentParsingResult {
|
|||
show_debug_fragment_borders: debug_options.show_fragment_borders,
|
||||
show_debug_parallel_layout: debug_options.show_parallel_layout,
|
||||
enable_text_antialiasing: !debug_options.disable_text_aa,
|
||||
enable_subpixel_text_antialiasing: !debug_options.disable_subpixel_aa,
|
||||
enable_subpixel_text_antialiasing: enable_subpixel_text_antialiasing,
|
||||
enable_canvas_antialiasing: !debug_options.disable_canvas_aa,
|
||||
dump_style_tree: debug_options.dump_style_tree,
|
||||
dump_rule_tree: debug_options.dump_rule_tree,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue