|
Replace [TreatNullAs=functionName] with [StrictTypeChecking]
There's a very weird use of [TreatNullAs=functionName] and
[TreatUndefinedAs=functionName] on 2 indexed setters,
using these as "function to call on undefined/null",
basically to call a deleter on undefined/null.
This can be removed by just putting this deleter code in the setter code,
and then moving the type-checking into the bindings, where they belong.
This simplifies the Blink code, CG, and IDL files,
and also adds support for [StrictTypeChecking], for that matter.
(Also removed dead code from named property setter.)
Also:
* Rebaseline test results for HTMLSelectElement, since error message changes
* Add test for HTMLOptionsCollection (which lacks tests), and fix style in that file.
* Update IDL test files
Originally added as part of:
Support indexed setter generation
https://chromiumcodereview.appspot.com/15899009
R=haraken
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166210
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+83 lines, -80 lines) |
Patch |
 |
M |
LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter.html
|
View
|
1
2
|
1 chunk |
+26 lines, -15 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/HTMLOptionElement/collection-setter-getter-expected.txt
|
View
|
1
2
|
1 chunk |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/HTMLSelectElement/exceptions-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/IDLExtendedAttributes.txt
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/code_generator_v8.pm
|
View
|
1
2
|
2 chunks |
+10 lines, -25 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/unstable/v8_interface.py
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/interface.cpp
|
View
|
1
2
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/idls/TestEventTarget.idl
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/V8TestEventTarget.cpp
|
View
|
1
2
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLOptionsCollection.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLOptionsCollection.cpp
|
View
|
1
|
1 chunk |
+2 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLOptionsCollection.idl
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLSelectElement.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLSelectElement.cpp
|
View
|
|
1 chunk |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
Source/core/html/HTMLSelectElement.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Tools/Scripts/webkitpy/bindings/main.py
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 20 (0 generated)
|