mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
stylo: Store font metrics provider in thread local style context
This commit is contained in:
parent
2ea8d61fbf
commit
e402c72d0e
19 changed files with 158 additions and 35 deletions
|
@ -57,9 +57,7 @@ pub struct Context<'a> {
|
|||
|
||||
/// A font metrics provider, used to access font metrics to implement
|
||||
/// font-relative units.
|
||||
///
|
||||
/// TODO(emilio): This should be required, see #14079.
|
||||
pub font_metrics_provider: Option<&'a FontMetricsProvider>,
|
||||
pub font_metrics_provider: &'a FontMetricsProvider,
|
||||
}
|
||||
|
||||
impl<'a> Context<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue