Do not share entire FrameRenderer with layout, only current frame

This commit is contained in:
Fernando Jiménez Moreno 2018-08-31 17:41:23 +02:00
parent 1f406ef0a0
commit 8c40ef459b
8 changed files with 102 additions and 149 deletions

View file

@ -2000,7 +2000,7 @@ impl FragmentDisplayListBuilding for Fragment {
}
},
SpecificFragmentInfo::Media(ref fragment_info) => {
if let Some((ref image_key, _, _)) = fragment_info.frame_source.get_current_frame()
if let Some((ref image_key, _, _)) = fragment_info.current_frame
{
let base = create_base_display_item(state);
state.add_image_item(