mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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:
Notes:
github-actions[bot]
2025-05-23 09:19:36 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/a4d3c625240 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4817
@@ -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>(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user