| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 returnValueIfNoParameter = threeDEnabled; | 572 returnValueIfNoParameter = threeDEnabled; |
| 573 have3dRendering = threeDEnabled ? 1 : 0; | 573 have3dRendering = threeDEnabled ? 1 : 0; |
| 574 | 574 |
| 575 if (value) { | 575 if (value) { |
| 576 float number; | 576 float number; |
| 577 return numberValue(value, number) && compareValue(have3dRendering, stati
c_cast<int>(number), op); | 577 return numberValue(value, number) && compareValue(have3dRendering, stati
c_cast<int>(number), op); |
| 578 } | 578 } |
| 579 return returnValueIfNoParameter; | 579 return returnValueIfNoParameter; |
| 580 } | 580 } |
| 581 | 581 |
| 582 static bool viewModeMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame
, MediaFeaturePrefix op) | 582 static bool viewModeMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* frame
, MediaFeaturePrefix) |
| 583 { | 583 { |
| 584 UNUSED_PARAM(op); | |
| 585 if (!value) | 584 if (!value) |
| 586 return true; | 585 return true; |
| 587 | 586 |
| 588 return toCSSPrimitiveValue(value)->getValueID() == CSSValueWindowed; | 587 return toCSSPrimitiveValue(value)->getValueID() == CSSValueWindowed; |
| 589 } | 588 } |
| 590 | 589 |
| 591 enum PointerDeviceType { TouchPointer, MousePointer, NoPointer, UnknownPointer }
; | 590 enum PointerDeviceType { TouchPointer, MousePointer, NoPointer, UnknownPointer }
; |
| 592 | 591 |
| 593 static PointerDeviceType leastCapablePrimaryPointerDeviceType(Frame* frame) | 592 static PointerDeviceType leastCapablePrimaryPointerDeviceType(Frame* frame) |
| 594 { | 593 { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 // Call the media feature evaluation function. Assume no prefix and let | 686 // Call the media feature evaluation function. Assume no prefix and let |
| 688 // trampoline functions override the prefix if prefix is used. | 687 // trampoline functions override the prefix if prefix is used. |
| 689 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 688 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
| 690 if (func) | 689 if (func) |
| 691 return func(expr->value(), m_style.get(), m_frame, NoPrefix); | 690 return func(expr->value(), m_style.get(), m_frame, NoPrefix); |
| 692 | 691 |
| 693 return false; | 692 return false; |
| 694 } | 693 } |
| 695 | 694 |
| 696 } // namespace | 695 } // namespace |
| OLD | NEW |