summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-23 23:21:39 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-23 23:21:39 +0200
commit5f0a1ef21b1b0a2ab40a5e3d20b9cec924e9df80 (patch)
treec6d64b97e768909ef2d62f87ec2dc4b459791302
parent9b8464f455963a45f5c6cab8777c22cb1cf97268 (diff)
downloadserenity-5f0a1ef21b1b0a2ab40a5e3d20b9cec924e9df80.zip
LibWeb: Always inline is<LayoutBox>() and is<LayoutBlock>()
-rw-r--r--Libraries/LibWeb/Layout/LayoutBlock.h2
-rw-r--r--Libraries/LibWeb/Layout/LayoutBox.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutBlock.h b/Libraries/LibWeb/Layout/LayoutBlock.h
index 226fce2869..416bbd0d01 100644
--- a/Libraries/LibWeb/Layout/LayoutBlock.h
+++ b/Libraries/LibWeb/Layout/LayoutBlock.h
@@ -117,7 +117,7 @@ void LayoutBlock::for_each_fragment(Callback callback) const
}
template<>
-inline bool is<LayoutBlock>(const LayoutNode& node)
+ALWAYS_INLINE bool is<LayoutBlock>(const LayoutNode& node)
{
return node.is_block();
}
diff --git a/Libraries/LibWeb/Layout/LayoutBox.h b/Libraries/LibWeb/Layout/LayoutBox.h
index b088dd12dd..2e8aef188f 100644
--- a/Libraries/LibWeb/Layout/LayoutBox.h
+++ b/Libraries/LibWeb/Layout/LayoutBox.h
@@ -98,7 +98,7 @@ private:
};
template<>
-inline bool is<LayoutBox>(const LayoutNode& node)
+ALWAYS_INLINE bool is<LayoutBox>(const LayoutNode& node)
{
return node.is_box();
}