mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
LibWeb: Split CSS::StyleSheet into StyleSheet and CSSStyleSheet
This is a little convoluted but matches the CSSOM specification.
This commit is contained in:
parent
0af4762662
commit
fefb05f6f3
17 changed files with 162 additions and 82 deletions
|
@ -43,14 +43,14 @@ void CSSLoader::load_from_text(const String& text)
|
|||
{
|
||||
m_style_sheet = parse_css(CSS::ParsingContext(*m_document), text);
|
||||
if (!m_style_sheet)
|
||||
m_style_sheet = CSS::StyleSheet::create({});
|
||||
m_style_sheet = CSS::CSSStyleSheet::create({});
|
||||
|
||||
load_next_import_if_needed();
|
||||
}
|
||||
|
||||
void CSSLoader::load_from_url(const URL& url)
|
||||
{
|
||||
m_style_sheet = CSS::StyleSheet::create({});
|
||||
m_style_sheet = CSS::CSSStyleSheet::create({});
|
||||
|
||||
LoadRequest request;
|
||||
request.set_url(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue