Index: Source/core/page/Page.cpp |
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp |
index 0239888a77f891ac72d044ea40e25b210e001340..ea2f822482f35ab9b44a101fa69f87a4ffe9e325 100644 |
--- a/Source/core/page/Page.cpp |
+++ b/Source/core/page/Page.cpp |
@@ -559,7 +559,7 @@ void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitia |
setTimerAlignmentInterval(DOMTimer::visiblePageAlignmentInterval()); |
if (!isInitialState) |
- lifecycleNotifier()->notifyPageVisibilityChanged(); |
+ lifecycleNotifier().notifyPageVisibilityChanged(); |
if (!isInitialState && m_mainFrame) |
m_mainFrame->dispatchVisibilityStateChangeEvent(); |
@@ -589,14 +589,14 @@ void Page::multisamplingChanged() |
void Page::didCommitLoad(Frame* frame) |
{ |
- lifecycleNotifier()->notifyDidCommitLoad(frame); |
+ lifecycleNotifier().notifyDidCommitLoad(frame); |
if (m_mainFrame == frame) |
useCounter().didCommitLoad(); |
} |
-PageLifecycleNotifier* Page::lifecycleNotifier() |
+PageLifecycleNotifier& Page::lifecycleNotifier() |
{ |
- return static_cast<PageLifecycleNotifier*>(LifecycleContext::lifecycleNotifier()); |
+ return static_cast<PageLifecycleNotifier&>(LifecycleContext::lifecycleNotifier()); |
} |
PassOwnPtr<LifecycleNotifier<Page> > Page::createLifecycleNotifier() |