mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Spec-comment parse_a_stylesheet()
Also introduce a `location` parameter when parsing a CSSStyleSheet. This is not provided by anyone yet.
This commit is contained in:
committed by
Andreas Kling
parent
05bd0ca3ee
commit
87b125dcb9
@@ -24,9 +24,9 @@ class CSSStyleSheet final
|
||||
public:
|
||||
using WrapperType = Bindings::CSSStyleSheetWrapper;
|
||||
|
||||
static NonnullRefPtr<CSSStyleSheet> create(NonnullRefPtrVector<CSSRule> rules)
|
||||
static NonnullRefPtr<CSSStyleSheet> create(NonnullRefPtrVector<CSSRule> rules, Optional<AK::URL> location)
|
||||
{
|
||||
return adopt_ref(*new CSSStyleSheet(move(rules)));
|
||||
return adopt_ref(*new CSSStyleSheet(move(rules), move(location)));
|
||||
}
|
||||
|
||||
virtual ~CSSStyleSheet() override = default;
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
void set_style_sheet_list(Badge<StyleSheetList>, StyleSheetList*);
|
||||
|
||||
private:
|
||||
explicit CSSStyleSheet(NonnullRefPtrVector<CSSRule>);
|
||||
explicit CSSStyleSheet(NonnullRefPtrVector<CSSRule>, Optional<AK::URL> location);
|
||||
|
||||
NonnullRefPtr<CSSRuleList> m_rules;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user