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

Unified Diff: Source/core/testing/Internals.cpp

Issue 1215953003: Construct Internals with a ScriptState (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index bf321095d2e73f5d79dc2b8bbbd1923d808f7eb5..2edf34baabdeda4d3e90aa95a84ddd64560e6f56 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -193,9 +193,9 @@ static SpellCheckRequester* spellCheckRequester(Document* document)
const char* Internals::internalsId = "internals";
-Internals* Internals::create(Document* document)
+Internals* Internals::create(ScriptState* scriptState)
{
- return new Internals(document);
+ return new Internals(scriptState);
}
Internals::~Internals()
@@ -222,8 +222,8 @@ void Internals::resetToConsistentState(Page* page)
PlatformKeyboardEvent::setCurrentCapsLockState(PlatformKeyboardEvent::OverrideCapsLockState::Default);
}
-Internals::Internals(Document* document)
- : ContextLifecycleObserver(document)
+Internals::Internals(ScriptState* scriptState)
+ : ContextLifecycleObserver(scriptState->executionContext())
, m_runtimeFlags(InternalRuntimeFlags::create())
{
}
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698