Changeset 80340 in webkit
- Timestamp:
- Mar 4, 2011 2:06:30 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r80319 r80340 1 2011-03-02 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Kent Tamura. 4 5 [Chromium][DRT] WebTask should use webkit_support::TaskAdaptor 6 https://bugs.webkit.org/show_bug.cgi?id=55434 7 8 Changed WebTask to be a subclass of webkit_support::TaskAdaptor 9 and passed the object webkit_support::PostDelayedTask directly. 10 11 Note that the change keeps postTask() as is because it has a 12 semantics taht webkit_support::PostDelayedTask() has; It jumps to 13 the main thread. 14 15 * DumpRenderTree/chromium/Task.cpp: 16 (postDelayedTask): 17 * DumpRenderTree/chromium/Task.h: 18 (WebTask::Run): 19 1 20 2011-03-03 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> 2 21 -
trunk/Tools/DumpRenderTree/chromium/Task.cpp
r73373 r80340 34 34 #include "WebKit.h" 35 35 #include "WebKitClient.h" 36 #include "webkit/support/webkit_support.h"37 36 38 37 WebTask::WebTask(TaskList* list): m_taskList(list) { m_taskList->registerTask(this); } … … 70 69 void postDelayedTask(WebTask* task, int64_t ms) 71 70 { 72 webkit_support::PostDelayedTask( invokeTask, static_cast<void*>(task), ms);71 webkit_support::PostDelayedTask(task, ms); 73 72 } 74 73 -
trunk/Tools/DumpRenderTree/chromium/Task.h
r73373 r80340 32 32 #define Task_h 33 33 34 #include "webkit/support/webkit_support.h" 35 #include <wtf/OwnPtr.h> 34 36 #include <wtf/Vector.h> 35 37 … … 38 40 // WebTask represents a task which can run by postTask() or postDelayedTask(). 39 41 // it is named "WebTask", not "Task", to avoid conflist with base/task.h. 40 class WebTask {42 class WebTask : public webkit_support::TaskAdaptor { 41 43 public: 42 44 WebTask(TaskList*); … … 46 48 virtual void cancel() = 0; 47 49 virtual ~WebTask(); 50 51 private: 52 virtual void Run() { run(); } 53 48 54 protected: 49 55 TaskList* m_taskList;
Note: See TracChangeset
for help on using the changeset viewer.