diff --git a/content/canvas/src/CustomQS_Canvas2D.h b/content/canvas/src/CustomQS_Canvas2D.h index 27fe1890d87..5f761641ad5 100644 --- a/content/canvas/src/CustomQS_Canvas2D.h +++ b/content/canvas/src/CustomQS_Canvas2D.h @@ -43,8 +43,10 @@ #include "CheckedInt.h" #include "nsMathUtils.h" -typedef nsresult (NS_STDCALL nsIDOMCanvasRenderingContext2D::*CanvasStyleSetterType)(const nsAString &, nsISupports *); -typedef nsresult (NS_STDCALL nsIDOMCanvasRenderingContext2D::*CanvasStyleGetterType)(nsAString &, nsISupports **, PRInt32 *); +typedef NS_STDCALL_FUNCPROTO(nsresult, CanvasStyleSetterType, nsIDOMCanvasRenderingContext2D, + SetStrokeStyle_multi, (const nsAString &, nsISupports *)); +typedef NS_STDCALL_FUNCPROTO(nsresult, CanvasStyleGetterType, nsIDOMCanvasRenderingContext2D, + GetStrokeStyle_multi, (nsAString &, nsISupports **, PRInt32 *)); static JSBool Canvas2D_SetStyleHelper(JSContext *cx, JSObject *obj, jsid id, jsval *vp,