mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +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
|
@ -30,7 +30,7 @@ void InlineLevelIterator::enter_node_with_box_model_metrics(Layout::NodeWithStyl
|
|||
|
||||
// FIXME: It's really weird that *this* is where we assign box model metrics for these layout nodes..
|
||||
|
||||
auto& node_state = m_formatting_state.ensure(node);
|
||||
auto& node_state = m_formatting_state.get_mutable(node);
|
||||
auto const& container_state = m_formatting_state.get(m_container);
|
||||
auto const& computed_values = node.computed_values();
|
||||
|
||||
|
@ -51,7 +51,7 @@ void InlineLevelIterator::exit_node_with_box_model_metrics()
|
|||
m_extra_trailing_metrics = ExtraBoxMetrics {};
|
||||
|
||||
auto& node = m_box_model_node_stack.last();
|
||||
auto& node_state = m_formatting_state.ensure(node);
|
||||
auto& node_state = m_formatting_state.get_mutable(node);
|
||||
auto const& container_state = m_formatting_state.get(m_container);
|
||||
auto const& computed_values = node.computed_values();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue