bindings: Remove support for WebIDL arrays

Desktop / Chromium - Raphael Kubo da Costa [intel.com] - 17 August 2017 04:27 EDT

WebIDL arrays (e.g. "T[] bar") were removed from the spec back in 2015 with https://github.com/heycam/webidl/pull/52. Previous users should use sequences or FrozenArrays most of the time.

Now that all existing WebIDL array users have been fixed, we can finally adapt to the change and remove support for arrays from //tools/idl_parser as well as the bindings layer and related tests.

Bug: 740865 Change-Id: I9edfcb7b88963ea92836f7ed93945ad7edd48603 Reviewed-on: https://chromium-review.googlesource.com/616661

8794c1e bindings: Remove support for WebIDL arrays.
.../fast/dom/idl-dictionary-unittest-expected.txt | 5 +-
.../fast/dom/idl-dictionary-unittest.html | 4 -
.../fast/dom/idl-union-type-unittest-expected.txt | 46 +---
.../fast/dom/idl-union-type-unittest.html | 63 ++---
.../WebKit/Source/bindings/core/v8/BUILD.gn | 2 -
.../Source/bindings/scripts/idl_definitions.py | 15 +-
.../WebKit/Source/bindings/scripts/idl_types.py | 23 +-
.../Source/bindings/scripts/v8_attributes.py | 2 +-
.../WebKit/Source/bindings/scripts/v8_types.py | 11 +-
.../bindings/templates/union_container.cpp.tmpl | 2 +-
.../bindings/tests/idls/core/TestDictionary.idl | 1 -
.../Source/bindings/tests/idls/core/TestObject.idl | 19 +-
.../bindings/tests/idls/core/TestTypedefs.idl | 9 +-
.../bindings/tests/results/core/TestDictionary.cpp | 11 -
.../bindings/tests/results/core/TestDictionary.h | 6 -
.../tests/results/core/V8TestDictionary.cpp | 86 ++----
.../bindings/tests/results/core/V8TestObject.cpp | 305 +--------------------
.../bindings/tests/results/core/V8TestObject.h | 14 -
.../bindings/tests/results/core/V8TestTypedefs.cpp | 51 +---
.../bindings/tests/results/core/V8TestTypedefs.h | 3 +-
.../WebKit/Source/core/testing/DictionaryTest.cpp | 5 -
.../WebKit/Source/core/testing/DictionaryTest.h | 1 -
.../Source/core/testing/InternalDictionary.idl | 1 -
.../WebKit/Source/core/testing/UnionTypesTest.cpp | 75 ++---
.../WebKit/Source/core/testing/UnionTypesTest.h | 13 +-
.../WebKit/Source/core/testing/UnionTypesTest.idl | 5 +-
tools/idl_parser/idl_parser.py | 41 +--
tools/idl_parser/test_parser/callback_web.idl | 48 +---
tools/idl_parser/test_parser/interface_web.idl | 10 -
tools/idl_parser/test_parser/typedef_web.idl | 53 +---
30 files changed, 151 insertions(+), 779 deletions(-)

Upstream: git.chromium.org


  • Share