mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 02:56:10 +00:00
LibWeb: StyleResolver: Keep track of specificity of matched selector
This way it gets easier to compare matches.
This commit is contained in:
parent
c4588a2cde
commit
bf9c5ffb3f
Notes:
sideshowbarker
2024-07-18 17:16:25 +09:00
Author: https://github.com/TobyAsE
Commit: bf9c5ffb3f
Pull-request: https://github.com/SerenityOS/serenity/pull/7455
Reviewed-by: https://github.com/linusg
2 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ struct MatchingRule {
|
|||
size_t style_sheet_index { 0 };
|
||||
size_t rule_index { 0 };
|
||||
size_t selector_index { 0 };
|
||||
u32 specificity { 0 };
|
||||
};
|
||||
|
||||
class StyleResolver {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue