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

Side by Side Diff: Source/web/WebLeakDetector.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 32
33 #include "public/web/WebLeakDetector.h" 33 #include "public/web/WebLeakDetector.h"
34 34
35 #include "bindings/core/v8/V8Binding.h" 35 #include "bindings/core/v8/V8Binding.h"
36 #include "bindings/core/v8/V8GCController.h" 36 #include "bindings/core/v8/V8GCController.h"
37 #include "core/dom/Document.h" 37 #include "core/dom/Document.h"
38 #include "core/fetch/MemoryCache.h" 38 #include "core/fetch/MemoryCache.h"
39 #include "core/fetch/ResourceFetcher.h" 39 #include "core/fetch/ResourceFetcher.h"
40 #include "core/inspector/InspectorCounters.h" 40 #include "core/inspector/InspectorCounters.h"
41 #include "core/rendering/RenderObject.h" 41 #include "core/layout/LayoutObject.h"
42 #include "modules/webaudio/AudioNode.h" 42 #include "modules/webaudio/AudioNode.h"
43 #include "platform/Timer.h" 43 #include "platform/Timer.h"
44 #include "public/web/WebDocument.h" 44 #include "public/web/WebDocument.h"
45 #include "public/web/WebLocalFrame.h" 45 #include "public/web/WebLocalFrame.h"
46 #include "web/WebEmbeddedWorkerImpl.h" 46 #include "web/WebEmbeddedWorkerImpl.h"
47 47
48 #include <v8.h> 48 #include <v8.h>
49 49
50 namespace blink { 50 namespace blink {
51 51
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 void WebLeakDetectorImpl::delayedReport(Timer<WebLeakDetectorImpl>*) 126 void WebLeakDetectorImpl::delayedReport(Timer<WebLeakDetectorImpl>*)
127 { 127 {
128 ASSERT(m_client); 128 ASSERT(m_client);
129 129
130 WebLeakDetectorClient::Result result; 130 WebLeakDetectorClient::Result result;
131 result.numberOfLiveAudioNodes = AudioNode::instanceCount(); 131 result.numberOfLiveAudioNodes = AudioNode::instanceCount();
132 result.numberOfLiveDocuments = InspectorCounters::counterValue(InspectorCoun ters::DocumentCounter); 132 result.numberOfLiveDocuments = InspectorCounters::counterValue(InspectorCoun ters::DocumentCounter);
133 result.numberOfLiveNodes = InspectorCounters::counterValue(InspectorCounters ::NodeCounter); 133 result.numberOfLiveNodes = InspectorCounters::counterValue(InspectorCounters ::NodeCounter);
134 result.numberOfLiveRenderObjects = RenderObject::instanceCount(); 134 result.numberOfLiveLayoutObjects = LayoutObject::instanceCount();
135 result.numberOfLiveRenderObjects = result.numberOfLiveLayoutObjects;
135 result.numberOfLiveResources = Resource::instanceCount(); 136 result.numberOfLiveResources = Resource::instanceCount();
136 137
137 m_client->onLeakDetectionComplete(result); 138 m_client->onLeakDetectionComplete(result);
138 139
139 #ifndef NDEBUG 140 #ifndef NDEBUG
140 showLiveDocumentInstances(); 141 showLiveDocumentInstances();
141 #endif 142 #endif
142 } 143 }
143 144
144 } // namespace 145 } // namespace
145 146
146 WebLeakDetector* WebLeakDetector::create(WebLeakDetectorClient* client) 147 WebLeakDetector* WebLeakDetector::create(WebLeakDetectorClient* client)
147 { 148 {
148 return new WebLeakDetectorImpl(client); 149 return new WebLeakDetectorImpl(client);
149 } 150 }
150 151
151 } // namespace blink 152 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698