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 24 matching lines...) Expand all Loading... |
35 #include "core/MediaFeatures.h" | 35 #include "core/MediaFeatures.h" |
36 #include "core/MediaTypeNames.h" | 36 #include "core/MediaTypeNames.h" |
37 #include "core/css/CSSHelper.h" | 37 #include "core/css/CSSHelper.h" |
38 #include "core/css/CSSPrimitiveValue.h" | 38 #include "core/css/CSSPrimitiveValue.h" |
39 #include "core/css/CSSToLengthConversionData.h" | 39 #include "core/css/CSSToLengthConversionData.h" |
40 #include "core/css/MediaList.h" | 40 #include "core/css/MediaList.h" |
41 #include "core/css/MediaQuery.h" | 41 #include "core/css/MediaQuery.h" |
42 #include "core/css/MediaValuesDynamic.h" | 42 #include "core/css/MediaValuesDynamic.h" |
43 #include "core/css/PointerProperties.h" | 43 #include "core/css/PointerProperties.h" |
44 #include "core/css/resolver/MediaQueryResult.h" | 44 #include "core/css/resolver/MediaQueryResult.h" |
45 #include "core/dom/NodeLayoutStyle.h" | 45 #include "core/dom/NodeComputedStyle.h" |
46 #include "core/frame/FrameHost.h" | 46 #include "core/frame/FrameHost.h" |
47 #include "core/frame/FrameView.h" | 47 #include "core/frame/FrameView.h" |
48 #include "core/frame/LocalFrame.h" | 48 #include "core/frame/LocalFrame.h" |
49 #include "core/frame/Settings.h" | 49 #include "core/frame/Settings.h" |
50 #include "core/frame/UseCounter.h" | 50 #include "core/frame/UseCounter.h" |
51 #include "core/inspector/InspectorInstrumentation.h" | 51 #include "core/inspector/InspectorInstrumentation.h" |
52 #include "core/layout/LayoutView.h" | 52 #include "core/layout/LayoutView.h" |
53 #include "core/layout/style/LayoutStyle.h" | 53 #include "core/layout/style/ComputedStyle.h" |
54 #include "platform/PlatformScreen.h" | 54 #include "platform/PlatformScreen.h" |
55 #include "platform/RuntimeEnabledFeatures.h" | 55 #include "platform/RuntimeEnabledFeatures.h" |
56 #include "platform/geometry/FloatRect.h" | 56 #include "platform/geometry/FloatRect.h" |
57 #include "public/platform/WebDisplayMode.h" | 57 #include "public/platform/WebDisplayMode.h" |
58 #include "wtf/HashMap.h" | 58 #include "wtf/HashMap.h" |
59 | 59 |
60 namespace blink { | 60 namespace blink { |
61 | 61 |
62 using namespace MediaFeatureNames; | 62 using namespace MediaFeatureNames; |
63 | 63 |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 // Call the media feature evaluation function. Assume no prefix and let | 661 // Call the media feature evaluation function. Assume no prefix and let |
662 // trampoline functions override the prefix if prefix is used. | 662 // trampoline functions override the prefix if prefix is used. |
663 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 663 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
664 if (func) | 664 if (func) |
665 return func(expr->expValue(), NoPrefix, *m_mediaValues); | 665 return func(expr->expValue(), NoPrefix, *m_mediaValues); |
666 | 666 |
667 return false; | 667 return false; |
668 } | 668 } |
669 | 669 |
670 } // namespace | 670 } // namespace |
OLD | NEW |