mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Create base class CSSRule for all CSS rules
This is a foundation for handling other ("at") CSS rules.
This commit is contained in:
parent
b807d51598
commit
04d67d0239
Notes:
sideshowbarker
2024-07-18 21:52:19 +09:00
Author: https://github.com/speles
Commit: 04d67d0239
Pull-request: https://github.com/SerenityOS/serenity/pull/5456
Reviewed-by: https://github.com/awesomekling
12 changed files with 147 additions and 17 deletions
|
@ -25,8 +25,10 @@
|
|||
*/
|
||||
|
||||
#include <AK/HashMap.h>
|
||||
#include <LibWeb/CSS/CSSRule.h>
|
||||
#include <LibWeb/CSS/Parser/CSSParser.h>
|
||||
#include <LibWeb/CSS/PropertyID.h>
|
||||
#include <LibWeb/CSS/StyleRule.h>
|
||||
#include <LibWeb/CSS/StyleSheet.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <ctype.h>
|
||||
|
@ -853,7 +855,7 @@ public:
|
|||
private:
|
||||
CSS::ParsingContext m_context;
|
||||
|
||||
NonnullRefPtrVector<CSS::StyleRule> rules;
|
||||
NonnullRefPtrVector<CSS::CSSRule> rules;
|
||||
|
||||
struct CurrentRule {
|
||||
Vector<CSS::Selector> selectors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue