1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +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:
Andreas Kling 2022-02-06 00:49:09 +01:00
parent dbe5af3c6f
commit 0608de8c12
17 changed files with 140 additions and 140 deletions

View file

@ -32,7 +32,7 @@ void SVGFormattingContext::run(Box& box, LayoutMode)
if (is<SVGPathBox>(descendant)) {
auto& path_box = static_cast<SVGPathBox&>(descendant);
auto& path = path_box.dom_node().get_path();
path_box.set_size(path.bounding_box().size());
path_box.set_content_size(path.bounding_box().size());
total_bounding_box = total_bounding_box.united(path.bounding_box());
}
@ -40,7 +40,7 @@ void SVGFormattingContext::run(Box& box, LayoutMode)
return IterationDecision::Continue;
});
box.set_size(total_bounding_box.size());
box.set_content_size(total_bounding_box.size());
}
}