LibWeb/CSS: Return a MatchResult from MediaFeature::compare()

This commit on its own has no observable behaviour changes, as we still
only return True or False, but for the next commit, we'll need to be
able to return the Unknown state here, and without this change we'd get
regressions.
This commit is contained in:
Sam Atkins
2025-05-22 10:12:10 +01:00
parent fe7bac73f0
commit a4d3c62524
Notes: github-actions[bot] 2025-05-23 09:19:36 +00:00
2 changed files with 33 additions and 33 deletions

View File

@@ -174,7 +174,7 @@ private:
{
}
static bool compare(HTML::Window const& window, MediaFeatureValue const& left, Comparison comparison, MediaFeatureValue const& right);
static MatchResult 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>(); }