mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename ReplacedContent::used_size to used_size_as_if_inline_element
This commit is contained in:
parent
e86222d6bb
commit
14ddf39215
3 changed files with 8 additions and 5 deletions
|
@ -123,9 +123,12 @@ impl ReplacedContent {
|
|||
}
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css2/visudet.html#inline-replaced-width
|
||||
// https://drafts.csswg.org/css2/visudet.html#inline-replaced-height
|
||||
pub fn used_size(
|
||||
/// https://drafts.csswg.org/css2/visudet.html#inline-replaced-width
|
||||
/// https://drafts.csswg.org/css2/visudet.html#inline-replaced-height
|
||||
///
|
||||
/// Also used in other cases, for example
|
||||
/// https://drafts.csswg.org/css2/visudet.html#block-replaced-width
|
||||
pub fn used_size_as_if_inline_element(
|
||||
&self,
|
||||
containing_block: &ContainingBlock,
|
||||
style: &ComputedValues,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue