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

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

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSProperty.h ('k') | Source/core/css/resolver/TransformBuilder.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 27 matching lines...) Expand all
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/page/Frame.h" 43 #include "core/page/Frame.h"
44 #include "core/page/FrameView.h" 44 #include "core/page/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" 47 #include "core/platform/PlatformScreen.h"
48 #include "core/platform/graphics/FloatRect.h"
49 #include "core/rendering/RenderLayerCompositor.h" 48 #include "core/rendering/RenderLayerCompositor.h"
50 #include "core/rendering/RenderView.h" 49 #include "core/rendering/RenderView.h"
51 #include "core/rendering/style/RenderStyle.h" 50 #include "core/rendering/style/RenderStyle.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);
61 typedef HashMap<StringImpl*, EvalFunc> FunctionMap; 61 typedef HashMap<StringImpl*, EvalFunc> FunctionMap;
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // and let trampoline functions override the prefix if prefix is 681 // and let trampoline functions override the prefix if prefix is
682 // used 682 // used
683 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 683 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
684 if (func) 684 if (func)
685 return func(expr->value(), m_style.get(), m_frame, NoPrefix); 685 return func(expr->value(), m_style.get(), m_frame, NoPrefix);
686 686
687 return false; 687 return false;
688 } 688 }
689 689
690 } // namespace 690 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/CSSProperty.h ('k') | Source/core/css/resolver/TransformBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698