mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/CSS: Compare MediaFeatureValues using references not copies
This commit is contained in:
parent
e125ab360e
commit
1e6f703b30
Notes:
github-actions[bot]
2025-03-17 10:01:31 +00:00
Author: https://github.com/AtkinsSJ
Commit: 1e6f703b30
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3941
2 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ MatchResult MediaFeature::evaluate(HTML::Window const* window) const
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
bool MediaFeature::compare(HTML::Window const& window, MediaFeatureValue left, Comparison comparison, MediaFeatureValue right)
|
||||
bool MediaFeature::compare(HTML::Window const& window, MediaFeatureValue const& left, Comparison comparison, MediaFeatureValue const& right)
|
||||
{
|
||||
if (!left.is_same_type(right))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue