mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Return Web::CSS::Selector::pseudo_element
by reference
This avoids many allocations and deallocations.
This commit is contained in:
parent
5d7a7a43c4
commit
8409178a11
Notes:
github-actions[bot]
2024-10-27 08:34:13 +00:00
Author: https://github.com/yyny Commit: https://github.com/LadybirdBrowser/ladybird/commit/8409178a111 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1989
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ public:
|
|||
~Selector() = default;
|
||||
|
||||
Vector<CompoundSelector> const& compound_selectors() const { return m_compound_selectors; }
|
||||
Optional<PseudoElement> pseudo_element() const { return m_pseudo_element; }
|
||||
Optional<PseudoElement> const& pseudo_element() const { return m_pseudo_element; }
|
||||
NonnullRefPtr<Selector> relative_to(SimpleSelector const&) const;
|
||||
bool contains_the_nesting_selector() const { return m_contains_the_nesting_selector; }
|
||||
NonnullRefPtr<Selector> absolutized(SimpleSelector const& selector_for_nesting) const;
|
||||
|
|
Loading…
Reference in a new issue