<!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 <youenn.fablet@crf.canon.fr>
+
+ [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 <cgarcia@igalia.com>
</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<MediaKeySession> MediaKeySession::create(ScriptExecutionContext* context, MediaKeys* keys, const String& keySystem)
</del><ins>+Ref<MediaKeySession> MediaKeySession::create(ScriptExecutionContext& context, MediaKeys* keys, const String& keySystem)
</ins><span class="cx"> {
</span><span class="cx"> auto session = adoptRef(*new MediaKeySession(context, keys, keySystem));
</span><span class="cx"> session->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& keySystem)
- : ActiveDOMObject(context)
</del><ins>+MediaKeySession::MediaKeySession(ScriptExecutionContext& context, MediaKeys* keys, const String& keySystem)
+ : ActiveDOMObject(&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<MediaKeySession>, public EventTargetWithInlineData, public ActiveDOMObject, public CDMSessionClient {
</span><span class="cx"> public:
</span><del>- static Ref<MediaKeySession> create(ScriptExecutionContext*, MediaKeys*, const String& keySystem);
</del><ins>+ static Ref<MediaKeySession> create(ScriptExecutionContext&, MediaKeys*, const String& keySystem);
</ins><span class="cx"> ~MediaKeySession();
</span><span class="cx">
</span><span class="cx"> const String& 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& keySystem);
</del><ins>+ MediaKeySession(ScriptExecutionContext&, MediaKeys*, const String& 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<MediaKeySession> MediaKeys::createSession(ScriptExecutionContext* context, const String& type, Uint8Array* initData, ExceptionCode& ec)
</del><ins>+RefPtr<MediaKeySession> MediaKeys::createSession(ScriptExecutionContext& context, const String& type, Uint8Array* initData, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> // From <http://www.w3.org/TR/2014/WD-encrypted-media-20140218/#dom-createsession>:
</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<MediaKeys> create(const String& keySystem, ExceptionCode&);
</span><span class="cx"> virtual ~MediaKeys();
</span><span class="cx">
</span><del>- RefPtr<MediaKeySession> createSession(ScriptExecutionContext*, const String& mimeType, Uint8Array* initData, ExceptionCode&);
</del><ins>+ RefPtr<MediaKeySession> createSession(ScriptExecutionContext&, const String& mimeType, Uint8Array* initData, ExceptionCode&);
</ins><span class="cx">
</span><span class="cx"> static bool isTypeSupported(const String& keySystem, const String& 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<FetchRequest> FetchRequest::clone(ScriptExecutionContext* context, ExceptionCode& ec)
</del><ins>+RefPtr<FetchRequest> FetchRequest::clone(ScriptExecutionContext& context, ExceptionCode& 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& integrity() const { return m_internalRequest.integrity; }
</span><span class="cx">
</span><del>- RefPtr<FetchRequest> clone(ScriptExecutionContext*, ExceptionCode&);
</del><ins>+ RefPtr<FetchRequest> clone(ScriptExecutionContext&, ExceptionCode&);
</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<FetchResponse> FetchResponse::error(ScriptExecutionContext* context)
</del><ins>+Ref<FetchResponse> FetchResponse::error(ScriptExecutionContext& 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<FetchResponse> FetchResponse::redirect(ScriptExecutionContext* context, const String& url, int status, ExceptionCode& ec)
</del><ins>+RefPtr<FetchResponse> FetchResponse::redirect(ScriptExecutionContext& context, const String& url, int status, ExceptionCode& 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->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<FetchResponse> redirectResponse = adoptRef(*new FetchResponse(*context, Type::Default, { }, FetchHeaders::create(FetchHeaders::Guard::Immutable), ResourceResponse()));
</del><ins>+ RefPtr<FetchResponse> redirectResponse = adoptRef(*new FetchResponse(context, Type::Default, { }, FetchHeaders::create(FetchHeaders::Guard::Immutable), ResourceResponse()));
</ins><span class="cx"> redirectResponse->m_response.setHTTPStatusCode(status);
</span><span class="cx"> redirectResponse->m_headers->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<FetchResponse> FetchResponse::clone(ScriptExecutionContext* context, ExceptionCode& ec)
</del><ins>+RefPtr<FetchResponse> FetchResponse::clone(ScriptExecutionContext& context, ExceptionCode& 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<FetchResponse> cloned = adoptRef(*new FetchResponse(*context, m_type, FetchBody(m_body), FetchHeaders::create(headers()), ResourceResponse(m_response)));
</del><ins>+ RefPtr<FetchResponse> cloned = adoptRef(*new FetchResponse(context, m_type, FetchBody(m_body), FetchHeaders::create(headers()), ResourceResponse(m_response)));
</ins><span class="cx"> cloned->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<FetchResponse> create(ScriptExecutionContext& context) { return adoptRef(*new FetchResponse(context, Type::Default, { }, FetchHeaders::create(FetchHeaders::Guard::Response), ResourceResponse())); }
</span><del>- static Ref<FetchResponse> error(ScriptExecutionContext*);
- static RefPtr<FetchResponse> redirect(ScriptExecutionContext*, const String&, int, ExceptionCode&);
</del><ins>+ static Ref<FetchResponse> error(ScriptExecutionContext&);
+ static RefPtr<FetchResponse> redirect(ScriptExecutionContext&, const String&, int, ExceptionCode&);
</ins><span class="cx"> // FIXME: Binding generator should not require below method to handle optional status parameter.
</span><del>- static RefPtr<FetchResponse> redirect(ScriptExecutionContext* context, const String& url, ExceptionCode& ec) { return redirect(context, url, 302, ec); }
</del><ins>+ static RefPtr<FetchResponse> redirect(ScriptExecutionContext& context, const String& url, ExceptionCode& ec) { return redirect(context, url, 302, ec); }
</ins><span class="cx">
</span><span class="cx"> void initializeWith(const Dictionary&, ExceptionCode&);
</span><span class="cx">
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> const String& statusText() const { return m_response.httpStatusText(); }
</span><span class="cx">
</span><span class="cx"> FetchHeaders& headers() { return m_headers; }
</span><del>- RefPtr<FetchResponse> clone(ScriptExecutionContext*, ExceptionCode&);
</del><ins>+ RefPtr<FetchResponse> clone(ScriptExecutionContext&, ExceptionCode&);
</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<IDBRequest> update(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCodeWithMessage&) = 0;
</span><span class="cx"> virtual void advance(unsigned long, ExceptionCodeWithMessage&) = 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&) = 0;
</ins><span class="cx"> // FIXME: Try to modify the code generator so this overload is unneeded.
</span><del>- virtual void continueFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
- virtual void continueFunction(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
</del><ins>+ void continueFunction(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec) { continueFunction(&context, ec); }
+ virtual void continueFunction(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> deleteFunction(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 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<IDBRequest> getDatabaseNames(ScriptExecutionContext*, ExceptionCode&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> getDatabaseNames(ScriptExecutionContext&, ExceptionCode&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBOpenDBRequest> open(ScriptExecutionContext*, const String& name, ExceptionCode&) = 0;
- virtual RefPtr<IDBOpenDBRequest> open(ScriptExecutionContext*, const String& name, unsigned long long version, ExceptionCode&) = 0;
- virtual RefPtr<IDBOpenDBRequest> deleteDatabase(ScriptExecutionContext*, const String& name, ExceptionCode&) = 0;
</del><ins>+ virtual RefPtr<IDBOpenDBRequest> open(ScriptExecutionContext&, const String& name, ExceptionCode&) = 0;
+ virtual RefPtr<IDBOpenDBRequest> open(ScriptExecutionContext&, const String& name, unsigned long long version, ExceptionCode&) = 0;
+ virtual RefPtr<IDBOpenDBRequest> deleteDatabase(ScriptExecutionContext&, const String& name, ExceptionCode&) = 0;
</ins><span class="cx">
</span><del>- virtual short cmp(ScriptExecutionContext*, const Deprecated::ScriptValue& first, const Deprecated::ScriptValue& second, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual short cmp(ScriptExecutionContext&, const Deprecated::ScriptValue& first, const Deprecated::ScriptValue& second, ExceptionCodeWithMessage&) = 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<IDBRequest> openCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBRequest> count(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> count(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> count(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> count(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> count(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext&, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBRequest> get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> get(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> get(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> get(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBRequest> getKey(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> getKey(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> getKey(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> getKey(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 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& context) const
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> return idbKeyToScriptValue(&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& context) const
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> return idbKeyToScriptValue(&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<IDBKeyRange> IDBKeyRange::only(ScriptExecutionContext* context, const Deprecated::ScriptValue& keyValue, ExceptionCode& ec)
</del><ins>+RefPtr<IDBKeyRange> IDBKeyRange::only(ScriptExecutionContext& context, const Deprecated::ScriptValue& keyValue, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> key = scriptValueToIDBKey(&requestState, keyValue);
</span><span class="cx"> if (!key || !key->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<IDBKeyRange> IDBKeyRange::lowerBound(ScriptExecutionContext* context, const Deprecated::ScriptValue& boundValue, bool open, ExceptionCode& ec)
</del><ins>+RefPtr<IDBKeyRange> IDBKeyRange::lowerBound(ScriptExecutionContext& context, const Deprecated::ScriptValue& boundValue, bool open, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> bound = scriptValueToIDBKey(&requestState, boundValue);
</span><span class="cx"> if (!bound || !bound->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<IDBKeyRange> IDBKeyRange::upperBound(ScriptExecutionContext* context, const Deprecated::ScriptValue& boundValue, bool open, ExceptionCode& ec)
</del><ins>+RefPtr<IDBKeyRange> IDBKeyRange::upperBound(ScriptExecutionContext& context, const Deprecated::ScriptValue& boundValue, bool open, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> bound = scriptValueToIDBKey(&requestState, boundValue);
</span><span class="cx"> if (!bound || !bound->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<IDBKeyRange> IDBKeyRange::bound(ScriptExecutionContext* context, const Deprecated::ScriptValue& lowerValue, const Deprecated::ScriptValue& upperValue, bool lowerOpen, bool upperOpen, ExceptionCode& ec)
</del><ins>+RefPtr<IDBKeyRange> IDBKeyRange::bound(ScriptExecutionContext& context, const Deprecated::ScriptValue& lowerValue, const Deprecated::ScriptValue& upperValue, bool lowerOpen, bool upperOpen, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> lower = scriptValueToIDBKey(&requestState, lowerValue);
</span><span class="cx"> RefPtr<IDBKey> upper = scriptValueToIDBKey(&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&) const;
+ Deprecated::ScriptValue upperValue(ScriptExecutionContext&) 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<IDBKeyRange> only(RefPtr<IDBKey>&& value, ExceptionCode&);
</span><del>- static RefPtr<IDBKeyRange> only(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCode&);
</del><ins>+ static RefPtr<IDBKeyRange> only(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCode&);
</ins><span class="cx">
</span><del>- static RefPtr<IDBKeyRange> lowerBound(ScriptExecutionContext* context, const Deprecated::ScriptValue& bound, ExceptionCode& ec) { return lowerBound(context, bound, false, ec); }
- static RefPtr<IDBKeyRange> lowerBound(ScriptExecutionContext*, const Deprecated::ScriptValue& bound, bool open, ExceptionCode&);
</del><ins>+ static RefPtr<IDBKeyRange> lowerBound(ScriptExecutionContext& context, const Deprecated::ScriptValue& bound, ExceptionCode& ec) { return lowerBound(context, bound, false, ec); }
+ static RefPtr<IDBKeyRange> lowerBound(ScriptExecutionContext&, const Deprecated::ScriptValue& bound, bool open, ExceptionCode&);
</ins><span class="cx">
</span><del>- static RefPtr<IDBKeyRange> upperBound(ScriptExecutionContext* context, const Deprecated::ScriptValue& bound, ExceptionCode& ec) { return upperBound(context, bound, false, ec); }
- static RefPtr<IDBKeyRange> upperBound(ScriptExecutionContext*, const Deprecated::ScriptValue& bound, bool open, ExceptionCode&);
</del><ins>+ static RefPtr<IDBKeyRange> upperBound(ScriptExecutionContext& context, const Deprecated::ScriptValue& bound, ExceptionCode& ec) { return upperBound(context, bound, false, ec); }
+ static RefPtr<IDBKeyRange> upperBound(ScriptExecutionContext&, const Deprecated::ScriptValue& bound, bool open, ExceptionCode&);
</ins><span class="cx">
</span><del>- static RefPtr<IDBKeyRange> bound(ScriptExecutionContext* context, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, ExceptionCode& ec) { return bound(context, lower, upper, false, false, ec); }
- static RefPtr<IDBKeyRange> bound(ScriptExecutionContext* context, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, bool lowerOpen, ExceptionCode& ec) { return bound(context, lower, upper, lowerOpen, false, ec); }
- static RefPtr<IDBKeyRange> bound(ScriptExecutionContext*, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, bool lowerOpen, bool upperOpen, ExceptionCode&);
</del><ins>+ static RefPtr<IDBKeyRange> bound(ScriptExecutionContext& context, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, ExceptionCode& ec) { return bound(context, lower, upper, false, false, ec); }
+ static RefPtr<IDBKeyRange> bound(ScriptExecutionContext& context, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, bool lowerOpen, ExceptionCode& ec) { return bound(context, lower, upper, lowerOpen, false, ec); }
+ static RefPtr<IDBKeyRange> bound(ScriptExecutionContext&, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, bool lowerOpen, bool upperOpen, ExceptionCode&);
</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<IDBRequest> add(JSC::ExecState&, JSC::JSValue, ExceptionCodeWithMessage&) = 0;
</span><span class="cx"> virtual RefPtr<IDBRequest> put(JSC::ExecState&, JSC::JSValue, ExceptionCodeWithMessage&) = 0;
</span><del>- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBRequest> get(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> get(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> get(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx"> virtual RefPtr<IDBRequest> add(JSC::ExecState&, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&) = 0;
</span><span class="cx"> virtual RefPtr<IDBRequest> put(JSC::ExecState&, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&) = 0;
</span><del>- virtual RefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> deleteFunction(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> clear(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> deleteFunction(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> deleteFunction(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> clear(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><del>- virtual RefPtr<IDBIndex> createIndex(ScriptExecutionContext*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBIndex> createIndex(ScriptExecutionContext&, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionCodeWithMessage&) = 0;
</ins><span class="cx">
</span><span class="cx"> virtual RefPtr<IDBIndex> index(const String& name, ExceptionCodeWithMessage&) = 0;
</span><span class="cx"> virtual void deleteIndex(const String& name, ExceptionCodeWithMessage&) = 0;
</span><span class="cx">
</span><del>- virtual RefPtr<IDBRequest> count(ScriptExecutionContext*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
- virtual RefPtr<IDBRequest> count(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 0;
</del><ins>+ virtual RefPtr<IDBRequest> count(ScriptExecutionContext&, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> count(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) = 0;
+ virtual RefPtr<IDBRequest> count(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) = 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& 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&);
</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& context)
+ : ActiveDOMObject(&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& readyState() const = 0;
</span><span class="cx">
</span><span class="cx"> protected:
</span><del>- IDBRequest(ScriptExecutionContext*);
</del><ins>+ IDBRequest(ScriptExecutionContext&);
</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& keyValue, ExceptionCodeWithMessage& ec)
</del><ins>+void IDBCursor::continueFunction(ScriptExecutionContext& context, const Deprecated::ScriptValue& keyValue, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return;
- }
-
- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> key;
</span><span class="cx"> if (!keyValue.jsValue().isUndefined())
</span><span class="cx"> key = scriptValueToIDBKey(&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<WebCore::IDBRequest> IDBCursor::deleteFunction(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBCursor::deleteFunction(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBCursor::deleteFunction");
</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("Failed to execute 'delete' on 'IDBCursor': The cursor's source or effective object store has been deleted.");
</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<WebCore::IDBRequest> update(JSC::ExecState&, Deprecated::ScriptValue&, ExceptionCodeWithMessage&) final;
</span><span class="cx"> void advance(unsigned long, ExceptionCodeWithMessage&) final;
</span><span class="cx"> void continueFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&) final;
</span><del>- void continueFunction(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> deleteFunction(ScriptExecutionContext*, ExceptionCodeWithMessage&) final;
</del><ins>+ void continueFunction(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> deleteFunction(ScriptExecutionContext&, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><span class="cx"> void continueFunction(const IDBKeyData&, ExceptionCodeWithMessage&);
</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& context)
</ins><span class="cx"> {
</span><del>- ASSERT(is<Document>(*context) || context->isWorkerGlobalScope());
- if (is<Document>(*context)) {
- Document& document = downcast<Document>(*context);
</del><ins>+ ASSERT(is<Document>(context) || context.isWorkerGlobalScope());
+ if (is<Document>(context)) {
+ Document& document = downcast<Document>(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->securityOrigin()->canAccessDatabase(context->topOrigin()))
</del><ins>+ if (!context.securityOrigin()->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<WebCore::IDBRequest> IDBFactory::getDatabaseNames(ScriptExecutionContext*, ExceptionCode&)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBFactory::getDatabaseNames(ScriptExecutionContext&, ExceptionCode&)
</ins><span class="cx"> {
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBOpenDBRequest> IDBFactory::open(ScriptExecutionContext* context, const String& name, ExceptionCode& ec)
</del><ins>+RefPtr<WebCore::IDBOpenDBRequest> IDBFactory::open(ScriptExecutionContext& context, const String& name, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBFactory::open");
</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<WebCore::IDBOpenDBRequest> IDBFactory::open(ScriptExecutionContext* context, const String& name, unsigned long long version, ExceptionCode& ec)
</del><ins>+RefPtr<WebCore::IDBOpenDBRequest> IDBFactory::open(ScriptExecutionContext& context, const String& name, unsigned long long version, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBFactory::open");
</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<IDBOpenDBRequest> IDBFactory::openInternal(ScriptExecutionContext* context, const String& name, unsigned long long version, ExceptionCode& ec)
</del><ins>+RefPtr<IDBOpenDBRequest> IDBFactory::openInternal(ScriptExecutionContext& context, const String& name, unsigned long long version, ExceptionCode& 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->securityOrigin());
- ASSERT(context->topOrigin());
- IDBDatabaseIdentifier databaseIdentifier(name, *context->securityOrigin(), *context->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(&request.leakRef());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBOpenDBRequest> IDBFactory::deleteDatabase(ScriptExecutionContext* context, const String& name, ExceptionCode& ec)
</del><ins>+RefPtr<WebCore::IDBOpenDBRequest> IDBFactory::deleteDatabase(ScriptExecutionContext& context, const String& name, ExceptionCode& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBFactory::deleteDatabase - %s", 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->securityOrigin());
- ASSERT(context->topOrigin());
- IDBDatabaseIdentifier databaseIdentifier(name, *context->securityOrigin(), *context->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(&request.leakRef());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-short IDBFactory::cmp(ScriptExecutionContext* context, const Deprecated::ScriptValue& firstValue, const Deprecated::ScriptValue& secondValue, ExceptionCodeWithMessage& ec)
</del><ins>+short IDBFactory::cmp(ScriptExecutionContext& context, const Deprecated::ScriptValue& firstValue, const Deprecated::ScriptValue& secondValue, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> first = scriptValueToIDBKey(&requestState, firstValue);
</span><span class="cx"> RefPtr<IDBKey> second = scriptValueToIDBKey(&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<IDBFactory> create(IDBConnectionToServer&);
</span><span class="cx">
</span><del>- RefPtr<WebCore::IDBRequest> getDatabaseNames(ScriptExecutionContext*, ExceptionCode&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> getDatabaseNames(ScriptExecutionContext&, ExceptionCode&) final;
</ins><span class="cx">
</span><del>- RefPtr<WebCore::IDBOpenDBRequest> open(ScriptExecutionContext*, const String& name, ExceptionCode&) final;
- RefPtr<WebCore::IDBOpenDBRequest> open(ScriptExecutionContext*, const String& name, unsigned long long version, ExceptionCode&) final;
- RefPtr<WebCore::IDBOpenDBRequest> deleteDatabase(ScriptExecutionContext*, const String& name, ExceptionCode&) final;
</del><ins>+ RefPtr<WebCore::IDBOpenDBRequest> open(ScriptExecutionContext&, const String& name, ExceptionCode&) final;
+ RefPtr<WebCore::IDBOpenDBRequest> open(ScriptExecutionContext&, const String& name, unsigned long long version, ExceptionCode&) final;
+ RefPtr<WebCore::IDBOpenDBRequest> deleteDatabase(ScriptExecutionContext&, const String& name, ExceptionCode&) final;
</ins><span class="cx">
</span><del>- short cmp(ScriptExecutionContext*, const Deprecated::ScriptValue& first, const Deprecated::ScriptValue& second, ExceptionCodeWithMessage&) final;
</del><ins>+ short cmp(ScriptExecutionContext&, const Deprecated::ScriptValue& first, const Deprecated::ScriptValue& second, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> IDBFactory(IDBConnectionToServer&);
</span><span class="cx">
</span><del>- RefPtr<IDBOpenDBRequest> openInternal(ScriptExecutionContext*, const String& name, unsigned long long version, ExceptionCode&);
</del><ins>+ RefPtr<IDBOpenDBRequest> openInternal(ScriptExecutionContext&, const String& name, unsigned long long version, ExceptionCode&);
</ins><span class="cx">
</span><span class="cx"> Ref<IDBConnectionToServer> 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& info, IDBObjectStore& objectStore)
- : ActiveDOMObject(context)
</del><ins>+IDBIndex::IDBIndex(ScriptExecutionContext& context, const IDBIndexInfo& info, IDBObjectStore& objectStore)
+ : ActiveDOMObject(&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<WebCore::IDBRequest> IDBIndex::openCursor(ScriptExecutionContext* context, IDBKeyRange* range, const String& directionString, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::openCursor(ScriptExecutionContext& context, IDBKeyRange* range, const String& directionString, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::openCursor");
</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<WebCore::IDBRequest> IDBIndex::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::openCursor(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::openCursor");
</span><span class="cx"> RefPtr<IDBKeyRange> 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<WebCore::IDBRequest> IDBIndex::count(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::count(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::count");
</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<WebCore::IDBRequest> IDBIndex::count(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::count(ScriptExecutionContext& context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::count");
</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<WebCore::IDBRequest> IDBIndex::count(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::count(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::count");
</span><span class="cx">
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return nullptr;
- }
-
- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> idbKey = scriptValueToIDBKey(&requestState, key);
</span><span class="cx"> if (!idbKey || idbKey->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<WebCore::IDBRequest> IDBIndex::doCount(ScriptExecutionContext& context, const IDBKeyRangeData& range, ExceptionCodeWithMessage& 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<WebCore::IDBRequest> IDBIndex::openKeyCursor(ScriptExecutionContext* context, IDBKeyRange* range, const String& directionString, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::openKeyCursor(ScriptExecutionContext& context, IDBKeyRange* range, const String& directionString, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::openKeyCursor");
</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<WebCore::IDBRequest> IDBIndex::openKeyCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::openKeyCursor(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::openKeyCursor");
</span><span class="cx"> RefPtr<IDBKeyRange> 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<WebCore::IDBRequest> IDBIndex::get(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::get(ScriptExecutionContext& context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::get");
</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<WebCore::IDBRequest> IDBIndex::get(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::get(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::get");
</span><span class="cx">
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return nullptr;
- }
-
- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> idbKey = scriptValueToIDBKey(&requestState, key);
</span><span class="cx"> if (!idbKey || idbKey->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<WebCore::IDBRequest> IDBIndex::doGet(ScriptExecutionContext& context, const IDBKeyRangeData& range, ExceptionCodeWithMessage& 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<WebCore::IDBRequest> IDBIndex::getKey(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::getKey(ScriptExecutionContext& context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::getKey");
</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<WebCore::IDBRequest> IDBIndex::getKey(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBIndex::getKey(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBIndex::getKey");
</span><span class="cx">
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return nullptr;
- }
-
- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> idbKey = scriptValueToIDBKey(&requestState, key);
</span><span class="cx"> if (!idbKey || idbKey->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<WebCore::IDBRequest> IDBIndex::doGetKey(ScriptExecutionContext& context, const IDBKeyRangeData& range, ExceptionCodeWithMessage& 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&, IDBObjectStore&);
</del><ins>+ IDBIndex(ScriptExecutionContext&, const IDBIndexInfo&, IDBObjectStore&);
</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<WebCore::IDBRequest> openCursor(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec) final { return openCursor(context, static_cast<IDBKeyRange*>(nullptr), ec); }
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec) final { return openCursor(context, keyRange, IDBCursor::directionNext(), ec); }
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec) final { return openCursor(context, key, IDBCursor::directionNext(), ec); }
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec) final { return openCursor(context, static_cast<IDBKeyRange*>(nullptr), ec); }
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext& context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec) final { return openCursor(context, keyRange, IDBCursor::directionNext(), ec); }
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec) final { return openCursor(context, key, IDBCursor::directionNext(), ec); }
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><del>- RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext&, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><del>- RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec) final { return openKeyCursor(context, static_cast<IDBKeyRange*>(nullptr), ec); }
- RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec) final { return openKeyCursor(context, keyRange, IDBCursor::directionNext(), ec); }
- RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec) final { return openKeyCursor(context, key, IDBCursor::directionNext(), ec); }
- RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext*, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec) final { return openKeyCursor(context, static_cast<IDBKeyRange*>(nullptr), ec); }
+ RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext& context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec) final { return openKeyCursor(context, keyRange, IDBCursor::directionNext(), ec); }
+ RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec) final { return openKeyCursor(context, key, IDBCursor::directionNext(), ec); }
+ RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext&, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> openKeyCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><del>- RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> getKey(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> getKey(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> getKey(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> getKey(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><span class="cx"> const IDBIndexInfo& 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<IDBObjectStore> IDBObjectStore::create(ScriptExecutionContext* context, const IDBObjectStoreInfo& info, IDBTransaction& transaction)
</del><ins>+Ref<IDBObjectStore> IDBObjectStore::create(ScriptExecutionContext& context, const IDBObjectStoreInfo& info, IDBTransaction& 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& info, IDBTransaction& transaction)
- : ActiveDOMObject(context)
</del><ins>+IDBObjectStore::IDBObjectStore(ScriptExecutionContext& context, const IDBObjectStoreInfo& info, IDBTransaction& transaction)
+ : ActiveDOMObject(&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<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> return openCursor(context, static_cast<IDBKeyRange*>(nullptr), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext& context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& 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<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& 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<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext* context, IDBKeyRange* range, const String& directionString, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext& context, IDBKeyRange* range, const String& directionString, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::openCursor");
</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<IDBRequest> request = m_transaction->requestOpenCursor(*context, *this, info);
</del><ins>+ Ref<IDBRequest> request = m_transaction->requestOpenCursor(context, *this, info);
</ins><span class="cx"> return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::openCursor(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> RefPtr<IDBKeyRange> 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<WebCore::IDBRequest> IDBObjectStore::get(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::get(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::get");
</span><span class="cx">
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return nullptr;
- }
-
</del><span class="cx"> if (!m_transaction->isActive()) {
</span><span class="cx"> ec.code = IDBDatabaseException::TransactionInactiveError;
</span><span class="cx"> ec.message = ASCIILiteral("Failed to execute 'get' on 'IDBObjectStore': The transaction is inactive or finished.");
</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(&context);
</ins><span class="cx"> RefPtr<IDBKey> idbKey = scriptValueToIDBKey(&requestState, key);
</span><span class="cx"> if (!idbKey || idbKey->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<IDBRequest> request = m_transaction->requestGetRecord(*context, *this, idbKey.get());
</del><ins>+ Ref<IDBRequest> request = m_transaction->requestGetRecord(context, *this, idbKey.get());
</ins><span class="cx"> return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBRequest> IDBObjectStore::get(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::get(ScriptExecutionContext& context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::get");
</span><span class="cx">
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return nullptr;
- }
-
</del><span class="cx"> if (!m_transaction->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<IDBRequest> request = m_transaction->requestGetRecord(*context, *this, keyRangeData);
</del><ins>+ Ref<IDBRequest> request = m_transaction->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<WebCore::IDBRequest> IDBObjectStore::deleteFunction(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::deleteFunction(ScriptExecutionContext& context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& 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<IDBRequest> IDBObjectStore::doDelete(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<IDBRequest> IDBObjectStore::doDelete(ScriptExecutionContext& context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::deleteFunction");
</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<IDBRequest> request = m_transaction->requestDeleteRecord(*context, *this, keyRangeData);
</del><ins>+ Ref<IDBRequest> request = m_transaction->requestDeleteRecord(context, *this, keyRangeData);
</ins><span class="cx"> return WTFMove(request);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBRequest> IDBObjectStore::deleteFunction(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::deleteFunction(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& 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<IDBRequest> IDBObjectStore::modernDelete(ScriptExecutionContext* context, JSC::JSValue key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<IDBRequest> IDBObjectStore::modernDelete(ScriptExecutionContext& context, JSC::JSValue key, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><del>- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> idbKey = scriptValueToIDBKey(&requestState, key);
</span><span class="cx"> if (!idbKey || idbKey->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, &IDBKeyRange::create(idbKey.get()).get(), ec);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBRequest> IDBObjectStore::clear(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::clear(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::clear");
</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<IDBRequest> request = m_transaction->requestClearObjectStore(*context, *this);
</del><ins>+ Ref<IDBRequest> request = m_transaction->requestClearObjectStore(context, *this);
</ins><span class="cx"> return adoptRef(request.leakRef());
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBIndex> IDBObjectStore::createIndex(ScriptExecutionContext* context, const String& name, const IDBKeyPath& keyPath, bool unique, bool multiEntry, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBIndex> IDBObjectStore::createIndex(ScriptExecutionContext&, const String& name, const IDBKeyPath& keyPath, bool unique, bool multiEntry, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::createIndex %s", 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("Failed to execute 'createIndex' on 'IDBObjectStore': The object store has been deleted.");
</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<IDBIndex>(scriptExecutionContext(), *info, *this);
</del><ins>+ auto index = std::make_unique<IDBIndex>(*scriptExecutionContext(), *info, *this);
</ins><span class="cx"> RefPtr<IDBIndex> 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->deleteIndex(m_info.identifier(), name);
</span><span class="cx"> }
</span><span class="cx">
</span><del>-RefPtr<WebCore::IDBRequest> IDBObjectStore::count(ScriptExecutionContext* context, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::count(ScriptExecutionContext& context, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::count");
</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<WebCore::IDBRequest> IDBObjectStore::count(ScriptExecutionContext* context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::count(ScriptExecutionContext& context, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::count");
</span><span class="cx">
</span><del>- if (!context) {
- ec.code = IDBDatabaseException::InvalidStateError;
- return nullptr;
- }
-
- DOMRequestState requestState(context);
</del><ins>+ DOMRequestState requestState(&context);
</ins><span class="cx"> RefPtr<IDBKey> idbKey = scriptValueToIDBKey(&requestState, key);
</span><span class="cx"> if (!idbKey || idbKey->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<WebCore::IDBRequest> IDBObjectStore::count(ScriptExecutionContext* context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</del><ins>+RefPtr<WebCore::IDBRequest> IDBObjectStore::count(ScriptExecutionContext& context, IDBKeyRange* range, ExceptionCodeWithMessage& ec)
</ins><span class="cx"> {
</span><span class="cx"> LOG(IndexedDB, "IDBObjectStore::count");
</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<WebCore::IDBRequest> IDBObjectStore::doCount(ScriptExecutionContext& context, const IDBKeyRangeData& range, ExceptionCodeWithMessage& 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<IDBObjectStore> create(ScriptExecutionContext*, const IDBObjectStoreInfo&, IDBTransaction&);
</del><ins>+ static Ref<IDBObjectStore> create(ScriptExecutionContext&, const IDBObjectStoreInfo&, IDBTransaction&);
</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<WebCore::IDBRequest> add(JSC::ExecState&, JSC::JSValue, ExceptionCodeWithMessage&) final;
</span><span class="cx"> RefPtr<WebCore::IDBRequest> put(JSC::ExecState&, JSC::JSValue, ExceptionCodeWithMessage&) final;
</span><del>- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext*, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, IDBKeyRange*, const String& direction, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> openCursor(ScriptExecutionContext&, const Deprecated::ScriptValue& key, const String& direction, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> get(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
</ins><span class="cx"> RefPtr<WebCore::IDBRequest> add(JSC::ExecState&, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&) final;
</span><span class="cx"> RefPtr<WebCore::IDBRequest> put(JSC::ExecState&, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&) final;
</span><del>- RefPtr<WebCore::IDBRequest> deleteFunction(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> deleteFunction(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> clear(ScriptExecutionContext*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBIndex> createIndex(ScriptExecutionContext*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> deleteFunction(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> deleteFunction(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> clear(ScriptExecutionContext&, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBIndex> createIndex(ScriptExecutionContext&, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionCodeWithMessage&) final;
</ins><span class="cx"> RefPtr<WebCore::IDBIndex> index(const String& name, ExceptionCodeWithMessage&) final;
</span><span class="cx"> void deleteIndex(const String& name, ExceptionCodeWithMessage&) final;
</span><del>- RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext*, IDBKeyRange*, ExceptionCodeWithMessage&) final;
- RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext*, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
</del><ins>+ RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext&, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&) final;
+ RefPtr<WebCore::IDBRequest> count(ScriptExecutionContext&, const Deprecated::ScriptValue& key, ExceptionCodeWithMessage&) final;
</ins><span class="cx">
</span><span class="cx"> RefPtr<IDBRequest> putForCursorUpdate(JSC::ExecState&, JSC::JSValue, JSC::JSValue key, ExceptionCodeWithMessage&);
</span><del>- RefPtr<IDBRequest> modernDelete(ScriptExecutionContext*, JSC::JSValue key, ExceptionCodeWithMessage&);
</del><ins>+ RefPtr<IDBRequest> modernDelete(ScriptExecutionContext&, JSC::JSValue key, ExceptionCodeWithMessage&);
</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&) const;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- IDBObjectStore(ScriptExecutionContext*, const IDBObjectStoreInfo&, IDBTransaction&);
</del><ins>+ IDBObjectStore(ScriptExecutionContext&, const IDBObjectStoreInfo&, IDBTransaction&);
</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<IDBRequest> putOrAdd(JSC::ExecState&, JSC::JSValue, RefPtr<IDBKey>, IndexedDB::ObjectStoreOverwriteMode, InlineKeyCheck, ExceptionCodeWithMessage&);
</span><span class="cx"> RefPtr<WebCore::IDBRequest> doCount(ScriptExecutionContext&, const IDBKeyRangeData&, ExceptionCodeWithMessage&);
</span><del>- RefPtr<IDBRequest> doDelete(ScriptExecutionContext* context, IDBKeyRange* keyRange, ExceptionCodeWithMessage& ec);
</del><ins>+ RefPtr<IDBRequest> doDelete(ScriptExecutionContext&, IDBKeyRange*, ExceptionCodeWithMessage&);
</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<IDBOpenDBRequest> IDBOpenDBRequest::createDeleteRequest(IDBConnectionToServer& connection, ScriptExecutionContext* context, const IDBDatabaseIdentifier& databaseIdentifier)
</del><ins>+Ref<IDBOpenDBRequest> IDBOpenDBRequest::createDeleteRequest(IDBConnectionToServer& connection, ScriptExecutionContext& context, const IDBDatabaseIdentifier& 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<IDBOpenDBRequest> IDBOpenDBRequest::createOpenRequest(IDBConnectionToServer& connection, ScriptExecutionContext* context, const IDBDatabaseIdentifier& databaseIdentifier, uint64_t version)
</del><ins>+Ref<IDBOpenDBRequest> IDBOpenDBRequest::createOpenRequest(IDBConnectionToServer& connection, ScriptExecutionContext& context, const IDBDatabaseIdentifier& 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& connection, ScriptExecutionContext* context, const IDBDatabaseIdentifier& databaseIdentifier, uint64_t version, IndexedDB::RequestType requestType)
</del><ins>+IDBOpenDBRequest::IDBOpenDBRequest(IDBConnectionToServer& connection, ScriptExecutionContext& context, const IDBDatabaseIdentifier& 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<IDBOpenDBRequest> createDeleteRequest(IDBConnectionToServer&, ScriptExecutionContext*, const IDBDatabaseIdentifier&);
- static Ref<IDBOpenDBRequest> createOpenRequest(IDBConnectionToServer&, ScriptExecutionContext*, const IDBDatabaseIdentifier&, uint64_t version);
</del><ins>+ static Ref<IDBOpenDBRequest> createDeleteRequest(IDBConnectionToServer&, ScriptExecutionContext&, const IDBDatabaseIdentifier&);
+ static Ref<IDBOpenDBRequest> createOpenRequest(IDBConnectionToServer&, ScriptExecutionContext&, const IDBDatabaseIdentifier&, 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&) final;
</span><span class="cx">
</span><span class="cx"> private:
</span><del>- IDBOpenDBRequest(IDBConnectionToServer&, ScriptExecutionContext*, const IDBDatabaseIdentifier&, uint64_t version, IndexedDB::RequestType);
</del><ins>+ IDBOpenDBRequest(IDBConnectionToServer&, ScriptExecutionContext&, const IDBDatabaseIdentifier&, uint64_t version, IndexedDB::RequestType);
</ins><span class="cx">
</span><span class="cx"> void onError(const IDBResultData&);
</span><span class="cx"> void onSuccess(const IDBResultData&);
</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& connection, ScriptExecutionContext* context)
</del><ins>+IDBRequest::IDBRequest(IDBConnectionToServer& connection, ScriptExecutionContext& 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& context, IDBObjectStore& objectStore, IDBTransaction& transaction)
</span><del>- : IDBOpenDBRequest(&context)
</del><ins>+ : IDBOpenDBRequest(context)
</ins><span class="cx"> , m_transaction(&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& context, IDBCursor& cursor, IDBTransaction& transaction)
</span><del>- : IDBOpenDBRequest(&context)
</del><ins>+ : IDBOpenDBRequest(context)
</ins><span class="cx"> , m_transaction(&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& context, IDBIndex& index, IDBTransaction& transaction)
</span><del>- : IDBOpenDBRequest(&context)
</del><ins>+ : IDBOpenDBRequest(context)
</ins><span class="cx"> , m_transaction(&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&, ScriptExecutionContext*);
</del><ins>+ IDBRequest(IDBConnectionToServer&, ScriptExecutionContext&);
</ins><span class="cx"> IDBRequest(ScriptExecutionContext&, IDBObjectStore&, IDBTransaction&);
</span><span class="cx"> IDBRequest(ScriptExecutionContext&, IDBCursor&, IDBTransaction&);
</span><span class="cx"> IDBRequest(ScriptExecutionContext&, IDBIndex&, IDBTransaction&);
</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, &objectStore.get());
</span><span class="cx">
</span><span class="cx"> return adoptRef(&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<IDBObjectStore> objectStore = IDBObjectStore::create(scriptExecutionContext(), info, *this);
</del><ins>+ Ref<IDBObjectStore> objectStore = IDBObjectStore::create(*scriptExecutionContext(), info, *this);
</ins><span class="cx"> m_referencedObjectStores.set(info.name(), &objectStore.get());
</span><span class="cx">
</span><span class="cx"> auto operation = createTransactionOperation(*this, &IDBTransaction::didCreateObjectStoreOnServer, &IDBTransaction::createObjectStoreOnServer, info);
</span><span class="lines">@@ -509,7 +509,7 @@
</span><span class="cx"> auto operation = createTransactionOperation(*this, &IDBTransaction::didCreateIndexOnServer, &IDBTransaction::createIndexOnServer, info);
</span><span class="cx"> scheduleOperation(WTFMove(operation));
</span><span class="cx">
</span><del>- return std::make_unique<IDBIndex>(scriptExecutionContext(), info, objectStore);
</del><ins>+ return std::make_unique<IDBIndex>(*scriptExecutionContext(), info, objectStore);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void IDBTransaction::createIndexOnServer(TransactionOperation& operation, const IDBIndexInfo& 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& 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&, 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& 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&, 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& mediaElement, MediaStream* mediaStream)
</del><ins>+void HTMLMediaElementMediaStream::setSrcObject(ScriptExecutionContext& context, HTMLMediaElement& 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) && ENABLE(VIDEO)
</span><span class="cx">
</span><del>-#include <wtf/PassRefPtr.h>
-
</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&);
</span><del>- static void setSrcObject(HTMLMediaElement&, MediaStream*);
</del><ins>+ static void setSrcObject(ScriptExecutionContext&, HTMLMediaElement&, 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) && (!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& title, const String& body, const String& iconURI, ScriptExecutionContext* context, ExceptionCode& ec, PassRefPtr<NotificationCenter> provider)
- : ActiveDOMObject(context)
</del><ins>+Notification::Notification(const String& title, const String& body, const String& iconURI, ScriptExecutionContext& context, ExceptionCode& ec, PassRefPtr<NotificationCenter> provider)
+ : ActiveDOMObject(&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<Notification> Notification::create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext* context, ExceptionCode& ec, PassRefPtr<NotificationCenter> provider)
</del><ins>+Ref<Notification> Notification::create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext& context, ExceptionCode& ec, PassRefPtr<NotificationCenter> 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& context)
</ins><span class="cx"> {
</span><del>- ASSERT(downcast<Document>(*context).page());
- return permissionString(NotificationController::from(downcast<Document>(*context).page())->client()->checkPermission(context));
</del><ins>+ ASSERT(downcast<Document>(context).page());
+ return permissionString(NotificationController::from(downcast<Document>(context).page())->client()->checkPermission(&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<NotificationPermissionCallback> callback)
</del><ins>+void Notification::requestPermission(ScriptExecutionContext& context, PassRefPtr<NotificationPermissionCallback> callback)
</ins><span class="cx"> {
</span><del>- ASSERT(downcast<Document>(*context).page());
- NotificationController::from(downcast<Document>(*context).page())->client()->requestPermission(context, callback);
</del><ins>+ ASSERT(downcast<Document>(context).page());
+ NotificationController::from(downcast<Document>(context).page())->client()->requestPermission(&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<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter> provider);
</del><ins>+ static Ref<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext&, ExceptionCode&, PassRefPtr<NotificationCenter> provider);
</ins><span class="cx"> #endif
</span><span class="cx"> #if ENABLE(NOTIFICATIONS)
</span><span class="cx"> static Ref<Notification> create(Document&, const String& title, const Dictionary& 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&);
</ins><span class="cx"> WEBCORE_EXPORT static const String permissionString(NotificationClient::Permission);
</span><del>- static void requestPermission(ScriptExecutionContext*, PassRefPtr<NotificationPermissionCallback> = nullptr);
</del><ins>+ static void requestPermission(ScriptExecutionContext&, PassRefPtr<NotificationPermissionCallback> = 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& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter>);
</del><ins>+ Notification(const String& title, const String& body, const String& iconURI, ScriptExecutionContext&, ExceptionCode&, PassRefPtr<NotificationCenter>);
</ins><span class="cx"> #endif
</span><span class="cx"> #if ENABLE(NOTIFICATIONS)
</span><span class="cx"> Notification(ScriptExecutionContext&, const String& 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<Notification> NotificationCenter::createNotification(const String& iconURI, const String& title, const String& body, ExceptionCode& 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<StorageUsageCallback> successCallback, PassRefPtr<StorageErrorCallback> errorCallback)
</del><ins>+void StorageInfo::queryUsageAndQuota(ScriptExecutionContext& scriptExecutionContext, int storageType, PassRefPtr<StorageUsageCallback> successCallback, PassRefPtr<StorageErrorCallback> 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->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<StorageQuotaCallback> successCallback, PassRefPtr<StorageErrorCallback> errorCallback)
</del><ins>+void StorageInfo::requestQuota(ScriptExecutionContext& scriptExecutionContext, int storageType, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback> successCallback, PassRefPtr<StorageErrorCallback> 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<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>);
</del><ins>+ void queryUsageAndQuota(ScriptExecutionContext&, int storageType, PassRefPtr<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>);
</ins><span class="cx">
</span><del>- void requestQuota(ScriptExecutionContext*, int storageType, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>);
</del><ins>+ void requestQuota(ScriptExecutionContext&, int storageType, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>);
</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<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>);
</del><ins>+ void queryUsageAndQuota(ScriptExecutionContext&, PassRefPtr<StorageUsageCallback>, PassRefPtr<StorageErrorCallback>);
</ins><span class="cx">
</span><del>- void requestQuota(ScriptExecutionContext*, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>);
</del><ins>+ void requestQuota(ScriptExecutionContext&, unsigned long long newQuotaInBytes, PassRefPtr<StorageQuotaCallback>, PassRefPtr<StorageErrorCallback>);
</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(&state, globalObject(), wrapped().createIndex(context, name, keyPath, unique, multiEntry, ec).get());
</del><ins>+ JSValue result = toJS(&state, globalObject(), wrapped().createIndex(*context, name, keyPath, unique, multiEntry, ec).get());
</ins><span class="cx"> setDOMException(&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, " auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();\n");
</span><span class="cx"> push(@$outputArray, " if (!scriptContext)\n");
</span><span class="cx"> push(@$outputArray, " return" . ($returnValue ? " " . $returnValue : "") . ";\n");
</span><del>- push(@callWithArgs, "scriptContext");
</del><ins>+ push(@callWithArgs, "*scriptContext");
</ins><span class="cx"> }
</span><span class="cx"> if ($function and $codeGenerator->ExtendedAttributeContains($callWith, "ScriptArguments")) {
</span><span class="cx"> push(@$outputArray, " RefPtr<Inspector::ScriptArguments> scriptArguments(Inspector::createScriptArguments(state, " . @{$function->parameters} . "));\n");
</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->argument(1));
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.implementsMethod2(scriptContext, strArg, objArg, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->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->argument(1));
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(WebCore::TestSupplemental::supplementalMethod2(impl, scriptContext, strArg, objArg, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->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& impl = castedThis->wrapped();
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttribute(scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->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& impl = castedThis->wrapped();
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAttributeRaises(scriptContext, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->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& impl = castedThis->wrapped();
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttribute(*state, scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->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& impl = castedThis->wrapped();
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateAttributeRaises(*state, scriptContext, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->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& impl = castedThis->wrapped();
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpacesAttribute(*state, scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->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<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateObjException(*state, scriptContext, ec)));
</del><ins>+ JSValue result = toJS(state, castedThis->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->hadException()))
</span><span class="lines">@@ -3754,7 +3754,7 @@
</span><span class="cx"> auto* scriptContext = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!scriptContext)
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><del>- JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(*state, scriptContext)));
</del><ins>+ JSValue result = toJS(state, castedThis->globalObject(), WTF::getPtr(impl.withScriptExecutionContextAndScriptStateWithSpaces(*state, *scriptContext)));
</ins><span class="cx"> if (UNLIKELY(state->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<ArrayBuffer> FileReaderSync::readAsArrayBuffer(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode& ec)
</del><ins>+RefPtr<ArrayBuffer> FileReaderSync::readAsArrayBuffer(ScriptExecutionContext& scriptExecutionContext, Blob* blob, ExceptionCode& 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& ec)
</del><ins>+String FileReaderSync::readAsBinaryString(ScriptExecutionContext& scriptExecutionContext, Blob* blob, ExceptionCode& 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& encoding, ExceptionCode& ec)
</del><ins>+String FileReaderSync::readAsText(ScriptExecutionContext& scriptExecutionContext, Blob* blob, const String& encoding, ExceptionCode& 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& ec)
</del><ins>+String FileReaderSync::readAsDataURL(ScriptExecutionContext& scriptExecutionContext, Blob* blob, ExceptionCode& 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& loader, Blob* blob, ExceptionCode& ec)
</del><ins>+void FileReaderSync::startLoading(ScriptExecutionContext& scriptExecutionContext, FileReaderLoader& loader, Blob* blob, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- loader.start(scriptExecutionContext, blob);
</del><ins>+ loader.start(&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<JSC::ArrayBuffer> readAsArrayBuffer(ScriptExecutionContext*, Blob*, ExceptionCode&);
- String readAsBinaryString(ScriptExecutionContext*, Blob*, ExceptionCode&);
- String readAsText(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode& ec)
</del><ins>+ RefPtr<JSC::ArrayBuffer> readAsArrayBuffer(ScriptExecutionContext&, Blob*, ExceptionCode&);
+ String readAsBinaryString(ScriptExecutionContext&, Blob*, ExceptionCode&);
+ String readAsText(ScriptExecutionContext& scriptExecutionContext, Blob* blob, ExceptionCode& ec)
</ins><span class="cx"> {
</span><del>- return readAsText(scriptExecutionContext, blob, "", ec);
</del><ins>+ return readAsText(scriptExecutionContext, blob, emptyString(), ec);
</ins><span class="cx"> }
</span><del>- String readAsText(ScriptExecutionContext*, Blob*, const String& encoding, ExceptionCode&);
- String readAsDataURL(ScriptExecutionContext*, Blob*, ExceptionCode&);
</del><ins>+ String readAsText(ScriptExecutionContext&, Blob*, const String& encoding, ExceptionCode&);
+ String readAsDataURL(ScriptExecutionContext&, Blob*, ExceptionCode&);
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> FileReaderSync();
</span><span class="cx">
</span><del>- void startLoading(ScriptExecutionContext*, FileReaderLoader&, Blob*, ExceptionCode&);
</del><ins>+ void startLoading(ScriptExecutionContext&, FileReaderLoader&, Blob*, ExceptionCode&);
</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& 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& scriptExecutionContext, URLRegistrable* registrable)
</ins><span class="cx"> {
</span><del>- URL publicURL = BlobURL::createPublicURL(scriptExecutionContext->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->publicURLManager().registerURL(scriptExecutionContext->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& urlString)
</del><ins>+void DOMURL::revokeObjectURL(ScriptExecutionContext& scriptExecutionContext, const String& 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->topOrigin()->domainForCachePartition());
</del><ins>+ request.setDomainForCachePartition(scriptExecutionContext.topOrigin()->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->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& url);
</span><span class="cx"> void setHref(const String&, ExceptionCode&);
</span><span class="cx">
</span><del>- static String createObjectURL(ScriptExecutionContext*, Blob*);
- static void revokeObjectURL(ScriptExecutionContext*, const String&);
</del><ins>+ static String createObjectURL(ScriptExecutionContext&, Blob*);
+ static void revokeObjectURL(ScriptExecutionContext&, const String&);
</ins><span class="cx">
</span><del>- static String createPublicURL(ScriptExecutionContext*, URLRegistrable*);
</del><ins>+ static String createPublicURL(ScriptExecutionContext&, URLRegistrable*);
</ins><span class="cx">
</span><span class="cx"> private:
</span><span class="cx"> DOMURL(const String& url, const String& base, ExceptionCode&);
</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& 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&, 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<OpenDatabaseCallback> callback = OpenDatabaseCallback::create(this);
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- RefPtr<IDBOpenDBRequest> idbOpenDBRequest = idbFactory->open(context(), databaseName, ec);
</del><ins>+
+ if (!context()) {
+ requestCallback().sendFailure("Could not open database.");
+ return;
+ }
+
+ RefPtr<IDBOpenDBRequest> idbOpenDBRequest = idbFactory->open(*context(), databaseName, ec);
</ins><span class="cx"> if (ec) {
</span><span class="cx"> requestCallback().sendFailure("Could not open database.");
</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<IDBRequest> idbRequest = idbFactory->getDatabaseNames(document, ec);
</del><ins>+ RefPtr<IDBRequest> idbRequest = idbFactory->getDatabaseNames(*document, ec);
</ins><span class="cx"> if (!idbRequest || ec) {
</span><span class="cx"> requestCallback->sendFailure("Could not obtain database names.");
</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& context) { focus(&context); }
</ins><span class="cx"> void blur();
</span><span class="cx"> WEBCORE_EXPORT void close(ScriptExecutionContext* = nullptr);
</span><ins>+ void close(ScriptExecutionContext& context) { close(&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& context) { back(&context); }
+ void forward(ScriptExecutionContext& context) { forward(&context); }
+ void go(ScriptExecutionContext& context, int distance) { go(&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>