| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 Page* page = document->page(); | 154 Page* page = document->page(); |
| 155 if (!page && document->templateDocumentHost()) | 155 if (!page && document->templateDocumentHost()) |
| 156 page = document->templateDocumentHost()->page(); | 156 page = document->templateDocumentHost()->page(); |
| 157 return instrumentingAgentsForPage(page); | 157 return instrumentingAgentsForPage(page); |
| 158 } | 158 } |
| 159 return 0; | 159 return 0; |
| 160 } | 160 } |
| 161 | 161 |
| 162 inline InstrumentingAgents* instrumentingAgentsForElement(Element* element) | 162 inline InstrumentingAgents* instrumentingAgentsForElement(Element* element) |
| 163 { | 163 { |
| 164 return element ? instrumentingAgentsForDocument(element->document()) : 0; | 164 return element ? instrumentingAgentsForDocument(&element->document()) : 0; |
| 165 } | 165 } |
| 166 | 166 |
| 167 bool cssErrorFilter(const CSSParserString& content, int propertyId, int errorTyp
e); | 167 bool cssErrorFilter(const CSSParserString& content, int propertyId, int errorTyp
e); |
| 168 | 168 |
| 169 } // namespace InspectorInstrumentation | 169 } // namespace InspectorInstrumentation |
| 170 | 170 |
| 171 InstrumentingAgents* instrumentationForPage(Page*); | 171 InstrumentingAgents* instrumentationForPage(Page*); |
| 172 | 172 |
| 173 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope*); | 173 InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope*); |
| 174 | 174 |
| 175 } // namespace WebCore | 175 } // namespace WebCore |
| 176 | 176 |
| 177 // This file will soon be generated | 177 // This file will soon be generated |
| 178 #include "InspectorInstrumentationInl.h" | 178 #include "InspectorInstrumentationInl.h" |
| 179 | 179 |
| 180 #include "InspectorInstrumentationCustomInl.h" | 180 #include "InspectorInstrumentationCustomInl.h" |
| 181 | 181 |
| 182 #include "InspectorOverridesInl.h" | 182 #include "InspectorOverridesInl.h" |
| 183 | 183 |
| 184 #endif // !defined(InspectorInstrumentation_h) | 184 #endif // !defined(InspectorInstrumentation_h) |
| OLD | NEW |