Rename font_face::FontFaceRule to FontFaceData.

This commit is contained in:
Xidorn Quan 2017-03-30 11:39:58 +11:00
parent e36b92507e
commit 2c0347ac5b
5 changed files with 19 additions and 17 deletions

View file

@ -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)],
};