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

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
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/MediaQueryExp.h" 40 #include "core/css/MediaQueryExp.h"
41 #include "core/css/resolver/StyleResolver.h" 41 #include "core/css/resolver/StyleResolver.h"
42 #include "core/dom/NodeRenderStyle.h" 42 #include "core/dom/NodeRenderStyle.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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 // and let trampoline functions override the prefix if prefix is 684 // and let trampoline functions override the prefix if prefix is
685 // used 685 // used
686 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 686 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
687 if (func) 687 if (func)
688 return func(expr->value(), m_style.get(), m_frame, NoPrefix); 688 return func(expr->value(), m_style.get(), m_frame, NoPrefix);
689 689
690 return false; 690 return false;
691 } 691 }
692 692
693 } // namespace 693 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698