mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #10999 - heycam:move-width-height, r=SimonSapin
Move width and height from Box to Position. This helps with style struct alignment between Servo and Gecko. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10999) <!-- Reviewable:end -->
This commit is contained in:
commit
8bc4785bed
7 changed files with 25 additions and 25 deletions
|
@ -1695,7 +1695,7 @@ impl Flow for BlockFlow {
|
|||
fn bubble_inline_sizes(&mut self) {
|
||||
// If this block has a fixed width, just use that for the minimum and preferred width,
|
||||
// rather than bubbling up children inline width.
|
||||
let consult_children = match self.fragment.style().get_box().width {
|
||||
let consult_children = match self.fragment.style().get_position().width {
|
||||
LengthOrPercentageOrAuto::Length(_) => false,
|
||||
_ => true,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue