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

Side by Side Diff: Source/bindings/core/v8/PageScriptDebugServer.cpp

Issue 458933002: Fix ScriptPreprocessor leak in inspector test case of LayoutTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 String PageScriptDebugServer::preprocessEventListener(LocalFrame* frame, const S tring& source, const String& url, const String& functionName) 303 String PageScriptDebugServer::preprocessEventListener(LocalFrame* frame, const S tring& source, const String& url, const String& functionName)
304 { 304 {
305 if (!canPreprocess(frame)) 305 if (!canPreprocess(frame))
306 return source; 306 return source;
307 307
308 return m_scriptPreprocessor->preprocessSourceCode(source, url, functionName) ; 308 return m_scriptPreprocessor->preprocessSourceCode(source, url, functionName) ;
309 } 309 }
310 310
311 void PageScriptDebugServer::clearPreprocessor()
312 {
313 m_scriptPreprocessor.clear();
314 }
315
311 void PageScriptDebugServer::muteWarningsAndDeprecations() 316 void PageScriptDebugServer::muteWarningsAndDeprecations()
312 { 317 {
313 FrameConsole::mute(); 318 FrameConsole::mute();
314 UseCounter::muteForInspector(); 319 UseCounter::muteForInspector();
315 } 320 }
316 321
317 void PageScriptDebugServer::unmuteWarningsAndDeprecations() 322 void PageScriptDebugServer::unmuteWarningsAndDeprecations()
318 { 323 {
319 FrameConsole::unmute(); 324 FrameConsole::unmute();
320 UseCounter::unmuteForInspector(); 325 UseCounter::unmuteForInspector();
321 } 326 }
322 327
323 } // namespace blink 328 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/PageScriptDebugServer.h ('k') | Source/bindings/core/v8/ScriptDebugServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698