Make optional arguments in CanvasRenderingContext2D match the spec.
https://bugs.webkit.org/show_bug.cgi?id=115723

Patch by Dongseong Hwang <dongseong.hwang@intel.com> on 2013-05-08
Reviewed by Dean Jackson.

Source/WebCore:

WebKit r98985 set many arguments optional although the canvas spec[1] does not
indicate. So this patch corrects CanvasRenderingContext2D.idl to match the spec.

[1] http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas/

Covered by existing tests:
  canvas/philip/tests/2d.missingargs.html
  fast/canvas/canvas-overloads-strokeRect.html
  inspector/profiler/canvas2d/canvas2d-profiler-capturing-basics.html

* html/canvas/CanvasRenderingContext2D.idl:

LayoutTests:

When tests use <canvas> API with not enough arguments, TypeError
exception is fired now. So three tests are changed to match the canvas
spec.

* fast/canvas/canvas-overloads-strokeRect-expected.txt:
* fast/canvas/script-tests/canvas-overloads-strokeRect.js:
* platform/mac/canvas/philip/tests/2d.missingargs-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149723 268f45cc-cd09-0410-ab3c-d52691b4dbfc