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

Side by Side Diff: Source/core/inspector/PageDebuggerAgent.cpp

Issue 761143003: DevTools: remove ScriptPreprocessor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 ErrorString error; 140 ErrorString error;
141 resume(&error); 141 resume(&error);
142 } 142 }
143 } 143 }
144 144
145 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame) 145 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
146 { 146 {
147 // FIXME: what about nested objects? 147 // FIXME: what about nested objects?
148 if (frame != m_pageAgent->inspectedFrame()) 148 if (frame != m_pageAgent->inspectedFrame())
149 return; 149 return;
150
151 reset(); 150 reset();
152
153 scriptDebugServer().setPreprocessorSource(String());
154 ASSERT(m_pageAgent);
155 if (!m_pageAgent->scriptPreprocessorSource().isEmpty())
156 scriptDebugServer().setPreprocessorSource(m_pageAgent->scriptPreprocesso rSource());
157 } 151 }
158 152
159 void PageDebuggerAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loader) 153 void PageDebuggerAgent::didCommitLoad(LocalFrame* frame, DocumentLoader* loader)
160 { 154 {
161 if (loader->frame() == m_pageAgent->inspectedFrame()) 155 if (loader->frame() == m_pageAgent->inspectedFrame())
162 pageDidCommitLoad(); 156 pageDidCommitLoad();
163 } 157 }
164 158
165 } // namespace blink 159 } // namespace blink
166 160
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/devtools/front_end/extensions/ExtensionAPI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698