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

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

Issue 27048004: Move PlatformScreen, PlatformScreenChromium, and Widget to Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Rebase to apply to trunk 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/DOMWindow.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 26 matching lines...) Expand all
37 #include "core/css/MediaFeatureNames.h" 37 #include "core/css/MediaFeatureNames.h"
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/frame/Frame.h" 43 #include "core/frame/Frame.h"
44 #include "core/frame/FrameView.h" 44 #include "core/frame/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"
48 #include "core/rendering/RenderLayerCompositor.h" 47 #include "core/rendering/RenderLayerCompositor.h"
49 #include "core/rendering/RenderView.h" 48 #include "core/rendering/RenderView.h"
50 #include "core/rendering/style/RenderStyle.h" 49 #include "core/rendering/style/RenderStyle.h"
50 #include "platform/PlatformScreen.h"
51 #include "platform/geometry/FloatRect.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);
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 // and let trampoline functions override the prefix if prefix is 685 // and let trampoline functions override the prefix if prefix is
686 // used 686 // used
687 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 687 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
688 if (func) 688 if (func)
689 return func(expr->value(), m_style.get(), m_frame, NoPrefix); 689 return func(expr->value(), m_style.get(), m_frame, NoPrefix);
690 690
691 return false; 691 return false;
692 } 692 }
693 693
694 } // namespace 694 } // namespace
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698