|
DOM: NodeIterator.filter and TreeWalker.filter should return values which were specified to createNodeIterator/createTreeWalker.
We used to return values wrapped by NodeIterator interface. The DOM specification
doesn't define such behavior, and Edge, Firefox, and Safari do not.
The core part of this CL is CPP_VALUE_TO_V8_VALUE in v8_types.py. We return a v8
value stored in V8NodeFilterCondition.
Because we don't need to wrap values by NodeFilter, this CL has simplification like:
- Cleanup of indirection ownership;
Old: NodeIteratorBase -> NodeFilter -> V8NodeFilterCondition as NodeFilterCondition
New: NodeIteratorBase -> V8NodeFilterCondition
- Removal of a V8PrivateProperty
It can be replaced with TraceWrapper.
This CL fixes 1,106 failures in external/wpt/dom/.
BUG= 591919, 715418
Review-Url: https://codereview.chromium.org/2840163002
Cr-Commit-Position: refs/heads/master@{#467599}
Committed: https://chromium.googlesource.com/chromium/src/+/772fbff236bdf680788846586a34e9f4d074b2c5
Total comments: 20
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+649 lines, -1518 lines) |
Patch |
 |
D |
third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Document-createTreeWalker-expected.txt
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/external/wpt/dom/traversal/NodeIterator-expected.txt
|
View
|
|
1 chunk |
+0 lines, -749 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/external/wpt/dom/traversal/TreeWalker-expected.txt
|
View
|
|
1 chunk |
+557 lines, -556 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/constants.html
|
View
|
|
2 chunks |
+1 line, -29 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/constants-expected.txt
|
View
|
|
2 chunks |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/global-constructors.html
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/V8BindingForCore.cpp
|
View
|
|
3 chunks |
+0 lines, -22 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.h
|
View
|
1
2
|
2 chunks |
+18 lines, -29 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
|
View
|
1
2
|
2 chunks |
+12 lines, -21 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/scripts/v8_types.py
|
View
|
1
2
|
6 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
2
|
5 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.h
|
View
|
1
2
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/Document.cpp
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeFilter.h
|
View
|
1
|
2 chunks |
+9 lines, -15 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/core/dom/NodeFilter.cpp
|
View
|
|
1 chunk |
+0 lines, -39 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeFilterCondition.h
|
View
|
1
2
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeIterator.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeIterator.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeIteratorBase.h
|
View
|
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/NodeIteratorBase.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/TreeWalker.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/dom/TreeWalker.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/heap/WrapperVisitor.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 39 (27 generated)
|