mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
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:
parent
3adfdd3257
commit
37f93e4be1
Notes:
github-actions[bot]
2024-07-21 22:02:25 +00:00
Author: https://github.com/circl-lastname
Commit: 37f93e4be1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/748
Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 49 additions and 39 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue