style: Simplify our setup for font metric queries from style

While looking at moving the flag around I realized that the only reason
we have FontMetricsProvider and co is because we didn't have access to
the per-document font-prefs cache. That's trivial to fix tho, so do
that and simplify the setup for font queries even more.

Differential Revision: https://phabricator.services.mozilla.com/D157589
This commit is contained in:
Emilio Cobos Álvarez 2022-09-20 19:30:45 +00:00 committed by Martin Robinson
parent 99d588a90e
commit 8a63d9e059
3 changed files with 6 additions and 9 deletions

View file

@ -10,7 +10,7 @@ use crate::parser::{Parse, ParserContext};
use crate::values::computed::font::{FamilyName, FontFamilyList, SingleFontFamily};
use crate::values::computed::FontSizeAdjust as ComputedFontSizeAdjust;
use crate::values::computed::{font as computed, Length, NonNegativeLength};
use crate::values::computed::{Percentage as ComputedPercentage};
use crate::values::computed::Percentage as ComputedPercentage;
use crate::values::computed::{CSSPixelLength, Context, ToComputedValue};
use crate::values::generics::font::VariationValue;
use crate::values::generics::font::{