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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |