| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 5034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5045 if (m_frame) | 5045 if (m_frame) |
| 5046 m_frame->console().addMessage(source, level, message, String(), 0, 0, nu
llptr, 0, requestIdentifier); | 5046 m_frame->console().addMessage(source, level, message, String(), 0, 0, nu
llptr, 0, requestIdentifier); |
| 5047 } | 5047 } |
| 5048 | 5048 |
| 5049 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD
OMWindow migration. | 5049 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD
OMWindow migration. |
| 5050 void Document::postTask(PassOwnPtr<ExecutionContextTask> task) | 5050 void Document::postTask(PassOwnPtr<ExecutionContextTask> task) |
| 5051 { | 5051 { |
| 5052 m_taskRunner->postTask(task); | 5052 m_taskRunner->postTask(task); |
| 5053 } | 5053 } |
| 5054 | 5054 |
| 5055 void Document::postInspectorTask(const Closure& closure) | 5055 void Document::postInspectorTask(PassOwnPtr<ExecutionContextTask> task) |
| 5056 { | 5056 { |
| 5057 m_taskRunner->postInspectorTask(CallClosureTask::create(closure)); | 5057 m_taskRunner->postInspectorTask(task); |
| 5058 } | 5058 } |
| 5059 | 5059 |
| 5060 void Document::tasksWereSuspended() | 5060 void Document::tasksWereSuspended() |
| 5061 { | 5061 { |
| 5062 scriptRunner()->suspend(); | 5062 scriptRunner()->suspend(); |
| 5063 | 5063 |
| 5064 if (m_parser) | 5064 if (m_parser) |
| 5065 m_parser->suspendScheduledTasks(); | 5065 m_parser->suspendScheduledTasks(); |
| 5066 if (m_scriptedAnimationController) | 5066 if (m_scriptedAnimationController) |
| 5067 m_scriptedAnimationController->suspend(); | 5067 m_scriptedAnimationController->suspend(); |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5856 using namespace WebCore; | 5856 using namespace WebCore; |
| 5857 void showLiveDocumentInstances() | 5857 void showLiveDocumentInstances() |
| 5858 { | 5858 { |
| 5859 WeakDocumentSet& set = liveDocumentSet(); | 5859 WeakDocumentSet& set = liveDocumentSet(); |
| 5860 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5860 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5861 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 5861 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 5862 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 5862 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 5863 } | 5863 } |
| 5864 } | 5864 } |
| 5865 #endif | 5865 #endif |
| OLD | NEW |