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 29 matching lines...) Expand all Loading... |
40 #include "core/css/MediaQuery.h" | 40 #include "core/css/MediaQuery.h" |
41 #include "core/css/MediaValuesDynamic.h" | 41 #include "core/css/MediaValuesDynamic.h" |
42 #include "core/css/resolver/MediaQueryResult.h" | 42 #include "core/css/resolver/MediaQueryResult.h" |
43 #include "core/dom/NodeComputedStyle.h" | 43 #include "core/dom/NodeComputedStyle.h" |
44 #include "core/frame/FrameHost.h" | 44 #include "core/frame/FrameHost.h" |
45 #include "core/frame/FrameView.h" | 45 #include "core/frame/FrameView.h" |
46 #include "core/frame/LocalFrame.h" | 46 #include "core/frame/LocalFrame.h" |
47 #include "core/frame/Settings.h" | 47 #include "core/frame/Settings.h" |
48 #include "core/frame/UseCounter.h" | 48 #include "core/frame/UseCounter.h" |
49 #include "core/inspector/InspectorInstrumentation.h" | 49 #include "core/inspector/InspectorInstrumentation.h" |
50 #include "core/layout/LayoutView.h" | |
51 #include "core/style/ComputedStyle.h" | 50 #include "core/style/ComputedStyle.h" |
52 #include "platform/RuntimeEnabledFeatures.h" | 51 #include "platform/RuntimeEnabledFeatures.h" |
53 #include "platform/geometry/FloatRect.h" | 52 #include "platform/geometry/FloatRect.h" |
54 #include "public/platform/PointerProperties.h" | 53 #include "public/platform/PointerProperties.h" |
55 #include "public/platform/WebDisplayMode.h" | 54 #include "public/platform/WebDisplayMode.h" |
56 #include "wtf/HashMap.h" | 55 #include "wtf/HashMap.h" |
57 | 56 |
58 namespace blink { | 57 namespace blink { |
59 | 58 |
60 using namespace MediaFeatureNames; | 59 using namespace MediaFeatureNames; |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 // Call the media feature evaluation function. Assume no prefix and let | 678 // Call the media feature evaluation function. Assume no prefix and let |
680 // trampoline functions override the prefix if prefix is used. | 679 // trampoline functions override the prefix if prefix is used. |
681 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 680 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
682 if (func) | 681 if (func) |
683 return func(expr->expValue(), NoPrefix, *m_mediaValues); | 682 return func(expr->expValue(), NoPrefix, *m_mediaValues); |
684 | 683 |
685 return false; | 684 return false; |
686 } | 685 } |
687 | 686 |
688 } // namespace blink | 687 } // namespace blink |
OLD | NEW |