diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-06 20:07:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-06 20:10:36 +0200 |
commit | d9e0fd88235e3707bf3a6149b1be119a5e4e452f (patch) | |
tree | 2df320e8ee25c6bab6697c7f2d82d373158023c1 | |
parent | fa45b905bf404f3531406602294ee8d6a6896547 (diff) | |
download | serenity-d9e0fd88235e3707bf3a6149b1be119a5e4e452f.zip |
LibWeb: Rename Layout::Node::is_block_box() => is_block_container()
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/BlockContainer.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/Node.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockContainer.h b/Userland/Libraries/LibWeb/Layout/BlockContainer.h index 77c6c5feea..d502b1fa7a 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockContainer.h +++ b/Userland/Libraries/LibWeb/Layout/BlockContainer.h @@ -39,7 +39,7 @@ public: void set_scroll_offset(const Gfx::FloatPoint&); private: - virtual bool is_block_box() const final { return true; } + virtual bool is_block_container() const final { return true; } virtual bool wants_mouse_events() const override { return false; } virtual bool handle_mousewheel(Badge<EventHandler>, const Gfx::IntPoint&, unsigned buttons, unsigned modifiers, int wheel_delta) override; @@ -49,7 +49,7 @@ private: }; template<> -inline bool Node::fast_is<BlockContainer>() const { return is_block_box(); } +inline bool Node::fast_is<BlockContainer>() const { return is_block_container(); } template<typename Callback> void BlockContainer::for_each_fragment(Callback callback) diff --git a/Userland/Libraries/LibWeb/Layout/Node.h b/Userland/Libraries/LibWeb/Layout/Node.h index 97a7bb97ed..ccd58dc45f 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.h +++ b/Userland/Libraries/LibWeb/Layout/Node.h @@ -98,7 +98,7 @@ public: // These are used to optimize hot is<T> variants for some classes where dynamic_cast is too slow. virtual bool is_box() const { return false; } - virtual bool is_block_box() const { return false; } + virtual bool is_block_container() const { return false; } virtual bool is_text_node() const { return false; } virtual bool is_initial_containing_block_box() const { return false; } |