From bd98558d71f8257e064288ab7848a345ab5d6de6 Mon Sep 17 00:00:00 2001 From: "vladimir%pobox.com" Date: Tue, 18 Apr 2006 23:33:51 +0000 Subject: [PATCH] fix more unsupported VC6 windows compiler junk for 333177 --- content/canvas/src/nsCanvasRenderingContext2D.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/canvas/src/nsCanvasRenderingContext2D.cpp b/content/canvas/src/nsCanvasRenderingContext2D.cpp index 8aea6d35487d..94ec712b46d6 100644 --- a/content/canvas/src/nsCanvasRenderingContext2D.cpp +++ b/content/canvas/src/nsCanvasRenderingContext2D.cpp @@ -280,10 +280,13 @@ protected: enum { STYLE_STROKE = 0, STYLE_FILL, - STYLE_SHADOW, - STYLE_MAX + STYLE_SHADOW + //STYLE_MAX }; + // VC6 sucks +#define STYLE_MAX 3 + nsresult SetStyleFromVariant(nsIVariant* aStyle, PRInt32 aWhichStyle); void StyleColorToString(const nscolor& aColor, nsAString& aStr); @@ -355,8 +358,6 @@ protected: nsCOMPtr gradientStyles[STYLE_MAX]; nsCOMPtr patternStyles[STYLE_MAX]; }; - // this is for broken VC6 - friend class ContextState; nsTArray mStyleStack;