mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibDevTools: Compare StyleSheetIdentifiers using operator==
We were ignoring the dom_element_unique_id field, which meant if we had more than one inline style sheet on a page, we would not distinguish between them. This had the effect of halting the style sheet loading process in the dev tools, with none appearing.
This commit is contained in:
parent
9ebdb58604
commit
3d141ac6a1
Notes:
github-actions[bot]
2025-09-26 20:32:01 +00:00
Author: https://github.com/AtkinsSJ
Commit: 3d141ac6a1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6315
1 changed files with 1 additions and 3 deletions
|
|
@ -69,9 +69,7 @@ void StyleSheetsActor::set_style_sheets(Vector<Web::CSS::StyleSheetIdentifier> s
|
|||
|
||||
void StyleSheetsActor::style_sheet_source_received(Web::CSS::StyleSheetIdentifier const& style_sheet, String source)
|
||||
{
|
||||
auto index = m_style_sheets.find_first_index_if([&](auto const& candidate) {
|
||||
return candidate.type == style_sheet.type && candidate.url == style_sheet.url;
|
||||
});
|
||||
auto index = m_style_sheets.find_first_index(style_sheet);
|
||||
if (!index.has_value())
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue