mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibWeb: Don't load stylesheets with rel="alternate"
We're not supposed to load these by default. Alternate stylesheets can be offered in a menu or something, if the user is interested.
This commit is contained in:
parent
2f26d4c6a1
commit
9bb4020195
2 changed files with 25 additions and 1 deletions
|
@ -49,8 +49,18 @@ private:
|
|||
virtual void resource_did_fail() override;
|
||||
virtual void resource_did_load() override;
|
||||
|
||||
void parse_attribute(const FlyString&, const String&) override;
|
||||
|
||||
void load_stylesheet(const URL&);
|
||||
|
||||
struct Relationship {
|
||||
enum {
|
||||
Alternate = 1 << 0,
|
||||
Stylesheet = 1 << 1,
|
||||
};
|
||||
};
|
||||
|
||||
unsigned m_relationship { 0 };
|
||||
RefPtr<StyleSheet> m_style_sheet;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue