mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
This commit is contained in:
parent
efe4329f9f
commit
1dd6b7f5b7
76 changed files with 671 additions and 671 deletions
|
@ -52,10 +52,10 @@ void InspectorWidget::set_selection(GUI::ModelIndex const index)
|
|||
|
||||
Selection selection {};
|
||||
if (json->has_u32("pseudo-element"sv)) {
|
||||
selection.dom_node_id = json->get("parent-id"sv).to_i32();
|
||||
selection.pseudo_element = static_cast<Web::CSS::Selector::PseudoElement>(json->get("pseudo-element"sv).to_u32());
|
||||
selection.dom_node_id = json->get_deprecated("parent-id"sv).to_i32();
|
||||
selection.pseudo_element = static_cast<Web::CSS::Selector::PseudoElement>(json->get_deprecated("pseudo-element"sv).to_u32());
|
||||
} else {
|
||||
selection.dom_node_id = json->get("id"sv).to_i32();
|
||||
selection.dom_node_id = json->get_deprecated("id"sv).to_i32();
|
||||
}
|
||||
|
||||
if (selection == m_selection)
|
||||
|
@ -181,21 +181,21 @@ void InspectorWidget::update_node_box_model(StringView node_box_sizing_json)
|
|||
auto json_value = json_or_error.release_value();
|
||||
auto const& json_object = json_value.as_object();
|
||||
|
||||
m_node_box_sizing.margin.top = json_object.get("margin_top"sv).to_float();
|
||||
m_node_box_sizing.margin.right = json_object.get("margin_right"sv).to_float();
|
||||
m_node_box_sizing.margin.bottom = json_object.get("margin_bottom"sv).to_float();
|
||||
m_node_box_sizing.margin.left = json_object.get("margin_left"sv).to_float();
|
||||
m_node_box_sizing.padding.top = json_object.get("padding_top"sv).to_float();
|
||||
m_node_box_sizing.padding.right = json_object.get("padding_right"sv).to_float();
|
||||
m_node_box_sizing.padding.bottom = json_object.get("padding_bottom"sv).to_float();
|
||||
m_node_box_sizing.padding.left = json_object.get("padding_left"sv).to_float();
|
||||
m_node_box_sizing.border.top = json_object.get("border_top"sv).to_float();
|
||||
m_node_box_sizing.border.right = json_object.get("border_right"sv).to_float();
|
||||
m_node_box_sizing.border.bottom = json_object.get("border_bottom"sv).to_float();
|
||||
m_node_box_sizing.border.left = json_object.get("border_left"sv).to_float();
|
||||
m_node_box_sizing.margin.top = json_object.get_deprecated("margin_top"sv).to_float();
|
||||
m_node_box_sizing.margin.right = json_object.get_deprecated("margin_right"sv).to_float();
|
||||
m_node_box_sizing.margin.bottom = json_object.get_deprecated("margin_bottom"sv).to_float();
|
||||
m_node_box_sizing.margin.left = json_object.get_deprecated("margin_left"sv).to_float();
|
||||
m_node_box_sizing.padding.top = json_object.get_deprecated("padding_top"sv).to_float();
|
||||
m_node_box_sizing.padding.right = json_object.get_deprecated("padding_right"sv).to_float();
|
||||
m_node_box_sizing.padding.bottom = json_object.get_deprecated("padding_bottom"sv).to_float();
|
||||
m_node_box_sizing.padding.left = json_object.get_deprecated("padding_left"sv).to_float();
|
||||
m_node_box_sizing.border.top = json_object.get_deprecated("border_top"sv).to_float();
|
||||
m_node_box_sizing.border.right = json_object.get_deprecated("border_right"sv).to_float();
|
||||
m_node_box_sizing.border.bottom = json_object.get_deprecated("border_bottom"sv).to_float();
|
||||
m_node_box_sizing.border.left = json_object.get_deprecated("border_left"sv).to_float();
|
||||
|
||||
m_element_size_view->set_node_content_width(json_object.get("content_width"sv).to_float());
|
||||
m_element_size_view->set_node_content_height(json_object.get("content_height"sv).to_float());
|
||||
m_element_size_view->set_node_content_width(json_object.get_deprecated("content_width"sv).to_float());
|
||||
m_element_size_view->set_node_content_height(json_object.get_deprecated("content_height"sv).to_float());
|
||||
m_element_size_view->set_box_model(m_node_box_sizing);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue