mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +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;
|
||||
|
|
|
@ -173,7 +173,7 @@ private:
|
|||
{
|
||||
}
|
||||
|
||||
static bool compare(HTML::Window const& window, MediaFeatureValue left, Comparison comparison, MediaFeatureValue right);
|
||||
static bool compare(HTML::Window const& window, MediaFeatureValue const& left, Comparison comparison, MediaFeatureValue const& right);
|
||||
MediaFeatureValue const& value() const { return m_value.get<MediaFeatureValue>(); }
|
||||
Range const& range() const { return m_value.get<Range>(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue