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

Side by Side Diff: Source/core/timing/Performance.cpp

Issue 131113003: Fix DOMWindow::isCurrentlyDisplayedInFrame to return false when detached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ScreenOrientation + test window.open. Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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 30 matching lines...) Expand all
41 #include "platform/weborigin/SecurityOrigin.h" 41 #include "platform/weborigin/SecurityOrigin.h"
42 #include "wtf/CurrentTime.h" 42 #include "wtf/CurrentTime.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 static const size_t defaultResourceTimingBufferSize = 150; 46 static const size_t defaultResourceTimingBufferSize = 150;
47 47
48 Performance::Performance(LocalFrame* frame) 48 Performance::Performance(LocalFrame* frame)
49 : DOMWindowProperty(frame) 49 : DOMWindowProperty(frame)
50 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize) 50 , m_resourceTimingBufferSize(defaultResourceTimingBufferSize)
51 , m_referenceTime(frame->document()->loader()->timing()->referenceMonotonicT ime()) 51 , m_referenceTime(frame->host() ? frame->document()->loader()->timing()->ref erenceMonotonicTime() : 0.0)
52 , m_userTiming(nullptr) 52 , m_userTiming(nullptr)
53 { 53 {
54 ASSERT(m_referenceTime);
55 ScriptWrappable::init(this); 54 ScriptWrappable::init(this);
56 } 55 }
57 56
58 Performance::~Performance() 57 Performance::~Performance()
59 { 58 {
60 } 59 }
61 60
62 const AtomicString& Performance::interfaceName() const 61 const AtomicString& Performance::interfaceName() const
63 { 62 {
64 return EventTargetNames::Performance; 63 return EventTargetNames::Performance;
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 277
279 void Performance::trace(Visitor* visitor) 278 void Performance::trace(Visitor* visitor)
280 { 279 {
281 visitor->trace(m_navigation); 280 visitor->trace(m_navigation);
282 visitor->trace(m_timing); 281 visitor->trace(m_timing);
283 visitor->trace(m_resourceTimingBuffer); 282 visitor->trace(m_resourceTimingBuffer);
284 visitor->trace(m_userTiming); 283 visitor->trace(m_userTiming);
285 } 284 }
286 285
287 } // namespace WebCore 286 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698