mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
Ladybird: Add a very simple DOM inspector
We use a ModelTranslator to expose a DOMTreeModel from LibWebView :^) It allows you to select the currently inspected node, which causes the engine to render a little box model overlay above the web content.
This commit is contained in:
parent
98b6aea234
commit
5ac5fef468
5 changed files with 53 additions and 2 deletions
|
@ -78,7 +78,7 @@ GUI::ModelIndex ModelTranslator::to_gui(QModelIndex const& index) const
|
|||
{
|
||||
if (!index.isValid())
|
||||
return {};
|
||||
return m_model->create_index_unsafe(index.row(), index.column(), index.internalPointer());
|
||||
return m_model->unsafe_create_index(index.row(), index.column(), index.internalPointer());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue