mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Browser: Fix unintentional Web::Element copy
This commit is contained in:
parent
a115702746
commit
47fdac7cea
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ InspectorWidget::InspectorWidget()
|
|||
auto* node = static_cast<Web::Node*>(index.internal_data());
|
||||
node->document().set_inspected_node(node);
|
||||
if (node->is_element()) {
|
||||
auto element = Web::to<Web::Element>(*node);
|
||||
auto& element = Web::to<Web::Element>(*node);
|
||||
if (element.resolved_style()) {
|
||||
m_style_table_view->set_model(Web::StylePropertiesModel::create(*element.resolved_style()));
|
||||
m_computed_style_table_view->set_model(Web::StylePropertiesModel::create(*element.computed_style()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue