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

Side by Side Diff: Source/WebCore/bindings/js/ScriptDebugServer.cpp

Issue 6537003: Merge 78648 - 2011-02-15 James Robinson <jamesr@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 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
« no previous file with comments | « Source/WebCore/WebCore.gypi ('k') | Source/WebCore/dom/Document.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 void ScriptDebugServer::setJavaScriptPaused(Frame* frame, bool paused) 410 void ScriptDebugServer::setJavaScriptPaused(Frame* frame, bool paused)
411 { 411 {
412 ASSERT_ARG(frame, frame); 412 ASSERT_ARG(frame, frame);
413 413
414 if (!frame->script()->canExecuteScripts(NotAboutToExecuteScript)) 414 if (!frame->script()->canExecuteScripts(NotAboutToExecuteScript))
415 return; 415 return;
416 416
417 frame->script()->setPaused(paused); 417 frame->script()->setPaused(paused);
418 418
419 Document* document = frame->document(); 419 Document* document = frame->document();
420 if (paused) 420 if (paused) {
421 document->suspendScriptedAnimationControllerCallbacks();
421 document->suspendActiveDOMObjects(ActiveDOMObject::JavaScriptDebuggerPau sed); 422 document->suspendActiveDOMObjects(ActiveDOMObject::JavaScriptDebuggerPau sed);
422 else 423 } else {
423 document->resumeActiveDOMObjects(); 424 document->resumeActiveDOMObjects();
425 document->resumeScriptedAnimationControllerCallbacks();
426 }
424 427
425 setJavaScriptPaused(frame->view(), paused); 428 setJavaScriptPaused(frame->view(), paused);
426 } 429 }
427 430
428 void ScriptDebugServer::setJavaScriptPaused(FrameView* view, bool paused) 431 void ScriptDebugServer::setJavaScriptPaused(FrameView* view, bool paused)
429 { 432 {
430 if (!view) 433 if (!view)
431 return; 434 return;
432 435
433 const HashSet<RefPtr<Widget> >* children = view->children(); 436 const HashSet<RefPtr<Widget> >* children = view->children();
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 if (m_pausedPage == page) 598 if (m_pausedPage == page)
596 m_doneProcessingDebuggerEvents = true; 599 m_doneProcessingDebuggerEvents = true;
597 600
598 recompileAllJSFunctionsSoon(); 601 recompileAllJSFunctionsSoon();
599 page->setDebugger(0); 602 page->setDebugger(0);
600 } 603 }
601 604
602 } // namespace WebCore 605 } // namespace WebCore
603 606
604 #endif // ENABLE(JAVASCRIPT_DEBUGGER) 607 #endif // ENABLE(JAVASCRIPT_DEBUGGER)
OLDNEW
« no previous file with comments | « Source/WebCore/WebCore.gypi ('k') | Source/WebCore/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698