diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2019-01-14 11:56:27 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2019-01-14 16:10:26 +0100 |
commit | aacaf1bd7011f6b0800940eff7bbfbafcff6c3cf (patch) | |
tree | 99e2e72c6ee0ad8ab3501e7f31b1ec865ec135b5 /components/layout/construct.rs | |
parent | a92dd09fc99a4646a919efd68c9dd9fac30e0f49 (diff) | |
download | servo-aacaf1bd7011f6b0800940eff7bbfbafcff6c3cf.tar.gz servo-aacaf1bd7011f6b0800940eff7bbfbafcff6c3cf.zip |
Remove FlowConstructionUtils
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index cef9d5f5be5..a0bfcfd074e 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -2045,23 +2045,7 @@ where } } -// This must not be public because only the layout constructor can call these -// methods. -trait FlowConstructionUtils { - /// Adds a new flow as a child of this flow. Removes the flow from the given leaf set if - /// it's present. - fn add_new_child(&mut self, new_child: FlowRef); - - /// Finishes a flow. Once a flow is finished, no more child flows or boxes may be added to it. - /// This will normally run the bubble-inline-sizes (minimum and preferred -- i.e. intrinsic -- - /// inline-size) calculation, unless the global `bubble_inline-sizes_separately` flag is on. - /// - /// All flows must be finished at some point, or they will not have their intrinsic inline- - /// sizes properly computed. (This is not, however, a memory safety problem.) - fn finish(&mut self); -} - -impl FlowConstructionUtils for FlowRef { +impl FlowRef { /// Adds a new flow as a child of this flow. Fails if this flow is marked as a leaf. fn add_new_child(&mut self, mut new_child: FlowRef) { { |