mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb/CSS: Add operator== to StyleSheetIdentifier
Only the rule count isn't part of identifying the style sheet.
This commit is contained in:
parent
f17317b7fc
commit
9ebdb58604
Notes:
github-actions[bot]
2025-09-26 20:32:06 +00:00
Author: https://github.com/AtkinsSJ
Commit: 9ebdb58604
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6315
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ struct StyleSheetIdentifier {
|
|||
Optional<UniqueNodeID> dom_element_unique_id {};
|
||||
Optional<String> url {};
|
||||
size_t rule_count { 0 };
|
||||
|
||||
bool operator==(StyleSheetIdentifier const& other) const
|
||||
{
|
||||
return type == other.type && dom_element_unique_id == other.dom_element_unique_id && url == other.url;
|
||||
}
|
||||
};
|
||||
|
||||
StringView style_sheet_identifier_type_to_string(StyleSheetIdentifier::Type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue