mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-25 20:42:55 +00:00
LibWeb: Launder const in CSS::Selector::absolutized when returning self
This const method tries to return a RefPtr to non-const self. That's not kosher, but fixing it needs some architecture work.
This commit is contained in:
parent
16e764ddb6
commit
c36c7ed67b
Notes:
github-actions[bot]
2025-04-16 16:43:12 +00:00
Author: https://github.com/ADKaster
Commit: c36c7ed67b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 1 additions and 1 deletions
|
@ -602,7 +602,7 @@ bool Selector::contains_unknown_webkit_pseudo_element() const
|
||||||
RefPtr<Selector> Selector::absolutized(Selector::SimpleSelector const& selector_for_nesting) const
|
RefPtr<Selector> Selector::absolutized(Selector::SimpleSelector const& selector_for_nesting) const
|
||||||
{
|
{
|
||||||
if (!contains_the_nesting_selector())
|
if (!contains_the_nesting_selector())
|
||||||
return *this;
|
return fixme_launder_const_through_pointer_cast(*this);
|
||||||
|
|
||||||
Vector<CompoundSelector> absolutized_compound_selectors;
|
Vector<CompoundSelector> absolutized_compound_selectors;
|
||||||
absolutized_compound_selectors.ensure_capacity(m_compound_selectors.size());
|
absolutized_compound_selectors.ensure_capacity(m_compound_selectors.size());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue