mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Add fast_is<T> helpers for Navigable & TraversableNavigable
This commit is contained in:
parent
f35069d63b
commit
0e490e3352
Notes:
github-actions[bot]
2025-04-18 12:47:37 +00:00
Author: https://github.com/awesomekling
Commit: 0e490e3352
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
3 changed files with 9 additions and 6 deletions
|
@ -99,11 +99,6 @@ Vector<GC::Root<Navigable>> Navigable::child_navigables() const
|
|||
return results;
|
||||
}
|
||||
|
||||
bool Navigable::is_traversable() const
|
||||
{
|
||||
return is<TraversableNavigable>(*this);
|
||||
}
|
||||
|
||||
bool Navigable::is_ancestor_of(GC::Ref<Navigable> other) const
|
||||
{
|
||||
for (auto ancestor = other->parent(); ancestor; ancestor = ancestor->parent()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue