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 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 12 matching lines...) Expand all Loading... |
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/css/MediaQueryEvaluator.h" | 30 #include "core/css/MediaQueryEvaluator.h" |
31 | 31 |
32 #include "CSSValueKeywords.h" | 32 #include "CSSValueKeywords.h" |
33 #include "NodeRenderStyle.h" | |
34 #include "core/css/CSSAspectRatioValue.h" | 33 #include "core/css/CSSAspectRatioValue.h" |
35 #include "core/css/CSSPrimitiveValue.h" | 34 #include "core/css/CSSPrimitiveValue.h" |
36 #include "core/css/CSSValueList.h" | 35 #include "core/css/CSSValueList.h" |
37 #include "core/css/MediaFeatureNames.h" | 36 #include "core/css/MediaFeatureNames.h" |
38 #include "core/css/MediaList.h" | 37 #include "core/css/MediaList.h" |
39 #include "core/css/MediaQuery.h" | 38 #include "core/css/MediaQuery.h" |
40 #include "core/css/MediaQueryExp.h" | 39 #include "core/css/MediaQueryExp.h" |
41 #include "core/css/StyleResolver.h" | 40 #include "core/css/StyleResolver.h" |
| 41 #include "core/dom/NodeRenderStyle.h" |
42 #include "core/page/Chrome.h" | 42 #include "core/page/Chrome.h" |
43 #include "core/page/ChromeClient.h" | 43 #include "core/page/ChromeClient.h" |
44 #include "core/page/DOMWindow.h" | 44 #include "core/page/DOMWindow.h" |
45 #include "core/page/Frame.h" | 45 #include "core/page/Frame.h" |
46 #include "core/page/FrameView.h" | 46 #include "core/page/FrameView.h" |
47 #include "core/page/Page.h" | 47 #include "core/page/Page.h" |
48 #include "core/page/Screen.h" | 48 #include "core/page/Screen.h" |
49 #include "core/page/Settings.h" | 49 #include "core/page/Settings.h" |
50 #include "core/platform/PlatformScreen.h" | 50 #include "core/platform/PlatformScreen.h" |
51 #include "core/platform/graphics/FloatRect.h" | 51 #include "core/platform/graphics/FloatRect.h" |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 // and let trampoline functions override the prefix if prefix is | 769 // and let trampoline functions override the prefix if prefix is |
770 // used | 770 // used |
771 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); | 771 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); |
772 if (func) | 772 if (func) |
773 return func(expr->value(), m_style.get(), m_frame, NoPrefix); | 773 return func(expr->value(), m_style.get(), m_frame, NoPrefix); |
774 | 774 |
775 return false; | 775 return false; |
776 } | 776 } |
777 | 777 |
778 } // namespace | 778 } // namespace |
OLD | NEW |