Changeset 91898 in webkit
- Timestamp:
- Jul 27, 2011, 9:08:40 PM (14 years ago)
- Location:
- trunk/Tools
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r91884 r91898 1 2011-07-27 Raphael Kubo da Costa <kubo@profusion.mobi> 2 3 [EFL] Drop WorkQueueItemEfl.h in favour of the general WorkQueueItem.h 4 https://bugs.webkit.org/show_bug.cgi?id=65269 5 6 Reviewed by Kent Tamura. 7 8 WorkQueueItemEfl.h was being included by efl's 9 LayoutTestControllerEfl.cpp, however the top-level 10 LayoutTestController still included WorkQueueItem.h, causing a lot of 11 type mismatches when running the WorkQueueItem code. 12 13 We can stick to the original WorkQueueItem header by making a few 14 changes to EFL's LayoutTestController. 15 16 This should make tests such as 17 fast/loader/non-deferred-substitute-load.html stop crashing. 18 19 * DumpRenderTree/efl/LayoutTestControllerEfl.cpp: 20 (LayoutTestController::queueLoad): 21 * DumpRenderTree/efl/WorkQueueItemEfl.cpp: 22 (LoadItem::invoke): 23 (LoadHTMLStringItem::invoke): 24 (ScriptItem::invoke): 25 * DumpRenderTree/efl/WorkQueueItemEfl.h: Removed. 26 1 27 2011-07-27 Dimitri Glazkov <dglazkov@chromium.org> 2 28 -
trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp
r90361 r91898 42 42 #include "OwnFastMallocPtr.h" 43 43 #include "WorkQueue.h" 44 #include "WorkQueueItem Efl.h"44 #include "WorkQueueItem.h" 45 45 #include "ewk_private.h" 46 46 #include <EWebKit.h> … … 177 177 String absoluteUrl = String::fromUTF8(ewk_frame_uri_get(mainFrame)); 178 178 absoluteUrl.append(url->characters(), url->length()); 179 String targetString(target->characters(), target->length()); 180 181 WorkQueue::shared()->queue(new LoadItem(absoluteUrl, targetString)); 179 180 JSRetainPtr<JSStringRef> jsAbsoluteURL( 181 Adopt, JSStringCreateWithUTF8CString(absoluteUrl.utf8().data())); 182 183 WorkQueue::shared()->queue(new LoadItem(jsAbsoluteURL.get(), target)); 182 184 } 183 185 -
trunk/Tools/DumpRenderTree/efl/WorkQueueItemEfl.cpp
r89053 r91898 21 21 22 22 #include "config.h" 23 #include "WorkQueueItem Efl.h"23 #include "WorkQueueItem.h" 24 24 25 25 #include "DumpRenderTree.h" … … 27 27 #include <EWebKit.h> 28 28 #include <JavaScriptCore/JSStringRef.h> 29 #include <JavaScriptCore/OpaqueJSString.h> 30 #include <JavaScriptCore/runtime/UString.h> 29 31 #include <JavaScriptCore/wtf/text/CString.h> 30 32 … … 33 35 Evas_Object* targetFrame; 34 36 35 if ( m_target.isEmpty())37 if (!m_target->length()) 36 38 targetFrame = mainFrame; 37 39 else 38 targetFrame = ewk_frame_child_find(mainFrame, m_target .utf8().data());40 targetFrame = ewk_frame_child_find(mainFrame, m_target->ustring().utf8().data()); 39 41 40 ewk_frame_uri_set(targetFrame, m_url .utf8().data());42 ewk_frame_uri_set(targetFrame, m_url->ustring().utf8().data()); 41 43 42 44 return true; … … 45 47 bool LoadHTMLStringItem::invoke() const 46 48 { 47 if ( m_unreachableURL.isEmpty())48 ewk_frame_contents_set(mainFrame, m_content .utf8().data(), 0, 0, 0, m_baseURL.utf8().data());49 if (!m_unreachableURL->length()) 50 ewk_frame_contents_set(mainFrame, m_content->ustring().utf8().data(), 0, 0, 0, m_baseURL->ustring().utf8().data()); 49 51 else 50 ewk_frame_contents_alternate_set(mainFrame, m_content .utf8().data(), 0, 0, 0, m_baseURL.utf8().data(), m_unreachableURL.utf8().data());52 ewk_frame_contents_alternate_set(mainFrame, m_content->ustring().utf8().data(), 0, 0, 0, m_baseURL->ustring().utf8().data(), m_unreachableURL->ustring().utf8().data()); 51 53 52 54 return true; … … 61 63 bool ScriptItem::invoke() const 62 64 { 63 return ewk_frame_script_execute(mainFrame, m_script .utf8().data());65 return ewk_frame_script_execute(mainFrame, m_script->ustring().utf8().data()); 64 66 } 65 67
Note:
See TracChangeset
for help on using the changeset viewer.