|
Make NodeFilter a legacy callback interface.
https://heycam.github.io/webidl/#legacy-callback-interface-object
Legacy callback interface needs an interface object, but it has no instances and
no prototype.
This CL fixes 19 failures in external/wpt/dom/.
Implementation:
* This CL adds WrapperTypeInfo for NodeFilter, but we never make wrappers for
NodeFilter.
* Add kWrapperTypeNoPrototype
window.NodeFilter should not have a prototype, but it should be a constructor.
V8PerContextData::ConstructorForTypeSlowCase() rejected to return a constructor
if the type had no prototype. This CL introduces kWrapperTypeNoPrototype to
avoid this issue.
* Add new legacy_callback_interface.*.tmpl
Because NodeFilter can't use generated methods for callback interface for now.
* Source/bindings/tests/idls/core/TestLegacyCallbackInterface.idl
Add it for quick check of legacy callback interface generation.
BUG= 591919
Review-Url: https://codereview.chromium.org/2837923003
Cr-Commit-Position: refs/heads/master@{#467963}
Committed: https://chromium.googlesource.com/chromium/src/+/bc4bd9dfb5ff6b2f62d3985e3596df27a9bacec0
Total comments: 39
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+333 lines, -157 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/external/wpt/dom/interfaces-expected.txt
|
View
|
|
2 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/global-constructors.html
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt
|
View
|
1
2
|
2 chunks |
+1 line, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt
|
View
|
1
2
|
2 chunks |
+1 line, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt
|
View
|
1
2
|
2 chunks |
+1 line, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
|
View
|
1
2
|
2 chunks |
+1 line, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/scripts/code_generator_v8.py
|
View
|
1
2
|
1 chunk |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/scripts/generate_global_constructors.py
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/scripts/utilities.py
|
View
|
1
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/scripts/v8_callback_interface.py
|
View
|
1
2
|
3 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/scripts/v8_types.py
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/bindings/templates/legacy_callback_interface.cpp.tmpl
|
View
|
1
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/bindings/templates/legacy_callback_interface.h.tmpl
|
View
|
1
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/templates/templates.gni
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/bindings/tests/idls/core/TestLegacyCallbackInterface.idl
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/bindings/tests/results/core/V8TestLegacyCallbackInterface.h
|
View
|
1
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/Source/bindings/tests/results/core/V8TestLegacyCallbackInterface.cpp
|
View
|
1
|
1 chunk |
+89 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeFilter.h
|
View
|
1
|
3 chunks |
+2 lines, -15 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeFilter.idl
|
View
|
1
2
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/bindings/V8PerContextData.cpp
|
View
|
1
|
1 chunk |
+25 lines, -21 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/bindings/WrapperTypeInfo.h
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 43 (27 generated)
|