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

Unified Diff: Source/core/timing/PerformanceNavigation.cpp

Issue 879423003: Move Location to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
Index: Source/core/timing/PerformanceNavigation.cpp
diff --git a/Source/core/timing/PerformanceNavigation.cpp b/Source/core/timing/PerformanceNavigation.cpp
index c1735ceeff5fedca5ada03606a38d8d0e8f96d67..9109eb26f57b65fb933cbd20af228de66ba11f20 100644
--- a/Source/core/timing/PerformanceNavigation.cpp
+++ b/Source/core/timing/PerformanceNavigation.cpp
@@ -44,10 +44,10 @@ PerformanceNavigation::PerformanceNavigation(LocalFrame* frame)
unsigned short PerformanceNavigation::type() const
{
- if (!m_frame)
+ if (!localFrame())
return TYPE_NAVIGATE;
- DocumentLoader* documentLoader = m_frame->loader().documentLoader();
+ DocumentLoader* documentLoader = localFrame()->loader().documentLoader();
if (!documentLoader)
return TYPE_NAVIGATE;
@@ -63,10 +63,10 @@ unsigned short PerformanceNavigation::type() const
unsigned short PerformanceNavigation::redirectCount() const
{
- if (!m_frame)
+ if (!localFrame())
return 0;
- DocumentLoader* loader = m_frame->loader().documentLoader();
+ DocumentLoader* loader = localFrame()->loader().documentLoader();
if (!loader)
return 0;

Powered by Google App Engine
This is Rietveld 408576698