mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
Inspector: Add a basic style sheet inspector
Choosing options from the `<select>` will load and display that style sheet's source text, with some checks to make sure that the text that just loaded is the one we currently want. The UI is a little goofy when scrolling, as it uses `position: sticky` which we don't implement yet. But that's just more motivation to implement it! :^)
This commit is contained in:
parent
49b2eb5f51
commit
da171c3230
Notes:
github-actions[bot]
2024-09-03 09:12:56 +00:00
Author: https://github.com/AtkinsSJ
Commit: da171c3230
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1168
Reviewed-by: https://github.com/trflynn89
18 changed files with 270 additions and 2 deletions
|
@ -305,6 +305,16 @@ void ViewImplementation::get_dom_node_html(i32 node_id)
|
|||
client().async_get_dom_node_html(page_id(), node_id);
|
||||
}
|
||||
|
||||
void ViewImplementation::list_style_sheets()
|
||||
{
|
||||
client().async_list_style_sheets(page_id());
|
||||
}
|
||||
|
||||
void ViewImplementation::request_style_sheet_source(Web::CSS::StyleSheetIdentifier const& identifier)
|
||||
{
|
||||
client().async_request_style_sheet_source(page_id(), identifier);
|
||||
}
|
||||
|
||||
void ViewImplementation::debug_request(ByteString const& request, ByteString const& argument)
|
||||
{
|
||||
client().async_debug_request(page_id(), request, argument);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue