mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement flexbox reordering
Add style property for order and implement reordering by this property in flex flow. Based on previous work by @zentner-kyle.
This commit is contained in:
parent
b214205ba9
commit
3580f91291
10 changed files with 96 additions and 69 deletions
|
@ -64,6 +64,12 @@ impl FlowList {
|
|||
}
|
||||
}
|
||||
|
||||
/// Provide a forward iterator with FlowRef items
|
||||
#[inline]
|
||||
pub fn iter_flow_ref_mut<'a>(&'a mut self) -> linked_list::IterMut<'a, FlowRef> {
|
||||
self.flows.iter_mut()
|
||||
}
|
||||
|
||||
/// O(1)
|
||||
#[inline]
|
||||
pub fn is_empty(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue