Use code generator's argument processing in custom WebGL methods

The argument handling in these methods is not special, it's typically
their return values that need custom code, so align the argument
processing with what the code generator would have done.

This was done by temporarily dropping the [Custom] on these methods, and
then simply copy the corresponding blocks of code from the generated
methods.

This fixes exception handling in some cases where argument conversion
failed, for instance if getFramebufferAttachmentParameter() was called
with an object as the first argument, and that object had a valueOf()
function that threw an exception. The old custom code would simply
ignore that exception, for unknown reasons.

Review URL: https://codereview.chromium.org/389583002

git-svn-id: svn://svn.chromium.org/blink/trunk@177946 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed