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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceTiming.cpp

Issue 2375873003: Make DOMWindowProperty::m_frame private (Closed)
Patch Set: Created 4 years, 3 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: third_party/WebKit/Source/core/timing/PerformanceTiming.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp b/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp
index 3f69103354fed58b841b57922aac65a9d74583bc..bbcbb4e124e160b11d1f36a1ec09b3ec3fd1cbaf 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceTiming.cpp
@@ -426,18 +426,18 @@ unsigned long long PerformanceTiming::parseBlockedOnScriptExecutionFromDocumentW
DocumentLoader* PerformanceTiming::documentLoader() const
{
- if (!m_frame)
+ if (!frame())
return nullptr;
- return m_frame->loader().documentLoader();
+ return frame()->loader().documentLoader();
}
const DocumentTiming* PerformanceTiming::documentTiming() const
{
- if (!m_frame)
+ if (!frame())
return nullptr;
- Document* document = m_frame->document();
+ Document* document = frame()->document();
if (!document)
return nullptr;
@@ -446,10 +446,10 @@ const DocumentTiming* PerformanceTiming::documentTiming() const
const PaintTiming* PerformanceTiming::paintTiming() const
{
- if (!m_frame)
+ if (!frame())
return nullptr;
- Document* document = m_frame->document();
+ Document* document = frame()->document();
if (!document)
return nullptr;
@@ -458,10 +458,10 @@ const PaintTiming* PerformanceTiming::paintTiming() const
const DocumentParserTiming* PerformanceTiming::documentParserTiming() const
{
- if (!m_frame)
+ if (!frame())
return nullptr;
- Document* document = m_frame->document();
+ Document* document = frame()->document();
if (!document)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698