summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/ContextDestructionObserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/ContextDestructionObserver.cpp')
-rw-r--r--Source/WebCore/dom/ContextDestructionObserver.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/dom/ContextDestructionObserver.cpp b/Source/WebCore/dom/ContextDestructionObserver.cpp
index a557dc7c0..a3339180e 100644
--- a/Source/WebCore/dom/ContextDestructionObserver.cpp
+++ b/Source/WebCore/dom/ContextDestructionObserver.cpp
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -32,34 +32,34 @@
namespace WebCore {
ContextDestructionObserver::ContextDestructionObserver(ScriptExecutionContext* scriptExecutionContext)
- : m_scriptExecutionContext(0)
+ : m_scriptExecutionContext(nullptr)
{
observeContext(scriptExecutionContext);
}
ContextDestructionObserver::~ContextDestructionObserver()
{
- observeContext(0);
+ observeContext(nullptr);
}
void ContextDestructionObserver::observeContext(ScriptExecutionContext* scriptExecutionContext)
{
if (m_scriptExecutionContext) {
ASSERT(m_scriptExecutionContext->isContextThread());
- m_scriptExecutionContext->willDestroyDestructionObserver(this);
+ m_scriptExecutionContext->willDestroyDestructionObserver(*this);
}
m_scriptExecutionContext = scriptExecutionContext;
if (m_scriptExecutionContext) {
ASSERT(m_scriptExecutionContext->isContextThread());
- m_scriptExecutionContext->didCreateDestructionObserver(this);
+ m_scriptExecutionContext->didCreateDestructionObserver(*this);
}
}
void ContextDestructionObserver::contextDestroyed()
{
- m_scriptExecutionContext = 0;
+ m_scriptExecutionContext = nullptr;
}
} // namespace WebCore