mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-06 11:12:54 +00:00
LibWeb: Add method for listing all style sheets on a page
This will be used by the inspector, for showing style sheet contents. Identifying a specific style sheet is a bit tricky. Depending on where it came from, a style sheet may have a URL, it might be associated with a DOM element, both, or neither. This varied information is wrapped in a new StyleSheetIdentifier struct.
This commit is contained in:
parent
dd3b011f15
commit
51a426cc05
Notes:
github-actions[bot]
2024-09-03 09:13:10 +00:00
Author: https://github.com/AtkinsSJ
Commit: 51a426cc05
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1168
Reviewed-by: https://github.com/trflynn89
10 changed files with 214 additions and 1 deletions
|
@ -32,6 +32,9 @@ public:
|
|||
private:
|
||||
HTMLStyleElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
// ^DOM::Node
|
||||
virtual bool is_html_style_element() const override { return true; }
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue