OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |