summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/MediaQuery.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-07 23:08:26 +0100
committerLinus Groh <mail@linusgroh.de>2022-03-08 00:30:30 +0100
commit1422bd45ebda117238c452b4cf2ba7d1b54ce453 (patch)
treec35ff8fb4ffb1c36ff0e17f5b27c4c89189fad76 /Userland/Libraries/LibWeb/CSS/MediaQuery.h
parent2dfb617c5bf5557052a4fded2cc37ab8574a5e93 (diff)
downloadserenity-1422bd45ebda117238c452b4cf2ba7d1b54ce453.zip
LibWeb: Move Window from DOM directory & namespace to HTML
The Window object is part of the HTML spec. :^) https://html.spec.whatwg.org/multipage/window-object.html
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/MediaQuery.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/MediaQuery.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/MediaQuery.h b/Userland/Libraries/LibWeb/CSS/MediaQuery.h
index 60871335d2..9cf0357b67 100644
--- a/Userland/Libraries/LibWeb/CSS/MediaQuery.h
+++ b/Userland/Libraries/LibWeb/CSS/MediaQuery.h
@@ -140,7 +140,7 @@ public:
return feature;
}
- bool evaluate(DOM::Window const&) const;
+ bool evaluate(HTML::Window const&) const;
String to_string() const;
private:
@@ -159,7 +159,7 @@ private:
{
}
- static bool compare(DOM::Window const& window, MediaFeatureValue left, Comparison comparison, MediaFeatureValue right);
+ static bool compare(HTML::Window const& window, MediaFeatureValue left, Comparison comparison, MediaFeatureValue right);
struct Range {
MediaFeatureValue left_value;
@@ -196,7 +196,7 @@ struct MediaCondition {
static NonnullOwnPtr<MediaCondition> from_and_list(NonnullOwnPtrVector<MediaCondition>&&);
static NonnullOwnPtr<MediaCondition> from_or_list(NonnullOwnPtrVector<MediaCondition>&&);
- MatchResult evaluate(DOM::Window const&) const;
+ MatchResult evaluate(HTML::Window const&) const;
String to_string() const;
private:
@@ -234,7 +234,7 @@ public:
static NonnullRefPtr<MediaQuery> create() { return adopt_ref(*new MediaQuery); }
bool matches() const { return m_matches; }
- bool evaluate(DOM::Window const&);
+ bool evaluate(HTML::Window const&);
String to_string() const;
private: