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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } | 209 } |
210 | 210 |
211 void didInvalidateStyleAttrImpl(InstrumentingAgents* instrumentingAgents, Node*
node) | 211 void didInvalidateStyleAttrImpl(InstrumentingAgents* instrumentingAgents, Node*
node) |
212 { | 212 { |
213 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent()) | 213 if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent()) |
214 domAgent->didInvalidateStyleAttr(node); | 214 domAgent->didInvalidateStyleAttr(node); |
215 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspe
ctorDOMDebuggerAgent()) | 215 if (InspectorDOMDebuggerAgent* domDebuggerAgent = instrumentingAgents->inspe
ctorDOMDebuggerAgent()) |
216 domDebuggerAgent->didInvalidateStyleAttr(node); | 216 domDebuggerAgent->didInvalidateStyleAttr(node); |
217 } | 217 } |
218 | 218 |
219 void activeStyleSheetsUpdatedImpl(InstrumentingAgents* instrumentingAgents, cons
t Vector<RefPtr<StyleSheet> >& newSheets) | 219 void activeStyleSheetsUpdatedImpl(InstrumentingAgents* instrumentingAgents, Docu
ment* document, const Vector<RefPtr<StyleSheet> >& newSheets) |
220 { | 220 { |
221 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent()) | 221 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent()) |
222 cssAgent->activeStyleSheetsUpdated(newSheets); | 222 cssAgent->activeStyleSheetsUpdated(document, newSheets); |
223 } | 223 } |
224 | 224 |
225 void frameWindowDiscardedImpl(InstrumentingAgents* instrumentingAgents, DOMWindo
w* window) | 225 void frameWindowDiscardedImpl(InstrumentingAgents* instrumentingAgents, DOMWindo
w* window) |
226 { | 226 { |
227 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorCons
oleAgent()) | 227 if (InspectorConsoleAgent* consoleAgent = instrumentingAgents->inspectorCons
oleAgent()) |
228 consoleAgent->frameWindowDiscarded(window); | 228 consoleAgent->frameWindowDiscarded(window); |
229 } | 229 } |
230 | 230 |
231 void mediaQueryResultChangedImpl(InstrumentingAgents* instrumentingAgents) | 231 void mediaQueryResultChangedImpl(InstrumentingAgents* instrumentingAgents) |
232 { | 232 { |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent(
)) | 842 if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent(
)) |
843 pageAgent->loadEventFired(); | 843 pageAgent->loadEventFired(); |
844 } | 844 } |
845 | 845 |
846 void frameDetachedFromParentImpl(InstrumentingAgents* instrumentingAgents, Frame
* frame) | 846 void frameDetachedFromParentImpl(InstrumentingAgents* instrumentingAgents, Frame
* frame) |
847 { | 847 { |
848 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvas
Agent()) | 848 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvas
Agent()) |
849 canvasAgent->frameDetachedFromParent(frame); | 849 canvasAgent->frameDetachedFromParent(frame); |
850 if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent(
)) | 850 if (InspectorPageAgent* pageAgent = instrumentingAgents->inspectorPageAgent(
)) |
851 pageAgent->frameDetachedFromParent(frame); | 851 pageAgent->frameDetachedFromParent(frame); |
| 852 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent()) |
| 853 cssAgent->frameDetachedFromParent(frame); |
852 } | 854 } |
853 | 855 |
854 void didCommitLoadImpl(InstrumentingAgents* instrumentingAgents, Frame* frame, D
ocumentLoader* loader) | 856 void didCommitLoadImpl(InstrumentingAgents* instrumentingAgents, Frame* frame, D
ocumentLoader* loader) |
855 { | 857 { |
856 InspectorAgent* inspectorAgent = instrumentingAgents->inspectorAgent(); | 858 InspectorAgent* inspectorAgent = instrumentingAgents->inspectorAgent(); |
857 if (!inspectorAgent) | 859 if (!inspectorAgent) |
858 return; | 860 return; |
859 | 861 |
860 Frame* mainFrame = frame->page()->mainFrame(); | 862 Frame* mainFrame = frame->page()->mainFrame(); |
861 if (loader->frame() == mainFrame) { | 863 if (loader->frame() == mainFrame) { |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 const char BeginFrame[] = "BeginFrame"; | 1321 const char BeginFrame[] = "BeginFrame"; |
1320 }; | 1322 }; |
1321 | 1323 |
1322 namespace InstrumentationEventArguments { | 1324 namespace InstrumentationEventArguments { |
1323 const char LayerId[] = "layerId"; | 1325 const char LayerId[] = "layerId"; |
1324 const char PageId[] = "pageId"; | 1326 const char PageId[] = "pageId"; |
1325 }; | 1327 }; |
1326 | 1328 |
1327 } // namespace WebCore | 1329 } // namespace WebCore |
1328 | 1330 |
OLD | NEW |