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

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

Issue 2615633011: Remove ContextClient from DOMWindowPerformance (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/timing/DOMWindowPerformance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/timing/DOMWindowPerformance.cpp
diff --git a/third_party/WebKit/Source/core/timing/DOMWindowPerformance.cpp b/third_party/WebKit/Source/core/timing/DOMWindowPerformance.cpp
index 99455c94ddc8b6f481f9ccba3054696a64bde4e1..180b4846e5af8bdbc40f002b78862273ecd504f7 100644
--- a/third_party/WebKit/Source/core/timing/DOMWindowPerformance.cpp
+++ b/third_party/WebKit/Source/core/timing/DOMWindowPerformance.cpp
@@ -11,13 +11,11 @@
namespace blink {
DOMWindowPerformance::DOMWindowPerformance(LocalDOMWindow& window)
- : ContextClient(window.frame()), m_window(&window) {}
+ : Supplement<LocalDOMWindow>(window) {}
DEFINE_TRACE(DOMWindowPerformance) {
- visitor->trace(m_window);
visitor->trace(m_performance);
Supplement<LocalDOMWindow>::trace(visitor);
- ContextClient::trace(visitor);
}
// static
@@ -43,7 +41,7 @@ Performance* DOMWindowPerformance::performance(DOMWindow& window) {
Performance* DOMWindowPerformance::performance() {
if (!m_performance)
- m_performance = Performance::create(m_window->frame());
+ m_performance = Performance::create(host()->frame());
return m_performance.get();
}
« no previous file with comments | « third_party/WebKit/Source/core/timing/DOMWindowPerformance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698