| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |