mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make IndependentFormattingContext an enum
This commit is contained in:
parent
07d8c28d4a
commit
db80b8e3c1
6 changed files with 183 additions and 163 deletions
|
@ -204,7 +204,7 @@ where
|
|||
|
||||
// https://drafts.csswg.org/css-flexbox/#order-modified-document-order
|
||||
children.sort_by_key(|child| match &*child.borrow() {
|
||||
FlexLevelBox::FlexItem(item) => item.style.clone_order(),
|
||||
FlexLevelBox::FlexItem(item) => item.style().clone_order(),
|
||||
|
||||
// “Absolutely-positioned children of a flex container are treated
|
||||
// as having order: 0 for the purpose of determining their painting order
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue