diff options
author | Brian J. Burg <burg@cs.washington.edu> | 2012-10-29 18:41:53 -0700 |
---|---|---|
committer | Brian J. Burg <burg@cs.washington.edu> | 2012-10-29 18:53:55 -0700 |
commit | b545e4821e23bdbbeca15e293787fe507b1cf2e7 (patch) | |
tree | d896c8d12b7a9dd7640479c7b52371682e466fbd /src/servo/layout/layout_task.rs | |
parent | 82434c749c4eacc144a473a6c7e4140a7daaf03e (diff) | |
download | servo-b545e4821e23bdbbeca15e293787fe507b1cf2e7.tar.gz servo-b545e4821e23bdbbeca15e293787fe507b1cf2e7.zip |
Create font matchers and native equivalents. Add in a dummy font cache. Untangle some test font stuff.
Diffstat (limited to 'src/servo/layout/layout_task.rs')
-rw-r--r-- | src/servo/layout/layout_task.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/servo/layout/layout_task.rs b/src/servo/layout/layout_task.rs index 2cd32dab07a..454dfa0ec54 100644 --- a/src/servo/layout/layout_task.rs +++ b/src/servo/layout/layout_task.rs @@ -26,6 +26,7 @@ use render_task::RenderTask; use resource::image_cache_task::{ImageCacheTask, ImageResponseMsg}; use resource::local_image_cache::LocalImageCache; use servo_text::font_cache::FontCache; +use servo_text::font_matcher::FontMatcher; use std::arc::ARC; use std::net::url::Url; use core::util::replace; @@ -89,7 +90,7 @@ fn Layout(render_task: RenderTask, image_cache_task: image_cache_task.clone(), local_image_cache: @LocalImageCache(move image_cache_task), from_content: from_content, - font_cache: FontCache(), + font_cache: @FontCache::new(@FontMatcher::new()), layout_refs: DVec() } } |