ladybird/Applications/Browser/InspectorWidget.h
Matrix89 988d1deca8 Browser+LibHTML: Add "Computed" styles to the DOM inspector
I though it would be nice to also show the style that the browser uses
to display an element.

In order to do that, in place of the styles table I've put a tab widget,
with tabs for both element and computed element styles.
2020-01-05 17:13:22 +01:00

21 lines
461 B
C++

#include <LibGUI/GWidget.h>
class Document;
class GTableView;
class GTreeView;
class InspectorWidget final : public GWidget {
C_OBJECT(InspectorWidget)
public:
virtual ~InspectorWidget();
void set_document(Document*);
private:
explicit InspectorWidget(GWidget* parent);
RefPtr<GTreeView> m_dom_tree_view;
RefPtr<GTableView> m_style_table_view;
RefPtr<GTableView> m_computed_style_table_view;
RefPtr<Document> m_document;
};