mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 23:31:55 +00:00
LibWeb/CSS: Make ParsingContext's Realm optional
We only need a Realm to allocate CSSOM objects on the GC heap. Style values are not such objects, and over time, we'll be changing the parser to only produce non-CSSOM objects.
This commit is contained in:
parent
861f6e3965
commit
863ce746dc
Notes:
github-actions[bot]
2024-12-05 19:01:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: 863ce746dc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2783
2 changed files with 12 additions and 2 deletions
|
@ -13,6 +13,11 @@
|
|||
|
||||
namespace Web::CSS::Parser {
|
||||
|
||||
ParsingContext::ParsingContext(Mode mode)
|
||||
: m_mode(mode)
|
||||
{
|
||||
}
|
||||
|
||||
ParsingContext::ParsingContext(JS::Realm& realm, Mode mode)
|
||||
: m_realm(realm)
|
||||
, m_mode(mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue