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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 374583002: Replace CallClosureTask::create(bind()) with createCrossThreadTask() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move createCallClosureTask to CrossThreadTask.h Created 6 years, 5 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) 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 5009 matching lines...) Expand 10 before | Expand all | Expand 10 after
5020 if (m_frame) 5020 if (m_frame)
5021 m_frame->console().addMessage(source, level, message, String(), 0, 0, nu llptr, 0, requestIdentifier); 5021 m_frame->console().addMessage(source, level, message, String(), 0, 0, nu llptr, 0, requestIdentifier);
5022 } 5022 }
5023 5023
5024 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD OMWindow migration. 5024 // FIXME(crbug.com/305497): This should be removed after ExecutionContext-LocalD OMWindow migration.
5025 void Document::postTask(PassOwnPtr<ExecutionContextTask> task) 5025 void Document::postTask(PassOwnPtr<ExecutionContextTask> task)
5026 { 5026 {
5027 m_taskRunner->postTask(task); 5027 m_taskRunner->postTask(task);
5028 } 5028 }
5029 5029
5030 void Document::postInspectorTask(const Closure& closure) 5030 void Document::postInspectorTask(PassOwnPtr<ExecutionContextTask> task)
5031 { 5031 {
5032 m_taskRunner->postInspectorTask(CallClosureTask::create(closure)); 5032 m_taskRunner->postInspectorTask(task);
5033 } 5033 }
5034 5034
5035 void Document::tasksWereSuspended() 5035 void Document::tasksWereSuspended()
5036 { 5036 {
5037 scriptRunner()->suspend(); 5037 scriptRunner()->suspend();
5038 5038
5039 if (m_parser) 5039 if (m_parser)
5040 m_parser->suspendScheduledTasks(); 5040 m_parser->suspendScheduledTasks();
5041 if (m_scriptedAnimationController) 5041 if (m_scriptedAnimationController)
5042 m_scriptedAnimationController->suspend(); 5042 m_scriptedAnimationController->suspend();
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
5818 visitor->trace(m_compositorPendingAnimations); 5818 visitor->trace(m_compositorPendingAnimations);
5819 visitor->trace(m_contextDocument); 5819 visitor->trace(m_contextDocument);
5820 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5820 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5821 DocumentSupplementable::trace(visitor); 5821 DocumentSupplementable::trace(visitor);
5822 TreeScope::trace(visitor); 5822 TreeScope::trace(visitor);
5823 ContainerNode::trace(visitor); 5823 ContainerNode::trace(visitor);
5824 ExecutionContext::trace(visitor); 5824 ExecutionContext::trace(visitor);
5825 } 5825 }
5826 5826
5827 } // namespace WebCore 5827 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698