Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1201)

Issue 389583002: Use code generator's argument processing in custom WebGL methods (Closed)

Created:
6 years, 5 months ago by Jens Widell
Modified:
6 years, 5 months ago
Reviewers:
haraken
CC:
blink-reviews, arv+blink, blink-reviews-html_chromium.org, abarth-chromium, dglazkov+blink, Rik, blink-reviews-bindings_chromium.org, Inactive, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

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. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177946

Patch Set 1 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -59 lines) Patch
M LayoutTests/fast/canvas/webgl/bad-arguments-test-expected.txt View 2 chunks +8 lines, -8 lines 0 comments Download
M Source/bindings/core/v8/custom/V8WebGLRenderingContextCustom.cpp View 6 chunks +63 lines, -50 lines 1 comment Download
M Source/core/html/canvas/WebGLRenderingContextBase.idl View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 5 (0 generated)
Jens Widell
PTAL Low-priority stuff; just some irregularities I noticed when looking at V8WebGLRenderingContextCustom.cpp. https://codereview.chromium.org/389583002/diff/20001/Source/bindings/core/v8/custom/V8WebGLRenderingContextCustom.cpp File Source/bindings/core/v8/custom/V8WebGLRenderingContextCustom.cpp ...
6 years, 5 months ago (2014-07-11 12:24:31 UTC) #1
haraken
LGTM
6 years, 5 months ago (2014-07-11 13:41:33 UTC) #2
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 5 months ago (2014-07-11 14:41:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/389583002/20001
6 years, 5 months ago (2014-07-11 14:42:22 UTC) #4
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 14:44:55 UTC) #5
Message was sent while issue was closed.
Change committed as 177946

Powered by Google App Engine
This is Rietveld 408576698