pub trait ScriptThreadFactory {
// Required method
fn create(
state: InitialScriptState,
layout_factory: Arc<dyn LayoutFactory>,
font_cache_thread: FontCacheThread,
load_data: LoadData,
user_agent: Cow<'static, str>
);
}
Expand description
This trait is part of script_layout_interface
because it depends on both script_traits
and also LayoutFactory
from this crate. If it was in script_traits
there would be a
circular dependency.
Required Methods§
sourcefn create(
state: InitialScriptState,
layout_factory: Arc<dyn LayoutFactory>,
font_cache_thread: FontCacheThread,
load_data: LoadData,
user_agent: Cow<'static, str>
)
fn create( state: InitialScriptState, layout_factory: Arc<dyn LayoutFactory>, font_cache_thread: FontCacheThread, load_data: LoadData, user_agent: Cow<'static, str> )
Create a ScriptThread
.