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()) |
{ |
} |