mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 03:26:10 +00:00
LibWeb: Make StyleRule.m_at_rule_name a FlyString
This commit is contained in:
parent
d67e817d8e
commit
4bdfc2bb32
Notes:
sideshowbarker
2024-07-17 11:51:35 +09:00
Author: https://github.com/AtkinsSJ
Commit: 4bdfc2bb32
Pull-request: https://github.com/SerenityOS/serenity/pull/13643
1 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AK/FlyString.h>
|
||||||
#include <AK/RefCounted.h>
|
#include <AK/RefCounted.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibWeb/CSS/Parser/Block.h>
|
#include <LibWeb/CSS/Parser/Block.h>
|
||||||
|
@ -31,13 +32,13 @@ public:
|
||||||
|
|
||||||
Vector<ComponentValue> const& prelude() const { return m_prelude; }
|
Vector<ComponentValue> const& prelude() const { return m_prelude; }
|
||||||
RefPtr<Block const> block() const { return m_block; }
|
RefPtr<Block const> block() const { return m_block; }
|
||||||
String const& at_rule_name() const { return m_at_rule_name; }
|
StringView at_rule_name() const { return m_at_rule_name; }
|
||||||
|
|
||||||
String to_string() const;
|
String to_string() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Type const m_type;
|
Type const m_type;
|
||||||
String m_at_rule_name;
|
FlyString m_at_rule_name;
|
||||||
Vector<ComponentValue> m_prelude;
|
Vector<ComponentValue> m_prelude;
|
||||||
RefPtr<Block> m_block;
|
RefPtr<Block> m_block;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue