LibWeb: Remove more hand-rolled type information :^)

Hoo boy, we've really accumulated a lot of this stuff.
This commit is contained in:
Andreas Kling 2021-01-01 18:12:33 +01:00
commit 3bb0cb2202
Notes: sideshowbarker 2024-07-19 00:15:51 +09:00
15 changed files with 5 additions and 40 deletions

View file

@ -29,6 +29,7 @@
#include <LibWeb/DOM/Element.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/HTML/AttributeNames.h>
#include <LibWeb/HTML/HTMLElement.h>
namespace Web::SelectorEngine {
@ -86,7 +87,7 @@ static bool matches(const CSS::Selector::SimpleSelector& component, const DOM::E
return false;
break;
case CSS::Selector::SimpleSelector::PseudoClass::Root:
if (!element.is_html_element())
if (!is<HTML::HTMLElement>(element))
return false;
break;
}