<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[209752] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/209752">209752</a></dd>
<dt>Author</dt> <dd>darin@apple.com</dd>
<dt>Date</dt> <dd>2016-12-12 21:17:28 -0800 (Mon, 12 Dec 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove bindings generation support for legacy WebCore::Dictionary
https://bugs.webkit.org/show_bug.cgi?id=165762

Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

* web-platform-tests/webrtc/datachannel-emptystring-expected.txt:
* web-platform-tests/webrtc/no-media-call-expected.txt:
* web-platform-tests/webrtc/promises-call-expected.txt:
* web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt:
* web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt:
Updated to expect error messages with &quot;dictionary&quot; with a lowercase D.

Source/WebCore:

After this patch, all use of legacy WebCore::Dictionary is within custom bindings or
inside the DOM code itself. Bindings generation machinery no longer has a special
type named &quot;Dictionary&quot; but has increasingly good support for IDL-defined dictionaries.

* Modules/applepay/ApplePaySession.cpp:
(WebCore::ApplePaySession::create): Take ExecState and a JSValue rather than a Dictionary.
(WebCore::ApplePaySession::completeMerchantValidation): Ditto.
* Modules/applepay/ApplePaySession.h: Updated for the above changes.
* Modules/applepay/ApplePaySession.idl: For this last file using Dictionary in IDL, move
to &quot;[CallWith=ScriptState]&quot; and &quot;any&quot; as a stopgap. Later we can return and use IDL
dictionaries or other more modern solutions.

* Modules/mediastream/MediaDevices.idl: For the custom binding written in JavaScript,
use the type mentioned in the specification rather than Dictionary. The bindings generator
ignores the type, so this is more like changing a comment rather than changing source code.

* Modules/mediastream/RTCPeerConnection.js:
(initializeRTCPeerConnection): Refer to a non-object as not a valid &quot;dictionary&quot;, lowercase
rather than &quot;Dictionary&quot;.
* Modules/mediastream/RTCPeerConnectionInternals.js:
(callbacksAndDictionaryOverload): Ditto.

* bindings/generic/IDLTypes.h: Removed IDLLegacyDictionary.

* bindings/js/JSCryptoAlgorithmDictionary.cpp:
(WebCore::getHashAlgorithm): Fixed a comment.

* bindings/js/JSDOMConvert.h:
(WebCore::Converter&lt;IDLLegacyDictionary&lt;T&gt;&gt;::convert): Deleted.

* bindings/scripts/CodeGenerator.pm:
(IsBuiltinType): Removed special case for &quot;Dictionary&quot;.
* bindings/scripts/CodeGeneratorJS.pm:
(AddToIncludesForIDLType): Ditto.
(AreTypesDistinguishableForOverloadResolution): Ditto.
(GenerateOverloadedFunctionOrConstructor): Ditto.
(GenerateParametersCheck): Ditto.
(GetBaseIDLType): Ditto.

* bindings/scripts/test/JS/JSTestObj.cpp: Regenerated results.
* bindings/scripts/test/TestObj.idl: Removed test case for Dictionary.

LayoutTests:

* fast/mediastream/RTCPeerConnection-expected.txt:
* fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt:
* fast/mediastream/RTCPeerConnection-overloaded-operations-params.html:
Updated to expect error messages with &quot;dictionary&quot; with a lowercase D.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamRTCPeerConnectionexpectedtxt">trunk/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamRTCPeerConnectionoverloadedoperationsparamsexpectedtxt">trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastmediastreamRTCPeerConnectionoverloadedoperationsparamshtml">trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestswebrtcdatachannelemptystringexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestswebrtcnomediacallexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestswebrtcpromisescallexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestswebrtcrtcpeerconnectionrtcpeerconnectionconstructorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestswebrtcrtcpeerconnectionrtcpeerconnectionidlexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesapplepayApplePaySessioncpp">trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesapplepayApplePaySessionh">trunk/Source/WebCore/Modules/applepay/ApplePaySession.h</a></li>
<li><a href="#trunkSourceWebCoreModulesapplepayApplePaySessionidl">trunk/Source/WebCore/Modules/applepay/ApplePaySession.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamMediaDevicesidl">trunk/Source/WebCore/Modules/mediastream/MediaDevices.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCPeerConnectionjs">trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.js</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamRTCPeerConnectionInternalsjs">trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionInternals.js</a></li>
<li><a href="#trunkSourceWebCorebindingsgenericIDLTypesh">trunk/Source/WebCore/bindings/generic/IDLTypes.h</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSCryptoAlgorithmDictionarycpp">trunk/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMConverth">trunk/Source/WebCore/bindings/js/JSDOMConvert.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorpm">trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestTestObjidl">trunk/Source/WebCore/bindings/scripts/test/TestObj.idl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/ChangeLog        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-12-12  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove bindings generation support for legacy WebCore::Dictionary
+        https://bugs.webkit.org/show_bug.cgi?id=165762
+
+        Reviewed by Sam Weinig.
+
+        * fast/mediastream/RTCPeerConnection-expected.txt:
+        * fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt:
+        * fast/mediastream/RTCPeerConnection-overloaded-operations-params.html:
+        Updated to expect error messages with &quot;dictionary&quot; with a lowercase D.
+
</ins><span class="cx"> 2016-12-12  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add Document.onvisibilitychange event handler attribute
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamRTCPeerConnectionexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -3,10 +3,10 @@
</span><span class="cx"> On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-PASS new RTCPeerConnection(null); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
-PASS new RTCPeerConnection(undefined); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
</del><ins>+PASS new RTCPeerConnection(null); threw exception TypeError: RTCPeerConnection argument must be a valid dictionary.
+PASS new RTCPeerConnection(undefined); threw exception TypeError: RTCPeerConnection argument must be a valid dictionary.
</ins><span class="cx"> PASS new RTCPeerConnection(); threw exception TypeError: Not enough arguments.
</span><del>-PASS new RTCPeerConnection(''); threw exception TypeError: RTCPeerConnection argument must be a valid Dictionary.
</del><ins>+PASS new RTCPeerConnection(''); threw exception TypeError: RTCPeerConnection argument must be a valid dictionary.
</ins><span class="cx"> PASS new RTCPeerConnection({}); did not throw exception.
</span><span class="cx"> PASS new RTCPeerConnection({iceServers:[]}); did not throw exception.
</span><span class="cx"> PASS new RTCPeerConnection({iceServers:[{url:'stun:foo.com'}]}); threw exception TypeError: Error creating RTCPeerConnection.
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamRTCPeerConnectionoverloadedoperationsparamsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -22,8 +22,8 @@
</span><span class="cx"> *** Bad input
</span><span class="cx"> PASS promise pc.createOffer({}, emptyFunc) rejected with TypeError: Argument 1 ('successCallback') to RTCPeerConnection.createOffer must be a function
</span><span class="cx"> PASS promise pc.createOffer(emptyFunc, {}) rejected with TypeError: Argument 2 ('errorCallback') to RTCPeerConnection.createOffer must be a function
</span><del>-PASS promise pc.createOffer(1) rejected with TypeError: Argument 1 ('options') to RTCPeerConnection.createOffer must be a Dictionary
-PASS promise pc.createOffer(emptyFunc, emptyFunc, 1) rejected with TypeError: Argument 3 ('options') to RTCPeerConnection.createOffer must be a Dictionary
</del><ins>+PASS promise pc.createOffer(1) rejected with TypeError: Argument 1 ('options') to RTCPeerConnection.createOffer must be a dictionary
+PASS promise pc.createOffer(emptyFunc, emptyFunc, 1) rejected with TypeError: Argument 3 ('options') to RTCPeerConnection.createOffer must be a dictionary
</ins><span class="cx"> 
</span><span class="cx"> *** Test createAnswer
</span><span class="cx"> PASS promise pc.createAnswer() did not reject with TypeError.
</span><span class="lines">@@ -43,8 +43,8 @@
</span><span class="cx"> *** Bad input
</span><span class="cx"> PASS promise pc.createAnswer({}, emptyFunc) rejected with TypeError: Argument 1 ('successCallback') to RTCPeerConnection.createAnswer must be a function
</span><span class="cx"> PASS promise pc.createAnswer(emptyFunc, {}) rejected with TypeError: Argument 2 ('errorCallback') to RTCPeerConnection.createAnswer must be a function
</span><del>-PASS promise pc.createAnswer(1) rejected with TypeError: Argument 1 ('options') to RTCPeerConnection.createAnswer must be a Dictionary
-PASS promise pc.createAnswer(emptyFunc, emptyFunc, 1) rejected with TypeError: Argument 3 ('options') to RTCPeerConnection.createAnswer must be a Dictionary
</del><ins>+PASS promise pc.createAnswer(1) rejected with TypeError: Argument 1 ('options') to RTCPeerConnection.createAnswer must be a dictionary
+PASS promise pc.createAnswer(emptyFunc, emptyFunc, 1) rejected with TypeError: Argument 3 ('options') to RTCPeerConnection.createAnswer must be a dictionary
</ins><span class="cx"> 
</span><span class="cx"> *** Test setLocalDescription
</span><span class="cx"> PASS promise pc.setLocalDescription(desc) did not reject with TypeError.
</span></span></pre></div>
<a id="trunkLayoutTestsfastmediastreamRTCPeerConnectionoverloadedoperationsparamshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params.html (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params.html        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/fast/mediastream/RTCPeerConnection-overloaded-operations-params.html        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -71,11 +71,11 @@
</span><span class="cx">                         return promiseShouldReject(`pc.${functionName}(emptyFunc, {})`, &quot;reason&quot;);
</span><span class="cx">                     })
</span><span class="cx">                     .then(function () {
</span><del>-                        reason = `TypeError: Argument 1 ('options') to RTCPeerConnection.${functionName} must be a Dictionary`;
</del><ins>+                        reason = `TypeError: Argument 1 ('options') to RTCPeerConnection.${functionName} must be a dictionary`;
</ins><span class="cx">                         return promiseShouldReject(`pc.${functionName}(1)`, &quot;reason&quot;);
</span><span class="cx">                     })
</span><span class="cx">                     .then(function () {
</span><del>-                        reason = `TypeError: Argument 3 ('options') to RTCPeerConnection.${functionName} must be a Dictionary`;
</del><ins>+                        reason = `TypeError: Argument 3 ('options') to RTCPeerConnection.${functionName} must be a dictionary`;
</ins><span class="cx">                         return promiseShouldReject(`pc.${functionName}(emptyFunc, emptyFunc, 1)`, &quot;reason&quot;);
</span><span class="cx">                     })
</span><span class="cx">                     .then(function () {
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-12-12  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove bindings generation support for legacy WebCore::Dictionary
+        https://bugs.webkit.org/show_bug.cgi?id=165762
+
+        Reviewed by Sam Weinig.
+
+        * web-platform-tests/webrtc/datachannel-emptystring-expected.txt:
+        * web-platform-tests/webrtc/no-media-call-expected.txt:
+        * web-platform-tests/webrtc/promises-call-expected.txt:
+        * web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt:
+        * web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt:
+        Updated to expect error messages with &quot;dictionary&quot; with a lowercase D.
+
</ins><span class="cx"> 2016-12-10  Jiewen Tan  &lt;jiewen_tan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [WebCrypto] RSA algorithms should allow importing keys without usages
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestswebrtcdatachannelemptystringexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/datachannel-emptystring-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><del>-FAIL Can send empty strings across a WebRTC data channel. RTCPeerConnection argument must be a valid Dictionary
</del><ins>+FAIL Can send empty strings across a WebRTC data channel. RTCPeerConnection argument must be a valid dictionary
</ins><span class="cx"> Messages exchanged
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestswebrtcnomediacallexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/no-media-call-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><del>-FAIL Can set up a basic WebRTC call with no data. RTCPeerConnection argument must be a valid Dictionary
</del><ins>+FAIL Can set up a basic WebRTC call with no data. RTCPeerConnection argument must be a valid dictionary
</ins><span class="cx"> iceConnectionState info
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestswebrtcpromisescallexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/promises-call-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><del>-FAIL Can set up a basic WebRTC call with only data using promises. RTCPeerConnection argument must be a valid Dictionary
</del><ins>+FAIL Can set up a basic WebRTC call with only data using promises. RTCPeerConnection argument must be a valid dictionary
</ins><span class="cx"> iceConnectionState info
</span><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestswebrtcrtcpeerconnectionrtcpeerconnectionconstructorexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,8 +1,8 @@
</span><span class="cx"> 
</span><span class="cx"> PASS RTCPeerConnection.length 
</span><span class="cx"> FAIL new RTCPeerConnection() Not enough arguments
</span><del>-FAIL new RTCPeerConnection(null) RTCPeerConnection argument must be a valid Dictionary
-FAIL new RTCPeerConnection(undefined) RTCPeerConnection argument must be a valid Dictionary
</del><ins>+FAIL new RTCPeerConnection(null) RTCPeerConnection argument must be a valid dictionary
+FAIL new RTCPeerConnection(undefined) RTCPeerConnection argument must be a valid dictionary
</ins><span class="cx"> PASS new RTCPeerConnection({}) 
</span><span class="cx"> PASS new RTCPeerConnection({ iceServers: null }) 
</span><span class="cx"> PASS new RTCPeerConnection({ iceServers: undefined }) 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestswebrtcrtcpeerconnectionrtcpeerconnectionidlexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-idl-expected.txt        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,9 +1,9 @@
</span><del>-CONSOLE MESSAGE: line 100: TypeError: RTCPeerConnection argument must be a valid Dictionary
</del><ins>+CONSOLE MESSAGE: line 100: TypeError: RTCPeerConnection argument must be a valid dictionary
</ins><span class="cx"> Description
</span><span class="cx"> 
</span><span class="cx"> This test verifies the availability of the RTCPeerConnection interface.
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-Harness Error (FAIL), message = TypeError: RTCPeerConnection argument must be a valid Dictionary
</del><ins>+Harness Error (FAIL), message = TypeError: RTCPeerConnection argument must be a valid dictionary
</ins><span class="cx"> 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/ChangeLog        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1,3 +1,52 @@
</span><ins>+2016-12-12  Darin Adler  &lt;darin@apple.com&gt;
+
+        Remove bindings generation support for legacy WebCore::Dictionary
+        https://bugs.webkit.org/show_bug.cgi?id=165762
+
+        Reviewed by Sam Weinig.
+
+        After this patch, all use of legacy WebCore::Dictionary is within custom bindings or
+        inside the DOM code itself. Bindings generation machinery no longer has a special
+        type named &quot;Dictionary&quot; but has increasingly good support for IDL-defined dictionaries.
+
+        * Modules/applepay/ApplePaySession.cpp:
+        (WebCore::ApplePaySession::create): Take ExecState and a JSValue rather than a Dictionary.
+        (WebCore::ApplePaySession::completeMerchantValidation): Ditto.
+        * Modules/applepay/ApplePaySession.h: Updated for the above changes.
+        * Modules/applepay/ApplePaySession.idl: For this last file using Dictionary in IDL, move
+        to &quot;[CallWith=ScriptState]&quot; and &quot;any&quot; as a stopgap. Later we can return and use IDL
+        dictionaries or other more modern solutions.
+
+        * Modules/mediastream/MediaDevices.idl: For the custom binding written in JavaScript,
+        use the type mentioned in the specification rather than Dictionary. The bindings generator
+        ignores the type, so this is more like changing a comment rather than changing source code.
+
+        * Modules/mediastream/RTCPeerConnection.js:
+        (initializeRTCPeerConnection): Refer to a non-object as not a valid &quot;dictionary&quot;, lowercase
+        rather than &quot;Dictionary&quot;.
+        * Modules/mediastream/RTCPeerConnectionInternals.js:
+        (callbacksAndDictionaryOverload): Ditto.
+
+        * bindings/generic/IDLTypes.h: Removed IDLLegacyDictionary.
+
+        * bindings/js/JSCryptoAlgorithmDictionary.cpp:
+        (WebCore::getHashAlgorithm): Fixed a comment.
+
+        * bindings/js/JSDOMConvert.h:
+        (WebCore::Converter&lt;IDLLegacyDictionary&lt;T&gt;&gt;::convert): Deleted.
+
+        * bindings/scripts/CodeGenerator.pm:
+        (IsBuiltinType): Removed special case for &quot;Dictionary&quot;.
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (AddToIncludesForIDLType): Ditto.
+        (AreTypesDistinguishableForOverloadResolution): Ditto.
+        (GenerateOverloadedFunctionOrConstructor): Ditto.
+        (GenerateParametersCheck): Ditto.
+        (GetBaseIDLType): Ditto.
+
+        * bindings/scripts/test/JS/JSTestObj.cpp: Regenerated results.
+        * bindings/scripts/test/TestObj.idl: Removed test case for Dictionary.
+
</ins><span class="cx"> 2016-12-12  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Drop unnecessary null check in removeDetachedChildrenInContainer()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesapplepayApplePaySessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -635,7 +635,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ExceptionOr&lt;Ref&lt;ApplePaySession&gt;&gt; ApplePaySession::create(Document&amp; document, unsigned version, const Dictionary&amp; dictionary)
</del><ins>+ExceptionOr&lt;Ref&lt;ApplePaySession&gt;&gt; ApplePaySession::create(JSC::ExecState&amp; state, Document&amp; document, unsigned version, JSC::JSValue arguments)
</ins><span class="cx"> {
</span><span class="cx">     DOMWindow&amp; window = *document.domWindow();
</span><span class="cx"> 
</span><span class="lines">@@ -657,7 +657,7 @@
</span><span class="cx">         return Exception { INVALID_ACCESS_ERR };
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    auto paymentRequest = createPaymentRequest(version, window, dictionary);
</del><ins>+    auto paymentRequest = createPaymentRequest(version, window, { &amp;state, arguments });
</ins><span class="cx">     if (!paymentRequest)
</span><span class="cx">         return Exception { TYPE_MISMATCH_ERR };
</span><span class="cx"> 
</span><span class="lines">@@ -818,12 +818,12 @@
</span><span class="cx">     return { };
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-ExceptionOr&lt;void&gt; ApplePaySession::completeMerchantValidation(const Dictionary&amp; merchantSessionDictionary)
</del><ins>+ExceptionOr&lt;void&gt; ApplePaySession::completeMerchantValidation(JSC::ExecState&amp; state, JSC::JSValue merchantSessionValue)
</ins><span class="cx"> {
</span><span class="cx">     if (!canCompleteMerchantValidation())
</span><span class="cx">         return Exception { INVALID_ACCESS_ERR };
</span><span class="cx"> 
</span><del>-    if (!merchantSessionDictionary.initializerObject())
</del><ins>+    if (!merchantSessionValue.isObject())
</ins><span class="cx">         return Exception { TypeError };
</span><span class="cx"> 
</span><span class="cx">     auto&amp; document = *downcast&lt;Document&gt;(scriptExecutionContext());
</span><span class="lines">@@ -830,7 +830,7 @@
</span><span class="cx">     auto&amp; window = *document.domWindow();
</span><span class="cx"> 
</span><span class="cx">     String errorMessage;
</span><del>-    auto merchantSession = PaymentMerchantSession::fromJS(*merchantSessionDictionary.execState(), merchantSessionDictionary.initializerObject(), errorMessage);
</del><ins>+    auto merchantSession = PaymentMerchantSession::fromJS(state, asObject(merchantSessionValue), errorMessage);
</ins><span class="cx">     if (!merchantSession) {
</span><span class="cx">         window.printErrorMessage(errorMessage);
</span><span class="cx">         return Exception { INVALID_ACCESS_ERR };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesapplepayApplePaySessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/applepay/ApplePaySession.h (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/applepay/ApplePaySession.h        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/Modules/applepay/ApplePaySession.h        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> 
</span><span class="cx"> class ApplePaySession final : public RefCounted&lt;ApplePaySession&gt;, public ActiveDOMObject, public EventTargetWithInlineData {
</span><span class="cx"> public:
</span><del>-    static ExceptionOr&lt;Ref&lt;ApplePaySession&gt;&gt; create(Document&amp;, unsigned version, const Dictionary&amp;);
</del><ins>+    static ExceptionOr&lt;Ref&lt;ApplePaySession&gt;&gt; create(JSC::ExecState&amp;, Document&amp;, unsigned version, JSC::JSValue);
</ins><span class="cx">     virtual ~ApplePaySession();
</span><span class="cx"> 
</span><span class="cx">     // DOM API.
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> 
</span><span class="cx">     ExceptionOr&lt;void&gt; begin();
</span><span class="cx">     ExceptionOr&lt;void&gt; abort();
</span><del>-    ExceptionOr&lt;void&gt; completeMerchantValidation(const Dictionary&amp; merchantSessionDictionary);
</del><ins>+    ExceptionOr&lt;void&gt; completeMerchantValidation(JSC::ExecState&amp;, JSC::JSValue merchantSessionDictionary);
</ins><span class="cx">     ExceptionOr&lt;void&gt; completeShippingMethodSelection(unsigned short status, const Dictionary&amp; newTotal, const ArrayValue&amp; newLineItems);
</span><span class="cx">     ExceptionOr&lt;void&gt; completeShippingContactSelection(unsigned short status, const ArrayValue&amp; newShippingMethods, const Dictionary&amp; newTotal, const ArrayValue&amp; newLineItems);
</span><span class="cx">     ExceptionOr&lt;void&gt; completePaymentMethodSelection(const Dictionary&amp; newTotal, const ArrayValue&amp; newLineItems);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesapplepayApplePaySessionidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/applepay/ApplePaySession.idl (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/applepay/ApplePaySession.idl        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/Modules/applepay/ApplePaySession.idl        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -26,8 +26,8 @@
</span><span class="cx"> [
</span><span class="cx">     ActiveDOMObject,
</span><span class="cx">     Conditional=APPLE_PAY,
</span><del>-    Constructor(unsigned long version, Dictionary paymentRequest),
-    ConstructorCallWith=Document,
</del><ins>+    Constructor(unsigned long version, any paymentRequest),
+    ConstructorCallWith=Document&amp;ScriptState,
</ins><span class="cx">     ConstructorMayThrowException,
</span><span class="cx">     EnabledBySetting=ApplePay,
</span><span class="cx"> ] interface ApplePaySession : EventTarget {
</span><span class="lines">@@ -47,10 +47,10 @@
</span><span class="cx"> 
</span><span class="cx">     [MayThrowException] void begin();
</span><span class="cx">     [MayThrowException] void abort();
</span><del>-    [MayThrowException] void completeMerchantValidation(Dictionary merchantSession);
-    [Custom, MayThrowException] void completeShippingMethodSelection(unsigned short status, Dictionary newTotal, sequence&lt;Dictionary&gt; newLineItems);
-    [Custom, MayThrowException] void completeShippingContactSelection(unsigned short status, sequence&lt;Dictionary&gt; newShippingMethods, Dictionary newTotal, sequence&lt;Dictionary&gt; newLineItems);
-    [Custom, MayThrowException] void completePaymentMethodSelection(Dictionary newTotal, sequence&lt;Dictionary&gt; newLineItems);
</del><ins>+    [CallWith=ScriptState, MayThrowException] void completeMerchantValidation(any merchantSession);
+    [Custom, MayThrowException] void completeShippingMethodSelection(unsigned short status, any newTotal, any newLineItems);
+    [Custom, MayThrowException] void completeShippingContactSelection(unsigned short status, any newShippingMethods, any newTotal, any newLineItems);
+    [Custom, MayThrowException] void completePaymentMethodSelection(any newTotal, any newLineItems);
</ins><span class="cx">     [MayThrowException] void completePayment(unsigned short status);
</span><span class="cx"> 
</span><span class="cx">     attribute EventHandler onvalidatemerchant;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamMediaDevicesidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/MediaDevices.idl (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/MediaDevices.idl        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/Modules/mediastream/MediaDevices.idl        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -34,6 +34,6 @@
</span><span class="cx"> ] interface MediaDevices {
</span><span class="cx">     MediaTrackSupportedConstraints getSupportedConstraints();
</span><span class="cx"> 
</span><del>-    [Custom, MayThrowException, PrivateIdentifier, PublicIdentifier] Promise&lt;MediaStream&gt; getUserMedia(Dictionary options);
</del><ins>+    [Custom, MayThrowException, PrivateIdentifier, PublicIdentifier] Promise&lt;MediaStream&gt; getUserMedia(optional MediaStreamConstraints constraints);
</ins><span class="cx">     Promise&lt;sequence&lt;MediaDeviceInfo&gt;&gt; enumerateDevices();
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCPeerConnectionjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.js (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.js        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.js        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx">         @throwTypeError(&quot;Not enough arguments&quot;);
</span><span class="cx"> 
</span><span class="cx">     if (!@isObject(configuration))
</span><del>-        @throwTypeError(&quot;RTCPeerConnection argument must be a valid Dictionary&quot;);
</del><ins>+        @throwTypeError(&quot;RTCPeerConnection argument must be a valid dictionary&quot;);
</ins><span class="cx"> 
</span><span class="cx">     // FIXME: Handle errors in a better way than catching and re-throwing (http://webkit.org/b/158936)
</span><span class="cx">     try {
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamRTCPeerConnectionInternalsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionInternals.js (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionInternals.js        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/Modules/mediastream/RTCPeerConnectionInternals.js        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx">         // Zero or one arguments: Promise mode
</span><span class="cx">         const options = args[0];
</span><span class="cx">         if (args.length &amp;&amp; !@isDictionary(options))
</span><del>-            return @Promise.@reject(new @TypeError(`Argument 1 ('options') to RTCPeerConnection.${functionName} must be a Dictionary`));
</del><ins>+            return @Promise.@reject(new @TypeError(`Argument 1 ('options') to RTCPeerConnection.${functionName} must be a dictionary`));
</ins><span class="cx"> 
</span><span class="cx">         return promiseMode(options);
</span><span class="cx">     }
</span><span class="lines">@@ -121,7 +121,7 @@
</span><span class="cx">         return @Promise.@reject(new @TypeError(`Argument 2 ('errorCallback') to RTCPeerConnection.${functionName} must be a function`));
</span><span class="cx"> 
</span><span class="cx">     if (args.length &gt; 2 &amp;&amp; !@isDictionary(options))
</span><del>-        return @Promise.@reject(new @TypeError(`Argument 3 ('options') to RTCPeerConnection.${functionName} must be a Dictionary`));
</del><ins>+        return @Promise.@reject(new @TypeError(`Argument 3 ('options') to RTCPeerConnection.${functionName} must be a dictionary`));
</ins><span class="cx"> 
</span><span class="cx">     return legacyMode(successCallback, errorCallback, args[2]);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsgenericIDLTypesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/generic/IDLTypes.h (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/generic/IDLTypes.h        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/generic/IDLTypes.h        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -165,7 +165,6 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename T&gt; struct IDLSerializedScriptValue : IDLWrapper&lt;T&gt; { };
</span><del>-template&lt;typename T&gt; struct IDLLegacyDictionary : IDLType&lt;T&gt; { };
</del><span class="cx"> template&lt;typename T&gt; struct IDLEventListener : IDLWrapper&lt;T&gt; { };
</span><span class="cx"> template&lt;typename T&gt; struct IDLXPathNSResolver : IDLWrapper&lt;T&gt; { };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSCryptoAlgorithmDictionarycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/js/JSCryptoAlgorithmDictionary.cpp        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx"> 
</span><span class="cx"> static bool getHashAlgorithm(Dictionary&amp; dictionary, CryptoAlgorithmIdentifier&amp; result, HashRequirement isRequired)
</span><span class="cx"> {
</span><del>-    // FXIME: Teach Dictionary how to return JSValues, and use that to get hash element value.
</del><ins>+    // FIXME: Teach Dictionary how to return JSValues, and use that to get hash element value.
</ins><span class="cx"> 
</span><span class="cx">     ExecState* exec = dictionary.execState();
</span><span class="cx">     VM&amp; vm = exec-&gt;vm();
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMConverth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMConvert.h (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMConvert.h        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/js/JSDOMConvert.h        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -1462,18 +1462,6 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> // MARK: -
</span><del>-// MARK: Legacy dictionary type
-
-template&lt;typename T&gt; struct Converter&lt;IDLLegacyDictionary&lt;T&gt;&gt; : DefaultConverter&lt;IDLLegacyDictionary&lt;T&gt;&gt; {
-    using ReturnType = T;
-
-    static ReturnType convert(JSC::ExecState&amp; state, JSC::JSValue value)
-    {
-        return T(&amp;state, value);
-    }
-};
-
-// MARK: -
</del><span class="cx"> // MARK: Event Listener type
</span><span class="cx"> 
</span><span class="cx"> template&lt;typename T&gt; struct Converter&lt;IDLEventListener&lt;T&gt;&gt; : DefaultConverter&lt;IDLEventListener&lt;T&gt;&gt; {
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -868,7 +868,6 @@
</span><span class="cx">     return 1 if $type-&gt;name eq &quot;Promise&quot;;
</span><span class="cx">     return 1 if $type-&gt;name eq &quot;XPathNSResolver&quot;;    
</span><span class="cx">     return 1 if $type-&gt;name eq &quot;EventListener&quot;;    
</span><del>-    return 1 if $type-&gt;name eq &quot;Dictionary&quot;;    
</del><span class="cx">     return 1 if $type-&gt;name eq &quot;SerializedScriptValue&quot;;    
</span><span class="cx"> 
</span><span class="cx">     return 0;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -309,7 +309,7 @@
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx">     
</span><del>-    if ($type-&gt;name eq &quot;SerializedScriptValue&quot; || $type-&gt;name eq &quot;Dictionary&quot;) {
</del><ins>+    if ($type-&gt;name eq &quot;SerializedScriptValue&quot;) {
</ins><span class="cx">         AddToIncludes($type-&gt;name . &quot;.h&quot;, $includesRef, $conditional);
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="lines">@@ -2151,7 +2151,7 @@
</span><span class="cx"> 
</span><span class="cx">     my $isDictionary = sub {
</span><span class="cx">         my $type = shift;
</span><del>-        return $type-&gt;name eq &quot;Dictionary&quot; || $codeGenerator-&gt;IsDictionaryType($type);
</del><ins>+        return $codeGenerator-&gt;IsDictionaryType($type);
</ins><span class="cx">     };
</span><span class="cx">     my $isCallbackFunctionOrDictionary = sub {
</span><span class="cx">         my $type = shift;
</span><span class="lines">@@ -2281,7 +2281,7 @@
</span><span class="cx">     };
</span><span class="cx">     my $isDictionaryOrRecordParameter = sub {
</span><span class="cx">         my ($type, $optionality) = @_;
</span><del>-        return $type-&gt;name eq &quot;Dictionary&quot; || $codeGenerator-&gt;IsDictionaryType($type) || $codeGenerator-&gt;IsRecordType($type);
</del><ins>+        return $codeGenerator-&gt;IsDictionaryType($type) || $codeGenerator-&gt;IsRecordType($type);
</ins><span class="cx">     };
</span><span class="cx">     my $isNullableOrDictionaryOrRecordOrUnionContainingOne = sub {
</span><span class="cx">         my ($type, $optionality) = @_;
</span><span class="lines">@@ -4328,9 +4328,6 @@
</span><span class="cx">     &quot;DOMString&quot; =&gt; &quot;\&quot;undefined\&quot;&quot;,
</span><span class="cx">     &quot;USVString&quot; =&gt; &quot;\&quot;undefined\&quot;&quot;,
</span><span class="cx"> 
</span><del>-    # Dictionary(state, undefined) will construct an empty Dictionary.
-    &quot;Dictionary&quot; =&gt; &quot;[]&quot;,
-
</del><span class="cx">     # JSValue::toBoolean() will convert undefined to false.
</span><span class="cx">     &quot;boolean&quot; =&gt; &quot;false&quot;,
</span><span class="cx"> 
</span><span class="lines">@@ -4418,7 +4415,7 @@
</span><span class="cx"> 
</span><span class="cx">         if ($argument-&gt;isOptional &amp;&amp; !defined($argument-&gt;default)) {
</span><span class="cx">             # As per Web IDL, optional dictionary arguments are always considered to have a default value of an empty dictionary, unless otherwise specified.
</span><del>-            $argument-&gt;default(&quot;[]&quot;) if $type-&gt;name eq &quot;Dictionary&quot; or $codeGenerator-&gt;IsDictionaryType($type);
</del><ins>+            $argument-&gt;default(&quot;[]&quot;) if $codeGenerator-&gt;IsDictionaryType($type);
</ins><span class="cx"> 
</span><span class="cx">             # Treat undefined the same as an empty sequence Or frozen array.
</span><span class="cx">             $argument-&gt;default(&quot;[]&quot;) if $codeGenerator-&gt;IsSequenceOrFrozenArrayType($type);
</span><span class="lines">@@ -5015,7 +5012,6 @@
</span><span class="cx">     &quot;DOMString&quot; =&gt; &quot;String&quot;,
</span><span class="cx">     &quot;USVString&quot; =&gt; &quot;String&quot;,
</span><span class="cx">     &quot;Date&quot; =&gt; &quot;double&quot;,
</span><del>-    &quot;Dictionary&quot; =&gt; &quot;Dictionary&quot;,
</del><span class="cx">     &quot;EventListener&quot; =&gt; &quot;RefPtr&lt;EventListener&gt;&quot;,
</span><span class="cx">     &quot;SerializedScriptValue&quot; =&gt; &quot;RefPtr&lt;SerializedScriptValue&gt;&quot;,
</span><span class="cx">     &quot;XPathNSResolver&quot; =&gt; &quot;RefPtr&lt;XPathNSResolver&gt;&quot;,
</span><span class="lines">@@ -5114,7 +5110,6 @@
</span><span class="cx">         # Non-WebIDL extensions
</span><span class="cx">         &quot;Date&quot; =&gt; &quot;IDLDate&quot;,
</span><span class="cx">         &quot;SerializedScriptValue&quot; =&gt; &quot;IDLSerializedScriptValue&lt;SerializedScriptValue&gt;&quot;,
</span><del>-        &quot;Dictionary&quot; =&gt; &quot;IDLLegacyDictionary&lt;Dictionary&gt;&quot;,
</del><span class="cx">         &quot;EventListener&quot; =&gt; &quot;IDLEventListener&lt;JSEventListener&gt;&quot;,
</span><span class="cx">         &quot;XPathNSResolver&quot; =&gt; &quot;IDLXPathNSResolver&lt;XPathNSResolver&gt;&quot;,
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -21,7 +21,6 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;JSTestObj.h&quot;
</span><span class="cx"> 
</span><del>-#include &quot;Dictionary.h&quot;
</del><span class="cx"> #include &quot;Document.h&quot;
</span><span class="cx"> #include &quot;EventNames.h&quot;
</span><span class="cx"> #include &quot;Frame.h&quot;
</span><span class="lines">@@ -1087,7 +1086,6 @@
</span><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNullableByteStringArg(JSC::ExecState*);
</span><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithByteStringArgTreatingNullAsEmptyString(JSC::ExecState*);
</span><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionSerializedValue(JSC::ExecState*);
</span><del>-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(JSC::ExecState*);
</del><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithRecord(JSC::ExecState*);
</span><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithException(JSC::ExecState*);
</span><span class="cx"> JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithExceptionReturningLong(JSC::ExecState*);
</span><span class="lines">@@ -1725,7 +1723,6 @@
</span><span class="cx">     { &quot;methodWithNullableByteStringArg&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionMethodWithNullableByteStringArg), (intptr_t) (1) } },
</span><span class="cx">     { &quot;methodWithByteStringArgTreatingNullAsEmptyString&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionMethodWithByteStringArgTreatingNullAsEmptyString), (intptr_t) (1) } },
</span><span class="cx">     { &quot;serializedValue&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionSerializedValue), (intptr_t) (1) } },
</span><del>-    { &quot;optionsObject&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionOptionsObject), (intptr_t) (1) } },
</del><span class="cx">     { &quot;methodWithRecord&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionMethodWithRecord), (intptr_t) (1) } },
</span><span class="cx">     { &quot;methodWithException&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionMethodWithException), (intptr_t) (0) } },
</span><span class="cx">     { &quot;methodWithExceptionReturningLong&quot;, JSC::Function, NoIntrinsic, { (intptr_t)static_cast&lt;NativeFunction&gt;(jsTestObjPrototypeFunctionMethodWithExceptionReturningLong), (intptr_t) (0) } },
</span><span class="lines">@@ -5781,28 +5778,6 @@
</span><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline JSC::EncodedJSValue jsTestObjPrototypeFunctionOptionsObjectCaller(JSC::ExecState*, JSTestObj*, JSC::ThrowScope&amp;);
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionOptionsObject(ExecState* state)
-{
-    return BindingCaller&lt;JSTestObj&gt;::callOperation&lt;jsTestObjPrototypeFunctionOptionsObjectCaller&gt;(state, &quot;optionsObject&quot;);
-}
-
-static inline JSC::EncodedJSValue jsTestObjPrototypeFunctionOptionsObjectCaller(JSC::ExecState* state, JSTestObj* castedThis, JSC::ThrowScope&amp; throwScope)
-{
-    UNUSED_PARAM(state);
-    UNUSED_PARAM(throwScope);
-    auto&amp; impl = castedThis-&gt;wrapped();
-    if (UNLIKELY(state-&gt;argumentCount() &lt; 1))
-        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
-    auto oo = convert&lt;IDLLegacyDictionary&lt;Dictionary&gt;&gt;(*state, state-&gt;uncheckedArgument(0));
-    RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
-    auto ooo = convert&lt;IDLLegacyDictionary&lt;Dictionary&gt;&gt;(*state, state-&gt;argument(1));
-    RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
-    impl.optionsObject(WTFMove(oo), WTFMove(ooo));
-    return JSValue::encode(jsUndefined());
-}
-
</del><span class="cx"> static inline JSC::EncodedJSValue jsTestObjPrototypeFunctionMethodWithRecordCaller(JSC::ExecState*, JSTestObj*, JSC::ThrowScope&amp;);
</span><span class="cx"> 
</span><span class="cx"> EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithRecord(ExecState* state)
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestTestObjidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/TestObj.idl (209751 => 209752)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-12-13 02:20:58 UTC (rev 209751)
+++ trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-12-13 05:17:28 UTC (rev 209752)
</span><span class="lines">@@ -151,7 +151,6 @@
</span><span class="cx">     void methodWithByteStringArgTreatingNullAsEmptyString([TreatNullAs=EmptyString] ByteString str);
</span><span class="cx"> 
</span><span class="cx">     void serializedValue(SerializedScriptValue serializedArg);
</span><del>-    void optionsObject(Dictionary oo, optional Dictionary ooo);
</del><span class="cx"> 
</span><span class="cx">     void methodWithRecord(record&lt;DOMString, long&gt; recordParameter);
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>