Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: third_party/WebKit/Source/core/dom/DOMStringList.cpp

Issue 2616923002: Replace [CallWith=ExecutionContext] with [CallWith=ScriptState] (Closed)
Patch Set: Fix errors Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DOMStringList.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMStringList.cpp b/third_party/WebKit/Source/core/dom/DOMStringList.cpp
index 4350e60bb53631d3e4391f4a8daa0a02163112ca..de258f53c15539d630dfba988519861cb11abc13 100644
--- a/third_party/WebKit/Source/core/dom/DOMStringList.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMStringList.cpp
@@ -25,7 +25,7 @@
#include "core/dom/DOMStringList.h"
-#include "core/dom/ExecutionContext.h"
+#include "bindings/core/v8/ScriptState.h"
#include "core/frame/UseCounter.h"
#include <algorithm>
@@ -37,15 +37,17 @@ String DOMStringList::anonymousIndexedGetter(unsigned index) const {
return m_strings[index];
}
-String DOMStringList::item(ExecutionContext* context, unsigned index) const {
+String DOMStringList::item(ScriptState* scriptState, unsigned index) const {
switch (m_source) {
case DOMStringList::IndexedDB:
UseCounter::count(
- context, UseCounter::DOMStringList_Item_AttributeGetter_IndexedDB);
+ scriptState->getExecutionContext(),
+ UseCounter::DOMStringList_Item_AttributeGetter_IndexedDB);
break;
case DOMStringList::Location:
UseCounter::count(
- context, UseCounter::DOMStringList_Item_AttributeGetter_Location);
+ scriptState->getExecutionContext(),
+ UseCounter::DOMStringList_Item_AttributeGetter_Location);
break;
default:
NOTREACHED();
@@ -54,15 +56,15 @@ String DOMStringList::item(ExecutionContext* context, unsigned index) const {
return anonymousIndexedGetter(index);
}
-bool DOMStringList::contains(ExecutionContext* context,
+bool DOMStringList::contains(ScriptState* scriptState,
const String& string) const {
switch (m_source) {
case DOMStringList::IndexedDB:
- UseCounter::count(context,
+ UseCounter::count(scriptState->getExecutionContext(),
UseCounter::DOMStringList_Contains_Method_IndexedDB);
break;
case DOMStringList::Location:
- UseCounter::count(context,
+ UseCounter::count(scriptState->getExecutionContext(),
UseCounter::DOMStringList_Contains_Method_Location);
break;
default:
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMStringList.h ('k') | third_party/WebKit/Source/core/dom/DOMStringList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698