mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +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: https://github.com/LadybirdBrowser/ladybird/commit/1e6f703b308 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
Reference in a new issue