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

Side by Side Diff: Source/core/inspector/InspectorInstrumentation.h

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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) 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
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)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorLayerTreeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698