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 12 matching lines...) Expand all Loading... |
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 "CSSValueKeywords.h" | 33 #include "core/CSSValueKeywords.h" |
34 #include "MediaFeatureNames.h" | 34 #include "core/MediaFeatureNames.h" |
35 #include "MediaFeatures.h" | 35 #include "core/MediaFeatures.h" |
36 #include "MediaTypeNames.h" | 36 #include "core/MediaTypeNames.h" |
37 #include "core/css/CSSAspectRatioValue.h" | 37 #include "core/css/CSSAspectRatioValue.h" |
38 #include "core/css/CSSHelper.h" | 38 #include "core/css/CSSHelper.h" |
39 #include "core/css/CSSPrimitiveValue.h" | 39 #include "core/css/CSSPrimitiveValue.h" |
40 #include "core/css/CSSToLengthConversionData.h" | 40 #include "core/css/CSSToLengthConversionData.h" |
41 #include "core/css/MediaList.h" | 41 #include "core/css/MediaList.h" |
42 #include "core/css/MediaQuery.h" | 42 #include "core/css/MediaQuery.h" |
43 #include "core/css/MediaValuesDynamic.h" | 43 #include "core/css/MediaValuesDynamic.h" |
44 #include "core/css/resolver/MediaQueryResult.h" | 44 #include "core/css/resolver/MediaQueryResult.h" |
45 #include "core/dom/NodeRenderStyle.h" | 45 #include "core/dom/NodeRenderStyle.h" |
46 #include "core/frame/FrameHost.h" | 46 #include "core/frame/FrameHost.h" |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // Call the media feature evaluation function. Assume no prefix and let | 602 // Call the media feature evaluation function. Assume no prefix and let |
603 // trampoline functions override the prefix if prefix is used. | 603 // trampoline functions override the prefix if prefix is used. |
604 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 604 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
605 if (func) | 605 if (func) |
606 return func(expr->expValue(), NoPrefix, *m_mediaValues); | 606 return func(expr->expValue(), NoPrefix, *m_mediaValues); |
607 | 607 |
608 return false; | 608 return false; |
609 } | 609 } |
610 | 610 |
611 } // namespace | 611 } // namespace |
OLD | NEW |