From 5f0a1ef21b1b0a2ab40a5e3d20b9cec924e9df80 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 23 Jun 2020 23:21:39 +0200 Subject: [PATCH] LibWeb: Always inline is() and is() --- Libraries/LibWeb/Layout/LayoutBlock.h | 2 +- Libraries/LibWeb/Layout/LayoutBox.h | 2 +- 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(const LayoutNode& node) +ALWAYS_INLINE bool is(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(const LayoutNode& node) +ALWAYS_INLINE bool is(const LayoutNode& node) { return node.is_box(); }