| OLD | NEW | 
|     1 /* |     1 /* | 
|     2  * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |     2  * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 
|     3  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |     3  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 
|     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  * 1. Redistributions of source code must retain the above copyright |     8  * 1. 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  * 2. Redistributions in binary form must reproduce the above copyright |    10  * 2. Redistributions in binary form must reproduce the above copyright | 
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   826         return; |   826         return; | 
|   827     String sourceOrigin = sourceDocument->securityOrigin()->toString(); |   827     String sourceOrigin = sourceDocument->securityOrigin()->toString(); | 
|   828  |   828  | 
|   829     // Capture stack trace only when inspector front-end is loaded as it may be 
      time consuming. |   829     // Capture stack trace only when inspector front-end is loaded as it may be 
      time consuming. | 
|   830     RefPtr<ScriptCallStack> stackTrace; |   830     RefPtr<ScriptCallStack> stackTrace; | 
|   831     if (InspectorInstrumentation::consoleAgentEnabled(sourceDocument)) |   831     if (InspectorInstrumentation::consoleAgentEnabled(sourceDocument)) | 
|   832         stackTrace = createScriptCallStack(ScriptCallStack::maxCallStackSizeToCa
      pture, true); |   832         stackTrace = createScriptCallStack(ScriptCallStack::maxCallStackSizeToCa
      pture, true); | 
|   833  |   833  | 
|   834     // Schedule the message. |   834     // Schedule the message. | 
|   835     PostMessageTimer* timer = new PostMessageTimer(*this, message, sourceOrigin,
       source, channels.release(), target.get(), stackTrace.release()); |   835     PostMessageTimer* timer = new PostMessageTimer(*this, message, sourceOrigin,
       source, channels.release(), target.get(), stackTrace.release()); | 
|   836     timer->startOneShot(0); |   836     timer->startOneShot(0, FROM_HERE); | 
|   837     timer->suspendIfNeeded(); |   837     timer->suspendIfNeeded(); | 
|   838 } |   838 } | 
|   839  |   839  | 
|   840 void DOMWindow::postMessageTimerFired(PassOwnPtr<PostMessageTimer> t) |   840 void DOMWindow::postMessageTimerFired(PassOwnPtr<PostMessageTimer> t) | 
|   841 { |   841 { | 
|   842     OwnPtr<PostMessageTimer> timer(t); |   842     OwnPtr<PostMessageTimer> timer(t); | 
|   843  |   843  | 
|   844     if (!isCurrentlyDisplayedInFrame()) |   844     if (!isCurrentlyDisplayedInFrame()) | 
|   845         return; |   845         return; | 
|   846  |   846  | 
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1814     return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>:
      :lifecycleNotifier()); |  1814     return static_cast<DOMWindowLifecycleNotifier&>(LifecycleContext<DOMWindow>:
      :lifecycleNotifier()); | 
|  1815 } |  1815 } | 
|  1816  |  1816  | 
|  1817 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() |  1817 PassOwnPtr<LifecycleNotifier<DOMWindow> > DOMWindow::createLifecycleNotifier() | 
|  1818 { |  1818 { | 
|  1819     return DOMWindowLifecycleNotifier::create(this); |  1819     return DOMWindowLifecycleNotifier::create(this); | 
|  1820 } |  1820 } | 
|  1821  |  1821  | 
|  1822  |  1822  | 
|  1823 } // namespace WebCore |  1823 } // namespace WebCore | 
| OLD | NEW |