diff options
Diffstat (limited to 'components/shared/gfx/lib.rs')
-rw-r--r-- | components/shared/gfx/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/shared/gfx/lib.rs b/components/shared/gfx/lib.rs index e5699f2504a..032dcfd19e0 100644 --- a/components/shared/gfx/lib.rs +++ b/components/shared/gfx/lib.rs @@ -4,6 +4,8 @@ #![deny(unsafe_code)] +use std::sync::Arc; + use malloc_size_of_derive::MallocSizeOf; use range::{int_range_index, RangeIndex}; use serde::{Deserialize, Serialize}; @@ -14,3 +16,5 @@ int_range_index! { /// the middle of a glyph. struct ByteIndex(isize) } + +pub type WebFontLoadFinishedCallback = Arc<dyn Fn(bool) + Send + Sync + 'static>; |