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