| 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 26 matching lines...) Expand all Loading... |
| 37 #include "ChromeClient.h" | 37 #include "ChromeClient.h" |
| 38 #include "DOMWindow.h" | 38 #include "DOMWindow.h" |
| 39 #include "Frame.h" | 39 #include "Frame.h" |
| 40 #include "FrameView.h" | 40 #include "FrameView.h" |
| 41 #include "MediaFeatureNames.h" | 41 #include "MediaFeatureNames.h" |
| 42 #include "MediaList.h" | 42 #include "MediaList.h" |
| 43 #include "MediaQuery.h" | 43 #include "MediaQuery.h" |
| 44 #include "MediaQueryExp.h" | 44 #include "MediaQueryExp.h" |
| 45 #include "NodeRenderStyle.h" | 45 #include "NodeRenderStyle.h" |
| 46 #include "Page.h" | 46 #include "Page.h" |
| 47 #include "PlatformScreen.h" | |
| 48 #include "RenderLayerCompositor.h" | 47 #include "RenderLayerCompositor.h" |
| 49 #include "RenderStyle.h" | 48 #include "RenderStyle.h" |
| 50 #include "RenderView.h" | 49 #include "RenderView.h" |
| 51 #include "Screen.h" | 50 #include "Screen.h" |
| 52 #include "Settings.h" | 51 #include "Settings.h" |
| 53 #include "StyleResolver.h" | 52 #include "StyleResolver.h" |
| 53 #include "core/platform/PlatformScreen.h" |
| 54 #include "core/platform/graphics/FloatRect.h" | 54 #include "core/platform/graphics/FloatRect.h" |
| 55 #include "core/platform/graphics/IntRect.h" | 55 #include "core/platform/graphics/IntRect.h" |
| 56 #include <wtf/HashMap.h> | 56 #include <wtf/HashMap.h> |
| 57 | 57 |
| 58 namespace WebCore { | 58 namespace WebCore { |
| 59 | 59 |
| 60 using namespace MediaFeatureNames; | 60 using namespace MediaFeatureNames; |
| 61 | 61 |
| 62 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix }; | 62 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix }; |
| 63 | 63 |
| (...skipping 705 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 |