<!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>[198002] trunk/Source/WebCore</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/198002">198002</a></dd>
<dt>Author</dt> <dd>youenn.fablet@crf.canon.fr</dd>
<dt>Date</dt> <dd>2016-03-11 01:44:53 -0800 (Fri, 11 Mar 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>[CallWith=ScriptExecutionContext] should pass ScriptExecutionContext to the implementation by reference
https://bugs.webkit.org/show_bug.cgi?id=155297

Reviewed by Darin Adler.

Changing the binding generator to pass ScriptExecutionContext by reference.
Updating DOM classes accordingly.

Covered by existing tests.

* Modules/encryptedmedia/MediaKeySession.cpp:
(WebCore::MediaKeySession::create):
(WebCore::MediaKeySession::MediaKeySession):
* Modules/encryptedmedia/MediaKeySession.h:
* Modules/encryptedmedia/MediaKeys.cpp:
(WebCore::MediaKeys::createSession):
* Modules/encryptedmedia/MediaKeys.h:
* Modules/fetch/FetchRequest.cpp:
(WebCore::FetchRequest::clone):
* Modules/fetch/FetchRequest.h:
* Modules/fetch/FetchResponse.cpp:
(WebCore::FetchResponse::error):
(WebCore::FetchResponse::redirect):
(WebCore::FetchResponse::clone):
* Modules/fetch/FetchResponse.h:
* Modules/indexeddb/IDBCursor.h:
(WebCore::IDBCursor::continueFunction):
* Modules/indexeddb/IDBFactory.h:
* Modules/indexeddb/IDBIndex.h:
* Modules/indexeddb/IDBKeyRange.cpp:
(WebCore::IDBKeyRange::lowerValue):
(WebCore::IDBKeyRange::upperValue):
(WebCore::IDBKeyRange::only):
(WebCore::IDBKeyRange::lowerBound):
(WebCore::IDBKeyRange::upperBound):
(WebCore::IDBKeyRange::bound):
* Modules/indexeddb/IDBKeyRange.h:
(WebCore::IDBKeyRange::lowerBound):
(WebCore::IDBKeyRange::upperBound):
(WebCore::IDBKeyRange::bound):
* Modules/indexeddb/IDBObjectStore.h:
* Modules/indexeddb/IDBOpenDBRequest.cpp:
(WebCore::IDBOpenDBRequest::IDBOpenDBRequest):
* Modules/indexeddb/IDBOpenDBRequest.h:
* Modules/indexeddb/IDBRequest.cpp:
(WebCore::IDBRequest::IDBRequest):
* Modules/indexeddb/IDBRequest.h:
* Modules/indexeddb/client/IDBCursorImpl.cpp:
(WebCore::IDBClient::IDBCursor::continueFunction):
(WebCore::IDBClient::IDBCursor::deleteFunction):
* Modules/indexeddb/client/IDBCursorImpl.h:
* Modules/indexeddb/client/IDBFactoryImpl.cpp:
(WebCore::IDBClient::shouldThrowSecurityException):
(WebCore::IDBClient::IDBFactory::getDatabaseNames):
(WebCore::IDBClient::IDBFactory::open):
(WebCore::IDBClient::IDBFactory::openInternal):
(WebCore::IDBClient::IDBFactory::deleteDatabase):
(WebCore::IDBClient::IDBFactory::cmp):
* Modules/indexeddb/client/IDBFactoryImpl.h:
* Modules/indexeddb/client/IDBIndexImpl.cpp:
(WebCore::IDBClient::IDBIndex::IDBIndex):
(WebCore::IDBClient::IDBIndex::openCursor):
(WebCore::IDBClient::IDBIndex::count):
(WebCore::IDBClient::IDBIndex::openKeyCursor):
(WebCore::IDBClient::IDBIndex::get):
(WebCore::IDBClient::IDBIndex::getKey):
* Modules/indexeddb/client/IDBIndexImpl.h:
* Modules/indexeddb/client/IDBObjectStoreImpl.cpp:
(WebCore::IDBClient::IDBObjectStore::create):
(WebCore::IDBClient::IDBObjectStore::IDBObjectStore):
(WebCore::IDBClient::IDBObjectStore::openCursor):
(WebCore::IDBClient::IDBObjectStore::get):
(WebCore::IDBClient::IDBObjectStore::deleteFunction):
(WebCore::IDBClient::IDBObjectStore::doDelete):
(WebCore::IDBClient::IDBObjectStore::modernDelete):
(WebCore::IDBClient::IDBObjectStore::clear):
(WebCore::IDBClient::IDBObjectStore::createIndex):
(WebCore::IDBClient::IDBObjectStore::index):
(WebCore::IDBClient::IDBObjectStore::count):
* Modules/indexeddb/client/IDBObjectStoreImpl.h:
* Modules/indexeddb/client/IDBOpenDBRequestImpl.cpp:
(WebCore::IDBClient::IDBOpenDBRequest::createDeleteRequest):
(WebCore::IDBClient::IDBOpenDBRequest::createOpenRequest):
(WebCore::IDBClient::IDBOpenDBRequest::IDBOpenDBRequest):
* Modules/indexeddb/client/IDBOpenDBRequestImpl.h:
* Modules/indexeddb/client/IDBRequestImpl.cpp:
(WebCore::IDBClient::IDBRequest::IDBRequest):
* Modules/indexeddb/client/IDBRequestImpl.h:
* Modules/indexeddb/client/IDBTransactionImpl.cpp:
(WebCore::IDBClient::IDBTransaction::objectStore):
(WebCore::IDBClient::IDBTransaction::createObjectStore):
(WebCore::IDBClient::IDBTransaction::createIndex):
* Modules/mediasource/DOMURLMediaSource.cpp:
(WebCore::DOMURLMediaSource::createObjectURL):
* Modules/mediasource/DOMURLMediaSource.h:
* Modules/mediastream/DOMURLMediaStream.cpp:
(WebCore::DOMURLMediaStream::createObjectURL):
* Modules/mediastream/DOMURLMediaStream.h:
* Modules/mediastream/HTMLMediaElementMediaStream.cpp:
(WebCore::HTMLMediaElementMediaStream::setSrcObject):
* Modules/mediastream/HTMLMediaElementMediaStream.h:
* Modules/mediastream/HTMLMediaElementMediaStream.idl:
* Modules/notifications/Notification.cpp:
(WebCore::Notification::Notification):
(WebCore::Notification::create):
(WebCore::Notification::permission):
(WebCore::Notification::requestPermission):
* Modules/notifications/Notification.h:
* Modules/notifications/NotificationCenter.cpp:
(WebCore::NotificationCenter::createNotification):
* Modules/notifications/NotificationClient.h:
* Modules/quota/StorageInfo.cpp:
(WebCore::StorageInfo::queryUsageAndQuota):
(WebCore::StorageInfo::requestQuota):
* Modules/quota/StorageInfo.h:
* Modules/quota/StorageQuota.h:
* bindings/js/JSIDBObjectStoreCustom.cpp:
(WebCore::JSIDBObjectStore::createIndex):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateCallWith):
* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjWithScriptExecutionContextAttribute):
(WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttribute):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
(WebCore::setJSTestObjWithScriptExecutionContextAttribute):
(WebCore::setJSTestObjWithScriptExecutionContextAttributeRaises):
(WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttribute):
(WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
(WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces):
* fileapi/FileReaderSync.cpp:
(WebCore::FileReaderSync::readAsArrayBuffer):
(WebCore::FileReaderSync::readAsBinaryString):
(WebCore::FileReaderSync::readAsText):
(WebCore::FileReaderSync::readAsDataURL):
(WebCore::FileReaderSync::startLoading):
* fileapi/FileReaderSync.h:
(WebCore::FileReaderSync::readAsText):
* html/DOMURL.cpp:
(WebCore::DOMURL::createObjectURL):
(WebCore::DOMURL::createPublicURL):
(WebCore::DOMURL::revokeObjectURL):
* html/DOMURL.h:
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::setSrcObject):
* html/HTMLMediaElement.h:
* inspector/InspectorIndexedDBAgent.cpp:
(WebCore::InspectorIndexedDBAgent::requestDatabaseNames):
* page/DOMWindow.h:
* page/History.h:
(WebCore::History::back):
(WebCore::History::forward):
(WebCore::History::go):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeySessioncpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeySessionh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeyscpp">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesencryptedmediaMediaKeysh">trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchRequestcpp">trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchRequesth">trunk/Source/WebCore/Modules/fetch/FetchRequest.h</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchResponsecpp">trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesfetchFetchResponseh">trunk/Source/WebCore/Modules/fetch/FetchResponse.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBCursorh">trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBFactoryh">trunk/Source/WebCore/Modules/indexeddb/IDBFactory.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBIndexh">trunk/Source/WebCore/Modules/indexeddb/IDBIndex.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBKeyRangecpp">trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBKeyRangeh">trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBObjectStoreh">trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBOpenDBRequestcpp">trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBOpenDBRequesth">trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBRequestcpp">trunk/Source/WebCore/Modules/indexeddb/IDBRequest.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbIDBRequesth">trunk/Source/WebCore/Modules/indexeddb/IDBRequest.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBCursorImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBCursorImplh">trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBFactoryImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBFactoryImplh">trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBIndexImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBIndexImplh">trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBObjectStoreImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBObjectStoreImplh">trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBOpenDBRequestImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBOpenDBRequestImplh">trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBRequestImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBRequestImplh">trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.h</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBTransactionImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceDOMURLMediaSourcecpp">trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceDOMURLMediaSourceh">trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamDOMURLMediaStreamcpp">trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamDOMURLMediaStreamh">trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamHTMLMediaElementMediaStreamcpp">trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamHTMLMediaElementMediaStreamh">trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.h</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamHTMLMediaElementMediaStreamidl">trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.idl</a></li>
<li><a href="#trunkSourceWebCoreModulesnotificationsNotificationcpp">trunk/Source/WebCore/Modules/notifications/Notification.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesnotificationsNotificationh">trunk/Source/WebCore/Modules/notifications/Notification.h</a></li>
<li><a href="#trunkSourceWebCoreModulesnotificationsNotificationCentercpp">trunk/Source/WebCore/Modules/notifications/NotificationCenter.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesquotaStorageInfocpp">trunk/Source/WebCore/Modules/quota/StorageInfo.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesquotaStorageInfoh">trunk/Source/WebCore/Modules/quota/StorageInfo.h</a></li>
<li><a href="#trunkSourceWebCoreModulesquotaStorageQuotah">trunk/Source/WebCore/Modules/quota/StorageQuota.h</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSIDBObjectStoreCustomcpp">trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorefileapiFileReaderSynccpp">trunk/Source/WebCore/fileapi/FileReaderSync.cpp</a></li>
<li><a href="#trunkSourceWebCorefileapiFileReaderSynch">trunk/Source/WebCore/fileapi/FileReaderSync.h</a></li>
<li><a href="#trunkSourceWebCorehtmlDOMURLcpp">trunk/Source/WebCore/html/DOMURL.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlDOMURLh">trunk/Source/WebCore/html/DOMURL.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementcpp">trunk/Source/WebCore/html/HTMLMediaElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLMediaElementh">trunk/Source/WebCore/html/HTMLMediaElement.h</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorIndexedDBAgentcpp">trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowh">trunk/Source/WebCore/page/DOMWindow.h</a></li>
<li><a href="#trunkSourceWebCorepageHistoryh">trunk/Source/WebCore/page/History.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/ChangeLog        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -1,3 +1,167 @@
</span><ins>+2016-03-11  Youenn Fablet  &lt;youenn.fablet@crf.canon.fr&gt;
+
+        [CallWith=ScriptExecutionContext] should pass ScriptExecutionContext to the implementation by reference
+        https://bugs.webkit.org/show_bug.cgi?id=155297
+
+        Reviewed by Darin Adler.
+
+        Changing the binding generator to pass ScriptExecutionContext by reference.
+        Updating DOM classes accordingly.
+
+        Covered by existing tests.
+
+        * Modules/encryptedmedia/MediaKeySession.cpp:
+        (WebCore::MediaKeySession::create):
+        (WebCore::MediaKeySession::MediaKeySession):
+        * Modules/encryptedmedia/MediaKeySession.h:
+        * Modules/encryptedmedia/MediaKeys.cpp:
+        (WebCore::MediaKeys::createSession):
+        * Modules/encryptedmedia/MediaKeys.h:
+        * Modules/fetch/FetchRequest.cpp:
+        (WebCore::FetchRequest::clone):
+        * Modules/fetch/FetchRequest.h:
+        * Modules/fetch/FetchResponse.cpp:
+        (WebCore::FetchResponse::error):
+        (WebCore::FetchResponse::redirect):
+        (WebCore::FetchResponse::clone):
+        * Modules/fetch/FetchResponse.h:
+        * Modules/indexeddb/IDBCursor.h:
+        (WebCore::IDBCursor::continueFunction):
+        * Modules/indexeddb/IDBFactory.h:
+        * Modules/indexeddb/IDBIndex.h:
+        * Modules/indexeddb/IDBKeyRange.cpp:
+        (WebCore::IDBKeyRange::lowerValue):
+        (WebCore::IDBKeyRange::upperValue):
+        (WebCore::IDBKeyRange::only):
+        (WebCore::IDBKeyRange::lowerBound):
+        (WebCore::IDBKeyRange::upperBound):
+        (WebCore::IDBKeyRange::bound):
+        * Modules/indexeddb/IDBKeyRange.h:
+        (WebCore::IDBKeyRange::lowerBound):
+        (WebCore::IDBKeyRange::upperBound):
+        (WebCore::IDBKeyRange::bound):
+        * Modules/indexeddb/IDBObjectStore.h:
+        * Modules/indexeddb/IDBOpenDBRequest.cpp:
+        (WebCore::IDBOpenDBRequest::IDBOpenDBRequest):
+        * Modules/indexeddb/IDBOpenDBRequest.h:
+        * Modules/indexeddb/IDBRequest.cpp:
+        (WebCore::IDBRequest::IDBRequest):
+        * Modules/indexeddb/IDBRequest.h:
+        * Modules/indexeddb/client/IDBCursorImpl.cpp:
+        (WebCore::IDBClient::IDBCursor::continueFunction):
+        (WebCore::IDBClient::IDBCursor::deleteFunction):
+        * Modules/indexeddb/client/IDBCursorImpl.h:
+        * Modules/indexeddb/client/IDBFactoryImpl.cpp:
+        (WebCore::IDBClient::shouldThrowSecurityException):
+        (WebCore::IDBClient::IDBFactory::getDatabaseNames):
+        (WebCore::IDBClient::IDBFactory::open):
+        (WebCore::IDBClient::IDBFactory::openInternal):
+        (WebCore::IDBClient::IDBFactory::deleteDatabase):
+        (WebCore::IDBClient::IDBFactory::cmp):
+        * Modules/indexeddb/client/IDBFactoryImpl.h:
+        * Modules/indexeddb/client/IDBIndexImpl.cpp:
+        (WebCore::IDBClient::IDBIndex::IDBIndex):
+        (WebCore::IDBClient::IDBIndex::openCursor):
+        (WebCore::IDBClient::IDBIndex::count):
+        (WebCore::IDBClient::IDBIndex::openKeyCursor):
+        (WebCore::IDBClient::IDBIndex::get):
+        (WebCore::IDBClient::IDBIndex::getKey):
+        * Modules/indexeddb/client/IDBIndexImpl.h:
+        * Modules/indexeddb/client/IDBObjectStoreImpl.cpp:
+        (WebCore::IDBClient::IDBObjectStore::create):
+        (WebCore::IDBClient::IDBObjectStore::IDBObjectStore):
+        (WebCore::IDBClient::IDBObjectStore::openCursor):
+        (WebCore::IDBClient::IDBObjectStore::get):
+        (WebCore::IDBClient::IDBObjectStore::deleteFunction):
+        (WebCore::IDBClient::IDBObjectStore::doDelete):
+        (WebCore::IDBClient::IDBObjectStore::modernDelete):
+        (WebCore::IDBClient::IDBObjectStore::clear):
+        (WebCore::IDBClient::IDBObjectStore::createIndex):
+        (WebCore::IDBClient::IDBObjectStore::index):
+        (WebCore::IDBClient::IDBObjectStore::count):
+        * Modules/indexeddb/client/IDBObjectStoreImpl.h:
+        * Modules/indexeddb/client/IDBOpenDBRequestImpl.cpp:
+        (WebCore::IDBClient::IDBOpenDBRequest::createDeleteRequest):
+        (WebCore::IDBClient::IDBOpenDBRequest::createOpenRequest):
+        (WebCore::IDBClient::IDBOpenDBRequest::IDBOpenDBRequest):
+        * Modules/indexeddb/client/IDBOpenDBRequestImpl.h:
+        * Modules/indexeddb/client/IDBRequestImpl.cpp:
+        (WebCore::IDBClient::IDBRequest::IDBRequest):
+        * Modules/indexeddb/client/IDBRequestImpl.h:
+        * Modules/indexeddb/client/IDBTransactionImpl.cpp:
+        (WebCore::IDBClient::IDBTransaction::objectStore):
+        (WebCore::IDBClient::IDBTransaction::createObjectStore):
+        (WebCore::IDBClient::IDBTransaction::createIndex):
+        * Modules/mediasource/DOMURLMediaSource.cpp:
+        (WebCore::DOMURLMediaSource::createObjectURL):
+        * Modules/mediasource/DOMURLMediaSource.h:
+        * Modules/mediastream/DOMURLMediaStream.cpp:
+        (WebCore::DOMURLMediaStream::createObjectURL):
+        * Modules/mediastream/DOMURLMediaStream.h:
+        * Modules/mediastream/HTMLMediaElementMediaStream.cpp:
+        (WebCore::HTMLMediaElementMediaStream::setSrcObject):
+        * Modules/mediastream/HTMLMediaElementMediaStream.h:
+        * Modules/mediastream/HTMLMediaElementMediaStream.idl:
+        * Modules/notifications/Notification.cpp:
+        (WebCore::Notification::Notification):
+        (WebCore::Notification::create):
+        (WebCore::Notification::permission):
+        (WebCore::Notification::requestPermission):
+        * Modules/notifications/Notification.h:
+        * Modules/notifications/NotificationCenter.cpp:
+        (WebCore::NotificationCenter::createNotification):
+        * Modules/notifications/NotificationClient.h:
+        * Modules/quota/StorageInfo.cpp:
+        (WebCore::StorageInfo::queryUsageAndQuota):
+        (WebCore::StorageInfo::requestQuota):
+        * Modules/quota/StorageInfo.h:
+        * Modules/quota/StorageQuota.h:
+        * bindings/js/JSIDBObjectStoreCustom.cpp:
+        (WebCore::JSIDBObjectStore::createIndex):
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GenerateCallWith):
+        * bindings/scripts/test/JS/JSTestInterface.cpp:
+        (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
+        (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        (WebCore::jsTestObjWithScriptExecutionContextAttribute):
+        (WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
+        (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttribute):
+        (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
+        (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
+        (WebCore::setJSTestObjWithScriptExecutionContextAttribute):
+        (WebCore::setJSTestObjWithScriptExecutionContextAttributeRaises):
+        (WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttribute):
+        (WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
+        (WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces):
+        * fileapi/FileReaderSync.cpp:
+        (WebCore::FileReaderSync::readAsArrayBuffer):
+        (WebCore::FileReaderSync::readAsBinaryString):
+        (WebCore::FileReaderSync::readAsText):
+        (WebCore::FileReaderSync::readAsDataURL):
+        (WebCore::FileReaderSync::startLoading):
+        * fileapi/FileReaderSync.h:
+        (WebCore::FileReaderSync::readAsText):
+        * html/DOMURL.cpp:
+        (WebCore::DOMURL::createObjectURL):
+        (WebCore::DOMURL::createPublicURL):
+        (WebCore::DOMURL::revokeObjectURL):
+        * html/DOMURL.h:
+        * html/HTMLMediaElement.cpp:
+        (WebCore::HTMLMediaElement::setSrcObject):
+        * html/HTMLMediaElement.h:
+        * inspector/InspectorIndexedDBAgent.cpp:
+        (WebCore::InspectorIndexedDBAgent::requestDatabaseNames):
+        * page/DOMWindow.h:
+        * page/History.h:
+        (WebCore::History::back):
+        (WebCore::History::forward):
+        (WebCore::History::go):
+
</ins><span class="cx"> 2016-03-10  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GTK] Fix rendering of slider input elements
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeySessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -40,15 +40,15 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-Ref&lt;MediaKeySession&gt; MediaKeySession::create(ScriptExecutionContext* context, MediaKeys* keys, const String&amp; keySystem)
</del><ins>+Ref&lt;MediaKeySession&gt; MediaKeySession::create(ScriptExecutionContext&amp; context, MediaKeys* keys, const String&amp; keySystem)
</ins><span class="cx"> {
</span><span class="cx">     auto session = adoptRef(*new MediaKeySession(context, keys, keySystem));
</span><span class="cx">     session-&gt;suspendIfNeeded();
</span><span class="cx">     return session;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-MediaKeySession::MediaKeySession(ScriptExecutionContext* context, MediaKeys* keys, const String&amp; keySystem)
-    : ActiveDOMObject(context)
</del><ins>+MediaKeySession::MediaKeySession(ScriptExecutionContext&amp; context, MediaKeys* keys, const String&amp; keySystem)
+    : ActiveDOMObject(&amp;context)
</ins><span class="cx">     , m_keys(keys)
</span><span class="cx">     , m_keySystem(keySystem)
</span><span class="cx">     , m_asyncEventQueue(*this)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeySessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeySession.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> 
</span><span class="cx"> class MediaKeySession final : public RefCounted&lt;MediaKeySession&gt;, public EventTargetWithInlineData, public ActiveDOMObject, public CDMSessionClient {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;MediaKeySession&gt; create(ScriptExecutionContext*, MediaKeys*, const String&amp; keySystem);
</del><ins>+    static Ref&lt;MediaKeySession&gt; create(ScriptExecutionContext&amp;, MediaKeys*, const String&amp; keySystem);
</ins><span class="cx">     ~MediaKeySession();
</span><span class="cx"> 
</span><span class="cx">     const String&amp; keySystem() const { return m_keySystem; }
</span><span class="lines">@@ -80,7 +80,7 @@
</span><span class="cx">     bool hasPendingActivity() const override;
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><del>-    MediaKeySession(ScriptExecutionContext*, MediaKeys*, const String&amp; keySystem);
</del><ins>+    MediaKeySession(ScriptExecutionContext&amp;, MediaKeys*, const String&amp; keySystem);
</ins><span class="cx">     void keyRequestTimerFired();
</span><span class="cx">     void addKeyTimerFired();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeyscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;MediaKeySession&gt; MediaKeys::createSession(ScriptExecutionContext* context, const String&amp; type, Uint8Array* initData, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;MediaKeySession&gt; MediaKeys::createSession(ScriptExecutionContext&amp; context, const String&amp; type, Uint8Array* initData, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     // From &lt;http://www.w3.org/TR/2014/WD-encrypted-media-20140218/#dom-createsession&gt;:
</span><span class="cx">     // The createSession(type, initData) method must run the following steps:
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesencryptedmediaMediaKeysh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/encryptedmedia/MediaKeys.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx">     static RefPtr&lt;MediaKeys&gt; create(const String&amp; keySystem, ExceptionCode&amp;);
</span><span class="cx">     virtual ~MediaKeys();
</span><span class="cx"> 
</span><del>-    RefPtr&lt;MediaKeySession&gt; createSession(ScriptExecutionContext*, const String&amp; mimeType, Uint8Array* initData, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;MediaKeySession&gt; createSession(ScriptExecutionContext&amp;, const String&amp; mimeType, Uint8Array* initData, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx">     static bool isTypeSupported(const String&amp; keySystem, const String&amp; mimeType);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/fetch/FetchRequest.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -435,7 +435,7 @@
</span><span class="cx">     return String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;FetchRequest&gt; FetchRequest::clone(ScriptExecutionContext* context, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;FetchRequest&gt; FetchRequest::clone(ScriptExecutionContext&amp; context, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (isDisturbed()) {
</span><span class="cx">         ec = TypeError;
</span><span class="lines">@@ -443,7 +443,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     // FIXME: Validate body teeing.
</span><del>-    return adoptRef(*new FetchRequest(*context, FetchBody(m_body), FetchHeaders::create(m_headers.get()), FetchRequest::InternalRequest(m_internalRequest)));
</del><ins>+    return adoptRef(*new FetchRequest(context, FetchBody(m_body), FetchHeaders::create(m_headers.get()), FetchRequest::InternalRequest(m_internalRequest)));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> const char* FetchRequest::activeDOMObjectName() const
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchRequesth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchRequest.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchRequest.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/fetch/FetchRequest.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">     String redirect() const;
</span><span class="cx">     const String&amp; integrity() const { return m_internalRequest.integrity; }
</span><span class="cx"> 
</span><del>-    RefPtr&lt;FetchRequest&gt; clone(ScriptExecutionContext*, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;FetchRequest&gt; clone(ScriptExecutionContext&amp;, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx">     struct InternalRequest {
</span><span class="cx">         ResourceRequest request;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchResponsecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/fetch/FetchResponse.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -48,15 +48,15 @@
</span><span class="cx">     return status == 101 || status == 204 || status == 205 || status == 304;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Ref&lt;FetchResponse&gt; FetchResponse::error(ScriptExecutionContext* context)
</del><ins>+Ref&lt;FetchResponse&gt; FetchResponse::error(ScriptExecutionContext&amp; context)
</ins><span class="cx"> {
</span><del>-    return adoptRef(*new FetchResponse(*context, Type::Error, { }, FetchHeaders::create(FetchHeaders::Guard::Immutable), ResourceResponse()));
</del><ins>+    return adoptRef(*new FetchResponse(context, Type::Error, { }, FetchHeaders::create(FetchHeaders::Guard::Immutable), ResourceResponse()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;FetchResponse&gt; FetchResponse::redirect(ScriptExecutionContext* context, const String&amp; url, int status, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;FetchResponse&gt; FetchResponse::redirect(ScriptExecutionContext&amp; context, const String&amp; url, int status, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: Tighten the URL parsing algorithm according https://url.spec.whatwg.org/#concept-url-parser.
</span><del>-    URL requestURL = context-&gt;completeURL(url);
</del><ins>+    URL requestURL = context.completeURL(url);
</ins><span class="cx">     if (!requestURL.isValid() || !requestURL.user().isEmpty() || !requestURL.pass().isEmpty()) {
</span><span class="cx">         ec = TypeError;
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">         ec = TypeError;
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><del>-    RefPtr&lt;FetchResponse&gt; redirectResponse = adoptRef(*new FetchResponse(*context, Type::Default, { }, FetchHeaders::create(FetchHeaders::Guard::Immutable), ResourceResponse()));
</del><ins>+    RefPtr&lt;FetchResponse&gt; redirectResponse = adoptRef(*new FetchResponse(context, Type::Default, { }, FetchHeaders::create(FetchHeaders::Guard::Immutable), ResourceResponse()));
</ins><span class="cx">     redirectResponse-&gt;m_response.setHTTPStatusCode(status);
</span><span class="cx">     redirectResponse-&gt;m_headers-&gt;fastSet(HTTPHeaderName::Location, requestURL.string());
</span><span class="cx">     return redirectResponse;
</span><span class="lines">@@ -116,13 +116,13 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;FetchResponse&gt; FetchResponse::clone(ScriptExecutionContext* context, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;FetchResponse&gt; FetchResponse::clone(ScriptExecutionContext&amp; context, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (m_body.isDisturbed() || m_isLocked) {
</span><span class="cx">         ec = TypeError;
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><del>-    RefPtr&lt;FetchResponse&gt; cloned = adoptRef(*new FetchResponse(*context, m_type, FetchBody(m_body), FetchHeaders::create(headers()), ResourceResponse(m_response)));
</del><ins>+    RefPtr&lt;FetchResponse&gt; cloned = adoptRef(*new FetchResponse(context, m_type, FetchBody(m_body), FetchHeaders::create(headers()), ResourceResponse(m_response)));
</ins><span class="cx">     cloned-&gt;m_isRedirected = m_isRedirected;
</span><span class="cx">     return cloned;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesfetchFetchResponseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/fetch/FetchResponse.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/fetch/FetchResponse.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/fetch/FetchResponse.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -48,10 +48,10 @@
</span><span class="cx"> class FetchResponse final : public FetchBodyOwner {
</span><span class="cx"> public:
</span><span class="cx">     static Ref&lt;FetchResponse&gt; create(ScriptExecutionContext&amp; context) { return adoptRef(*new FetchResponse(context, Type::Default, { }, FetchHeaders::create(FetchHeaders::Guard::Response), ResourceResponse())); }
</span><del>-    static Ref&lt;FetchResponse&gt; error(ScriptExecutionContext*);
-    static RefPtr&lt;FetchResponse&gt; redirect(ScriptExecutionContext*, const String&amp;, int, ExceptionCode&amp;);
</del><ins>+    static Ref&lt;FetchResponse&gt; error(ScriptExecutionContext&amp;);
+    static RefPtr&lt;FetchResponse&gt; redirect(ScriptExecutionContext&amp;, const String&amp;, int, ExceptionCode&amp;);
</ins><span class="cx">     // FIXME: Binding generator should not require below method to handle optional status parameter.
</span><del>-    static RefPtr&lt;FetchResponse&gt; redirect(ScriptExecutionContext* context, const String&amp; url, ExceptionCode&amp; ec) { return redirect(context, url, 302, ec); }
</del><ins>+    static RefPtr&lt;FetchResponse&gt; redirect(ScriptExecutionContext&amp; context, const String&amp; url, ExceptionCode&amp; ec) { return redirect(context, url, 302, ec); }
</ins><span class="cx"> 
</span><span class="cx">     void initializeWith(const Dictionary&amp;, ExceptionCode&amp;);
</span><span class="cx"> 
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx">     const String&amp; statusText() const { return m_response.httpStatusText(); }
</span><span class="cx"> 
</span><span class="cx">     FetchHeaders&amp; headers() { return m_headers; }
</span><del>-    RefPtr&lt;FetchResponse&gt; clone(ScriptExecutionContext*, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;FetchResponse&gt; clone(ScriptExecutionContext&amp;, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     enum class Type { Basic, Cors, Default, Error, Opaque, OpaqueRedirect };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBCursorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBCursor.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -67,10 +67,14 @@
</span><span class="cx"> 
</span><span class="cx">     virtual RefPtr&lt;IDBRequest&gt; update(JSC::ExecState&amp;, Deprecated::ScriptValue&amp;, ExceptionCodeWithMessage&amp;) = 0;
</span><span class="cx">     virtual void advance(unsigned long, ExceptionCodeWithMessage&amp;) = 0;
</span><ins>+
+    // FIXME: We should not need that method (taking a ScriptExecutionContext pointer and not a reference)
+    // but InspectorIndexedDBAgent wants to call it with a null context. 
+    virtual void continueFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx">     // FIXME: Try to modify the code generator so this overload is unneeded.
</span><del>-    virtual void continueFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual void continueFunction(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; deleteFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    void continueFunction(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec) { continueFunction(&amp;context, ec); }
+    virtual void continueFunction(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; deleteFunction(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><span class="cx">     virtual bool isKeyCursor() const = 0;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBFactoryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBFactory.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBFactory.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBFactory.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -51,13 +51,13 @@
</span><span class="cx">     // FIXME: getDatabaseNames is no longer a web-facing API, and should be removed from IDBFactory.
</span><span class="cx">     // The Web Inspector currently uses this to enumerate the list of databases, but is more complicated as a result.
</span><span class="cx">     // We should provide a simpler API to the Web Inspector then remove getDatabaseNames.
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; getDatabaseNames(ScriptExecutionContext*, ExceptionCode&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; getDatabaseNames(ScriptExecutionContext&amp;, ExceptionCode&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBOpenDBRequest&gt; open(ScriptExecutionContext*, const String&amp; name, ExceptionCode&amp;) = 0;
-    virtual RefPtr&lt;IDBOpenDBRequest&gt; open(ScriptExecutionContext*, const String&amp; name, unsigned long long version, ExceptionCode&amp;) = 0;
-    virtual RefPtr&lt;IDBOpenDBRequest&gt; deleteDatabase(ScriptExecutionContext*, const String&amp; name, ExceptionCode&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBOpenDBRequest&gt; open(ScriptExecutionContext&amp;, const String&amp; name, ExceptionCode&amp;) = 0;
+    virtual RefPtr&lt;IDBOpenDBRequest&gt; open(ScriptExecutionContext&amp;, const String&amp; name, unsigned long long version, ExceptionCode&amp;) = 0;
+    virtual RefPtr&lt;IDBOpenDBRequest&gt; deleteDatabase(ScriptExecutionContext&amp;, const String&amp; name, ExceptionCode&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual short cmp(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; first, const Deprecated::ScriptValue&amp; second, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual short cmp(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; first, const Deprecated::ScriptValue&amp; second, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     IDBFactory();
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBIndexh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBIndex.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBIndex.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBIndex.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -54,27 +54,27 @@
</span><span class="cx">     virtual bool unique() const = 0;
</span><span class="cx">     virtual bool multiEntry() const = 0;
</span><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; getKey(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; getKey(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; getKey(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; getKey(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><span class="cx">     virtual bool isModern() const { return false; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBKeyRangecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -49,15 +49,15 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Deprecated::ScriptValue IDBKeyRange::lowerValue(ScriptExecutionContext* context) const
</del><ins>+Deprecated::ScriptValue IDBKeyRange::lowerValue(ScriptExecutionContext&amp; context) const
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     return idbKeyToScriptValue(&amp;requestState, m_lower);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Deprecated::ScriptValue IDBKeyRange::upperValue(ScriptExecutionContext* context) const
</del><ins>+Deprecated::ScriptValue IDBKeyRange::upperValue(ScriptExecutionContext&amp; context) const
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     return idbKeyToScriptValue(&amp;requestState, m_upper);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -71,9 +71,9 @@
</span><span class="cx">     return create(WTFMove(key));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::only(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; keyValue, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::only(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; keyValue, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; key = scriptValueToIDBKey(&amp;requestState, keyValue);
</span><span class="cx">     if (!key || !key-&gt;isValid()) {
</span><span class="cx">         ec = IDBDatabaseException::DataError;
</span><span class="lines">@@ -83,9 +83,9 @@
</span><span class="cx">     return create(WTFMove(key));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::lowerBound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; boundValue, bool open, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::lowerBound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; boundValue, bool open, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; bound = scriptValueToIDBKey(&amp;requestState, boundValue);
</span><span class="cx">     if (!bound || !bound-&gt;isValid()) {
</span><span class="cx">         ec = IDBDatabaseException::DataError;
</span><span class="lines">@@ -95,9 +95,9 @@
</span><span class="cx">     return IDBKeyRange::create(WTFMove(bound), nullptr, open ? LowerBoundOpen : LowerBoundClosed, UpperBoundOpen);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::upperBound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; boundValue, bool open, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::upperBound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; boundValue, bool open, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; bound = scriptValueToIDBKey(&amp;requestState, boundValue);
</span><span class="cx">     if (!bound || !bound-&gt;isValid()) {
</span><span class="cx">         ec = IDBDatabaseException::DataError;
</span><span class="lines">@@ -107,9 +107,9 @@
</span><span class="cx">     return IDBKeyRange::create(nullptr, WTFMove(bound), LowerBoundOpen, open ? UpperBoundOpen : UpperBoundClosed);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::bound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; lowerValue, const Deprecated::ScriptValue&amp; upperValue, bool lowerOpen, bool upperOpen, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;IDBKeyRange&gt; IDBKeyRange::bound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; lowerValue, const Deprecated::ScriptValue&amp; upperValue, bool lowerOpen, bool upperOpen, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; lower = scriptValueToIDBKey(&amp;requestState, lowerValue);
</span><span class="cx">     RefPtr&lt;IDBKey&gt; upper = scriptValueToIDBKey(&amp;requestState, upperValue);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBKeyRangeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBKeyRange.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -58,23 +58,23 @@
</span><span class="cx">     IDBKey* lower() const { return m_lower.get(); }
</span><span class="cx">     IDBKey* upper() const { return m_upper.get(); }
</span><span class="cx"> 
</span><del>-    Deprecated::ScriptValue lowerValue(ScriptExecutionContext*) const;
-    Deprecated::ScriptValue upperValue(ScriptExecutionContext*) const;
</del><ins>+    Deprecated::ScriptValue lowerValue(ScriptExecutionContext&amp;) const;
+    Deprecated::ScriptValue upperValue(ScriptExecutionContext&amp;) const;
</ins><span class="cx">     bool lowerOpen() const { return m_lowerType == LowerBoundOpen; }
</span><span class="cx">     bool upperOpen() const { return m_upperType == UpperBoundOpen; }
</span><span class="cx"> 
</span><span class="cx">     static RefPtr&lt;IDBKeyRange&gt; only(RefPtr&lt;IDBKey&gt;&amp;&amp; value, ExceptionCode&amp;);
</span><del>-    static RefPtr&lt;IDBKeyRange&gt; only(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCode&amp;);
</del><ins>+    static RefPtr&lt;IDBKeyRange&gt; only(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><del>-    static RefPtr&lt;IDBKeyRange&gt; lowerBound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; bound, ExceptionCode&amp; ec) { return lowerBound(context, bound, false, ec); }
-    static RefPtr&lt;IDBKeyRange&gt; lowerBound(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; bound, bool open, ExceptionCode&amp;);
</del><ins>+    static RefPtr&lt;IDBKeyRange&gt; lowerBound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; bound, ExceptionCode&amp; ec) { return lowerBound(context, bound, false, ec); }
+    static RefPtr&lt;IDBKeyRange&gt; lowerBound(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; bound, bool open, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><del>-    static RefPtr&lt;IDBKeyRange&gt; upperBound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; bound, ExceptionCode&amp; ec) { return upperBound(context, bound, false, ec); }
-    static RefPtr&lt;IDBKeyRange&gt; upperBound(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; bound, bool open, ExceptionCode&amp;);
</del><ins>+    static RefPtr&lt;IDBKeyRange&gt; upperBound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; bound, ExceptionCode&amp; ec) { return upperBound(context, bound, false, ec); }
+    static RefPtr&lt;IDBKeyRange&gt; upperBound(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; bound, bool open, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><del>-    static RefPtr&lt;IDBKeyRange&gt; bound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; lower, const Deprecated::ScriptValue&amp; upper, ExceptionCode&amp; ec) { return bound(context, lower, upper, false, false, ec); }
-    static RefPtr&lt;IDBKeyRange&gt; bound(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; lower, const Deprecated::ScriptValue&amp; upper, bool lowerOpen, ExceptionCode&amp; ec) { return bound(context, lower, upper, lowerOpen, false, ec); }
-    static RefPtr&lt;IDBKeyRange&gt; bound(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; lower, const Deprecated::ScriptValue&amp; upper, bool lowerOpen, bool upperOpen, ExceptionCode&amp;);
</del><ins>+    static RefPtr&lt;IDBKeyRange&gt; bound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; lower, const Deprecated::ScriptValue&amp; upper, ExceptionCode&amp; ec) { return bound(context, lower, upper, false, false, ec); }
+    static RefPtr&lt;IDBKeyRange&gt; bound(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; lower, const Deprecated::ScriptValue&amp; upper, bool lowerOpen, ExceptionCode&amp; ec) { return bound(context, lower, upper, lowerOpen, false, ec); }
+    static RefPtr&lt;IDBKeyRange&gt; bound(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; lower, const Deprecated::ScriptValue&amp; upper, bool lowerOpen, bool upperOpen, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx">     WEBCORE_EXPORT bool isOnlyKey() const;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBObjectStoreh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBObjectStore.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -69,28 +69,28 @@
</span><span class="cx"> 
</span><span class="cx">     virtual RefPtr&lt;IDBRequest&gt; add(JSC::ExecState&amp;, JSC::JSValue, ExceptionCodeWithMessage&amp;) = 0;
</span><span class="cx">     virtual RefPtr&lt;IDBRequest&gt; put(JSC::ExecState&amp;, JSC::JSValue, ExceptionCodeWithMessage&amp;) = 0;
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; get(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx">     virtual RefPtr&lt;IDBRequest&gt; add(JSC::ExecState&amp;, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&amp;) = 0;
</span><span class="cx">     virtual RefPtr&lt;IDBRequest&gt; put(JSC::ExecState&amp;, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&amp;) = 0;
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; deleteFunction(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; deleteFunction(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; clear(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; deleteFunction(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; deleteFunction(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; clear(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBIndex&gt; createIndex(ScriptExecutionContext*, const String&amp; name, const IDBKeyPath&amp;, bool unique, bool multiEntry, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBIndex&gt; createIndex(ScriptExecutionContext&amp;, const String&amp; name, const IDBKeyPath&amp;, bool unique, bool multiEntry, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><span class="cx">     virtual RefPtr&lt;IDBIndex&gt; index(const String&amp; name, ExceptionCodeWithMessage&amp;) = 0;
</span><span class="cx">     virtual void deleteIndex(const String&amp; name, ExceptionCodeWithMessage&amp;) = 0;
</span><span class="cx"> 
</span><del>-    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
-    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</del><ins>+    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) = 0;
+    virtual RefPtr&lt;IDBRequest&gt; count(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) = 0;
</ins><span class="cx"> 
</span><span class="cx">     virtual bool isModern() const { return false; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBOpenDBRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-IDBOpenDBRequest::IDBOpenDBRequest(ScriptExecutionContext* context)
</del><ins>+IDBOpenDBRequest::IDBOpenDBRequest(ScriptExecutionContext&amp; context)
</ins><span class="cx">     : IDBRequest(context)
</span><span class="cx"> {
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBOpenDBRequesth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBOpenDBRequest.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx">     virtual ~IDBOpenDBRequest() { }
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><del>-    IDBOpenDBRequest(ScriptExecutionContext*);
</del><ins>+    IDBOpenDBRequest(ScriptExecutionContext&amp;);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBRequest.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBRequest.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBRequest.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -30,8 +30,8 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-IDBRequest::IDBRequest(ScriptExecutionContext* context)
-    : ActiveDOMObject(context)
</del><ins>+IDBRequest::IDBRequest(ScriptExecutionContext&amp; context)
+    : ActiveDOMObject(&amp;context)
</ins><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbIDBRequesth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/IDBRequest.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/IDBRequest.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/IDBRequest.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx">     virtual const String&amp; readyState() const = 0;
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><del>-    IDBRequest(ScriptExecutionContext*);
</del><ins>+    IDBRequest(ScriptExecutionContext&amp;);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBCursorImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -220,14 +220,9 @@
</span><span class="cx">     continueFunction(IDBKeyData(), ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void IDBCursor::continueFunction(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; keyValue, ExceptionCodeWithMessage&amp; ec)
</del><ins>+void IDBCursor::continueFunction(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; keyValue, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return;
-    }
-
-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; key;
</span><span class="cx">     if (!keyValue.jsValue().isUndefined())
</span><span class="cx">         key = scriptValueToIDBKey(&amp;requestState, keyValue);
</span><span class="lines">@@ -293,15 +288,10 @@
</span><span class="cx">     transaction().iterateCursor(*this, key, count);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBCursor::deleteFunction(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBCursor::deleteFunction(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBCursor::deleteFunction&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
</del><span class="cx">     if (sourcesDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><span class="cx">         ec.message = ASCIILiteral(&quot;Failed to execute 'delete' on 'IDBCursor': The cursor's source or effective object store has been deleted.&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBCursorImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -58,8 +58,8 @@
</span><span class="cx">     RefPtr&lt;WebCore::IDBRequest&gt; update(JSC::ExecState&amp;, Deprecated::ScriptValue&amp;, ExceptionCodeWithMessage&amp;) final;
</span><span class="cx">     void advance(unsigned long, ExceptionCodeWithMessage&amp;) final;
</span><span class="cx">     void continueFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) final;
</span><del>-    void continueFunction(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; deleteFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    void continueFunction(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; deleteFunction(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><span class="cx">     void continueFunction(const IDBKeyData&amp;, ExceptionCodeWithMessage&amp;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBFactoryImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -43,18 +43,18 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> namespace IDBClient {
</span><span class="cx"> 
</span><del>-static bool shouldThrowSecurityException(ScriptExecutionContext* context)
</del><ins>+static bool shouldThrowSecurityException(ScriptExecutionContext&amp; context)
</ins><span class="cx"> {
</span><del>-    ASSERT(is&lt;Document&gt;(*context) || context-&gt;isWorkerGlobalScope());
-    if (is&lt;Document&gt;(*context)) {
-        Document&amp; document = downcast&lt;Document&gt;(*context);
</del><ins>+    ASSERT(is&lt;Document&gt;(context) || context.isWorkerGlobalScope());
+    if (is&lt;Document&gt;(context)) {
+        Document&amp; document = downcast&lt;Document&gt;(context);
</ins><span class="cx">         if (!document.frame())
</span><span class="cx">             return true;
</span><span class="cx">         if (!document.page())
</span><span class="cx">             return true;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (!context-&gt;securityOrigin()-&gt;canAccessDatabase(context-&gt;topOrigin()))
</del><ins>+    if (!context.securityOrigin()-&gt;canAccessDatabase(context.topOrigin()))
</ins><span class="cx">         return true;
</span><span class="cx"> 
</span><span class="cx">     return false;
</span><span class="lines">@@ -70,19 +70,19 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBFactory::getDatabaseNames(ScriptExecutionContext*, ExceptionCode&amp;)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBFactory::getDatabaseNames(ScriptExecutionContext&amp;, ExceptionCode&amp;)
</ins><span class="cx"> {
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBOpenDBRequest&gt; IDBFactory::open(ScriptExecutionContext* context, const String&amp; name, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBOpenDBRequest&gt; IDBFactory::open(ScriptExecutionContext&amp; context, const String&amp; name, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBFactory::open&quot;);
</span><span class="cx">     
</span><span class="cx">     return openInternal(context, name, 0, ec).release();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBOpenDBRequest&gt; IDBFactory::open(ScriptExecutionContext* context, const String&amp; name, unsigned long long version, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBOpenDBRequest&gt; IDBFactory::open(ScriptExecutionContext&amp; context, const String&amp; name, unsigned long long version, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBFactory::open&quot;);
</span><span class="cx">     
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx">     return openInternal(context, name, version, ec).release();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBOpenDBRequest&gt; IDBFactory::openInternal(ScriptExecutionContext* context, const String&amp; name, unsigned long long version, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;IDBOpenDBRequest&gt; IDBFactory::openInternal(ScriptExecutionContext&amp; context, const String&amp; name, unsigned long long version, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (name.isNull()) {
</span><span class="cx">         ec = TypeError;
</span><span class="lines">@@ -106,9 +106,9 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    ASSERT(context-&gt;securityOrigin());
-    ASSERT(context-&gt;topOrigin());
-    IDBDatabaseIdentifier databaseIdentifier(name, *context-&gt;securityOrigin(), *context-&gt;topOrigin());
</del><ins>+    ASSERT(context.securityOrigin());
+    ASSERT(context.topOrigin());
+    IDBDatabaseIdentifier databaseIdentifier(name, *context.securityOrigin(), *context.topOrigin());
</ins><span class="cx">     if (!databaseIdentifier.isValid()) {
</span><span class="cx">         ec = TypeError;
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx">     return adoptRef(&amp;request.leakRef());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBOpenDBRequest&gt; IDBFactory::deleteDatabase(ScriptExecutionContext* context, const String&amp; name, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBOpenDBRequest&gt; IDBFactory::deleteDatabase(ScriptExecutionContext&amp; context, const String&amp; name, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBFactory::deleteDatabase - %s&quot;, name.utf8().data());
</span><span class="cx"> 
</span><span class="lines">@@ -134,9 +134,9 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    ASSERT(context-&gt;securityOrigin());
-    ASSERT(context-&gt;topOrigin());
-    IDBDatabaseIdentifier databaseIdentifier(name, *context-&gt;securityOrigin(), *context-&gt;topOrigin());
</del><ins>+    ASSERT(context.securityOrigin());
+    ASSERT(context.topOrigin());
+    IDBDatabaseIdentifier databaseIdentifier(name, *context.securityOrigin(), *context.topOrigin());
</ins><span class="cx">     if (!databaseIdentifier.isValid()) {
</span><span class="cx">         ec = TypeError;
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -148,9 +148,9 @@
</span><span class="cx">     return adoptRef(&amp;request.leakRef());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-short IDBFactory::cmp(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; firstValue, const Deprecated::ScriptValue&amp; secondValue, ExceptionCodeWithMessage&amp; ec)
</del><ins>+short IDBFactory::cmp(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; firstValue, const Deprecated::ScriptValue&amp; secondValue, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; first = scriptValueToIDBKey(&amp;requestState, firstValue);
</span><span class="cx">     RefPtr&lt;IDBKey&gt; second = scriptValueToIDBKey(&amp;requestState, secondValue);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBFactoryImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBFactoryImpl.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -40,18 +40,18 @@
</span><span class="cx"> public:
</span><span class="cx">     static Ref&lt;IDBFactory&gt; create(IDBConnectionToServer&amp;);
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; getDatabaseNames(ScriptExecutionContext*, ExceptionCode&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; getDatabaseNames(ScriptExecutionContext&amp;, ExceptionCode&amp;) final;
</ins><span class="cx"> 
</span><del>-    RefPtr&lt;WebCore::IDBOpenDBRequest&gt; open(ScriptExecutionContext*, const String&amp; name, ExceptionCode&amp;) final;
-    RefPtr&lt;WebCore::IDBOpenDBRequest&gt; open(ScriptExecutionContext*, const String&amp; name, unsigned long long version, ExceptionCode&amp;) final;
-    RefPtr&lt;WebCore::IDBOpenDBRequest&gt; deleteDatabase(ScriptExecutionContext*, const String&amp; name, ExceptionCode&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBOpenDBRequest&gt; open(ScriptExecutionContext&amp;, const String&amp; name, ExceptionCode&amp;) final;
+    RefPtr&lt;WebCore::IDBOpenDBRequest&gt; open(ScriptExecutionContext&amp;, const String&amp; name, unsigned long long version, ExceptionCode&amp;) final;
+    RefPtr&lt;WebCore::IDBOpenDBRequest&gt; deleteDatabase(ScriptExecutionContext&amp;, const String&amp; name, ExceptionCode&amp;) final;
</ins><span class="cx"> 
</span><del>-    short cmp(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; first, const Deprecated::ScriptValue&amp; second, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    short cmp(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; first, const Deprecated::ScriptValue&amp; second, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     IDBFactory(IDBConnectionToServer&amp;);
</span><span class="cx">     
</span><del>-    RefPtr&lt;IDBOpenDBRequest&gt; openInternal(ScriptExecutionContext*, const String&amp; name, unsigned long long version, ExceptionCode&amp;);
</del><ins>+    RefPtr&lt;IDBOpenDBRequest&gt; openInternal(ScriptExecutionContext&amp;, const String&amp; name, unsigned long long version, ExceptionCode&amp;);
</ins><span class="cx">     
</span><span class="cx">     Ref&lt;IDBConnectionToServer&gt; m_connectionToServer;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBIndexImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -41,8 +41,8 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> namespace IDBClient {
</span><span class="cx"> 
</span><del>-IDBIndex::IDBIndex(ScriptExecutionContext* context, const IDBIndexInfo&amp; info, IDBObjectStore&amp; objectStore)
-    : ActiveDOMObject(context)
</del><ins>+IDBIndex::IDBIndex(ScriptExecutionContext&amp; context, const IDBIndexInfo&amp; info, IDBObjectStore&amp; objectStore)
+    : ActiveDOMObject(&amp;context)
</ins><span class="cx">     , m_info(info)
</span><span class="cx">     , m_objectStore(objectStore)
</span><span class="cx"> {
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx">     return m_info.multiEntry();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openCursor(ScriptExecutionContext* context, IDBKeyRange* range, const String&amp; directionString, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openCursor(ScriptExecutionContext&amp; context, IDBKeyRange* range, const String&amp; directionString, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::openCursor&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -127,10 +127,10 @@
</span><span class="cx">         rangeData.upperKey = IDBKeyData::maximum();
</span><span class="cx"> 
</span><span class="cx">     auto info = IDBCursorInfo::indexCursor(m_objectStore.modernTransaction(), m_objectStore.info().identifier(), m_info.identifier(), rangeData, direction, IndexedDB::CursorType::KeyAndValue);
</span><del>-    return m_objectStore.modernTransaction().requestOpenCursor(*context, *this, info);
</del><ins>+    return m_objectStore.modernTransaction().requestOpenCursor(context, *this, info);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openCursor(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::openCursor&quot;);
</span><span class="cx">     RefPtr&lt;IDBKeyRange&gt; keyRange = IDBKeyRange::only(context, key, ec.code);
</span><span class="lines">@@ -142,40 +142,25 @@
</span><span class="cx">     return openCursor(context, keyRange.get(), direction, ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::count(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::count(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::count&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    return doCount(*context, IDBKeyRangeData::allKeys(), ec);
</del><ins>+    return doCount(context, IDBKeyRangeData::allKeys(), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::count(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::count(ScriptExecutionContext&amp; context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::count&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    return doCount(*context, range ? IDBKeyRangeData(range) : IDBKeyRangeData::allKeys(), ec);
</del><ins>+    return doCount(context, range ? IDBKeyRangeData(range) : IDBKeyRangeData::allKeys(), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::count(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::count(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::count&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; idbKey = scriptValueToIDBKey(&amp;requestState, key);
</span><span class="cx">     if (!idbKey || idbKey-&gt;type() == KeyType::Invalid) {
</span><span class="cx">         ec.code = IDBDatabaseException::DataError;
</span><span class="lines">@@ -183,7 +168,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return doCount(*context, IDBKeyRangeData(idbKey.get()), ec);
</del><ins>+    return doCount(context, IDBKeyRangeData(idbKey.get()), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::doCount(ScriptExecutionContext&amp; context, const IDBKeyRangeData&amp; range, ExceptionCodeWithMessage&amp; ec)
</span><span class="lines">@@ -209,7 +194,7 @@
</span><span class="cx">     return transaction.requestCount(context, *this, range);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openKeyCursor(ScriptExecutionContext* context, IDBKeyRange* range, const String&amp; directionString, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openKeyCursor(ScriptExecutionContext&amp; context, IDBKeyRange* range, const String&amp; directionString, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::openKeyCursor&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -232,10 +217,10 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     auto info = IDBCursorInfo::indexCursor(m_objectStore.modernTransaction(), m_objectStore.info().identifier(), m_info.identifier(), range, direction, IndexedDB::CursorType::KeyOnly);
</span><del>-    return m_objectStore.modernTransaction().requestOpenCursor(*context, *this, info);
</del><ins>+    return m_objectStore.modernTransaction().requestOpenCursor(context, *this, info);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openKeyCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::openKeyCursor(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::openKeyCursor&quot;);
</span><span class="cx">     RefPtr&lt;IDBKeyRange&gt; keyRange = IDBKeyRange::only(context, key, ec.code);
</span><span class="lines">@@ -246,28 +231,18 @@
</span><span class="cx">     return openKeyCursor(context, keyRange.get(), direction, ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::get(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::get(ScriptExecutionContext&amp; context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::get&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    return doGet(*context, IDBKeyRangeData(range), ec);
</del><ins>+    return doGet(context, IDBKeyRangeData(range), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::get(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::get(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::get&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; idbKey = scriptValueToIDBKey(&amp;requestState, key);
</span><span class="cx">     if (!idbKey || idbKey-&gt;type() == KeyType::Invalid) {
</span><span class="cx">         ec.code = IDBDatabaseException::DataError;
</span><span class="lines">@@ -275,7 +250,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return doGet(*context, IDBKeyRangeData(idbKey.get()), ec);
</del><ins>+    return doGet(context, IDBKeyRangeData(idbKey.get()), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::doGet(ScriptExecutionContext&amp; context, const IDBKeyRangeData&amp; range, ExceptionCodeWithMessage&amp; ec)
</span><span class="lines">@@ -301,28 +276,18 @@
</span><span class="cx">     return transaction.requestGetValue(context, *this, range);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::getKey(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::getKey(ScriptExecutionContext&amp; context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::getKey&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    return doGetKey(*context, IDBKeyRangeData(range), ec);
</del><ins>+    return doGetKey(context, IDBKeyRangeData(range), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::getKey(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::getKey(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBIndex::getKey&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; idbKey = scriptValueToIDBKey(&amp;requestState, key);
</span><span class="cx">     if (!idbKey || idbKey-&gt;type() == KeyType::Invalid) {
</span><span class="cx">         ec.code = IDBDatabaseException::DataError;
</span><span class="lines">@@ -330,7 +295,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return doGetKey(*context, IDBKeyRangeData(idbKey.get()), ec);
</del><ins>+    return doGetKey(context, IDBKeyRangeData(idbKey.get()), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;WebCore::IDBRequest&gt; IDBIndex::doGetKey(ScriptExecutionContext&amp; context, const IDBKeyRangeData&amp; range, ExceptionCodeWithMessage&amp; ec)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBIndexImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> 
</span><span class="cx"> class IDBIndex : public WebCore::IDBIndex, public ActiveDOMObject {
</span><span class="cx"> public:
</span><del>-    IDBIndex(ScriptExecutionContext*, const IDBIndexInfo&amp;, IDBObjectStore&amp;);
</del><ins>+    IDBIndex(ScriptExecutionContext&amp;, const IDBIndexInfo&amp;, IDBObjectStore&amp;);
</ins><span class="cx"> 
</span><span class="cx">     virtual ~IDBIndex();
</span><span class="cx"> 
</span><span class="lines">@@ -55,26 +55,26 @@
</span><span class="cx">     bool unique() const final;
</span><span class="cx">     bool multiEntry() const final;
</span><span class="cx"> 
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec) final { return openCursor(context, static_cast&lt;IDBKeyRange*&gt;(nullptr), ec); }
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec) final { return openCursor(context, keyRange, IDBCursor::directionNext(), ec); }
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec) final { return openCursor(context, key, IDBCursor::directionNext(), ec); }
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec) final { return openCursor(context, static_cast&lt;IDBKeyRange*&gt;(nullptr), ec); }
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp; context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec) final { return openCursor(context, keyRange, IDBCursor::directionNext(), ec); }
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec) final { return openCursor(context, key, IDBCursor::directionNext(), ec); }
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec) final { return openKeyCursor(context, static_cast&lt;IDBKeyRange*&gt;(nullptr), ec); }
-    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec) final { return openKeyCursor(context, keyRange, IDBCursor::directionNext(), ec); }
-    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec) final { return openKeyCursor(context, key, IDBCursor::directionNext(), ec); }
-    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec) final { return openKeyCursor(context, static_cast&lt;IDBKeyRange*&gt;(nullptr), ec); }
+    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp; context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec) final { return openKeyCursor(context, keyRange, IDBCursor::directionNext(), ec); }
+    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec) final { return openKeyCursor(context, key, IDBCursor::directionNext(), ec); }
+    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; openKeyCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; getKey(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; getKey(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; getKey(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; getKey(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><span class="cx">     const IDBIndexInfo&amp; info() const { return m_info; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBObjectStoreImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -46,13 +46,13 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> namespace IDBClient {
</span><span class="cx"> 
</span><del>-Ref&lt;IDBObjectStore&gt; IDBObjectStore::create(ScriptExecutionContext* context, const IDBObjectStoreInfo&amp; info, IDBTransaction&amp; transaction)
</del><ins>+Ref&lt;IDBObjectStore&gt; IDBObjectStore::create(ScriptExecutionContext&amp; context, const IDBObjectStoreInfo&amp; info, IDBTransaction&amp; transaction)
</ins><span class="cx"> {
</span><span class="cx">     return adoptRef(*new IDBObjectStore(context, info, transaction));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-IDBObjectStore::IDBObjectStore(ScriptExecutionContext* context, const IDBObjectStoreInfo&amp; info, IDBTransaction&amp; transaction)
-    : ActiveDOMObject(context)
</del><ins>+IDBObjectStore::IDBObjectStore(ScriptExecutionContext&amp; context, const IDBObjectStoreInfo&amp; info, IDBTransaction&amp; transaction)
+    : ActiveDOMObject(&amp;context)
</ins><span class="cx">     , m_info(info)
</span><span class="cx">     , m_originalInfo(info)
</span><span class="cx">     , m_transaction(transaction)
</span><span class="lines">@@ -114,22 +114,22 @@
</span><span class="cx">     return m_info.autoIncrement();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     return openCursor(context, static_cast&lt;IDBKeyRange*&gt;(nullptr), ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext&amp; context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     return openCursor(context, keyRange, IDBCursor::directionNext(), ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     return openCursor(context, key, IDBCursor::directionNext(), ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext* context, IDBKeyRange* range, const String&amp; directionString, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext&amp; context, IDBKeyRange* range, const String&amp; directionString, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::openCursor&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -150,11 +150,11 @@
</span><span class="cx">         return nullptr;
</span><span class="cx"> 
</span><span class="cx">     auto info = IDBCursorInfo::objectStoreCursor(m_transaction.get(), m_info.identifier(), range, direction);
</span><del>-    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestOpenCursor(*context, *this, info);
</del><ins>+    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestOpenCursor(context, *this, info);
</ins><span class="cx">     return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::openCursor(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     RefPtr&lt;IDBKeyRange&gt; keyRange = IDBKeyRange::only(context, key, ec.code);
</span><span class="cx">     if (ec.code) {
</span><span class="lines">@@ -165,15 +165,10 @@
</span><span class="cx">     return openCursor(context, keyRange.get(), direction, ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::get(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::get(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::get&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
</del><span class="cx">     if (!m_transaction-&gt;isActive()) {
</span><span class="cx">         ec.code = IDBDatabaseException::TransactionInactiveError;
</span><span class="cx">         ec.message = ASCIILiteral(&quot;Failed to execute 'get' on 'IDBObjectStore': The transaction is inactive or finished.&quot;);
</span><span class="lines">@@ -186,7 +181,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; idbKey = scriptValueToIDBKey(&amp;requestState, key);
</span><span class="cx">     if (!idbKey || idbKey-&gt;type() == KeyType::Invalid) {
</span><span class="cx">         ec.code = IDBDatabaseException::DataError;
</span><span class="lines">@@ -194,19 +189,14 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestGetRecord(*context, *this, idbKey.get());
</del><ins>+    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestGetRecord(context, *this, idbKey.get());
</ins><span class="cx">     return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::get(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::get(ScriptExecutionContext&amp; context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::get&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
</del><span class="cx">     if (!m_transaction-&gt;isActive()) {
</span><span class="cx">         ec.code = IDBDatabaseException::TransactionInactiveError;
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -224,7 +214,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestGetRecord(*context, *this, keyRangeData);
</del><ins>+    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestGetRecord(context, *this, keyRangeData);
</ins><span class="cx">     return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -358,12 +348,12 @@
</span><span class="cx">     return adoptRef(request.leakRef());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::deleteFunction(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::deleteFunction(ScriptExecutionContext&amp; context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     return doDelete(context, keyRange, ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBRequest&gt; IDBObjectStore::doDelete(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;IDBRequest&gt; IDBObjectStore::doDelete(ScriptExecutionContext&amp; context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::deleteFunction&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -397,18 +387,18 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestDeleteRecord(*context, *this, keyRangeData);
</del><ins>+    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestDeleteRecord(context, *this, keyRangeData);
</ins><span class="cx">     return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::deleteFunction(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::deleteFunction(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     return modernDelete(context, key.jsValue(), ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;IDBRequest&gt; IDBObjectStore::modernDelete(ScriptExecutionContext* context, JSC::JSValue key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;IDBRequest&gt; IDBObjectStore::modernDelete(ScriptExecutionContext&amp; context, JSC::JSValue key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><del>-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; idbKey = scriptValueToIDBKey(&amp;requestState, key);
</span><span class="cx">     if (!idbKey || idbKey-&gt;type() == KeyType::Invalid) {
</span><span class="cx">         ec.code = IDBDatabaseException::DataError;
</span><span class="lines">@@ -419,7 +409,7 @@
</span><span class="cx">     return doDelete(context, &amp;IDBKeyRange::create(idbKey.get()).get(), ec);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::clear(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::clear(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::clear&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -446,19 +436,14 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestClearObjectStore(*context, *this);
</del><ins>+    Ref&lt;IDBRequest&gt; request = m_transaction-&gt;requestClearObjectStore(context, *this);
</ins><span class="cx">     return adoptRef(request.leakRef());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBIndex&gt; IDBObjectStore::createIndex(ScriptExecutionContext* context, const String&amp; name, const IDBKeyPath&amp; keyPath, bool unique, bool multiEntry, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBIndex&gt; IDBObjectStore::createIndex(ScriptExecutionContext&amp;, const String&amp; name, const IDBKeyPath&amp; keyPath, bool unique, bool multiEntry, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::createIndex %s&quot;, name.utf8().data());
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
</del><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><span class="cx">         ec.message = ASCIILiteral(&quot;Failed to execute 'createIndex' on 'IDBObjectStore': The object store has been deleted.&quot;);
</span><span class="lines">@@ -544,7 +529,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    auto index = std::make_unique&lt;IDBIndex&gt;(scriptExecutionContext(), *info, *this);
</del><ins>+    auto index = std::make_unique&lt;IDBIndex&gt;(*scriptExecutionContext(), *info, *this);
</ins><span class="cx">     RefPtr&lt;IDBIndex&gt; refIndex = index.get();
</span><span class="cx">     m_referencedIndexes.set(indexName, WTFMove(index));
</span><span class="cx"> 
</span><span class="lines">@@ -597,28 +582,18 @@
</span><span class="cx">     m_transaction-&gt;deleteIndex(m_info.identifier(), name);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::count(ScriptExecutionContext* context, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::count(ScriptExecutionContext&amp; context, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::count&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    return doCount(*context, IDBKeyRangeData::allKeys(), ec);
</del><ins>+    return doCount(context, IDBKeyRangeData::allKeys(), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::count(ScriptExecutionContext* context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::count(ScriptExecutionContext&amp; context, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::count&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    DOMRequestState requestState(context);
</del><ins>+    DOMRequestState requestState(&amp;context);
</ins><span class="cx">     RefPtr&lt;IDBKey&gt; idbKey = scriptValueToIDBKey(&amp;requestState, key);
</span><span class="cx">     if (!idbKey || idbKey-&gt;type() == KeyType::Invalid) {
</span><span class="cx">         ec.code = IDBDatabaseException::DataError;
</span><span class="lines">@@ -626,19 +601,14 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    return doCount(*context, IDBKeyRangeData(idbKey.get()), ec);
</del><ins>+    return doCount(context, IDBKeyRangeData(idbKey.get()), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::count(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</del><ins>+RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::count(ScriptExecutionContext&amp; context, IDBKeyRange* range, ExceptionCodeWithMessage&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     LOG(IndexedDB, &quot;IDBObjectStore::count&quot;);
</span><span class="cx"> 
</span><del>-    if (!context) {
-        ec.code = IDBDatabaseException::InvalidStateError;
-        return nullptr;
-    }
-
-    return doCount(*context, range ? IDBKeyRangeData(range) : IDBKeyRangeData::allKeys(), ec);
</del><ins>+    return doCount(context, range ? IDBKeyRangeData(range) : IDBKeyRangeData::allKeys(), ec);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;WebCore::IDBRequest&gt; IDBObjectStore::doCount(ScriptExecutionContext&amp; context, const IDBKeyRangeData&amp; range, ExceptionCodeWithMessage&amp; ec)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBObjectStoreImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> 
</span><span class="cx"> class IDBObjectStore : public WebCore::IDBObjectStore, public ActiveDOMObject {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;IDBObjectStore&gt; create(ScriptExecutionContext*, const IDBObjectStoreInfo&amp;, IDBTransaction&amp;);
</del><ins>+    static Ref&lt;IDBObjectStore&gt; create(ScriptExecutionContext&amp;, const IDBObjectStoreInfo&amp;, IDBTransaction&amp;);
</ins><span class="cx"> 
</span><span class="cx">     ~IDBObjectStore() final;
</span><span class="cx"> 
</span><span class="lines">@@ -61,27 +61,27 @@
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;WebCore::IDBRequest&gt; add(JSC::ExecState&amp;, JSC::JSValue, ExceptionCodeWithMessage&amp;) final;
</span><span class="cx">     RefPtr&lt;WebCore::IDBRequest&gt; put(JSC::ExecState&amp;, JSC::JSValue, ExceptionCodeWithMessage&amp;) final;
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, IDBKeyRange*, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; openCursor(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, const String&amp; direction, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; get(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx">     RefPtr&lt;WebCore::IDBRequest&gt; add(JSC::ExecState&amp;, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&amp;) final;
</span><span class="cx">     RefPtr&lt;WebCore::IDBRequest&gt; put(JSC::ExecState&amp;, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&amp;) final;
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; deleteFunction(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; deleteFunction(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; clear(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBIndex&gt; createIndex(ScriptExecutionContext*, const String&amp; name, const IDBKeyPath&amp;, bool unique, bool multiEntry, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; deleteFunction(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; deleteFunction(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; clear(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBIndex&gt; createIndex(ScriptExecutionContext&amp;, const String&amp; name, const IDBKeyPath&amp;, bool unique, bool multiEntry, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx">     RefPtr&lt;WebCore::IDBIndex&gt; index(const String&amp; name, ExceptionCodeWithMessage&amp;) final;
</span><span class="cx">     void deleteIndex(const String&amp; name, ExceptionCodeWithMessage&amp;) final;
</span><del>-    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
-    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext*, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
</del><ins>+    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext&amp;, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;) final;
+    RefPtr&lt;WebCore::IDBRequest&gt; count(ScriptExecutionContext&amp;, const Deprecated::ScriptValue&amp; key, ExceptionCodeWithMessage&amp;) final;
</ins><span class="cx"> 
</span><span class="cx">     RefPtr&lt;IDBRequest&gt; putForCursorUpdate(JSC::ExecState&amp;, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&amp;);
</span><del>-    RefPtr&lt;IDBRequest&gt; modernDelete(ScriptExecutionContext*, JSC::JSValue key, ExceptionCodeWithMessage&amp;);
</del><ins>+    RefPtr&lt;IDBRequest&gt; modernDelete(ScriptExecutionContext&amp;, JSC::JSValue key, ExceptionCodeWithMessage&amp;);
</ins><span class="cx"> 
</span><span class="cx">     void markAsDeleted();
</span><span class="cx">     bool isDeleted() const { return m_deleted; }
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx">     void visitReferencedIndexes(JSC::SlotVisitor&amp;) const;
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    IDBObjectStore(ScriptExecutionContext*, const IDBObjectStoreInfo&amp;, IDBTransaction&amp;);
</del><ins>+    IDBObjectStore(ScriptExecutionContext&amp;, const IDBObjectStoreInfo&amp;, IDBTransaction&amp;);
</ins><span class="cx"> 
</span><span class="cx">     enum class InlineKeyCheck {
</span><span class="cx">         Perform,
</span><span class="lines">@@ -108,7 +108,7 @@
</span><span class="cx"> 
</span><span class="cx">     RefPtr&lt;IDBRequest&gt; putOrAdd(JSC::ExecState&amp;, JSC::JSValue, RefPtr&lt;IDBKey&gt;, IndexedDB::ObjectStoreOverwriteMode, InlineKeyCheck, ExceptionCodeWithMessage&amp;);
</span><span class="cx">     RefPtr&lt;WebCore::IDBRequest&gt; doCount(ScriptExecutionContext&amp;, const IDBKeyRangeData&amp;, ExceptionCodeWithMessage&amp;);
</span><del>-    RefPtr&lt;IDBRequest&gt; doDelete(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage&amp; ec);
</del><ins>+    RefPtr&lt;IDBRequest&gt; doDelete(ScriptExecutionContext&amp;, IDBKeyRange*, ExceptionCodeWithMessage&amp;);
</ins><span class="cx"> 
</span><span class="cx">     // ActiveDOMObject
</span><span class="cx">     const char* activeDOMObjectName() const final;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBOpenDBRequestImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -39,19 +39,19 @@
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> namespace IDBClient {
</span><span class="cx"> 
</span><del>-Ref&lt;IDBOpenDBRequest&gt; IDBOpenDBRequest::createDeleteRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext* context, const IDBDatabaseIdentifier&amp; databaseIdentifier)
</del><ins>+Ref&lt;IDBOpenDBRequest&gt; IDBOpenDBRequest::createDeleteRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext&amp; context, const IDBDatabaseIdentifier&amp; databaseIdentifier)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(databaseIdentifier.isValid());
</span><span class="cx">     return adoptRef(*new IDBOpenDBRequest(connection, context, databaseIdentifier, 0, IndexedDB::RequestType::Delete));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Ref&lt;IDBOpenDBRequest&gt; IDBOpenDBRequest::createOpenRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext* context, const IDBDatabaseIdentifier&amp; databaseIdentifier, uint64_t version)
</del><ins>+Ref&lt;IDBOpenDBRequest&gt; IDBOpenDBRequest::createOpenRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext&amp; context, const IDBDatabaseIdentifier&amp; databaseIdentifier, uint64_t version)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(databaseIdentifier.isValid());
</span><span class="cx">     return adoptRef(*new IDBOpenDBRequest(connection, context, databaseIdentifier, version, IndexedDB::RequestType::Open));
</span><span class="cx"> }
</span><span class="cx">     
</span><del>-IDBOpenDBRequest::IDBOpenDBRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext* context, const IDBDatabaseIdentifier&amp; databaseIdentifier, uint64_t version, IndexedDB::RequestType requestType)
</del><ins>+IDBOpenDBRequest::IDBOpenDBRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext&amp; context, const IDBDatabaseIdentifier&amp; databaseIdentifier, uint64_t version, IndexedDB::RequestType requestType)
</ins><span class="cx">     : IDBRequest(connection, context)
</span><span class="cx">     , m_databaseIdentifier(databaseIdentifier)
</span><span class="cx">     , m_version(version)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBOpenDBRequestImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBOpenDBRequestImpl.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -42,8 +42,8 @@
</span><span class="cx"> 
</span><span class="cx"> class IDBOpenDBRequest : public IDBRequest {
</span><span class="cx"> public:
</span><del>-    static Ref&lt;IDBOpenDBRequest&gt; createDeleteRequest(IDBConnectionToServer&amp;, ScriptExecutionContext*, const IDBDatabaseIdentifier&amp;);
-    static Ref&lt;IDBOpenDBRequest&gt; createOpenRequest(IDBConnectionToServer&amp;, ScriptExecutionContext*, const IDBDatabaseIdentifier&amp;, uint64_t version);
</del><ins>+    static Ref&lt;IDBOpenDBRequest&gt; createDeleteRequest(IDBConnectionToServer&amp;, ScriptExecutionContext&amp;, const IDBDatabaseIdentifier&amp;);
+    static Ref&lt;IDBOpenDBRequest&gt; createOpenRequest(IDBConnectionToServer&amp;, ScriptExecutionContext&amp;, const IDBDatabaseIdentifier&amp;, uint64_t version);
</ins><span class="cx"> 
</span><span class="cx">     ~IDBOpenDBRequest() final;
</span><span class="cx">     
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">     bool dispatchEvent(Event&amp;) final;
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    IDBOpenDBRequest(IDBConnectionToServer&amp;, ScriptExecutionContext*, const IDBDatabaseIdentifier&amp;, uint64_t version, IndexedDB::RequestType);
</del><ins>+    IDBOpenDBRequest(IDBConnectionToServer&amp;, ScriptExecutionContext&amp;, const IDBDatabaseIdentifier&amp;, uint64_t version, IndexedDB::RequestType);
</ins><span class="cx"> 
</span><span class="cx">     void onError(const IDBResultData&amp;);
</span><span class="cx">     void onSuccess(const IDBResultData&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBRequestImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">     return adoptRef(*new IDBRequest(context, index, requestedRecordType, transaction));
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-IDBRequest::IDBRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext* context)
</del><ins>+IDBRequest::IDBRequest(IDBConnectionToServer&amp; connection, ScriptExecutionContext&amp; context)
</ins><span class="cx">     : IDBOpenDBRequest(context)
</span><span class="cx">     , m_connection(connection)
</span><span class="cx">     , m_resourceIdentifier(connection)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> IDBRequest::IDBRequest(ScriptExecutionContext&amp; context, IDBObjectStore&amp; objectStore, IDBTransaction&amp; transaction)
</span><del>-    : IDBOpenDBRequest(&amp;context)
</del><ins>+    : IDBOpenDBRequest(context)
</ins><span class="cx">     , m_transaction(&amp;transaction)
</span><span class="cx">     , m_connection(transaction.serverConnection())
</span><span class="cx">     , m_resourceIdentifier(transaction.serverConnection())
</span><span class="lines">@@ -83,7 +83,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> IDBRequest::IDBRequest(ScriptExecutionContext&amp; context, IDBCursor&amp; cursor, IDBTransaction&amp; transaction)
</span><del>-    : IDBOpenDBRequest(&amp;context)
</del><ins>+    : IDBOpenDBRequest(context)
</ins><span class="cx">     , m_transaction(&amp;transaction)
</span><span class="cx">     , m_connection(transaction.serverConnection())
</span><span class="cx">     , m_resourceIdentifier(transaction.serverConnection())
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> IDBRequest::IDBRequest(ScriptExecutionContext&amp; context, IDBIndex&amp; index, IDBTransaction&amp; transaction)
</span><del>-    : IDBOpenDBRequest(&amp;context)
</del><ins>+    : IDBOpenDBRequest(context)
</ins><span class="cx">     , m_transaction(&amp;transaction)
</span><span class="cx">     , m_connection(transaction.serverConnection())
</span><span class="cx">     , m_resourceIdentifier(transaction.serverConnection())
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBRequestImplh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBRequestImpl.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx">     IndexedDB::RequestType requestType() const { return m_requestType; }
</span><span class="cx"> 
</span><span class="cx"> protected:
</span><del>-    IDBRequest(IDBConnectionToServer&amp;, ScriptExecutionContext*);
</del><ins>+    IDBRequest(IDBConnectionToServer&amp;, ScriptExecutionContext&amp;);
</ins><span class="cx">     IDBRequest(ScriptExecutionContext&amp;, IDBObjectStore&amp;, IDBTransaction&amp;);
</span><span class="cx">     IDBRequest(ScriptExecutionContext&amp;, IDBCursor&amp;, IDBTransaction&amp;);
</span><span class="cx">     IDBRequest(ScriptExecutionContext&amp;, IDBIndex&amp;, IDBTransaction&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBTransactionImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBTransactionImpl.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    auto objectStore = IDBObjectStore::create(scriptExecutionContext(), *info, *this);
</del><ins>+    auto objectStore = IDBObjectStore::create(*scriptExecutionContext(), *info, *this);
</ins><span class="cx">     m_referencedObjectStores.set(objectStoreName, &amp;objectStore.get());
</span><span class="cx"> 
</span><span class="cx">     return adoptRef(&amp;objectStore.leakRef());
</span><span class="lines">@@ -473,7 +473,7 @@
</span><span class="cx">     ASSERT(isVersionChange());
</span><span class="cx">     ASSERT(scriptExecutionContext());
</span><span class="cx"> 
</span><del>-    Ref&lt;IDBObjectStore&gt; objectStore = IDBObjectStore::create(scriptExecutionContext(), info, *this);
</del><ins>+    Ref&lt;IDBObjectStore&gt; objectStore = IDBObjectStore::create(*scriptExecutionContext(), info, *this);
</ins><span class="cx">     m_referencedObjectStores.set(info.name(), &amp;objectStore.get());
</span><span class="cx"> 
</span><span class="cx">     auto operation = createTransactionOperation(*this, &amp;IDBTransaction::didCreateObjectStoreOnServer, &amp;IDBTransaction::createObjectStoreOnServer, info);
</span><span class="lines">@@ -509,7 +509,7 @@
</span><span class="cx">     auto operation = createTransactionOperation(*this, &amp;IDBTransaction::didCreateIndexOnServer, &amp;IDBTransaction::createIndexOnServer, info);
</span><span class="cx">     scheduleOperation(WTFMove(operation));
</span><span class="cx"> 
</span><del>-    return std::make_unique&lt;IDBIndex&gt;(scriptExecutionContext(), info, objectStore);
</del><ins>+    return std::make_unique&lt;IDBIndex&gt;(*scriptExecutionContext(), info, objectStore);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void IDBTransaction::createIndexOnServer(TransactionOperation&amp; operation, const IDBIndexInfo&amp; info)
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceDOMURLMediaSourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -39,12 +39,12 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-String DOMURLMediaSource::createObjectURL(ScriptExecutionContext* scriptExecutionContext, MediaSource* source)
</del><ins>+String DOMURLMediaSource::createObjectURL(ScriptExecutionContext&amp; scriptExecutionContext, MediaSource* source)
</ins><span class="cx"> {
</span><span class="cx">     // Since WebWorkers cannot obtain MediaSource objects, we should be on the main thread.
</span><span class="cx">     ASSERT(isMainThread());
</span><span class="cx"> 
</span><del>-    if (!scriptExecutionContext || !source)
</del><ins>+    if (!source)
</ins><span class="cx">         return String();
</span><span class="cx">     return DOMURL::createPublicURL(scriptExecutionContext, source);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceDOMURLMediaSourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediasource/DOMURLMediaSource.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> 
</span><span class="cx"> class DOMURLMediaSource {
</span><span class="cx"> public:
</span><del>-    static String createObjectURL(ScriptExecutionContext*, MediaSource*);
</del><ins>+    static String createObjectURL(ScriptExecutionContext&amp;, MediaSource*);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamDOMURLMediaStreamcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -40,12 +40,12 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-String DOMURLMediaStream::createObjectURL(ScriptExecutionContext* scriptExecutionContext, MediaStream* stream)
</del><ins>+String DOMURLMediaStream::createObjectURL(ScriptExecutionContext&amp; scriptExecutionContext, MediaStream* stream)
</ins><span class="cx"> {
</span><span class="cx">     // Since WebWorkers cannot obtain Stream objects, we should be on the main thread.
</span><span class="cx">     ASSERT(isMainThread());
</span><span class="cx"> 
</span><del>-    if (!scriptExecutionContext || !stream)
</del><ins>+    if (!stream)
</ins><span class="cx">         return String();
</span><span class="cx">     return DOMURL::createPublicURL(scriptExecutionContext, stream);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamDOMURLMediaStreamh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediastream/DOMURLMediaStream.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx"> 
</span><span class="cx"> class DOMURLMediaStream {
</span><span class="cx"> public:
</span><del>-    static String createObjectURL(ScriptExecutionContext*, MediaStream*);
</del><ins>+    static String createObjectURL(ScriptExecutionContext&amp;, MediaStream*);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamHTMLMediaElementMediaStreamcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -38,9 +38,9 @@
</span><span class="cx">     return mediaElement.srcObject();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void HTMLMediaElementMediaStream::setSrcObject(HTMLMediaElement&amp; mediaElement, MediaStream* mediaStream)
</del><ins>+void HTMLMediaElementMediaStream::setSrcObject(ScriptExecutionContext&amp; context, HTMLMediaElement&amp; mediaElement, MediaStream* mediaStream)
</ins><span class="cx"> {
</span><del>-    mediaElement.setSrcObject(mediaStream);
</del><ins>+    mediaElement.setSrcObject(context, mediaStream);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamHTMLMediaElementMediaStreamh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -28,17 +28,16 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(MEDIA_STREAM) &amp;&amp; ENABLE(VIDEO)
</span><span class="cx"> 
</span><del>-#include &lt;wtf/PassRefPtr.h&gt;
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class HTMLMediaElement;
</span><span class="cx"> class MediaStream;
</span><ins>+class ScriptExecutionContext;
</ins><span class="cx"> 
</span><span class="cx"> class HTMLMediaElementMediaStream {
</span><span class="cx"> public:
</span><span class="cx">     static MediaStream* srcObject(HTMLMediaElement&amp;);
</span><del>-    static void setSrcObject(HTMLMediaElement&amp;, MediaStream*);
</del><ins>+    static void setSrcObject(ScriptExecutionContext&amp;, HTMLMediaElement&amp;, MediaStream*);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamHTMLMediaElementMediaStreamidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.idl (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.idl        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/mediastream/HTMLMediaElementMediaStream.idl        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -28,6 +28,6 @@
</span><span class="cx"> ] partial interface HTMLMediaElement
</span><span class="cx"> {
</span><span class="cx"> #if (!defined(LANGUAGE_GOBJECT) || !LANGUAGE_GOBJECT) &amp;&amp; (!defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C)
</span><del>-    attribute MediaStream? srcObject;
</del><ins>+    [SetterCallWith=ScriptExecutionContext] attribute MediaStream? srcObject;
</ins><span class="cx"> #endif
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesnotificationsNotificationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/notifications/Notification.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/notifications/Notification.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/notifications/Notification.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -59,8 +59,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(LEGACY_NOTIFICATIONS)
</span><del>-Notification::Notification(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext* context, ExceptionCode&amp; ec, PassRefPtr&lt;NotificationCenter&gt; provider)
-    : ActiveDOMObject(context)
</del><ins>+Notification::Notification(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext&amp; context, ExceptionCode&amp; ec, PassRefPtr&lt;NotificationCenter&gt; provider)
+    : ActiveDOMObject(&amp;context)
</ins><span class="cx">     , m_title(title)
</span><span class="cx">     , m_body(body)
</span><span class="cx">     , m_state(Idle)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(LEGACY_NOTIFICATIONS)
</span><del>-Ref&lt;Notification&gt; Notification::create(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext* context, ExceptionCode&amp; ec, PassRefPtr&lt;NotificationCenter&gt; provider) 
</del><ins>+Ref&lt;Notification&gt; Notification::create(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext&amp; context, ExceptionCode&amp; ec, PassRefPtr&lt;NotificationCenter&gt; provider) 
</ins><span class="cx"> { 
</span><span class="cx">     auto notification = adoptRef(*new Notification(title, body, iconURI, context, ec, provider));
</span><span class="cx">     notification.get().suspendIfNeeded();
</span><span class="lines">@@ -221,10 +221,10 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(NOTIFICATIONS)
</span><del>-const String Notification::permission(ScriptExecutionContext* context)
</del><ins>+const String Notification::permission(ScriptExecutionContext&amp; context)
</ins><span class="cx"> {
</span><del>-    ASSERT(downcast&lt;Document&gt;(*context).page());
-    return permissionString(NotificationController::from(downcast&lt;Document&gt;(*context).page())-&gt;client()-&gt;checkPermission(context));
</del><ins>+    ASSERT(downcast&lt;Document&gt;(context).page());
+    return permissionString(NotificationController::from(downcast&lt;Document&gt;(context).page())-&gt;client()-&gt;checkPermission(&amp;context));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> const String Notification::permissionString(NotificationClient::Permission permission)
</span><span class="lines">@@ -242,10 +242,10 @@
</span><span class="cx">     return String();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void Notification::requestPermission(ScriptExecutionContext* context, PassRefPtr&lt;NotificationPermissionCallback&gt; callback)
</del><ins>+void Notification::requestPermission(ScriptExecutionContext&amp; context, PassRefPtr&lt;NotificationPermissionCallback&gt; callback)
</ins><span class="cx"> {
</span><del>-    ASSERT(downcast&lt;Document&gt;(*context).page());
-    NotificationController::from(downcast&lt;Document&gt;(*context).page())-&gt;client()-&gt;requestPermission(context, callback);
</del><ins>+    ASSERT(downcast&lt;Document&gt;(context).page());
+    NotificationController::from(downcast&lt;Document&gt;(context).page())-&gt;client()-&gt;requestPermission(&amp;context, callback);
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesnotificationsNotificationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/notifications/Notification.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/notifications/Notification.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/notifications/Notification.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -66,7 +66,7 @@
</span><span class="cx"> public:
</span><span class="cx">     WEBCORE_EXPORT Notification();
</span><span class="cx"> #if ENABLE(LEGACY_NOTIFICATIONS)
</span><del>-    static Ref&lt;Notification&gt; create(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext*, ExceptionCode&amp;, PassRefPtr&lt;NotificationCenter&gt; provider);
</del><ins>+    static Ref&lt;Notification&gt; create(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext&amp;, ExceptionCode&amp;, PassRefPtr&lt;NotificationCenter&gt; provider);
</ins><span class="cx"> #endif
</span><span class="cx"> #if ENABLE(NOTIFICATIONS)
</span><span class="cx">     static Ref&lt;Notification&gt; create(Document&amp;, const String&amp; title, const Dictionary&amp; options);
</span><span class="lines">@@ -122,14 +122,14 @@
</span><span class="cx">     WEBCORE_EXPORT void finalize();
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(NOTIFICATIONS)
</span><del>-    static const String permission(ScriptExecutionContext*);
</del><ins>+    static const String permission(ScriptExecutionContext&amp;);
</ins><span class="cx">     WEBCORE_EXPORT static const String permissionString(NotificationClient::Permission);
</span><del>-    static void requestPermission(ScriptExecutionContext*, PassRefPtr&lt;NotificationPermissionCallback&gt; = nullptr);
</del><ins>+    static void requestPermission(ScriptExecutionContext&amp;, PassRefPtr&lt;NotificationPermissionCallback&gt; = nullptr);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx"> #if ENABLE(LEGACY_NOTIFICATIONS)
</span><del>-    Notification(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext*, ExceptionCode&amp;, PassRefPtr&lt;NotificationCenter&gt;);
</del><ins>+    Notification(const String&amp; title, const String&amp; body, const String&amp; iconURI, ScriptExecutionContext&amp;, ExceptionCode&amp;, PassRefPtr&lt;NotificationCenter&gt;);
</ins><span class="cx"> #endif
</span><span class="cx"> #if ENABLE(NOTIFICATIONS)
</span><span class="cx">     Notification(ScriptExecutionContext&amp;, const String&amp; title);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesnotificationsNotificationCentercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/notifications/NotificationCenter.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/notifications/NotificationCenter.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/notifications/NotificationCenter.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -59,11 +59,11 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;Notification&gt; NotificationCenter::createNotification(const String&amp; iconURI, const String&amp; title, const String&amp; body, ExceptionCode&amp; ec)
</span><span class="cx"> {
</span><del>-    if (!m_client) {
</del><ins>+    if (!m_client || !scriptExecutionContext()) {
</ins><span class="cx">         ec = INVALID_STATE_ERR;
</span><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><del>-    return Notification::create(title, body, iconURI, scriptExecutionContext(), ec, this);
</del><ins>+    return Notification::create(title, body, iconURI, *scriptExecutionContext(), ec, this);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> int NotificationCenter::checkPermission()
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesquotaStorageInfocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/quota/StorageInfo.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/quota/StorageInfo.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/quota/StorageInfo.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void StorageInfo::queryUsageAndQuota(ScriptExecutionContext* scriptExecutionContext, int storageType, PassRefPtr&lt;StorageUsageCallback&gt; successCallback, PassRefPtr&lt;StorageErrorCallback&gt; errorCallback)
</del><ins>+void StorageInfo::queryUsageAndQuota(ScriptExecutionContext&amp; scriptExecutionContext, int storageType, PassRefPtr&lt;StorageUsageCallback&gt; successCallback, PassRefPtr&lt;StorageErrorCallback&gt; errorCallback)
</ins><span class="cx"> {
</span><span class="cx">     // Dispatching the request to StorageQuota, as this interface is deprecated in favor of StorageQuota.
</span><span class="cx">     StorageQuota* storageQuota = getStorageQuota(storageType);
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">     storageQuota-&gt;queryUsageAndQuota(scriptExecutionContext, successCallback, errorCallback);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void StorageInfo::requestQuota(ScriptExecutionContext* scriptExecutionContext, int storageType, unsigned long long newQuotaInBytes, PassRefPtr&lt;StorageQuotaCallback&gt; successCallback, PassRefPtr&lt;StorageErrorCallback&gt; errorCallback)
</del><ins>+void StorageInfo::requestQuota(ScriptExecutionContext&amp; scriptExecutionContext, int storageType, unsigned long long newQuotaInBytes, PassRefPtr&lt;StorageQuotaCallback&gt; successCallback, PassRefPtr&lt;StorageErrorCallback&gt; errorCallback)
</ins><span class="cx"> {
</span><span class="cx">     // Dispatching the request to StorageQuota, as this interface is deprecated in favor of StorageQuota.
</span><span class="cx">     StorageQuota* storageQuota = getStorageQuota(storageType);
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesquotaStorageInfoh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/quota/StorageInfo.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/quota/StorageInfo.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/quota/StorageInfo.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -57,9 +57,9 @@
</span><span class="cx">         return adoptRef(*new StorageInfo());
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    void queryUsageAndQuota(ScriptExecutionContext*, int storageType, PassRefPtr&lt;StorageUsageCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</del><ins>+    void queryUsageAndQuota(ScriptExecutionContext&amp;, int storageType, PassRefPtr&lt;StorageUsageCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</ins><span class="cx"> 
</span><del>-    void requestQuota(ScriptExecutionContext*, int storageType, unsigned long long newQuotaInBytes, PassRefPtr&lt;StorageQuotaCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</del><ins>+    void requestQuota(ScriptExecutionContext&amp;, int storageType, unsigned long long newQuotaInBytes, PassRefPtr&lt;StorageQuotaCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</ins><span class="cx"> 
</span><span class="cx">     ~StorageInfo();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesquotaStorageQuotah"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/quota/StorageQuota.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/quota/StorageQuota.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/Modules/quota/StorageQuota.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -55,9 +55,9 @@
</span><span class="cx">         return adoptRef(*new StorageQuota(type));
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    void queryUsageAndQuota(ScriptExecutionContext*, PassRefPtr&lt;StorageUsageCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</del><ins>+    void queryUsageAndQuota(ScriptExecutionContext&amp;, PassRefPtr&lt;StorageUsageCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</ins><span class="cx"> 
</span><del>-    void requestQuota(ScriptExecutionContext*, unsigned long long newQuotaInBytes, PassRefPtr&lt;StorageQuotaCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</del><ins>+    void requestQuota(ScriptExecutionContext&amp;, unsigned long long newQuotaInBytes, PassRefPtr&lt;StorageQuotaCallback&gt;, PassRefPtr&lt;StorageErrorCallback&gt;);
</ins><span class="cx"> 
</span><span class="cx">     ~StorageQuota();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSIDBObjectStoreCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ExceptionCodeWithMessage ec;
</span><del>-    JSValue result = toJS(&amp;state, globalObject(), wrapped().createIndex(context, name, keyPath, unique, multiEntry, ec).get());
</del><ins>+    JSValue result = toJS(&amp;state, globalObject(), wrapped().createIndex(*context, name, keyPath, unique, multiEntry, ec).get());
</ins><span class="cx">     setDOMException(&amp;state, ec);
</span><span class="cx">     return result;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -3286,7 +3286,7 @@
</span><span class="cx">         push(@$outputArray, &quot;    auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();\n&quot;);
</span><span class="cx">         push(@$outputArray, &quot;    if (!scriptContext)\n&quot;);
</span><span class="cx">         push(@$outputArray, &quot;        return&quot; . ($returnValue ? &quot; &quot; . $returnValue : &quot;&quot;) . &quot;;\n&quot;);
</span><del>-        push(@callWithArgs, &quot;scriptContext&quot;);
</del><ins>+        push(@callWithArgs, &quot;*scriptContext&quot;);
</ins><span class="cx">     }
</span><span class="cx">     if ($function and $codeGenerator-&gt;ExtendedAttributeContains($callWith, &quot;ScriptArguments&quot;)) {
</span><span class="cx">         push(@$outputArray, &quot;    RefPtr&lt;Inspector::ScriptArguments&gt; scriptArguments(Inspector::createScriptArguments(state, &quot; . @{$function-&gt;parameters} . &quot;));\n&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -797,7 +797,7 @@
</span><span class="cx">     TestObj* objArg = JSTestObj::toWrapped(state-&gt;argument(1));
</span><span class="cx">     if (UNLIKELY(state-&gt;hadException()))
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.implementsMethod2(scriptContext, strArg, objArg, ec)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.implementsMethod2(*scriptContext, strArg, objArg, ec)));
</ins><span class="cx"> 
</span><span class="cx">     setDOMException(state, ec);
</span><span class="cx">     return JSValue::encode(result);
</span><span class="lines">@@ -863,7 +863,7 @@
</span><span class="cx">     TestObj* objArg = JSTestObj::toWrapped(state-&gt;argument(1));
</span><span class="cx">     if (UNLIKELY(state-&gt;hadException()))
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(WebCore::TestSupplemental::supplementalMethod2(impl, scriptContext, strArg, objArg, ec)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(WebCore::TestSupplemental::supplementalMethod2(impl, *scriptContext, strArg, objArg, ec)));
</ins><span class="cx"> 
</span><span class="cx">     setDOMException(state, ec);
</span><span class="cx">     return JSValue::encode(result);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -1478,7 +1478,7 @@
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttribute(scriptContext)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttribute(*scriptContext)));
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1514,7 +1514,7 @@
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(scriptContext, ec)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(*scriptContext, ec)));
</ins><span class="cx">     setDOMException(state, ec);
</span><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -1533,7 +1533,7 @@
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttribute(*state, scriptContext)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttribute(*state, *scriptContext)));
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1552,7 +1552,7 @@
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(*state, scriptContext, ec)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(*state, *scriptContext, ec)));
</ins><span class="cx">     setDOMException(state, ec);
</span><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -1571,7 +1571,7 @@
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, scriptContext)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, *scriptContext)));
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2697,7 +2697,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return;
</span><del>-    impl.setWithScriptExecutionContextAttribute(scriptContext, nativeValue);
</del><ins>+    impl.setWithScriptExecutionContextAttribute(*scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -2734,7 +2734,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return;
</span><del>-    impl.setWithScriptExecutionContextAttributeRaises(scriptContext, nativeValue);
</del><ins>+    impl.setWithScriptExecutionContextAttributeRaises(*scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -2754,7 +2754,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return;
</span><del>-    impl.setWithScriptExecutionContextAndScriptStateAttribute(*state, scriptContext, nativeValue);
</del><ins>+    impl.setWithScriptExecutionContextAndScriptStateAttribute(*state, *scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -2774,7 +2774,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return;
</span><del>-    impl.setWithScriptExecutionContextAndScriptStateAttributeRaises(*state, scriptContext, nativeValue);
</del><ins>+    impl.setWithScriptExecutionContextAndScriptStateAttributeRaises(*state, *scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -2794,7 +2794,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return;
</span><del>-    impl.setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, scriptContext, nativeValue);
</del><ins>+    impl.setWithScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, *scriptContext, nativeValue);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="lines">@@ -3704,7 +3704,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><del>-    impl.withScriptExecutionContext(scriptContext);
</del><ins>+    impl.withScriptExecutionContext(*scriptContext);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3719,7 +3719,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><del>-    impl.withScriptExecutionContextAndScriptState(*state, scriptContext);
</del><ins>+    impl.withScriptExecutionContextAndScriptState(*state, *scriptContext);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3735,7 +3735,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(*state, scriptContext, ec)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(*state, *scriptContext, ec)));
</ins><span class="cx"> 
</span><span class="cx">     setDOMException(state, ec);
</span><span class="cx">     if (UNLIKELY(state-&gt;hadException()))
</span><span class="lines">@@ -3754,7 +3754,7 @@
</span><span class="cx">     auto* scriptContext = jsCast&lt;JSDOMGlobalObject*&gt;(state-&gt;lexicalGlobalObject())-&gt;scriptExecutionContext();
</span><span class="cx">     if (!scriptContext)
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><del>-    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(*state, scriptContext)));
</del><ins>+    JSValue result = toJS(state, castedThis-&gt;globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(*state, *scriptContext)));
</ins><span class="cx">     if (UNLIKELY(state-&gt;hadException()))
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     return JSValue::encode(result);
</span></span></pre></div>
<a id="trunkSourceWebCorefileapiFileReaderSynccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/fileapi/FileReaderSync.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/fileapi/FileReaderSync.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/fileapi/FileReaderSync.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-RefPtr&lt;ArrayBuffer&gt; FileReaderSync::readAsArrayBuffer(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</del><ins>+RefPtr&lt;ArrayBuffer&gt; FileReaderSync::readAsArrayBuffer(ScriptExecutionContext&amp; scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!blob) {
</span><span class="cx">         ec = NOT_FOUND_ERR;
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx">     return loader.arrayBufferResult();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String FileReaderSync::readAsBinaryString(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</del><ins>+String FileReaderSync::readAsBinaryString(ScriptExecutionContext&amp; scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!blob) {
</span><span class="cx">         ec = NOT_FOUND_ERR;
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx">     return loader.stringResult();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String FileReaderSync::readAsText(ScriptExecutionContext* scriptExecutionContext, Blob* blob, const String&amp; encoding, ExceptionCode&amp; ec)
</del><ins>+String FileReaderSync::readAsText(ScriptExecutionContext&amp; scriptExecutionContext, Blob* blob, const String&amp; encoding, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!blob) {
</span><span class="cx">         ec = NOT_FOUND_ERR;
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx">     return loader.stringResult();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String FileReaderSync::readAsDataURL(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</del><ins>+String FileReaderSync::readAsDataURL(ScriptExecutionContext&amp; scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     if (!blob) {
</span><span class="cx">         ec = NOT_FOUND_ERR;
</span><span class="lines">@@ -95,9 +95,9 @@
</span><span class="cx">     return loader.stringResult();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void FileReaderSync::startLoading(ScriptExecutionContext* scriptExecutionContext, FileReaderLoader&amp; loader, Blob* blob, ExceptionCode&amp; ec)
</del><ins>+void FileReaderSync::startLoading(ScriptExecutionContext&amp; scriptExecutionContext, FileReaderLoader&amp; loader, Blob* blob, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><del>-    loader.start(scriptExecutionContext, blob);
</del><ins>+    loader.start(&amp;scriptExecutionContext, blob);
</ins><span class="cx">     ec = FileException::ErrorCodeToExceptionCode(loader.errorCode());
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorefileapiFileReaderSynch"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/fileapi/FileReaderSync.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/fileapi/FileReaderSync.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/fileapi/FileReaderSync.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -56,19 +56,19 @@
</span><span class="cx"> 
</span><span class="cx">     virtual ~FileReaderSync() { }
</span><span class="cx"> 
</span><del>-    RefPtr&lt;JSC::ArrayBuffer&gt; readAsArrayBuffer(ScriptExecutionContext*, Blob*, ExceptionCode&amp;);
-    String readAsBinaryString(ScriptExecutionContext*, Blob*, ExceptionCode&amp;);
-    String readAsText(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</del><ins>+    RefPtr&lt;JSC::ArrayBuffer&gt; readAsArrayBuffer(ScriptExecutionContext&amp;, Blob*, ExceptionCode&amp;);
+    String readAsBinaryString(ScriptExecutionContext&amp;, Blob*, ExceptionCode&amp;);
+    String readAsText(ScriptExecutionContext&amp; scriptExecutionContext, Blob* blob, ExceptionCode&amp; ec)
</ins><span class="cx">     {
</span><del>-        return readAsText(scriptExecutionContext, blob, &quot;&quot;, ec);
</del><ins>+        return readAsText(scriptExecutionContext, blob, emptyString(), ec);
</ins><span class="cx">     }
</span><del>-    String readAsText(ScriptExecutionContext*, Blob*, const String&amp; encoding, ExceptionCode&amp;);
-    String readAsDataURL(ScriptExecutionContext*, Blob*, ExceptionCode&amp;);
</del><ins>+    String readAsText(ScriptExecutionContext&amp;, Blob*, const String&amp; encoding, ExceptionCode&amp;);
+    String readAsDataURL(ScriptExecutionContext&amp;, Blob*, ExceptionCode&amp;);
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     FileReaderSync();
</span><span class="cx"> 
</span><del>-    void startLoading(ScriptExecutionContext*, FileReaderLoader&amp;, Blob*, ExceptionCode&amp;);
</del><ins>+    void startLoading(ScriptExecutionContext&amp;, FileReaderLoader&amp;, Blob*, ExceptionCode&amp;);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlDOMURLcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/DOMURL.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/DOMURL.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/html/DOMURL.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -90,37 +90,34 @@
</span><span class="cx">         ec = TypeError;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String DOMURL::createObjectURL(ScriptExecutionContext* scriptExecutionContext, Blob* blob)
</del><ins>+String DOMURL::createObjectURL(ScriptExecutionContext&amp; scriptExecutionContext, Blob* blob)
</ins><span class="cx"> {
</span><del>-    if (!scriptExecutionContext || !blob)
</del><ins>+    if (!blob)
</ins><span class="cx">         return String();
</span><span class="cx">     return createPublicURL(scriptExecutionContext, blob);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-String DOMURL::createPublicURL(ScriptExecutionContext* scriptExecutionContext, URLRegistrable* registrable)
</del><ins>+String DOMURL::createPublicURL(ScriptExecutionContext&amp; scriptExecutionContext, URLRegistrable* registrable)
</ins><span class="cx"> {
</span><del>-    URL publicURL = BlobURL::createPublicURL(scriptExecutionContext-&gt;securityOrigin());
</del><ins>+    URL publicURL = BlobURL::createPublicURL(scriptExecutionContext.securityOrigin());
</ins><span class="cx">     if (publicURL.isEmpty())
</span><span class="cx">         return String();
</span><span class="cx"> 
</span><del>-    scriptExecutionContext-&gt;publicURLManager().registerURL(scriptExecutionContext-&gt;securityOrigin(), publicURL, registrable);
</del><ins>+    scriptExecutionContext.publicURLManager().registerURL(scriptExecutionContext.securityOrigin(), publicURL, registrable);
</ins><span class="cx"> 
</span><span class="cx">     return publicURL.string();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void DOMURL::revokeObjectURL(ScriptExecutionContext* scriptExecutionContext, const String&amp; urlString)
</del><ins>+void DOMURL::revokeObjectURL(ScriptExecutionContext&amp; scriptExecutionContext, const String&amp; urlString)
</ins><span class="cx"> {
</span><del>-    if (!scriptExecutionContext)
-        return;
-
</del><span class="cx">     URL url(URL(), urlString);
</span><span class="cx">     ResourceRequest request(url);
</span><span class="cx"> #if ENABLE(CACHE_PARTITIONING)
</span><del>-    request.setDomainForCachePartition(scriptExecutionContext-&gt;topOrigin()-&gt;domainForCachePartition());
</del><ins>+    request.setDomainForCachePartition(scriptExecutionContext.topOrigin()-&gt;domainForCachePartition());
</ins><span class="cx"> #endif
</span><del>-    MemoryCache::removeRequestFromSessionCaches(*scriptExecutionContext, request);
</del><ins>+    MemoryCache::removeRequestFromSessionCaches(scriptExecutionContext, request);
</ins><span class="cx"> 
</span><del>-    scriptExecutionContext-&gt;publicURLManager().revoke(url);
</del><ins>+    scriptExecutionContext.publicURLManager().revoke(url);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlDOMURLh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/DOMURL.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/DOMURL.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/html/DOMURL.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -51,10 +51,10 @@
</span><span class="cx">     void setHref(const String&amp; url);
</span><span class="cx">     void setHref(const String&amp;, ExceptionCode&amp;);
</span><span class="cx"> 
</span><del>-    static String createObjectURL(ScriptExecutionContext*, Blob*);
-    static void revokeObjectURL(ScriptExecutionContext*, const String&amp;);
</del><ins>+    static String createObjectURL(ScriptExecutionContext&amp;, Blob*);
+    static void revokeObjectURL(ScriptExecutionContext&amp;, const String&amp;);
</ins><span class="cx"> 
</span><del>-    static String createPublicURL(ScriptExecutionContext*, URLRegistrable*);
</del><ins>+    static String createPublicURL(ScriptExecutionContext&amp;, URLRegistrable*);
</ins><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     DOMURL(const String&amp; url, const String&amp; base, ExceptionCode&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -906,7 +906,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(MEDIA_STREAM)
</span><del>-void HTMLMediaElement::setSrcObject(MediaStream* mediaStream)
</del><ins>+void HTMLMediaElement::setSrcObject(ScriptExecutionContext&amp; context, MediaStream* mediaStream)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: Setting the srcObject attribute may cause other changes to the media element's internal state:
</span><span class="cx">     // Specifically, if srcObject is specified, the UA must use it as the source of media, even if the src
</span><span class="lines">@@ -916,7 +916,7 @@
</span><span class="cx">     // https://bugs.webkit.org/show_bug.cgi?id=124896
</span><span class="cx"> 
</span><span class="cx">     m_mediaStreamSrcObject = mediaStream;
</span><del>-    setSrc(DOMURL::createPublicURL(ActiveDOMObject::scriptExecutionContext(), mediaStream));
</del><ins>+    setSrc(DOMURL::createPublicURL(context, mediaStream));
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLMediaElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLMediaElement.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLMediaElement.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/html/HTMLMediaElement.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -96,6 +96,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(MEDIA_STREAM)
</span><span class="cx"> class MediaStream;
</span><ins>+class ScriptExecutionContext;
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> class HTMLMediaElement
</span><span class="lines">@@ -156,7 +157,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(MEDIA_STREAM)
</span><span class="cx">     MediaStream* srcObject() const { return m_mediaStreamSrcObject.get(); }
</span><del>-    void setSrcObject(MediaStream*);
</del><ins>+    void setSrcObject(ScriptExecutionContext&amp;, MediaStream*);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> // network state
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorIndexedDBAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -205,7 +205,13 @@
</span><span class="cx"> {
</span><span class="cx">     Ref&lt;OpenDatabaseCallback&gt; callback = OpenDatabaseCallback::create(this);
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    RefPtr&lt;IDBOpenDBRequest&gt; idbOpenDBRequest = idbFactory-&gt;open(context(), databaseName, ec);
</del><ins>+
+    if (!context()) {
+        requestCallback().sendFailure(&quot;Could not open database.&quot;);
+        return;
+    }
+
+    RefPtr&lt;IDBOpenDBRequest&gt; idbOpenDBRequest = idbFactory-&gt;open(*context(), databaseName, ec);
</ins><span class="cx">     if (ec) {
</span><span class="cx">         requestCallback().sendFailure(&quot;Could not open database.&quot;);
</span><span class="cx">         return;
</span><span class="lines">@@ -513,7 +519,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     ExceptionCode ec = 0;
</span><del>-    RefPtr&lt;IDBRequest&gt; idbRequest = idbFactory-&gt;getDatabaseNames(document, ec);
</del><ins>+    RefPtr&lt;IDBRequest&gt; idbRequest = idbFactory-&gt;getDatabaseNames(*document, ec);
</ins><span class="cx">     if (!idbRequest || ec) {
</span><span class="cx">         requestCallback-&gt;sendFailure(&quot;Could not obtain database names.&quot;);
</span><span class="cx">         return;
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/page/DOMWindow.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -161,8 +161,10 @@
</span><span class="cx">         Element* frameElement() const;
</span><span class="cx"> 
</span><span class="cx">         void focus(ScriptExecutionContext* = nullptr);
</span><ins>+        void focus(ScriptExecutionContext&amp; context) { focus(&amp;context); }
</ins><span class="cx">         void blur();
</span><span class="cx">         WEBCORE_EXPORT void close(ScriptExecutionContext* = nullptr);
</span><ins>+        void close(ScriptExecutionContext&amp; context) { close(&amp;context); }
</ins><span class="cx">         void print();
</span><span class="cx">         void stop();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorepageHistoryh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/History.h (198001 => 198002)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/History.h        2016-03-11 07:52:17 UTC (rev 198001)
+++ trunk/Source/WebCore/page/History.h        2016-03-11 09:44:53 UTC (rev 198002)
</span><span class="lines">@@ -51,6 +51,10 @@
</span><span class="cx">     void forward();
</span><span class="cx">     void go(int distance);
</span><span class="cx"> 
</span><ins>+    void back(ScriptExecutionContext&amp; context) { back(&amp;context); }
+    void forward(ScriptExecutionContext&amp; context) { forward(&amp;context); }
+    void go(ScriptExecutionContext&amp; context, int distance) { go(&amp;context, distance); }
+
</ins><span class="cx">     void back(ScriptExecutionContext*);
</span><span class="cx">     void forward(ScriptExecutionContext*);
</span><span class="cx">     void go(ScriptExecutionContext*, int distance);
</span></span></pre>
</div>
</div>

</body>
</html>