mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb/CSS: Extract CSSStyleSheet's ParsingParams code into a method
This repeated code is a bit unwieldy.
This commit is contained in:
parent
1abc628cd8
commit
c679643391
Notes:
github-actions[bot]
2025-04-09 17:47:33 +00:00
Author: https://github.com/AtkinsSJ
Commit: c679643391
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4285
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 13 additions and 6 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibWeb/CSS/CSSRule.h>
|
||||
#include <LibWeb/CSS/CSSRuleList.h>
|
||||
#include <LibWeb/CSS/CSSStyleRule.h>
|
||||
#include <LibWeb/CSS/Parser/Parser.h>
|
||||
#include <LibWeb/CSS/StyleSheet.h>
|
||||
#include <LibWeb/DOM/Node.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
@ -105,6 +106,8 @@ private:
|
|||
void set_constructed(bool constructed) { m_constructed = constructed; }
|
||||
void set_disallow_modification(bool disallow_modification) { m_disallow_modification = disallow_modification; }
|
||||
|
||||
Parser::ParsingParams make_parsing_params() const;
|
||||
|
||||
Optional<String> m_source_text;
|
||||
|
||||
GC::Ptr<CSSRuleList> m_rules;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue