mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibWeb: Rename Layout::Box::size() to content_size()
This property represents the CSS content size, so let's reduce ambiguity by using the spec terminology. We also bring a bunch of related functions along for the ride.
This commit is contained in:
parent
dbe5af3c6f
commit
0608de8c12
17 changed files with 140 additions and 140 deletions
|
@ -57,13 +57,13 @@ ListItemMarkerBox::ListItemMarkerBox(DOM::Document& document, CSS::ListStyleType
|
|||
}
|
||||
|
||||
if (m_text.is_null()) {
|
||||
set_width(image_width + 4);
|
||||
set_content_width(image_width + 4);
|
||||
} else {
|
||||
auto text_width = font().width(m_text);
|
||||
set_width(image_width + text_width);
|
||||
set_content_width(image_width + text_width);
|
||||
}
|
||||
|
||||
set_height(max(image_height, line_height()));
|
||||
set_content_height(max(image_height, line_height()));
|
||||
}
|
||||
|
||||
ListItemMarkerBox::~ListItemMarkerBox()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue