https://bugs.webkit.org/show_bug.cgi?id=84003
Reviewed by Eric Seidel.
Align JSC/V8 bindings canvas.toDataURL() code flow so that the binding
code implementations read alike.
No new tests. Covered by existing cnavas toDataURL tests.
* bindings/js/JSHTMLCanvasElementCustom.cpp:
(WebCore::JSHTMLCanvasElement::toDataURL):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114221
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-15 Noel Gordon <noel.gordon@gmail.com>
+
+ Align JSC/V8 bindings canvas.toDataURL() code flows
+ https://bugs.webkit.org/show_bug.cgi?id=84003
+
+ Reviewed by Eric Seidel.
+
+ Align JSC/V8 bindings canvas.toDataURL() code flow so that the binding
+ code implementations read alike.
+
+ No new tests. Covered by existing cnavas toDataURL tests.
+
+ * bindings/js/JSHTMLCanvasElementCustom.cpp:
+ (WebCore::JSHTMLCanvasElement::toDataURL):
+
2012-04-15 Jia Pu <jpu@apple.com>
Introducing DictationCommand.
JSValue JSHTMLCanvasElement::toDataURL(ExecState* exec)
{
- const String& type = valueToStringWithUndefinedOrNullCheck(exec, exec->argument(0));
HTMLCanvasElement* canvas = static_cast<HTMLCanvasElement*>(impl());
ExceptionCode ec = 0;
-
- JSC::JSValue result;
+
+ const String& type = valueToStringWithUndefinedOrNullCheck(exec, exec->argument(0));
double quality;
double* qualityPtr = 0;
if (exec->argumentCount() > 1) {
}
}
- result = jsString(exec, canvas->toDataURL(type, qualityPtr, ec));
+ JSValue result = jsString(exec, canvas->toDataURL(type, qualityPtr, ec));
setDOMException(exec, ec);
return result;
}