@@ -73,13 +73,13 @@ impl Forest {
7373 . width
7474 . maybe_max ( style. min_size . width . resolve ( size. width ) )
7575 . maybe_min ( style. max_size . width . resolve ( size. width ) )
76- . to_number ( ) ,
76+ . into ( ) ,
7777 height : first_pass
7878 . size
7979 . height
8080 . maybe_max ( style. min_size . height . resolve ( size. height ) )
8181 . maybe_min ( style. max_size . height . resolve ( size. height ) )
82- . to_number ( ) ,
82+ . into ( ) ,
8383 } ,
8484 size,
8585 true ,
@@ -358,7 +358,7 @@ impl Forest {
358358 . main ( dir)
359359 . maybe_max ( child. min_size . main ( dir) )
360360 . maybe_min ( child. size . main ( dir) )
361- . to_number ( ) ;
361+ . into ( ) ;
362362
363363 child
364364 . hypothetical_inner_size
@@ -608,7 +608,7 @@ impl Forest {
608608 . width
609609 . maybe_min ( child. size . width )
610610 . maybe_max ( child. min_size . width )
611- . to_number ( )
611+ . into ( )
612612 } else {
613613 child. min_size . main ( dir)
614614 } ;
@@ -677,12 +677,12 @@ impl Forest {
677677 self . compute_internal (
678678 child. node ,
679679 Size {
680- width : if is_row { child. target_size . width . to_number ( ) } else { child_cross } ,
681- height : if is_row { child_cross } else { child. target_size . height . to_number ( ) } ,
680+ width : if is_row { child. target_size . width . into ( ) } else { child_cross } ,
681+ height : if is_row { child_cross } else { child. target_size . height . into ( ) } ,
682682 } ,
683683 Size {
684- width : if is_row { container_size. main ( dir) . to_number ( ) } else { available_space. width } ,
685- height : if is_row { available_space. height } else { container_size. main ( dir) . to_number ( ) } ,
684+ width : if is_row { container_size. main ( dir) . into ( ) } else { available_space. width } ,
685+ height : if is_row { available_space. height } else { container_size. main ( dir) . into ( ) } ,
686686 } ,
687687 false ,
688688 )
@@ -717,19 +717,19 @@ impl Forest {
717717 child. node ,
718718 Size {
719719 width : if is_row {
720- child. target_size . width . to_number ( )
720+ child. target_size . width . into ( )
721721 } else {
722- child. hypothetical_inner_size . width . to_number ( )
722+ child. hypothetical_inner_size . width . into ( )
723723 } ,
724724 height : if is_row {
725- child. hypothetical_inner_size . height . to_number ( )
725+ child. hypothetical_inner_size . height . into ( )
726726 } else {
727- child. target_size . height . to_number ( )
727+ child. target_size . height . into ( )
728728 } ,
729729 } ,
730730 Size {
731- width : if is_row { container_size. width . to_number ( ) } else { node_size. width } ,
732- height : if is_row { node_size. height } else { container_size. height . to_number ( ) } ,
731+ width : if is_row { container_size. width . into ( ) } else { node_size. width } ,
732+ height : if is_row { node_size. height } else { container_size. height . into ( ) } ,
733733 } ,
734734 true ,
735735 ) ;
@@ -1127,8 +1127,8 @@ impl Forest {
11271127 let layout_item = |child : & mut FlexItem | {
11281128 let result = self . compute_internal (
11291129 child. node ,
1130- child. target_size . map ( |s| s. to_number ( ) ) ,
1131- container_size. map ( |s| s. to_number ( ) ) ,
1130+ child. target_size . map ( |s| s. into ( ) ) ,
1131+ container_size. map ( |s| s. into ( ) ) ,
11321132 true ,
11331133 ) ;
11341134
@@ -1182,8 +1182,8 @@ impl Forest {
11821182 . collect :: < sys:: Vec < _ > > ( ) ;
11831183
11841184 for ( order, child) in candidates {
1185- let container_width = container_size. width . to_number ( ) ;
1186- let container_height = container_size. height . to_number ( ) ;
1185+ let container_width = container_size. width . into ( ) ;
1186+ let container_height = container_size. height . into ( ) ;
11871187
11881188 let child_style = self . nodes [ child] . style ;
11891189
0 commit comments