mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Add fast_is<T>() for Layout::Label
Spotted this in a profile while wheel scrolling up & down.
This commit is contained in:
parent
8554952690
commit
c908fa83e3
Notes:
sideshowbarker
2024-07-18 01:51:02 +09:00
Author: https://github.com/awesomekling
Commit: c908fa83e3
2 changed files with 7 additions and 1 deletions
|
@ -104,6 +104,7 @@ public:
|
|||
virtual bool is_initial_containing_block_box() const { return false; }
|
||||
virtual bool is_svg_box() const { return false; }
|
||||
virtual bool is_svg_path_box() const { return false; }
|
||||
virtual bool is_label() const { return false; }
|
||||
|
||||
template<typename T>
|
||||
bool fast_is() const = delete;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue