Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2805)

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp b/third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp
index c2eeb2556012fc183fc0d7c2fea048310660f6aa..bd7edfd4f5f719e5fbbda1b2394b56d6aba32204 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp
@@ -102,8 +102,9 @@ const String MediaQueryEvaluator::MediaType() const {
bool MediaQueryEvaluator::MediaTypeMatch(
const String& media_type_to_match) const {
return media_type_to_match.IsEmpty() ||
- EqualIgnoringCase(media_type_to_match, MediaTypeNames::all) ||
- EqualIgnoringCase(media_type_to_match, MediaType());
+ DeprecatedEqualIgnoringCase(media_type_to_match,
+ MediaTypeNames::all) ||
+ DeprecatedEqualIgnoringCase(media_type_to_match, MediaType());
}
static bool ApplyRestrictor(MediaQuery::RestrictorType r, bool value) {
@@ -330,10 +331,11 @@ static bool EvalResolution(const MediaQueryExpValue& value,
// this method only got called if this media type matches the one defined
// in the query. Thus, if if the document's media type is "print", the
// media type of the query will either be "print" or "all".
- if (EqualIgnoringCase(media_values.MediaType(), MediaTypeNames::screen)) {
+ if (DeprecatedEqualIgnoringCase(media_values.MediaType(),
+ MediaTypeNames::screen)) {
actual_resolution = clampTo<float>(media_values.DevicePixelRatio());
- } else if (EqualIgnoringCase(media_values.MediaType(),
- MediaTypeNames::print)) {
+ } else if (DeprecatedEqualIgnoringCase(media_values.MediaType(),
+ MediaTypeNames::print)) {
// The resolution of images while printing should not depend on the DPI
// of the screen. Until we support proper ways of querying this info
// we use 300px which is considered minimum for current printers.
@@ -739,7 +741,8 @@ static bool ScanMediaFeatureEval(const MediaQueryExpValue& value,
MediaFeaturePrefix,
const MediaValues& media_values) {
// Scan only applies to 'tv' media.
- if (!EqualIgnoringCase(media_values.MediaType(), MediaTypeNames::tv))
+ if (!DeprecatedEqualIgnoringCase(media_values.MediaType(),
+ MediaTypeNames::tv))
return false;
if (!value.IsValid())

Powered by Google App Engine
This is Rietveld 408576698