mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Servo build fixes.
This commit is contained in:
parent
c1c2b746c8
commit
7d30a7da75
18 changed files with 118 additions and 117 deletions
|
@ -64,7 +64,6 @@ use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
|
|||
use style::properties::ComputedValues;
|
||||
use style::selector_parser::RestyleDamage;
|
||||
use style::servo::restyle_damage::ServoRestyleDamage;
|
||||
use style::values::computed::LengthPercentageOrAuto;
|
||||
use webrender_api::units::LayoutTransform;
|
||||
|
||||
/// This marker trait indicates that a type is a struct with `#[repr(C)]` whose first field
|
||||
|
@ -1020,13 +1019,13 @@ impl BaseFlow {
|
|||
flags.insert(FlowFlags::IS_ABSOLUTELY_POSITIONED);
|
||||
|
||||
let logical_position = style.logical_position();
|
||||
if logical_position.inline_start == LengthPercentageOrAuto::Auto &&
|
||||
logical_position.inline_end == LengthPercentageOrAuto::Auto
|
||||
if logical_position.inline_start.is_auto() &&
|
||||
logical_position.inline_end.is_auto()
|
||||
{
|
||||
flags.insert(FlowFlags::INLINE_POSITION_IS_STATIC);
|
||||
}
|
||||
if logical_position.block_start == LengthPercentageOrAuto::Auto &&
|
||||
logical_position.block_end == LengthPercentageOrAuto::Auto
|
||||
if logical_position.block_start.is_auto() &&
|
||||
logical_position.block_end.is_auto()
|
||||
{
|
||||
flags.insert(FlowFlags::BLOCK_POSITION_IS_STATIC);
|
||||
}
|
||||
|
@ -1113,13 +1112,13 @@ impl BaseFlow {
|
|||
let logical_position = style.logical_position();
|
||||
self.flags.set(
|
||||
FlowFlags::INLINE_POSITION_IS_STATIC,
|
||||
logical_position.inline_start == LengthPercentageOrAuto::Auto &&
|
||||
logical_position.inline_end == LengthPercentageOrAuto::Auto,
|
||||
logical_position.inline_start.is_auto() &&
|
||||
logical_position.inline_end.is_auto()
|
||||
);
|
||||
self.flags.set(
|
||||
FlowFlags::BLOCK_POSITION_IS_STATIC,
|
||||
logical_position.block_start == LengthPercentageOrAuto::Auto &&
|
||||
logical_position.block_end == LengthPercentageOrAuto::Auto,
|
||||
logical_position.block_start.is_auto() &&
|
||||
logical_position.block_end.is_auto()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue