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/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" |
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/inspector/InspectorInstrumentation.h" | 51 #include "core/inspector/InspectorInstrumentation.h" |
51 #include "core/rendering/RenderView.h" | 52 #include "core/rendering/RenderView.h" |
52 #include "core/rendering/compositing/RenderLayerCompositor.h" | 53 #include "core/rendering/compositing/RenderLayerCompositor.h" |
53 #include "core/rendering/style/RenderStyle.h" | 54 #include "core/rendering/style/RenderStyle.h" |
54 #include "platform/PlatformScreen.h" | 55 #include "platform/PlatformScreen.h" |
55 #include "platform/geometry/FloatRect.h" | 56 #include "platform/geometry/FloatRect.h" |
56 #include "wtf/HashMap.h" | 57 #include "wtf/HashMap.h" |
57 | 58 |
58 namespace WebCore { | 59 namespace WebCore { |
59 | 60 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // Call the media feature evaluation function. Assume no prefix and let | 603 // Call the media feature evaluation function. Assume no prefix and let |
603 // trampoline functions override the prefix if prefix is used. | 604 // trampoline functions override the prefix if prefix is used. |
604 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 605 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
605 if (func) | 606 if (func) |
606 return func(expr->expValue(), NoPrefix, *m_mediaValues); | 607 return func(expr->expValue(), NoPrefix, *m_mediaValues); |
607 | 608 |
608 return false; | 609 return false; |
609 } | 610 } |
610 | 611 |
611 } // namespace | 612 } // namespace |
OLD | NEW |