Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add postTaskToMainThread to ScriptExecutionContext.
Move the code to post task to the main thread into a new method on ScriptExecutionContext, to use as a helper implementation of the virtual ScriptExecutionContext::postTask(Task) in contexts that live on the main thread. https://bugs.webkit.org/show_bug.cgi?id=31427 Reviewed by Alexey Proskuryakov. No new tests - simply moving the code. * dom/Document.cpp: (WebCore::Document::postTask): * dom/ScriptExecutionContext.cpp: (WebCore::ScriptExecutionContextTaskTimer::ScriptExecutionContextTaskTimer): (WebCore::ScriptExecutionContextTaskTimer::fired): (WebCore::PerformTaskData::PerformTaskData): (WebCore::PerformTaskData::performTask): (WebCore::ScriptExecutionContext::postTaskToMainThread): * dom/ScriptExecutionContext.h: Canonical link: https://commits.webkit.org/42348@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@50919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Dmitry Titov
committed
Nov 13, 2009
1 parent
7bf8863
commit c4c60b4
Showing
4 changed files
with
75 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters