LibWeb: Replace templated retarget function with a regular one

The templating is not necessary anywhere and was effectively just a cast
This commit is contained in:
circl 2024-07-21 15:06:05 +02:00 committed by Andrew Kaster
commit 37f93e4be1
Notes: github-actions[bot] 2024-07-21 22:02:25 +00:00
5 changed files with 49 additions and 39 deletions

View file

@ -1911,7 +1911,7 @@ void Document::update_active_element()
Node* candidate = focused_element();
// 2. Set candidate to the result of retargeting candidate against this DocumentOrShadowRoot.
candidate = retarget<Node>(candidate, this);
candidate = verify_cast<Node>(retarget(candidate, this));
// 3. If candidate's root is not this DocumentOrShadowRoot, then return null.
if (&candidate->root() != this) {