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

Side by Side Diff: Source/core/css/MediaQueryEvaluator.cpp

Issue 15001026: Deprecate the unofficial -webkit-transition media feature (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/MediaFeatureNames.h ('k') | Source/core/css/MediaQueryExp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * CSS Media Query Evaluator 2 * CSS Media Query Evaluator
3 * 3 *
4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. 4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>.
5 * Copyright (C) 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2013 Intel Corporation. All rights reserved. 6 * Copyright (C) 2013 Intel Corporation. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 539
540 static bool animationMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, Med iaFeaturePrefix op) 540 static bool animationMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, Med iaFeaturePrefix op)
541 { 541 {
542 if (value) { 542 if (value) {
543 float number; 543 float number;
544 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op); 544 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op);
545 } 545 }
546 return true; 546 return true;
547 } 547 }
548 548
549 static bool transitionMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, Me diaFeaturePrefix op) 549 static bool deprecatedTransitionMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
550 { 550 {
551 UseCounter::countDeprecation(frame->document(), UseCounter::PrefixedTransiti onMediaFeature);
552
551 if (value) { 553 if (value) {
552 float number; 554 float number;
553 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op); 555 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op);
554 } 556 }
555 return true; 557 return true;
556 } 558 }
557 559
558 static bool transform2dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, M ediaFeaturePrefix op) 560 static bool transform2dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, M ediaFeaturePrefix op)
559 { 561 {
560 if (value) { 562 if (value) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 // and let trampoline functions override the prefix if prefix is 698 // and let trampoline functions override the prefix if prefix is
697 // used 699 // used
698 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 700 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
699 if (func) 701 if (func)
700 return func(expr->value(), m_style.get(), m_frame, NoPrefix); 702 return func(expr->value(), m_style.get(), m_frame, NoPrefix);
701 703
702 return false; 704 return false;
703 } 705 }
704 706
705 } // namespace 707 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/MediaFeatureNames.h ('k') | Source/core/css/MediaQueryExp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698