mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +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
@@ -12,9 +12,11 @@
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
CSSStyleSheet::CSSStyleSheet(NonnullRefPtrVector<CSSRule> rules)
|
||||
CSSStyleSheet::CSSStyleSheet(NonnullRefPtrVector<CSSRule> rules, Optional<AK::URL> location)
|
||||
: m_rules(CSSRuleList::create(move(rules)))
|
||||
{
|
||||
if (location.has_value())
|
||||
set_location(location->to_string());
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/cssom/#dom-cssstylesheet-insertrule
|
||||
|
||||
Reference in New Issue
Block a user