mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Rename font_face::FontFaceRule to FontFaceData.
This commit is contained in:
parent
e36b92507e
commit
2c0347ac5b
5 changed files with 19 additions and 17 deletions
|
@ -5,7 +5,7 @@
|
|||
use gfx::font_cache_thread::FontCacheThread;
|
||||
use ipc_channel::ipc;
|
||||
use style::computed_values::font_family::FamilyName;
|
||||
use style::font_face::{FontFaceRule, Source};
|
||||
use style::font_face::{FontFaceData, Source};
|
||||
|
||||
#[test]
|
||||
fn test_local_web_font() {
|
||||
|
@ -14,7 +14,7 @@ fn test_local_web_font() {
|
|||
let font_cache_thread = FontCacheThread::new(inp_chan, None);
|
||||
let family_name = FamilyName(From::from("test family"));
|
||||
let variant_name = FamilyName(From::from("test font face"));
|
||||
let font_face_rule = FontFaceRule {
|
||||
let font_face_rule = FontFaceData {
|
||||
family: family_name.clone(),
|
||||
sources: vec![Source::Local(variant_name)],
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue