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 26 matching lines...) Expand all Loading... |
37 #include "core/css/MediaFeatureNames.h" | 37 #include "core/css/MediaFeatureNames.h" |
38 #include "core/css/MediaList.h" | 38 #include "core/css/MediaList.h" |
39 #include "core/css/MediaQuery.h" | 39 #include "core/css/MediaQuery.h" |
40 #include "core/css/resolver/MediaQueryResult.h" | 40 #include "core/css/resolver/MediaQueryResult.h" |
41 #include "core/dom/NodeRenderStyle.h" | 41 #include "core/dom/NodeRenderStyle.h" |
42 #include "core/inspector/InspectorInstrumentation.h" | 42 #include "core/inspector/InspectorInstrumentation.h" |
43 #include "core/frame/Frame.h" | 43 #include "core/frame/Frame.h" |
44 #include "core/frame/FrameView.h" | 44 #include "core/frame/FrameView.h" |
45 #include "core/page/Page.h" | 45 #include "core/page/Page.h" |
46 #include "core/page/Settings.h" | 46 #include "core/page/Settings.h" |
47 #include "core/platform/PlatformScreen.h" | |
48 #include "core/rendering/RenderLayerCompositor.h" | 47 #include "core/rendering/RenderLayerCompositor.h" |
49 #include "core/rendering/RenderView.h" | 48 #include "core/rendering/RenderView.h" |
50 #include "core/rendering/style/RenderStyle.h" | 49 #include "core/rendering/style/RenderStyle.h" |
| 50 #include "platform/PlatformScreen.h" |
51 #include "platform/geometry/FloatRect.h" | 51 #include "platform/geometry/FloatRect.h" |
52 #include "wtf/HashMap.h" | 52 #include "wtf/HashMap.h" |
53 | 53 |
54 namespace WebCore { | 54 namespace WebCore { |
55 | 55 |
56 using namespace MediaFeatureNames; | 56 using namespace MediaFeatureNames; |
57 | 57 |
58 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix }; | 58 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix }; |
59 | 59 |
60 typedef bool (*EvalFunc)(CSSValue*, RenderStyle*, Frame*, MediaFeaturePrefix); | 60 typedef bool (*EvalFunc)(CSSValue*, RenderStyle*, Frame*, MediaFeaturePrefix); |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 // and let trampoline functions override the prefix if prefix is | 685 // and let trampoline functions override the prefix if prefix is |
686 // used | 686 // used |
687 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 687 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
688 if (func) | 688 if (func) |
689 return func(expr->value(), m_style.get(), m_frame, NoPrefix); | 689 return func(expr->value(), m_style.get(), m_frame, NoPrefix); |
690 | 690 |
691 return false; | 691 return false; |
692 } | 692 } |
693 | 693 |
694 } // namespace | 694 } // namespace |
OLD | NEW |