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

Side by Side Diff: Source/core/inspector/InspectorInstrumentation.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 return frame ? frame->instrumentingAgents() : nullptr; 200 return frame ? frame->instrumentingAgents() : nullptr;
201 } 201 }
202 202
203 InstrumentingAgents* instrumentingAgentsFor(EventTarget* eventTarget) 203 InstrumentingAgents* instrumentingAgentsFor(EventTarget* eventTarget)
204 { 204 {
205 if (!eventTarget) 205 if (!eventTarget)
206 return 0; 206 return 0;
207 return instrumentingAgentsFor(eventTarget->executionContext()); 207 return instrumentingAgentsFor(eventTarget->executionContext());
208 } 208 }
209 209
210 InstrumentingAgents* instrumentingAgentsFor(RenderObject* renderer) 210 InstrumentingAgents* instrumentingAgentsFor(LayoutObject* renderer)
211 { 211 {
212 return instrumentingAgentsFor(renderer->frame()); 212 return instrumentingAgentsFor(renderer->frame());
213 } 213 }
214 214
215 InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope* workerGlobalScope ) 215 InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope* workerGlobalScope )
216 { 216 {
217 if (!workerGlobalScope) 217 if (!workerGlobalScope)
218 return 0; 218 return 0;
219 return instrumentationForWorkerGlobalScope(workerGlobalScope); 219 return instrumentationForWorkerGlobalScope(workerGlobalScope);
220 } 220 }
(...skipping 28 matching lines...) Expand all
249 249
250 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work erGlobalScope) 250 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope* work erGlobalScope)
251 { 251 {
252 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect orController()) 252 if (WorkerInspectorController* controller = workerGlobalScope->workerInspect orController())
253 return controller->m_instrumentingAgents.get(); 253 return controller->m_instrumentingAgents.get();
254 return 0; 254 return 0;
255 } 255 }
256 256
257 } // namespace blink 257 } // namespace blink
258 258
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorInstrumentation.h ('k') | Source/core/inspector/InspectorInstrumentation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698