| Index: Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp
|
| diff --git a/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp b/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp
|
| index b4fbfa45f0dd6907e76f0d24b90dfaabe1ce53a5..1ebe70cccea9d159214b5c6b9d57a3e3cbfe473d 100644
|
| --- a/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp
|
| +++ b/Source/bindings/core/v8/V8CustomElementLifecycleCallbacks.cpp
|
| @@ -158,7 +158,7 @@ void V8CustomElementLifecycleCallbacks::created(Element* element)
|
|
|
| element->setCustomElementState(Element::Upgraded);
|
|
|
| - if (m_scriptState->contextIsEmpty())
|
| + if (m_scriptState->contextIsValue())
|
| return;
|
| ScriptState::Scope scope(m_scriptState.get());
|
| v8::Isolate* isolate = m_scriptState->isolate();
|
| @@ -208,7 +208,7 @@ void V8CustomElementLifecycleCallbacks::attributeChanged(Element* element, const
|
| if (!executionContext() || executionContext()->activeDOMObjectsAreStopped())
|
| return;
|
|
|
| - if (m_scriptState->contextIsEmpty())
|
| + if (m_scriptState->contextIsValue())
|
| return;
|
| ScriptState::Scope scope(m_scriptState.get());
|
| v8::Isolate* isolate = m_scriptState->isolate();
|
| @@ -241,7 +241,7 @@ void V8CustomElementLifecycleCallbacks::call(const ScopedPersistent<v8::Function
|
| if (!executionContext() || executionContext()->activeDOMObjectsAreStopped())
|
| return;
|
|
|
| - if (m_scriptState->contextIsEmpty())
|
| + if (m_scriptState->contextIsValue())
|
| return;
|
| ScriptState::Scope scope(m_scriptState.get());
|
| v8::Isolate* isolate = m_scriptState->isolate();
|
|
|