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 16 matching lines...) Expand all Loading... |
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/css/MediaQueryEvaluator.h" | 31 #include "core/css/MediaQueryEvaluator.h" |
32 | 32 |
33 #include "core/CSSValueKeywords.h" | 33 #include "core/CSSValueKeywords.h" |
34 #include "core/MediaFeatureNames.h" | 34 #include "core/MediaFeatureNames.h" |
35 #include "core/MediaFeatures.h" | 35 #include "core/MediaFeatures.h" |
36 #include "core/MediaTypeNames.h" | 36 #include "core/MediaTypeNames.h" |
37 #include "core/css/CSSAspectRatioValue.h" | |
38 #include "core/css/CSSHelper.h" | 37 #include "core/css/CSSHelper.h" |
39 #include "core/css/CSSPrimitiveValue.h" | 38 #include "core/css/CSSPrimitiveValue.h" |
40 #include "core/css/CSSToLengthConversionData.h" | 39 #include "core/css/CSSToLengthConversionData.h" |
41 #include "core/css/MediaList.h" | 40 #include "core/css/MediaList.h" |
42 #include "core/css/MediaQuery.h" | 41 #include "core/css/MediaQuery.h" |
43 #include "core/css/MediaValuesDynamic.h" | 42 #include "core/css/MediaValuesDynamic.h" |
44 #include "core/css/PointerProperties.h" | 43 #include "core/css/PointerProperties.h" |
45 #include "core/css/resolver/MediaQueryResult.h" | 44 #include "core/css/resolver/MediaQueryResult.h" |
46 #include "core/dom/NodeRenderStyle.h" | 45 #include "core/dom/NodeRenderStyle.h" |
47 #include "core/frame/FrameHost.h" | 46 #include "core/frame/FrameHost.h" |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 // Call the media feature evaluation function. Assume no prefix and let | 652 // Call the media feature evaluation function. Assume no prefix and let |
654 // trampoline functions override the prefix if prefix is used. | 653 // trampoline functions override the prefix if prefix is used. |
655 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 654 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
656 if (func) | 655 if (func) |
657 return func(expr->expValue(), NoPrefix, *m_mediaValues); | 656 return func(expr->expValue(), NoPrefix, *m_mediaValues); |
658 | 657 |
659 return false; | 658 return false; |
660 } | 659 } |
661 | 660 |
662 } // namespace | 661 } // namespace |
OLD | NEW |