Implement StandaloneStyleContext::new.

This commit is contained in:
Bobby Holley 2016-01-25 18:15:25 -08:00
parent cafc0aabdf
commit a77a5ecb16
2 changed files with 35 additions and 3 deletions

View file

@ -50,6 +50,7 @@ pub fn heap_size_of_local_context() -> usize {
})
}
// Keep this implementation in sync with the one in ports/geckolib/traversal.rs.
fn create_or_get_local_context(shared_layout_context: &SharedLayoutContext)
-> Rc<LocalLayoutContext> {
LOCAL_CONTEXT_KEY.with(|r| {