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

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

Issue 135903006: Remove the -webkit-transition media feature (PrefixedTransitionMediaFeature) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 534
535 static bool animationMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, Med iaFeaturePrefix op) 535 static bool animationMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, Med iaFeaturePrefix op)
536 { 536 {
537 if (value) { 537 if (value) {
538 float number; 538 float number;
539 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op); 539 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op);
540 } 540 }
541 return true; 541 return true;
542 } 542 }
543 543
544 static bool deprecatedTransitionMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame, MediaFeaturePrefix op)
545 {
546 UseCounter::countDeprecation(frame->document(), UseCounter::PrefixedTransiti onMediaFeature);
547
548 if (value) {
549 float number;
550 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op);
551 }
552 return true;
553 }
554
555 static bool transform2dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, M ediaFeaturePrefix op) 544 static bool transform2dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame*, M ediaFeaturePrefix op)
556 { 545 {
557 if (value) { 546 if (value) {
558 float number; 547 float number;
559 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op); 548 return numberValue(value, number) && compareValue(1, static_cast<int>(nu mber), op);
560 } 549 }
561 return true; 550 return true;
562 } 551 }
563 552
564 static bool transform3dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* fr ame, MediaFeaturePrefix op) 553 static bool transform3dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* fr ame, MediaFeaturePrefix op)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 // Call the media feature evaluation function. Assume no prefix and let 676 // Call the media feature evaluation function. Assume no prefix and let
688 // trampoline functions override the prefix if prefix is used. 677 // trampoline functions override the prefix if prefix is used.
689 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 678 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
690 if (func) 679 if (func)
691 return func(expr->value(), m_style.get(), m_frame, NoPrefix); 680 return func(expr->value(), m_style.get(), m_frame, NoPrefix);
692 681
693 return false; 682 return false;
694 } 683 }
695 684
696 } // namespace 685 } // 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