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

Issue 282873004: IDL: overload resolution for string and enumeration arguments (Closed)

Created:
6 years, 7 months ago by Nils Barth (inactive)
Modified:
6 years, 7 months ago
Reviewers:
haraken, Jens Widell
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, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

IDL: overload resolution for string and enumeration arguments Pretty straightforward. Main complexity is avoiding unnecessary tests related to automatic type conversion. I've also slightly restructured the test generation to make explicit when we can only have one match (use |next()|), and when we can have multiple matches (use |for|). Ihis was previously an issue, and this makes it clear. This lets us remove 2 of the 3 uses of [LegacyOverloadString] (b/c now this is an ok overload)! (Will remove last in followup, when handle optional args.) Also cleanup IDL files: * lets us order methods more naturally, * align IDL order with spec (CanvasRenderingContext2D esp. was v. hard to read before) R=haraken BUG=293561 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174012

Patch Set 1 #

Total comments: 8

Patch Set 2 : Revised #

Patch Set 3 : Rebaseline tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -154 lines) Patch
M LayoutTests/fast/canvas/canvas-path-context-clip-expected.txt View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/fast/canvas/canvas-path-context-fill-expected.txt View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/virtual/gpu/fast/canvas/canvas-path-context-clip-expected.txt View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M LayoutTests/virtual/gpu/fast/canvas/canvas-path-context-fill-expected.txt View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M Source/bindings/scripts/idl_types.py View 1 2 chunks +8 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 chunks +64 lines, -32 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 2 chunks +45 lines, -0 lines 0 comments Download
M Source/core/html/FormData.idl View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.idl View 3 chunks +83 lines, -63 lines 0 comments Download
M Source/modules/mediastream/RTCDataChannel.idl View 1 chunk +11 lines, -17 lines 0 comments Download
M Source/modules/websockets/WebSocket.idl View 2 chunks +16 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nils Barth (inactive)
6 years, 7 months ago (2014-05-14 02:53:48 UTC) #1
Jens Widell
https://codereview.chromium.org/282873004/diff/1/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/282873004/diff/1/Source/bindings/scripts/v8_interface.py#newcode680 Source/bindings/scripts/v8_interface.py:680: try: You could skip the 'try' and "move" the ...
6 years, 7 months ago (2014-05-14 05:19:30 UTC) #2
haraken
LGTM. (I'm assuming that you didn't make any behavior change to IDL files in this ...
6 years, 7 months ago (2014-05-14 06:09:03 UTC) #3
Nils Barth (inactive)
https://codereview.chromium.org/282873004/diff/1/Source/bindings/scripts/v8_interface.py File Source/bindings/scripts/v8_interface.py (right): https://codereview.chromium.org/282873004/diff/1/Source/bindings/scripts/v8_interface.py#newcode655 Source/bindings/scripts/v8_interface.py:655: yield test, method On 2014/05/14 06:09:03, haraken wrote: > ...
6 years, 7 months ago (2014-05-14 06:28:15 UTC) #4
Nils Barth (inactive)
On 2014/05/14 06:09:03, haraken wrote: > LGTM. (I'm assuming that you didn't make any behavior ...
6 years, 7 months ago (2014-05-14 06:28:49 UTC) #5
Nils Barth (inactive)
Thanks for comments: the handling of automatic type conversion during overload resolution is very confusing, ...
6 years, 7 months ago (2014-05-14 06:31:59 UTC) #6
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 7 months ago (2014-05-14 06:32:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/282873004/20001
6 years, 7 months ago (2014-05-14 06:32:18 UTC) #8
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 7 months ago (2014-05-14 07:36:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/282873004/40001
6 years, 7 months ago (2014-05-14 07:36:15 UTC) #10
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 09:38:01 UTC) #11
Message was sent while issue was closed.
Change committed as 174012

Powered by Google App Engine
This is Rietveld 408576698