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

Side by Side Diff: sky/engine/core/css/MediaQueryEvaluator.cpp

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "sky/engine/core/css/MediaValuesDynamic.h" 44 #include "sky/engine/core/css/MediaValuesDynamic.h"
45 #include "sky/engine/core/css/PointerProperties.h" 45 #include "sky/engine/core/css/PointerProperties.h"
46 #include "sky/engine/core/css/resolver/MediaQueryResult.h" 46 #include "sky/engine/core/css/resolver/MediaQueryResult.h"
47 #include "sky/engine/core/dom/NodeRenderStyle.h" 47 #include "sky/engine/core/dom/NodeRenderStyle.h"
48 #include "sky/engine/core/frame/FrameHost.h" 48 #include "sky/engine/core/frame/FrameHost.h"
49 #include "sky/engine/core/frame/FrameView.h" 49 #include "sky/engine/core/frame/FrameView.h"
50 #include "sky/engine/core/frame/LocalFrame.h" 50 #include "sky/engine/core/frame/LocalFrame.h"
51 #include "sky/engine/core/frame/Settings.h" 51 #include "sky/engine/core/frame/Settings.h"
52 #include "sky/engine/core/frame/UseCounter.h" 52 #include "sky/engine/core/frame/UseCounter.h"
53 #include "sky/engine/core/rendering/RenderView.h" 53 #include "sky/engine/core/rendering/RenderView.h"
54 #include "sky/engine/core/rendering/compositing/RenderLayerCompositor.h"
55 #include "sky/engine/core/rendering/style/RenderStyle.h" 54 #include "sky/engine/core/rendering/style/RenderStyle.h"
56 #include "sky/engine/platform/PlatformScreen.h" 55 #include "sky/engine/platform/PlatformScreen.h"
57 #include "sky/engine/platform/geometry/FloatRect.h" 56 #include "sky/engine/platform/geometry/FloatRect.h"
58 #include "sky/engine/wtf/HashMap.h" 57 #include "sky/engine/wtf/HashMap.h"
59 58
60 namespace blink { 59 namespace blink {
61 60
62 using namespace MediaFeatureNames; 61 using namespace MediaFeatureNames;
63 62
64 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix }; 63 enum MediaFeaturePrefix { MinPrefix, MaxPrefix, NoPrefix };
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // Call the media feature evaluation function. Assume no prefix and let 641 // Call the media feature evaluation function. Assume no prefix and let
643 // trampoline functions override the prefix if prefix is used. 642 // trampoline functions override the prefix if prefix is used.
644 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl()); 643 EvalFunc func = gFunctionMap->get(expr->mediaFeature().impl());
645 if (func) 644 if (func)
646 return func(expr->expValue(), NoPrefix, *m_mediaValues); 645 return func(expr->expValue(), NoPrefix, *m_mediaValues);
647 646
648 return false; 647 return false;
649 } 648 }
650 649
651 } // namespace 650 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698