mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibWeb: Add more fast_is<T> helpers for DOM::Node subclasses
This commit is contained in:
parent
0e490e3352
commit
aecb144df0
Notes:
github-actions[bot]
2025-04-18 12:47:31 +00:00
Author: https://github.com/awesomekling
Commit: aecb144df0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
10 changed files with 68 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2024, Andreas Kling <andreas@ladybird.org>
|
||||
* Copyright (c) 2018-2025, Andreas Kling <andreas@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -144,6 +144,8 @@ public:
|
|||
virtual bool is_svg_style_element() const { return false; }
|
||||
virtual bool is_svg_svg_element() const { return false; }
|
||||
virtual bool is_svg_use_element() const { return false; }
|
||||
virtual bool is_svg_a_element() const { return false; }
|
||||
virtual bool is_svg_foreign_object_element() const { return false; }
|
||||
|
||||
bool in_a_document_tree() const;
|
||||
|
||||
|
@ -158,10 +160,13 @@ public:
|
|||
virtual bool is_html_element() const { return false; }
|
||||
virtual bool is_html_html_element() const { return false; }
|
||||
virtual bool is_html_anchor_element() const { return false; }
|
||||
virtual bool is_html_area_element() const { return false; }
|
||||
virtual bool is_html_base_element() const { return false; }
|
||||
virtual bool is_html_body_element() const { return false; }
|
||||
virtual bool is_html_head_element() const { return false; }
|
||||
virtual bool is_html_input_element() const { return false; }
|
||||
virtual bool is_html_link_element() const { return false; }
|
||||
virtual bool is_html_media_element() const { return false; }
|
||||
virtual bool is_html_progress_element() const { return false; }
|
||||
virtual bool is_html_script_element() const { return false; }
|
||||
virtual bool is_html_style_element() const { return false; }
|
||||
|
@ -170,6 +175,7 @@ public:
|
|||
virtual bool is_html_table_section_element() const { return false; }
|
||||
virtual bool is_html_table_row_element() const { return false; }
|
||||
virtual bool is_html_table_cell_element() const { return false; }
|
||||
virtual bool is_html_title_element() const { return false; }
|
||||
virtual bool is_html_br_element() const { return false; }
|
||||
virtual bool is_html_button_element() const { return false; }
|
||||
virtual bool is_html_slot_element() const { return false; }
|
||||
|
@ -178,6 +184,8 @@ public:
|
|||
virtual bool is_html_form_element() const { return false; }
|
||||
virtual bool is_html_image_element() const { return false; }
|
||||
virtual bool is_html_iframe_element() const { return false; }
|
||||
virtual bool is_html_frameset_element() const { return false; }
|
||||
virtual bool is_html_fieldset_element() const { return false; }
|
||||
virtual bool is_navigable_container() const { return false; }
|
||||
virtual bool is_lazy_loading() const { return false; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue