Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: Source/core/css/MediaQueryEvaluator.cpp

Issue 15387004: Remove some unused includes from core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/MediaQueryListListener.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #include "config.h" 30 #include "config.h"
31 #include "core/css/MediaQueryEvaluator.h" 31 #include "core/css/MediaQueryEvaluator.h"
32 32
33 #include "CSSValueKeywords.h" 33 #include "CSSValueKeywords.h"
34 #include "core/css/CSSAspectRatioValue.h" 34 #include "core/css/CSSAspectRatioValue.h"
35 #include "core/css/CSSHelper.h" 35 #include "core/css/CSSHelper.h"
36 #include "core/css/CSSPrimitiveValue.h" 36 #include "core/css/CSSPrimitiveValue.h"
37 #include "core/css/CSSValueList.h"
38 #include "core/css/MediaFeatureNames.h" 37 #include "core/css/MediaFeatureNames.h"
39 #include "core/css/MediaList.h" 38 #include "core/css/MediaList.h"
40 #include "core/css/MediaQuery.h" 39 #include "core/css/MediaQuery.h"
41 #include "core/css/MediaQueryExp.h" 40 #include "core/css/MediaQueryExp.h"
42 #include "core/css/resolver/StyleResolver.h" 41 #include "core/css/resolver/StyleResolver.h"
43 #include "core/dom/NodeRenderStyle.h" 42 #include "core/dom/NodeRenderStyle.h"
44 #include "core/page/Chrome.h"
45 #include "core/page/ChromeClient.h"
46 #include "core/page/DOMWindow.h"
47 #include "core/page/Frame.h" 43 #include "core/page/Frame.h"
48 #include "core/page/FrameView.h" 44 #include "core/page/FrameView.h"
49 #include "core/page/Page.h" 45 #include "core/page/Page.h"
50 #include "core/page/Screen.h"
51 #include "core/page/Settings.h" 46 #include "core/page/Settings.h"
52 #include "core/platform/PlatformScreen.h" 47 #include "core/platform/PlatformScreen.h"
53 #include "core/platform/graphics/FloatRect.h" 48 #include "core/platform/graphics/FloatRect.h"
54 #include "core/platform/graphics/IntRect.h"
55 #include "core/rendering/RenderLayerCompositor.h" 49 #include "core/rendering/RenderLayerCompositor.h"
56 #include "core/rendering/RenderView.h" 50 #include "core/rendering/RenderView.h"
57 #include "core/rendering/style/RenderStyle.h" 51 #include "core/rendering/style/RenderStyle.h"
58 #include "wtf/HashMap.h" 52 #include "wtf/HashMap.h"
59 53
60 namespace WebCore { 54 namespace WebCore {
61 55
62 using namespace MediaFeatureNames; 56 using namespace MediaFeatureNames;
63 57
64 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix }; 58 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix };
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 // and let trampoline functions override the prefix if prefix is 692 // and let trampoline functions override the prefix if prefix is
699 // used 693 // used
700 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 694 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
701 if (func) 695 if (func)
702 return func(expr->value(), m_style.get(), m_frame, NoPrefix); 696 return func(expr->value(), m_style.get(), m_frame, NoPrefix);
703 697
704 return false; 698 return false;
705 } 699 }
706 700
707 } // namespace 701 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/MediaQueryListListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698