Changeset 77971 in webkit
- Timestamp:
- Feb 8, 2011 2:25:36 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r77969 r77971 1 2011-02-08 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] DRT needs an implementation of LayoutTestController.setIconDatabaseEnabled 6 https://bugs.webkit.org/show_bug.cgi?id=54033 7 8 * platform/gtk/Skipped: Unskip a test that is now passing. 9 1 10 2011-02-08 Zhenyao Mo <zmo@google.com> 2 11 -
trunk/LayoutTests/platform/gtk/Skipped
r77967 r77971 4647 4647 fast/frames/set-parent-src-synchronously.html 4648 4648 fast/frames/sandboxed-iframe-storage.html 4649 4650 # GTK+ DRT should support enabling and disabling the icon database4651 http/tests/inspector/resource-har-conversion.html -
trunk/Source/WebKit/gtk/ChangeLog
r77963 r77971 1 2011-02-08 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] DRT needs an implementation of LayoutTestController.setIconDatabaseEnabled 6 https://bugs.webkit.org/show_bug.cgi?id=54033 7 8 Add a DumpRenderTreeSupportGtk method for turning the icon database on and off. 9 This is a likely candidate for a new API point. 10 11 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: 12 (DumpRenderTreeSupportGtk::setIconDatabaseEnabled): Added. 13 * WebCoreSupport/DumpRenderTreeSupportGtk.h: 14 * webkit/webkitglobals.cpp: 15 (webkitInit): Call setIconDatabaseEnabled(true) on startup, instead 16 of initializing the database manually. 17 (WebKit::setIconDatabaseEnabled): Added. 18 * webkit/webkitglobalsprivate.h: Added declarations. 19 1 20 2011-02-08 Adam Barth <abarth@webkit.org> 2 21 -
trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
r77917 r77971 51 51 #include "TextIterator.h" 52 52 #include "WorkerThread.h" 53 #include "webkitglobalsprivate.h" 53 54 #include "webkitwebframe.h" 54 55 #include "webkitwebframeprivate.h" … … 94 95 { 95 96 return s_linksIncludedInTabChain; 97 } 98 99 void DumpRenderTreeSupportGtk::setIconDatabaseEnabled(bool enabled) 100 { 101 WebKit::setIconDatabaseEnabled(enabled); 96 102 } 97 103 -
trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h
r77917 r77971 54 54 static void setLinksIncludedInFocusChain(bool); 55 55 static bool linksIncludedInFocusChain(); 56 static void setIconDatabaseEnabled(bool); 56 57 static JSValueRef nodesFromRect(JSContextRef context, JSValueRef value, int x, int y, unsigned top, unsigned right, unsigned bottom, unsigned left, bool ignoreClipping); 57 58 static void dumpConfigurationForViewport(WebKitWebView* webView, gint availableWidth, gint availableHeight); -
trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp
r77710 r77971 259 259 260 260 Pasteboard::generalPasteboard()->setHelper(WebKit::pasteboardHelperInstance()); 261 262 iconDatabase()->setEnabled(true); 263 264 GOwnPtr<gchar> iconDatabasePath(g_build_filename(g_get_user_data_dir(), "webkit", "icondatabase", NULL)); 265 iconDatabase()->open(iconDatabasePath.get()); 266 267 atexit(closeIconDatabaseOnExit); 261 WebKit::setIconDatabaseEnabled(true); 268 262 269 263 SoupSession* session = webkit_get_default_session(); … … 289 283 } 290 284 285 void setIconDatabaseEnabled(bool enabled) 286 { 287 static bool initialized = false; 288 if (enabled && !initialized) { 289 initialized = true; 290 atexit(closeIconDatabaseOnExit); 291 } 292 293 if (enabled) { 294 iconDatabase()->setEnabled(true); 295 GOwnPtr<gchar> iconDatabasePath(g_build_filename(g_get_user_data_dir(), "webkit", "icondatabase", NULL)); 296 iconDatabase()->open(iconDatabasePath.get()); 297 return; 298 } 299 300 iconDatabase()->setEnabled(false); 301 iconDatabase()->close(); 302 } 303 304 291 305 } /** end namespace WebKit */ 292 306 -
trunk/Source/WebKit/gtk/webkit/webkitglobalsprivate.h
r74933 r77971 34 34 PasteboardHelperGtk* pasteboardHelperInstance(); 35 35 36 void setIconDatabaseEnabled(bool); 36 37 } 37 38 -
trunk/Tools/ChangeLog
r77947 r77971 1 2011-02-08 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] DRT needs an implementation of LayoutTestController.setIconDatabaseEnabled 6 https://bugs.webkit.org/show_bug.cgi?id=54033 7 8 Add an implementation of LayoutTestController.setIconDatabaseEnabled that just 9 call DumpRenderTreeSupportGtk. Turn off the icon database between tests. 10 11 * DumpRenderTree/gtk/DumpRenderTree.cpp: 12 (resetDefaultsToConsistentValues): Turn off the icon database. 13 * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: 14 (LayoutTestController::setIconDatabaseEnabled): Call the appropriate DumpRenderTreeSupportGtk 15 method. 16 1 17 2011-02-08 Kundu Suchismita <suchi.kundu@nokia.com> 2 18 -
trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp
r77917 r77971 446 446 447 447 DumpRenderTreeSupportGtk::setLinksIncludedInFocusChain(true); 448 DumpRenderTreeSupportGtk::setIconDatabaseEnabled(false); 448 449 } 449 450 -
trunk/Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
r77868 r77971 491 491 } 492 492 493 void LayoutTestController::setIconDatabaseEnabled(bool flag)494 { 495 // FIXME: implement493 void LayoutTestController::setIconDatabaseEnabled(bool enabled) 494 { 495 DumpRenderTreeSupportGtk::setIconDatabaseEnabled(enabled); 496 496 } 497 497
Note: See TracChangeset
for help on using the changeset viewer.