Attempting to build with the WebGL feature disabled revealed a few problems: 1. The 'DebugSuffix' target was attempting to build Cairo graphics files in addition to the CG files needed for this target. 2. Several files were including headers that themselves included ANGLE and other WebGL-specific files. (a) platform/graphics/GLContext.cpp (b) platform/graphics/GraphicsContext3DPrivate.cpp (c) platform/graphics/opengl/GLPlatformContext.cpp (d) platform/graphics/opengl/GLPlatformSurface.cpp Although these files are configured to compile during non-WebGL builds, they are supposed to have appropriate compile guards so that no code is generated when the features are turned off. Consequently, these files needed the "#if ENABLE(3D_GRAPHICS)" macro to be moved higher in the file (or added, in the case of the GLPlatformContext.cpp and GLPlatformSurface.cpp).
Created attachment 236171 [details] Patch
<rdar://problem/17941465>
Committed in r172202. <http://trac.webkit.org/changeset/172202>