|
Revert of IDL: Treat undefined as missing for optional arguments with defaults ( https://codereview.chromium.org/373043004/)
Reason for revert:
The following layout tests fail on Mac:
fast/css/shorthand-setProperty-important.html
fast/dom/Comment/comment-constructor.html
fast/dom/DOMImplementation/createHTMLDocument-optional-title.html
fast/dom/HTMLDialogElement/dialog-return-value.html
fast/dom/NodeIterator/NodeIterator-basic.html
fast/dom/Text/text-constructor.html
fast/dom/TreeWalker/TreeWalker-basic.html
fast/dom/Window/custom-constructors.html
fast/dom/Window/alert-undefined.html
fast/encoding/api/basics.html
fast/js/custom-constructors.html
fast/workers/shared-worker-name.html
media/encrypted-media/encrypted-media-istypesupported.html
Original issue's description:
> IDL: Treat undefined as missing for optional arguments with defaults
>
> For optional arguments with defaults, treat undefined as missing simply
> by checking 'info[N].IsUndefined()' instead of 'N <= info.Length()'.
>
> This works since V8's indexing operator returns an undefined value for
> all out-of-range indexes.
>
> Changes in behavior that had (or now has) testing coverade matches
> Firefox (Nightly), except in the case of WebKitCSSMatrix's constructor,
> which Firefox naturally doesn't have.
>
> BUG= 335871
>
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177857
TBR=haraken@chromium.org,arv@chromium.org,jl@opera.com
NOTREECHECKS=true
NOTRY=true
BUG= 335871
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177866
|
Unified diffs |
Side-by-side diffs |
Stats (+70 lines, -175 lines) |
 |
M |
LayoutTests/fast/css/shorthand-setProperty-important.html
|
View
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
 |
M |
LayoutTests/fast/css/shorthand-setProperty-important-expected.txt
|
View
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/Comment/comment-constructor.html
|
View
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/Comment/comment-constructor-expected.txt
|
View
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/DOMImplementation/createHTMLDocument-optional-title.html
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
M |
LayoutTests/fast/dom/DOMImplementation/createHTMLDocument-optional-title-expected.txt
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
M |
LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value.html
|
View
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/HTMLDialogElement/dialog-return-value-expected.txt
|
View
|
1 chunk |
+0 lines, -1 line |
0 comments
|
 |
M |
LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
|
View
|
2 chunks |
+5 lines, -17 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/NodeIterator/NodeIterator-basic-expected.txt
|
View
|
1 chunk |
+1 line, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/Text/text-constructor.html
|
View
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/Text/text-constructor-expected.txt
|
View
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
|
View
|
2 chunks |
+4 lines, -16 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/TreeWalker/TreeWalker-basic-expected.txt
|
View
|
1 chunk |
+1 line, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/Window/alert-undefined-expected.txt
|
View
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/dom/Window/custom-constructors-expected.txt
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
M |
LayoutTests/fast/encoding/api/basics.html
|
View
|
1 chunk |
+0 lines, -1 line |
0 comments
|
 |
M |
LayoutTests/fast/forms/resources/common-setrangetext.js
|
View
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
 |
M |
LayoutTests/fast/forms/search/search-setrangetext-expected.txt
|
View
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
 |
M |
LayoutTests/fast/forms/setrangetext-expected.txt
|
View
|
5 chunks |
+0 lines, -30 lines |
0 comments
|
 |
M |
LayoutTests/fast/forms/textarea/textarea-setrangetext-expected.txt
|
View
|
2 chunks |
+0 lines, -12 lines |
0 comments
|
 |
M |
LayoutTests/fast/js/custom-constructors-expected.txt
|
View
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/js/script-tests/custom-constructors.js
|
View
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
 |
M |
LayoutTests/fast/workers/resources/shared-worker-name.js
|
View
|
6 chunks |
+32 lines, -15 lines |
0 comments
|
 |
M |
LayoutTests/fast/workers/shared-worker-name-expected.txt
|
View
|
1 chunk |
+3 lines, -1 line |
0 comments
|
 |
M |
LayoutTests/media/encrypted-media/encrypted-media-istypesupported.html
|
View
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
 |
M |
Source/bindings/templates/methods.cpp
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
M |
Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp
|
View
|
1 chunk |
+1 line, -1 line |
0 comments
|
 |
M |
Source/bindings/tests/results/V8TestObject.cpp
|
View
|
10 chunks |
+12 lines, -12 lines |
0 comments
|
Total messages: 12 (0 generated)
|