mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Move IndependentFormattingContext::as_replaced to IndependentFormattingContextContents
This commit is contained in:
parent
b66dd66403
commit
b53959d23d
4 changed files with 32 additions and 19 deletions
|
@ -422,7 +422,7 @@ impl HoistedAbsolutelyPositionedBox {
|
|||
|
||||
let size;
|
||||
let replaced_used_size;
|
||||
match absolutely_positioned_box.context.as_replaced() {
|
||||
match absolutely_positioned_box.context.contents.as_replaced() {
|
||||
Ok(replaced) => {
|
||||
// https://drafts.csswg.org/css2/visudet.html#abs-replaced-width
|
||||
// https://drafts.csswg.org/css2/visudet.html#abs-replaced-height
|
||||
|
@ -474,7 +474,7 @@ impl HoistedAbsolutelyPositionedBox {
|
|||
|positioning_context| {
|
||||
let size;
|
||||
let fragments;
|
||||
match absolutely_positioned_box.context.as_replaced() {
|
||||
match absolutely_positioned_box.context.contents.as_replaced() {
|
||||
Ok(replaced) => {
|
||||
// https://drafts.csswg.org/css2/visudet.html#abs-replaced-width
|
||||
// https://drafts.csswg.org/css2/visudet.html#abs-replaced-height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue