| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 if (!m_userTiming) | 271 if (!m_userTiming) |
| 272 m_userTiming = UserTiming::create(this); | 272 m_userTiming = UserTiming::create(this); |
| 273 m_userTiming->clearMeasures(measureName); | 273 m_userTiming->clearMeasures(measureName); |
| 274 } | 274 } |
| 275 | 275 |
| 276 double Performance::now() const | 276 double Performance::now() const |
| 277 { | 277 { |
| 278 return 1000.0 * (monotonicallyIncreasingTime() - m_referenceTime); | 278 return 1000.0 * (monotonicallyIncreasingTime() - m_referenceTime); |
| 279 } | 279 } |
| 280 | 280 |
| 281 void Performance::trace(Visitor* visitor) | 281 DEFINE_TRACE(Performance) |
| 282 { | 282 { |
| 283 visitor->trace(m_navigation); | 283 visitor->trace(m_navigation); |
| 284 visitor->trace(m_timing); | 284 visitor->trace(m_timing); |
| 285 visitor->trace(m_resourceTimingBuffer); | 285 visitor->trace(m_resourceTimingBuffer); |
| 286 visitor->trace(m_userTiming); | 286 visitor->trace(m_userTiming); |
| 287 EventTargetWithInlineData::trace(visitor); | 287 EventTargetWithInlineData::trace(visitor); |
| 288 DOMWindowProperty::trace(visitor); | 288 DOMWindowProperty::trace(visitor); |
| 289 } | 289 } |
| 290 | 290 |
| 291 } // namespace blink | 291 } // namespace blink |
| OLD | NEW |