|
IDL: Support argument default values
This also changes the code generated for existing null default values,
by dropping use of argumentOrNull() (which then becomes unused and is
removed) and setting the argument's local variable explicitly by
assigning "nullptr" to it.
The use of argumentOrNull() in V8HistoryCustom.cpp was redundant;
reading info[N] directly yields an undefined value, which is converted
to a null string by V8StringResource<WithUndefinedOrNullCheck>.
BUG= 258153
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176861
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+110 lines, -38 lines) |
Patch |
|
M |
Source/bindings/scripts/v8_methods.py
|
View
|
1
|
1 chunk |
+1 line, -9 lines |
0 comments
|
Download
|
|
M |
Source/bindings/templates/methods.cpp
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/tests/idls/TestObject.idl
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/bindings/tests/results/V8TestObject.cpp
|
View
|
1
|
9 chunks |
+82 lines, -19 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/V8Binding.h
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/V8StringResource.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/custom/V8HistoryCustom.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|