Index: Source/core/css/MediaQuery.cpp |
diff --git a/Source/core/css/MediaQuery.cpp b/Source/core/css/MediaQuery.cpp |
index 54067aff931c1a0151fd78cb2516373a5d2e56b7..42a78849defa2c1a53f74a0f3418678f628bc64c 100644 |
--- a/Source/core/css/MediaQuery.cpp |
+++ b/Source/core/css/MediaQuery.cpp |
@@ -75,6 +75,11 @@ static bool expressionCompare(const OwnPtrWillBeMember<MediaQueryExp>& a, const |
return codePointCompare(a->serialize(), b->serialize()) < 0; |
} |
+PassOwnPtrWillBeRawPtr<MediaQuery> MediaQuery::createNotAll() |
+{ |
+ return adoptPtrWillBeNoop(new MediaQuery(MediaQuery::Not, "all", nullptr)); |
+} |
+ |
MediaQuery::MediaQuery(Restrictor r, const String& mediaType, PassOwnPtrWillBeRawPtr<ExpressionHeapVector> expressions) |
: m_restrictor(r) |
, m_mediaType(attemptStaticStringCreation(mediaType.lower())) |