mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user