mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +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
|
@ -53,7 +53,10 @@ private:
|
|||
virtual void resource_did_fail() override;
|
||||
virtual void resource_did_load() override;
|
||||
|
||||
// ^ HTMLElement
|
||||
// ^DOM::Node
|
||||
virtual bool is_html_link_element() const override { return true; }
|
||||
|
||||
// ^HTMLElement
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
struct LinkProcessingOptions {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue