|
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
Total comments: 8
|
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
|
Total messages: 11 (0 generated)
|