Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MQ4] Add schemas for resolution and -webkit-device-pixel-ratio features
https://bugs.webkit.org/show_bug.cgi?id=247118 rdar://101625468 Reviewed by Alan Baradlay. * Source/WTF/wtf/text/StringOperators.h: (WTF::StringAppend::operator AtomString const): AtomString(String) is explicit. * Source/WebCore/css/query/GenericMediaQueryEvaluator.cpp: (WebCore::MQ::evaluateResolutionComparison): (WebCore::MQ::evaluateResolutionFeature): * Source/WebCore/css/query/GenericMediaQueryEvaluator.h: * Source/WebCore/css/query/GenericMediaQueryParser.cpp: (WebCore::MQ::GenericMediaQueryParserBase::consumeBooleanOrPlainFeature): Support -webkit-min-/-webkit-max- prefixes. (WebCore::MQ::GenericMediaQueryParserBase::consumeValue): Consume resolution values. * Source/WebCore/css/query/MediaQueryFeatures.cpp: (WebCore::MQ::Features::NumberSchema::NumberSchema): (WebCore::MQ::Features::NumberSchema::valueFunction): (WebCore::MQ::Features::ResolutionSchema::ResolutionSchema): (WebCore::MQ::Features::ResolutionSchema::valueFunction): (WebCore::MQ::Features::deviceScaleFactor): (WebCore::MQ::Features::devicePixelRatio): (WebCore::MQ::Features::resolution): Add schemas and evaluation functions. Canonical link: https://commits.webkit.org/256064@main
- Loading branch information
Showing
5 changed files
with
106 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters