summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutNode.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-24 14:34:40 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-24 16:49:51 +0200
commit959464fce404f53a8af4ce0b38ec7426f3eb8a05 (patch)
treeaee7ddc63c172478e4224ef1859b50f0d8d45023 /Libraries/LibWeb/Layout/LayoutNode.h
parent6f28f080969191e4a966d226739ad48cf43dac72 (diff)
downloadserenity-959464fce404f53a8af4ce0b38ec7426f3eb8a05.zip
LibWeb: Move position and text-align to LayoutStyle
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutNode.h')
-rw-r--r--Libraries/LibWeb/Layout/LayoutNode.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutNode.h b/Libraries/LibWeb/Layout/LayoutNode.h
index da723db51d..5425583a02 100644
--- a/Libraries/LibWeb/Layout/LayoutNode.h
+++ b/Libraries/LibWeb/Layout/LayoutNode.h
@@ -192,8 +192,6 @@ public:
const StyleProperties& specified_style() const;
const ImmutableLayoutStyle& style() const;
- CSS::Position position() const;
- CSS::TextAlign text_align() const;
LayoutNodeWithStyle* parent();
const LayoutNodeWithStyle* parent() const;
@@ -263,9 +261,6 @@ public:
const ImmutableLayoutStyle& style() const { return static_cast<const ImmutableLayoutStyle&>(m_style); }
- CSS::Position position() const { return m_position; }
- CSS::TextAlign text_align() const { return m_text_align; }
-
protected:
explicit LayoutNodeWithStyle(const Node*, NonnullRefPtr<StyleProperties>);
@@ -308,20 +303,6 @@ inline const ImmutableLayoutStyle& LayoutNode::style() const
return parent()->style();
}
-inline CSS::Position LayoutNode::position() const
-{
- if (m_has_style)
- return static_cast<const LayoutNodeWithStyle*>(this)->position();
- return parent()->position();
-}
-
-inline CSS::TextAlign LayoutNode::text_align() const
-{
- if (m_has_style)
- return static_cast<const LayoutNodeWithStyle*>(this)->text_align();
- return parent()->text_align();
-}
-
inline const LayoutNodeWithStyle* LayoutNode::parent() const
{
return static_cast<const LayoutNodeWithStyle*>(TreeNode<LayoutNode>::parent());