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

Side by Side Diff: third_party/WebKit/Source/core/timing/DOMWindowPerformance.cpp

Issue 2630703002: Rename Supplement::host() to Supplement::supplementable() (Closed)
Patch Set: temp 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/timing/DOMWindowPerformance.h" 5 #include "core/timing/DOMWindowPerformance.h"
6 6
7 #include "core/frame/LocalDOMWindow.h" 7 #include "core/frame/LocalDOMWindow.h"
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/timing/Performance.h" 9 #include "core/timing/Performance.h"
10 10
(...skipping 23 matching lines...) Expand all
34 return *supplement; 34 return *supplement;
35 } 35 }
36 36
37 // static 37 // static
38 Performance* DOMWindowPerformance::performance(DOMWindow& window) { 38 Performance* DOMWindowPerformance::performance(DOMWindow& window) {
39 return from(toLocalDOMWindow(window)).performance(); 39 return from(toLocalDOMWindow(window)).performance();
40 } 40 }
41 41
42 Performance* DOMWindowPerformance::performance() { 42 Performance* DOMWindowPerformance::performance() {
43 if (!m_performance) 43 if (!m_performance)
44 m_performance = Performance::create(host()->frame()); 44 m_performance = Performance::create(supplementable()->frame());
45 return m_performance.get(); 45 return m_performance.get();
46 } 46 }
47 47
48 } // namespace blink 48 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintTiming.cpp ('k') | third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698