mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
fonts: Reduce the public API surface (#39112)
This change marks all items that are not used by other crates as `pub(crate)` instead of `pub`. Additionally, I've removed all code that turned out to be unused. I think most of it was used only by `layout-2013`. Testing: The correctness of these changes is verified by the compiler, so no tests are needed. --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
8993235e8f
commit
73e39cf085
15 changed files with 106 additions and 157 deletions
|
@ -17,7 +17,7 @@ use style::stylesheets::DocumentStyleSheet;
|
|||
use style::values::computed::{FontStyle, FontWeight};
|
||||
|
||||
#[derive(Default, MallocSizeOf)]
|
||||
pub struct FontStore {
|
||||
pub(crate) struct FontStore {
|
||||
pub(crate) families: HashMap<LowercaseFontFamilyName, FontTemplates>,
|
||||
web_fonts_loading_for_stylesheets: Vec<(DocumentStyleSheet, usize)>,
|
||||
web_fonts_loading_for_script: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue