mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb/CSS: Remove an unnecessary ParsingContext constructor
Anywhere we have a Node, we have a Document. So just use that.
This commit is contained in:
parent
0ac133d73b
commit
ca5dee4c55
Notes:
github-actions[bot]
2025-02-06 16:49:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: ca5dee4c55
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3464
Reviewed-by: https://github.com/ADKaster
4 changed files with 3 additions and 12 deletions
|
@ -47,14 +47,6 @@ ParsingContext::ParsingContext(DOM::Document const& document, Mode mode)
|
|||
{
|
||||
}
|
||||
|
||||
ParsingContext::ParsingContext(DOM::ParentNode& parent_node, Mode mode)
|
||||
: m_realm(parent_node.realm())
|
||||
, m_document(&parent_node.document())
|
||||
, m_url(parent_node.document().url())
|
||||
, m_mode(mode)
|
||||
{
|
||||
}
|
||||
|
||||
bool ParsingContext::in_quirks_mode() const
|
||||
{
|
||||
return m_document ? m_document->in_quirks_mode() : false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue