1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

Ladybird: Replace uses of JsonObject::get_deprecated()

This commit is contained in:
Sam Atkins 2023-01-04 21:22:55 +00:00 committed by Tim Flynn
parent 95b1cf2dcd
commit a5db4a0551

View file

@ -102,10 +102,10 @@ void InspectorWidget::set_selection(GUI::ModelIndex index)
Selection selection {}; Selection selection {};
if (json->has_u32("pseudo-element"sv)) { if (json->has_u32("pseudo-element"sv)) {
selection.dom_node_id = json->get_deprecated("parent-id"sv).to_i32(); selection.dom_node_id = json->get_i32("parent-id"sv).value();
selection.pseudo_element = static_cast<Web::CSS::Selector::PseudoElement>(json->get_deprecated("pseudo-element"sv).to_u32()); selection.pseudo_element = static_cast<Web::CSS::Selector::PseudoElement>(json->get_u32("pseudo-element"sv).value());
} else { } else {
selection.dom_node_id = json->get_deprecated("id"sv).to_i32(); selection.dom_node_id = json->get_i32("id"sv).value();
} }
if (selection == m_selection) if (selection == m_selection)