Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using message passing for simple JS -> Layout "rpc-like" queries. #3164

Merged
merged 1 commit into from Sep 5, 2014
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -247,7 +247,7 @@ impl FontCacheTask {
}
}

pub fn get_font_template(&mut self, family: String, desc: FontTemplateDescriptor)
pub fn get_font_template(&self, family: String, desc: FontTemplateDescriptor)
-> Arc<FontTemplateData> {

let (response_chan, response_port) = channel();
@@ -262,7 +262,7 @@ impl FontCacheTask {
}
}

pub fn add_web_font(&mut self, family: String, url: Url) {
pub fn add_web_font(&self, family: String, url: Url) {
let (response_chan, response_port) = channel();
self.chan.send(AddWebFont(family, url, response_chan));
response_port.recv();
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.