mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +00:00
AK: Ignore possible const reference when comparing type equality in is
This commit is contained in:
parent
4e57a2aedf
commit
d31aec25e8
Notes:
github-actions[bot]
2025-08-22 18:27:19 +00:00
Author: https://github.com/tcl3
Commit: d31aec25e8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5953
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ namespace AK {
|
|||
template<typename OutputType, typename InputType>
|
||||
ALWAYS_INLINE bool is(InputType& input)
|
||||
{
|
||||
static_assert(!SameAs<OutputType, InputType>);
|
||||
static_assert(!SameAs<RemoveCVReference<OutputType>, RemoveCVReference<InputType>>);
|
||||
if constexpr (requires { input.template fast_is<OutputType>(); }) {
|
||||
return input.template fast_is<OutputType>();
|
||||
}
|
||||
|
|
|
@ -3686,7 +3686,7 @@ Optional<Element::Directionality> Element::contained_text_auto_directionality(bo
|
|||
// - an element whose dir attribute is not in the undefined state
|
||||
// then continue.
|
||||
// NOTE: "any ancestor element of descendant that is a descendant of element" will be iterated already.
|
||||
auto is_one_of_the_filtered_elements = [](auto& descendant) -> bool {
|
||||
auto is_one_of_the_filtered_elements = [](DOM::Node const& descendant) -> bool {
|
||||
return is<HTML::HTMLScriptElement>(descendant)
|
||||
|| is<HTML::HTMLStyleElement>(descendant)
|
||||
|| is<HTML::HTMLTextAreaElement>(descendant)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue