mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Create HoistedSharedFragment
This commit is contained in:
parent
96c0c50874
commit
d476a10773
3 changed files with 23 additions and 8 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue