+2011-01-05 Darin Adler <darin@apple.com>
+
+ Fix Chromium Mac build.
+
+ * platform/graphics/Gradient.h: Forward-declare CGContextRef.
+ This might even make it possible to remove the include of
+ <CoreGraphics/CoreGraphics.h> for PLATFORM(WIN), but I did not
+ do that at this time because I don't want to break the Windows
+ build when fixing the Chromium build.
+
2011-01-05 Xianzhu Wang <wangxianzhu@google.com>
Reviewed by David Levin.
/*
- * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
+ * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
* Copyright (C) 2007 Alp Toker <alp@atoker.com>
* Copyright (C) 2008 Torch Mobile, Inc.
*
#if PLATFORM(CG)
+typedef struct CGContext* CGContextRef;
+
#define USE_CG_SHADING defined(BUILDING_ON_TIGER) || defined(BUILDING_ON_LEOPARD)
#if USE_CG_SHADING
#else
PlatformGradient platformGradient();
#endif
+
struct ColorStop {
float stop;
float red;
void paint(CGContextRef);
void paint(GraphicsContext*);
#endif
+
private:
Gradient(const FloatPoint& p0, const FloatPoint& p1);
Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);