Create HoistedSharedFragment

This commit is contained in:
Manish Goregaokar 2020-07-24 15:08:25 -07:00
parent 96c0c50874
commit d476a10773
3 changed files with 23 additions and 8 deletions

View file

@ -8,6 +8,7 @@ use crate::geom::flow_relative::{Rect, Sides};
use crate::geom::{PhysicalPoint, PhysicalRect};
#[cfg(debug_assertions)]
use crate::layout_debug;
use crate::positioned::HoistedSharedFragment;
use gfx::font::FontMetrics as GfxFontMetrics;
use gfx::text::glyph::GlyphStore;
use gfx_traits::print_tree::PrintTree;
@ -74,7 +75,7 @@ pub(crate) enum Fragment {
#[derive(Serialize)]
pub(crate) struct AbsoluteOrFixedPositionedFragment {
pub position: ComputedPosition,
pub hoisted_fragment: ArcRefCell<Option<ArcRefCell<Fragment>>>,
pub hoisted_fragment: ArcRefCell<HoistedSharedFragment>,
}
#[derive(Serialize)]