mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibHTML: Implement some very simple selector matching.
We walk the entire DOM and check all selectors against all elements. Only id, class and tag name are checked right now. There's no ancestor stack or compound selectors. All in good time :^)
This commit is contained in:
parent
2b4eea5a50
commit
e971f5604c
7 changed files with 109 additions and 29 deletions
|
@ -2,8 +2,10 @@
|
|||
|
||||
class Node;
|
||||
class LayoutNode;
|
||||
class StyleRule;
|
||||
class StyleSheet;
|
||||
|
||||
void dump_tree(const Node&);
|
||||
void dump_tree(const LayoutNode&);
|
||||
void dump_sheet(const StyleSheet&);
|
||||
void dump_rule(const StyleRule&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue