1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:18:12 +00:00

LibWeb: Add fast_is<T> for HTML::HTMLAnchorElement

We were spending 20% of style computation time on the HTML spec on
deciding whether DOM nodes were HTML anchor (a) tags or not.
This commit is contained in:
Andreas Kling 2022-03-02 15:14:38 +01:00
parent 65b38f2623
commit ad9f3f7ae6
2 changed files with 8 additions and 0 deletions

View file

@ -84,6 +84,7 @@ public:
virtual bool is_editable() const;
virtual bool is_html_html_element() const { return false; }
virtual bool is_html_anchor_element() const { return false; }
virtual bool is_html_template_element() const { return false; }
virtual bool is_browsing_context_container() const { return false; }