mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Rename FormattingState::ensure() -> get_mutable()
This makes it much more obvious what the difference between get() and get_mutable() is.
This commit is contained in:
parent
0f15d1f947
commit
db5bf6e64c
10 changed files with 49 additions and 51 deletions
|
@ -32,7 +32,7 @@ void SVGFormattingContext::run(Box const& box, LayoutMode)
|
|||
auto stroke_width = geometry_box.dom_node().stroke_width().value_or(0);
|
||||
bounding_box.inflate(stroke_width, stroke_width);
|
||||
|
||||
auto& geometry_box_state = m_state.ensure(geometry_box);
|
||||
auto& geometry_box_state = m_state.get_mutable(geometry_box);
|
||||
geometry_box_state.offset = bounding_box.top_left();
|
||||
geometry_box_state.content_width = bounding_box.width();
|
||||
geometry_box_state.content_height = bounding_box.height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue