mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Add actual document loading for the CSS (at)import rule
This commit is contained in:
parent
54617e1a91
commit
183ebaee91
Notes:
sideshowbarker
2024-07-18 21:52:10 +09:00
Author: https://github.com/speles
Commit: 183ebaee91
Pull-request: https://github.com/SerenityOS/serenity/pull/5456
Reviewed-by: https://github.com/awesomekling
11 changed files with 229 additions and 56 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021, the SerenityOS developers.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -27,6 +28,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/Loader/CSSLoader.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -41,7 +43,7 @@ public:
|
|||
virtual void removed_from(Node&) override;
|
||||
|
||||
private:
|
||||
RefPtr<CSS::StyleSheet> m_stylesheet;
|
||||
CSSLoader m_css_loader;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue