mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibWeb: Move CSS classes into the Web::CSS namespace
This commit is contained in:
parent
3e389f4cdc
commit
1f008c95b6
Notes:
sideshowbarker
2024-07-19 04:35:42 +09:00
Author: https://github.com/awesomekling
Commit: 1f008c95b6
100 changed files with 358 additions and 366 deletions
|
@ -66,7 +66,7 @@ public:
|
|||
bool has_class(const FlyString&) const;
|
||||
const Vector<FlyString>& class_names() const { return m_classes; }
|
||||
|
||||
virtual void apply_presentational_hints(StyleProperties&) const { }
|
||||
virtual void apply_presentational_hints(CSS::StyleProperties&) const { }
|
||||
virtual void parse_attribute(const FlyString& name, const String& value);
|
||||
|
||||
void recompute_style();
|
||||
|
@ -76,14 +76,14 @@ public:
|
|||
|
||||
String name() const { return attribute(HTML::AttributeNames::name); }
|
||||
|
||||
const StyleProperties* resolved_style() const { return m_resolved_style.ptr(); }
|
||||
NonnullRefPtr<StyleProperties> computed_style();
|
||||
const CSS::StyleProperties* resolved_style() const { return m_resolved_style.ptr(); }
|
||||
NonnullRefPtr<CSS::StyleProperties> computed_style();
|
||||
|
||||
String inner_html() const;
|
||||
void set_inner_html(StringView);
|
||||
|
||||
protected:
|
||||
RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) override;
|
||||
RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;
|
||||
|
||||
private:
|
||||
Attribute* find_attribute(const FlyString& name);
|
||||
|
@ -92,7 +92,7 @@ private:
|
|||
FlyString m_tag_name;
|
||||
Vector<Attribute> m_attributes;
|
||||
|
||||
RefPtr<StyleProperties> m_resolved_style;
|
||||
RefPtr<CSS::StyleProperties> m_resolved_style;
|
||||
|
||||
Vector<FlyString> m_classes;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue