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

Unified Diff: Source/core/timing/PerformanceTiming.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/PerformanceTiming.cpp
diff --git a/Source/core/timing/PerformanceTiming.cpp b/Source/core/timing/PerformanceTiming.cpp
index e436f4ad047d6b99376699b1dccb0ca6cad74c0f..60d9b68fe18656143dae9d33e23bf329f838f7bf 100644
--- a/Source/core/timing/PerformanceTiming.cpp
+++ b/Source/core/timing/PerformanceTiming.cpp
@@ -308,18 +308,18 @@ unsigned long long PerformanceTiming::loadEventEnd() const
DocumentLoader* PerformanceTiming::documentLoader() const
{
- if (!m_frame)
+ if (!localFrame())
return nullptr;
- return m_frame->loader().documentLoader();
+ return localFrame()->loader().documentLoader();
}
const DocumentTiming* PerformanceTiming::documentTiming() const
{
- if (!m_frame)
+ if (!localFrame())
return nullptr;
- Document* document = m_frame->document();
+ Document* document = localFrame()->document();
if (!document)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698