summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Element.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-26 20:01:35 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-26 20:05:15 +0200
commit1f008c95b6d80adaaf3cf54cf89019c54b70e17f (patch)
treebbb1a7dc68d5cd6fa83bf56e98b94607a7fe766f /Libraries/LibWeb/DOM/Element.h
parent3e389f4cdcffbe68aaa0571af532d6668be32a07 (diff)
downloadserenity-1f008c95b6d80adaaf3cf54cf89019c54b70e17f.zip
LibWeb: Move CSS classes into the Web::CSS namespace
Diffstat (limited to 'Libraries/LibWeb/DOM/Element.h')
-rw-r--r--Libraries/LibWeb/DOM/Element.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Libraries/LibWeb/DOM/Element.h b/Libraries/LibWeb/DOM/Element.h
index 12f8b9652c..579bee58ba 100644
--- a/Libraries/LibWeb/DOM/Element.h
+++ b/Libraries/LibWeb/DOM/Element.h
@@ -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;
};