mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibWeb: Add DOMTreeModel::index_for_node()
This is needed for telling the DOM Inspector to select a given Node.
This commit is contained in:
parent
3ef4ba810a
commit
8eef509c1b
2 changed files with 18 additions and 0 deletions
|
@ -26,6 +26,8 @@ public:
|
|||
virtual GUI::ModelIndex index(int row, int column, const GUI::ModelIndex& parent = GUI::ModelIndex()) const override;
|
||||
virtual GUI::ModelIndex parent_index(const GUI::ModelIndex&) const override;
|
||||
|
||||
GUI::ModelIndex index_for_node(DOM::Node*) const;
|
||||
|
||||
private:
|
||||
explicit DOMTreeModel(DOM::Document&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue