mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Use opts as a global, to avoid cloning and passing the struct all over the code.
This commit is contained in:
parent
a983debaf1
commit
076495db94
20 changed files with 108 additions and 132 deletions
|
@ -25,6 +25,7 @@ use geom::{Point2D, Rect, SideOffsets2D, Size2D, Matrix2D};
|
|||
use libc::uintptr_t;
|
||||
use servo_net::image::base::Image;
|
||||
use servo_util::geometry::Au;
|
||||
use servo_util::opts;
|
||||
use servo_util::range::Range;
|
||||
use std::fmt;
|
||||
use std::mem;
|
||||
|
@ -562,7 +563,7 @@ impl DisplayItem {
|
|||
&text.range,
|
||||
baseline_origin,
|
||||
text.text_color,
|
||||
render_context.opts.enable_text_antialiasing
|
||||
opts::get().enable_text_antialiasing
|
||||
);
|
||||
|
||||
// Undo the transform, only when we did one.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue