diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-23 20:38:20 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-23 20:38:20 +0000 |
commit | fad7085d5b05eb82dd38e6fbc707c8bd9a007b68 (patch) | |
tree | 48c83d61dcfabf5872498343d57622fa61694a1f /webkit/port/bindings | |
parent | a55369bcd4613046a11b49d6495ce40feaabb3b7 (diff) | |
download | chromium_src-fad7085d5b05eb82dd38e6fbc707c8bd9a007b68.zip chromium_src-fad7085d5b05eb82dd38e6fbc707c8bd9a007b68.tar.gz chromium_src-fad7085d5b05eb82dd38e6fbc707c8bd9a007b68.tar.bz2 |
Fix a canvas layout test by handling null values in canvas.createPattern.
Remove a wrong baseline and update the test list.
Review URL: http://codereview.chromium.org/16242
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.cpp b/webkit/port/bindings/v8/v8_custom.cpp index c25c119..3327b0d 100644 --- a/webkit/port/bindings/v8/v8_custom.cpp +++ b/webkit/port/bindings/v8/v8_custom.cpp @@ -2167,7 +2167,7 @@ CALLBACK_FUNC_DECL(CanvasRenderingContext2DCreatePattern) { V8Proxy::DOMWrapperToNode<HTMLImageElement>(arg); ExceptionCode ec = 0; RefPtr<CanvasPattern> pattern = - context->createPattern(image_element, ToWebCoreString(args[1]), ec); + context->createPattern(image_element, valueToStringWithNullCheck(args[1]), ec); if (ec != 0) { V8Proxy::SetDOMException(ec); return v8::Handle<v8::Value>(); @@ -2180,7 +2180,7 @@ CALLBACK_FUNC_DECL(CanvasRenderingContext2DCreatePattern) { V8Proxy::DOMWrapperToNode<HTMLCanvasElement>(arg); ExceptionCode ec = 0; RefPtr<CanvasPattern> pattern = - context->createPattern(canvas_element, ToWebCoreString(args[1]), ec); + context->createPattern(canvas_element, valueToStringWithNullCheck(args[1]), ec); if (ec != 0) { V8Proxy::SetDOMException(ec); return v8::Handle<v8::Value>(); |