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

Unified Diff: Source/WebCore/css/MediaQueryEvaluator.cpp

Issue 14067007: Remove 3D_RENDERING define from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased, retrying the bots Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/css/MediaQueryEvaluator.cpp
diff --git a/Source/WebCore/css/MediaQueryEvaluator.cpp b/Source/WebCore/css/MediaQueryEvaluator.cpp
index c55bf50ffef7ec376e1067ce6008b09b69210d3f..5ef4173c0618880cd07aa1683e13ae236033f98c 100644
--- a/Source/WebCore/css/MediaQueryEvaluator.cpp
+++ b/Source/WebCore/css/MediaQueryEvaluator.cpp
@@ -47,6 +47,7 @@
#include "NodeRenderStyle.h"
#include "Page.h"
#include "PlatformScreen.h"
+#include "RenderLayerCompositor.h"
#include "RenderStyle.h"
#include "RenderView.h"
#include "Screen.h"
@@ -54,10 +55,6 @@
#include "StyleResolver.h"
#include <wtf/HashMap.h>
-#if ENABLE(3D_RENDERING)
-#include "RenderLayerCompositor.h"
-#endif
-
namespace WebCore {
using namespace MediaFeatureNames;
@@ -640,18 +637,12 @@ static bool transform_3dMediaFeatureEval(CSSValue* value, RenderStyle*, Frame* f
bool returnValueIfNoParameter;
int have3dRendering;
-#if ENABLE(3D_RENDERING)
bool threeDEnabled = false;
if (RenderView* view = frame->contentRenderer())
threeDEnabled = view->compositor()->canRender3DTransforms();
returnValueIfNoParameter = threeDEnabled;
have3dRendering = threeDEnabled ? 1 : 0;
-#else
- UNUSED_PARAM(frame);
- returnValueIfNoParameter = false;
- have3dRendering = 0;
-#endif
if (value) {
float number;
« no previous file with comments | « Source/WebCore/css/CSSComputedStyleDeclaration.cpp ('k') | Source/WebCore/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698