1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-05 08:47:36 +00:00

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
parent d2613403e0
commit 3bb0cb2202
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;
}