mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
style: Do not use synthetic display-inside values.
This matches the new servo layout engine too, and thus removes some #[cfg] gunk. Just use `flow` since it doesn't simplify the layout code as much. Differential Revision: https://phabricator.services.mozilla.com/D45973
This commit is contained in:
parent
0dfbd38532
commit
2b499e4850
2 changed files with 16 additions and 40 deletions
|
@ -12,8 +12,6 @@ use crate::properties::longhands::float::computed_value::T as Float;
|
|||
use crate::properties::longhands::overflow_x::computed_value::T as Overflow;
|
||||
use crate::properties::longhands::position::computed_value::T as Position;
|
||||
use crate::properties::{self, ComputedValues, StyleBuilder};
|
||||
#[cfg(any(feature = "servo-layout-2013", feature = "gecko"))]
|
||||
use crate::values::specified::box_::DisplayInside;
|
||||
use app_units::Au;
|
||||
|
||||
/// A struct that implements all the adjustment methods.
|
||||
|
@ -207,7 +205,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
self.style.pseudo.map_or(false, |p| p.is_marker()) &&
|
||||
self.style.get_parent_list().clone_list_style_position() ==
|
||||
ListStylePosition::Outside &&
|
||||
layout_parent_style.get_box().clone_display().inside() != DisplayInside::Inline
|
||||
!layout_parent_style.get_box().clone_display().is_inline_flow()
|
||||
);
|
||||
|
||||
if !blockify {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue