mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Unify layout logic for replaced and non-replaced floats&atomics (#37897)
Laying out a float or atomic inline will now use the same logic regardless of whether it's replaced or not. This reduces the amount of code, and should have no observable effect. Testing: Unneeded (no behavior change) This part of #37942 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
70c57c6136
commit
47c56d8d74
4 changed files with 94 additions and 146 deletions
|
@ -2076,11 +2076,8 @@ impl IndependentFormattingContext {
|
|||
.content_rect
|
||||
.translate(pbm_physical_offset.to_vector());
|
||||
|
||||
// Apply baselines if necessary.
|
||||
let mut fragment = match baselines {
|
||||
Some(baselines) => fragment.with_baselines(baselines),
|
||||
None => fragment,
|
||||
};
|
||||
// Apply baselines.
|
||||
fragment = fragment.with_baselines(baselines);
|
||||
|
||||
// Lay out absolutely positioned children if this new atomic establishes a containing block
|
||||
// for absolutes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue