# HG changeset patch # User David Pulkrabek # Date 1360839976 -3600 # Node ID e8283f10a12729ff862ff65f66a671fcf3cd2695 # Parent d4875a1a74422b0a88dec1b65f59b0895ee8b1f1 According to http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas/#dom-context-2d-globalcompositeoperation the setGlobalCompositeOperation needs String parameter diff -r d4875a1a7442 -r e8283f10a127 javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/GraphicsContext.java --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/GraphicsContext.java Thu Feb 14 12:05:43 2013 +0100 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/GraphicsContext.java Thu Feb 14 12:06:16 2013 +0100 @@ -307,10 +307,10 @@ public native double getGlobalAlpha(); @JavaScriptBody(args = {"operation"}, body = "this._context().globalCompositeOperation=operation;") - public native void setGlobalCompositeOperation(double alpha); + public native void setGlobalCompositeOperation(String operation); @JavaScriptBody(args = {}, body = "return this._context().globalCompositeOperation;") - public native double getGlobalCompositeOperation(); + public native String getGlobalCompositeOperation(); public LinearGradient createLinearGradient(double x0, double y0, double x1, double y1) { return new LinearGradient(createLinearGradientImpl(context, x0, y0, x1, y1));