[Webkit-unassigned] [Bug 35380] New: [Qt] Compilation fails when WTF_USE_ACCELERATED_COMPOSITING=0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 25 05:10:41 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35380

           Summary: [Qt] Compilation fails when
                    WTF_USE_ACCELERATED_COMPOSITING=0
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jarkko.sakkinen at tieto.com


WebKit trunk compilation failes when WTF_USE_ACCELERATED_COMPOSITING is set to
zero.

I resolved this issue by doing the following change:

###########################################################################################################
diff --git a/WebCore/css/MediaQueryEvaluator.cpp
b/WebCore/css/MediaQueryEvaluator.cpp
index 4963ed4..6864231 100644
--- a/WebCore/css/MediaQueryEvaluator.cpp
+++ b/WebCore/css/MediaQueryEvaluator.cpp
@@ -47,7 +47,7 @@
 #include "PlatformScreen.h"
 #include <wtf/HashMap.h>

-#if ENABLE(3D_RENDERING)
+#if ENABLE(3D_RENDERING) && USE(ACCELERATED_COMPOSITING)
 #include "RenderLayerCompositor.h"
 #endif

@@ -472,10 +472,12 @@ static bool transform_3dMediaFeatureEval(CSSValue* value,
RenderStyle*, Frame* f
     bool returnValueIfNoParameter;
     int have3dRendering;

-#if ENABLE(3D_RENDERING)
+#if ENABLE(3D_RENDERING) 
     bool threeDEnabled = false;
+#if USE(ACCELERATED_COMPOSITING)
     if (RenderView* view = frame->contentRenderer())
         threeDEnabled = view->compositor()->hasAcceleratedCompositing();
+#endif

     returnValueIfNoParameter = threeDEnabled;
     have3dRendering = threeDEnabled ? 1 : 0;
###########################################################################################################

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list