| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |