12010-02-09 Gustavo Noronha Silva <gns@gnome.org> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Hits assertion on history back, with page cache enabled, in specific conditions 6 https://bugs.webkit.org/show_bug.cgi?id=34773 7 8 Make sure cached frames have their scrollbars disconnected from 9 the WebView's adjustments. 10 11 * WebCoreSupport/FrameLoaderClientGtk.cpp: 12 (WebKit::FrameLoaderClient::savePlatformDataToCachedFrame): 13 142010-02-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 15 16 Reviewed by Xan Lopez. 17 18 [GTK] Set GtkAdjustments on our FrameView when loading a page in the PageCache 19 https://bugs.webkit.org/show_bug.cgi?id=34754 20 21 Test that lower, and upper bounds are kept when goibg back with 22 page cache enabled, and disabled. Page cache behaviour is still a 23 bit broken (see FIXME). 24 25 * tests/testwebview.c: 26 (server_callback): 27 (map_event_cb): 28 (do_test_webkit_web_view_adjustments): 29 (test_webkit_web_view_adjustments): 30 (main): 31 322010-02-09 Xan Lopez <xlopez@igalia.com> 33 34 Reviewed by Gustavo Noronha. 35 36 [GTK] Set GtkAdjustments on our FrameView when loading a page in the PageCache 37 https://bugs.webkit.org/show_bug.cgi?id=34754 38 39 Set the Gtk Adjustments of the FrameViews when they are restored 40 from the PageCache too. Right we only do it for the newly created 41 FrameViews in transitionToCommittedForNewPage, but we it also 42 needs to be done in the equilavent transition method for cached 43 pages. 44 45 * WebCoreSupport/FrameLoaderClientGtk.cpp: 46 (WebKit::postCommitFrameViewSetup): 47 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedFrame): 48 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 49 502010-02-08 Xan Lopez <xlopez@igalia.com> 51 52 Reviewed by Gustavo Noronha. 53 54 [GTK] Implement FrameLoaderClient::hasWebView 55 https://bugs.webkit.org/show_bug.cgi?id=34682 56 57 Used for sanity-check ASSERTS in the FrameLoader code. 58 59 * WebCoreSupport/FrameLoaderClientGtk.cpp: 60 (WebKit::FrameLoaderClient::hasWebView): 61 622010-02-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 63 64 Reviewed by Xan Lopez. 65 66 News about 1.1.21. 67 68 * NEWS: 69 702010-02-05 Shinichiro Hamaji <hamaji@chromium.org> 71 72 Reviewed by Gustavo Noronha Silva. 73 74 [Gtk] Implement layoutTestController.pageNumberForElementById 75 https://bugs.webkit.org/show_bug.cgi?id=34572 76 77 * webkit/webkitprivate.h: 78 * webkit/webkitwebframe.cpp: 79 (webkit_web_frame_page_number_for_element_by_id): 80 812010-02-04 Christian Dywan <christian@twotoasts.de> 82 83 Reviewed by Gustavo Noronha Silva. 84 85 [GTK] Add and cleanup return values of signals in view and frame 86 https://bugs.webkit.org/show_bug.cgi?id=33484 87 88 Add missing and cleanup return values of web frame and web view signals. 89 90 * webkit/webkitwebframe.cpp: 91 (webkit_web_frame_class_init): 92 * webkit/webkitwebview.cpp: 93 (DNDContentsRequest::webkit_web_view_class_init): 94 952010-02-02 Gustavo Noronha Silva <gns@gnome.org> 96 97 Reviewed by Xan Lopez. 98 99 Changes in 1.1.20, and documentation control files update. 100 101 * NEWS: 102 * docs/webkitgtk-docs.sgml: 103 1042010-02-02 Martin Robinson <martin.james.robinson@gmail.com> 105 106 Reviewed by Gustavo Noronha Silva. 107 108 [GTK] When selection changes selections in other WebView are not collapsed 109 https://bugs.webkit.org/show_bug.cgi?id=34043 110 111 Collapse the selection of a WebView even when the new selection owner is 112 a new WebView. 113 114 * WebCoreSupport/PasteboardHelperGtk.cpp: 115 (WebKit::clearClipboardContentsCallback): Only clear the DataObject we are setting 116 is not the same as the one referenced in this callback. Use the same behavior for 117 collapsing the selection. 118 (WebKit::PasteboardHelperGtk::writeClipboardContents): Instead of recording a boolean 119 record the actual data used while writing to the clipboard. 120 1212010-01-27 Martin Robinson <mrobinson@webkit.org> 122 123 Reviewed by Gustavo Noronha Silva. 124 125 [GTK] Expose the IM context via the API 126 https://bugs.webkit.org/show_bug.cgi?id=33327 127 128 Expose the GtkIMMultiContext as a property of WebKitWebView. This will 129 allow embedders to generate the input method context menu entries and 130 make testing certain IM context behavior possible. 131 132 * webkit/webkitwebview.cpp: 133 (webkit_web_view_get_property): 134 (DNDContentsRequest::webkit_web_view_get_im_context): 135 (DNDContentsRequest::webkit_web_view_class_init): 136 1372010-01-19 Joanmarie Diggs <joanmarie.diggs@gmail.com> 138 139 Reviewed by Xan Lopez. 140 141 https://bugs.webkit.org/show_bug.cgi?id=30883 142 [Gtk] Implement AtkText for HTML elements which contain text 143 144 Adds two news tests. 145 146 * tests/testatk.c 147 (testWebkitAtkGetTextInParagraphAndBodySimple): 148 (testWebkitAtkGetTextInParagraphAndBodyModerate): 149 (main): 150 1512010-01-19 Gustavo Noronha Silva <gns@gnome.org> 152 153 Unreviewed. Changes to the test I forgot to make after a last 154 minute change before landing 53294 - this causes make distcheck to 155 fail. 156 157 * tests/testloading.c: 158 (load_error_status_changed_cb): 159 (test_loading_error): 160 1612010-01-19 Gustavo Noronha Silva <gns@gnome.org> 162 163 Reviewed by Xan Lopez. 164 165 News items for 1.1.19. 166 167 * NEWS: 168 1692010-01-19 Gustavo Noronha Silva <gns@gnome.org> 170 171 Reviewed by Xan Lopez. 172 173 [GTK] More crashes related to the clipboard management 174 https://bugs.webkit.org/show_bug.cgi?id=33746 175 176 Pass the WebKitWebView object (which is a GObject, thus 177 ref-counted) to the clipboard functions instead of passing the 178 Page - this allows us to explicitely protect the object inbetween 179 the clipboard call and its callbacks, which fixes the crash. 180 181 * WebCoreSupport/EditorClientGtk.cpp: 182 (WebKit::EditorClient::respondToChangedSelection): 183 * WebCoreSupport/PasteboardHelperGtk.cpp: 184 (WebKit::getClipboardContentsCallback): 185 (WebKit::clearClipboardContentsCallback): 186 (WebKit::PasteboardHelperGtk::writeClipboardContents): 187 1882010-01-15 Alejandro G. Castro <alex@igalia.com> 189 190 Reviewed by Xan Lopez. 191 192 Original patch by David Ronis <david.ronis@mcgill.ca> 193 194 Upgrade 1.1.17->1.1.18 fails: GTK_WIDGET_TOPLEVEL' was not declared in this scope 195 https://bugs.webkit.org/show_bug.cgi?id=33486 196 197 Deprecated symbols replaced for gtk+ versions over 2.18. 198 199 * WebCoreSupport/ChromeClientGtk.cpp: 200 (WebKit::ChromeClient::windowRect): 201 * webkit/webkitprivate.cpp: 202 (currentToplevelCallback): 203 * webkit/webkitwebframe.cpp: 204 (webkit_web_frame_print_full): 205 (webkit_web_frame_print): 206 * webkit/webkitwebview.cpp: 207 (webkit_web_view_focus_in_event): 208 2092010-01-14 Gustavo Noronha Silva <gns@gnome.org> 210 211 Reviewed by Eric Seidel. 212 213 [GTK] Crashes cleaning clipboard contents, with page cache enabled 214 https://bugs.webkit.org/show_bug.cgi?id=32900 215 216 Null-check the focus controller to avoid crashing. Could not find 217 a way to reproduce this consistently, thus no test. 218 219 * WebCoreSupport/PasteboardHelperGtk.cpp: 220 (WebKit::clearClipboardContentsCallback): 221 2222010-01-14 Gustavo Noronha Silva <gns@gnome.org> 223 224 Reviewed by Oliver Hunter. 225 226 [GTK] couple fixes for signal emissions, and property notifications 227 https://bugs.webkit.org/show_bug.cgi?id=33428 228 229 Do not emit signals and property notifications for error 230 pages. The notifications are not really useful for anything, you 231 can get them back by overriding the error pages, and it avoids a 232 number of hacks. 233 234 * WebCoreSupport/FrameLoaderClientGtk.cpp: 235 (WebKit::FrameLoaderClient::FrameLoaderClient): 236 (WebKit::FrameLoaderClient::dispatchDidFinishLoad): 237 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon): 238 (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad): 239 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle): 240 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): 241 (WebKit::FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout): 242 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 243 * WebCoreSupport/FrameLoaderClientGtk.h: 244 * tests/testloading.c: 245 (load_error_status_changed_cb): 246 (test_loading_error): 247 2482010-01-14 Martin Robinson <martin.james.robinson@gmail.com> 249 250 Reviewed by Xan Lopez. 251 252 [GTK] Enable DOM clipboard and drag-and-drop access 253 https://bugs.webkit.org/show_bug.cgi?id=30623 254 255 Use DataObjectGtk when setting and clearing pasteboard data on 256 the GDK_SELECTION_PRIMARY clipboard. 257 258 * WebCoreSupport/EditorClientGtk.cpp: 259 (WebKit::EditorClient::respondToChangedSelection): 260 (WebKit::EditorClient::EditorClient): 261 * WebCoreSupport/EditorClientGtk.h: 262 * WebCoreSupport/PasteboardHelperGtk.cpp: 263 (WebKit::fillSelectionData): 264 (WebKit::targetListForDataObject): 265 (WebKit::getClipboardContentsCallback): 266 (WebKit::clearClipboardContentsCallback): 267 (WebKit::PasteboardHelperGtk::writeClipboardContents): 268 * WebCoreSupport/PasteboardHelperGtk.h: 269 2702010-01-14 Alejandro G. Castro <alex@igalia.com> 271 272 Reviewed by Xan Lopez. 273 274 Review the tooltip implementation 275 https://bugs.webkit.org/show_bug.cgi?id=32819 276 277 Change the GTK tooltip implementation to avoid the workaround that 278 we are currently using. Now we use a new private API to set the 279 text and all the tooltip handling is done in the webview widget. 280 281 * WebCoreSupport/ChromeClientGtk.cpp: 282 * webkit/webkitprivate.h: 283 * webkit/webkitwebview.cpp: 284 (webkit_web_view_set_tooltip_text): Added, new private API. 285 (webkit_web_view_query_tooltip): Added 286 2872010-01-09 Gustavo Noronha Silva <gns@gnome.org> 288 289 Reviewed by Xan Lopez. 290 291 [GTK] couple fixes for signal emissions, and property notifications 292 https://bugs.webkit.org/show_bug.cgi?id=33428 293 294 Fix commitedLoad being called where it should not, causing it to 295 be called one time too many in some cases. We now match Qt's and 296 Mac's behavior here. 297 298 * WebCoreSupport/FrameLoaderClientGtk.cpp: 299 (WebKit::FrameLoaderClient::finishedLoading): 300 * tests/testloading.c: 301 (load_error_status_changed_cb): 302 3032010-01-08 Gustavo Noronha Silva <gns@gnome.org> 304 305 Reviewed by Xan Lopez. 306 307 [GTK] loading test should use SoupServer instead of actual sites 308 https://bugs.webkit.org/show_bug.cgi?id=33353 309 310 Make all the loading tests use SoupServer, instead of fetching 311 stuff from the Internet. 312 313 * tests/testloading.c: 314 (server_callback): 315 (get_uri_for_path): 316 (test_loading_status): 317 (test_loading_error): 318 (test_loading_cancelled): 319 (load_wentback_status_changed_cb): 320 (load_error_test): 321 (test_loading_goback): 322 (main): 323 3242010-01-06 Joanmarie Diggs <joanmarie.diggs@gmail.com> 325 326 Reviewed by Xan Lopez. 327 328 https://bugs.webkit.org/show_bug.cgi?id=30883 329 [Gtk] Implement AtkText for HTML elements which contain text 330 331 * tests/testatk.c 332 (test_webkit_atk_get_text_at_offset): 333 (test_webkit_atk_get_text_at_offset_forms): 334 (test_webkit_atk_get_text_at_offset_newlines): 335 3362010-01-05 Gustavo Noronha Silva <gns@gnome.org> 337 338 Updated docs for 1.1.18 release. 339 340 * docs/webkitgtk-docs.sgml: 341 * docs/webkitgtk-sections.txt: 342 3432010-01-05 Xan Lopez <xlopez@igalia.com> 344 345 Update for 1.1.18 release. 346 347 * NEWS: 348 3492010-01-04 Maciej Stachowiak <mjs@apple.com> 350 351 Reviewed by Darin Fisher. 352 353 Reorganize, document and rename OS() platform macros. 354 https://bugs.webkit.org/show_bug.cgi?id=33198 355 356 Adapt to name changes. 357 358 * webkit/webkitwebsettings.cpp: 359 (webkit_get_user_agent): 360 3612010-01-04 Maciej Stachowiak <mjs@apple.com> 362 363 Reviewed by Adam Barth. 364 365 Reorganize, document and rename CPU() platform macros. 366 https://bugs.webkit.org/show_bug.cgi?id=33145 367 368 * webkit/webkitwebsettings.cpp: 369 (webkit_get_user_agent): 370 3712009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 372 373 Reviewed by Xan Lopez. 374 375 Remove emission of signal that does not exist. 376 377 * WebCoreSupport/InspectorClientGtk.cpp: 378 (WebKit::InspectorClient::inspectorDestroyed): 379 (WebKit::InspectorClient::webViewDestroyed): 380 3812009-12-20 Xan Lopez <xlopez@igalia.com> 382 383 Reviewed by Gustavo Noronha. 384 385 Unset the adjustments in our FrameView when detaching from 386 parent. Fixes some crashers when transitioning to a new page from 387 a scrolled page. 388 389 * WebCoreSupport/FrameLoaderClientGtk.cpp: 390 (WebKit::FrameLoaderClient::detachedFromParent2): 391 3922009-12-20 Xan Lopez <xlopez@igalia.com> 393 394 Rubber-stamped by Gustavo Noronha. 395 396 Disable the page cache by default since: 397 398 - It was previously off by default. 399 - There are still some issues when enabling it. 400 401 * webkit/webkitwebsettings.cpp: 402 (webkit_web_settings_class_init): 403 4042009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 405 406 Reviewed by Xan Lopez. 407 408 Provides a new API to copy WebKitWebHistoryItem objects. 409 410 * webkit/webkitwebhistoryitem.cpp: 411 (webkit_web_history_item_copy): 412 * webkit/webkitwebhistoryitem.h: 413 4142009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 415 416 Reviewed by Xan Lopez. 417 418 Make sure we get the URI that is being loaded when updating 419 WebKitWebFrame's knowledge of it. This was causing problems now 420 that page cache is enabled. 421 422 * WebCoreSupport/FrameLoaderClientGtk.cpp: 423 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): 424 * tests/testloading.c: 425 (load_goback_status_changed_cb): 426 (load_wentback_status_changed_cb): 427 (test_loading_goback): 428 (main): 429 4302009-12-20 Alejandro G. Castro <alex@igalia.com> 431 432 Reviewed by Xan Lopez. 433 434 [GTK] Cache control APIs 435 https://bugs.webkit.org/show_bug.cgi?id=24001 436 437 Original patch by Bobby Powers <bobby@laptop.org> 438 439 Added new API to specify cache models for GTK port. 440 441 * webkit/webkitprivate.cpp: 442 (webkit_init): set a default cache model. 443 * webkit/webkitwebview.cpp: 444 * webkit/webkitwebview.h: 445 (webkit_set_cache_model): Added function. 446 (webkit_get_cache_model): Added function. 447 4482009-12-20 Xan Lopez <xlopez@igalia.com> 449 450 Revert the previous patch, it introduces some failures in the 451 bots. 452 453 * WebCoreSupport/FrameLoaderClientGtk.cpp: 454 (WebKit::FrameLoaderClient::committedLoad): 455 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 456 4572009-12-20 Xan Lopez <xlopez@igalia.com> 458 459 Reviewed by Gustavo Noronha. 460 461 [GTK] crash when loading new page 462 https://bugs.webkit.org/show_bug.cgi?id=32752 463 464 Wait until the document is attached to adjust our alignments, 465 since we need to make sure the FrameView in the document content 466 render object matches the newly created FrameView for the new 467 page, otherwise we'll try to relayout the wrong view. 468 469 * WebCoreSupport/FrameLoaderClientGtk.cpp: 470 (WebKit::FrameLoaderClient::committedLoad): 471 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 472 4732009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 474 475 Reviewed by Xan Lopez. 476 477 Create a new WebKitDataSource object when attaching to a frame, if 478 one does not exist. This may happen when we are fetching data from 479 the page cache. 480 481 * WebCoreSupport/DocumentLoaderGtk.cpp: 482 (WebKit::DocumentLoader::attachToFrame): 483 (WebKit::DocumentLoader::unrefDataSource): 484 4852009-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 486 487 Rubber-stamped by Xan Lopez. 488 489 Make sure the text encoding machinery is initialized from the main 490 frame, before opening the icon database. 491 492 * webkit/webkitprivate.cpp: 493 (webkit_init): 494 4952009-12-19 Alejandro G. Castro <alex@igalia.com> 496 497 Reviewed by Xan Lopez. 498 499 Fixed the problem when pasting in the same window with the 500 middle-button, now we store a reference to the range instead of 501 requesting it every time, and we do not release it until the 502 clipboard is requested. 503 https://bugs.webkit.org/show_bug.cgi?id=28153 504 505 * WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp: 506 * WebKit/gtk/WebCoreSupport/EditorClientGtk.h: 507 5082009-12-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 509 510 Reviewed by Xan Lopez. 511 512 Protect download objects when reporting errors, to make sure the 513 download stays alive between the status change notification, and 514 the error signal emission. 515 516 * webkit/webkitdownload.cpp: 517 (webkit_download_error): 518 5192009-12-18 Xan Lopez <xlopez@igalia.com> 520 521 Reviewed by Gustavo Noronha. 522 523 Fix gtk-doc of webkit_web_resource_new. 524 525 * webkit/webkitwebresource.cpp: 526 5272009-12-18 Adam Roben <aroben@apple.com> 528 529 GTK build fix 530 531 * webkit/webkitprivate.cpp: Added #include. 532 5332009-12-18 Kalle Vahlman <kalle.vahlman@movial.com> and Alejandro G. Castro <alex@igalia.com> 534 535 Reviewed by Gustavo Noronha Silva. 536 537 [GTK] Add enable-page-cache property to WebSettings for disabling the Page Cache 538 539 * webkit/webkitwebsettings.cpp: 540 (_WebKitWebSettingsPrivate::): 541 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 542 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 543 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 544 (_WebKitWebSettingsPrivate::webkit_web_settings_copy): 545 * webkit/webkitwebview.cpp: 546 5472009-12-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 548 549 Reviewed by Xan Lopez. 550 551 More make distcheck fixes. Use a more robust solution to making 552 sure we are in the correct directory for running these tests. 553 554 * tests/testmimehandling.c: 555 (main): 556 * tests/testwebview.c: 557 (main): 558 5592009-12-17 Christian Dywan <christian@twotoasts.de> 560 561 Reviewed by Gustavo Noronha Silva. 562 563 [GTK] Don't assume downloads are always synchronous 564 http://bugs.webkit.org/show_bug.cgi?id=32359 565 566 * tests/testdownload.c: 567 (download_requested_cb): 568 (set_filename): 569 (test_webkit_download_perform): 570 (test_webkit_download_synch): 571 (test_webkit_download_asynch): 572 (main): Test downloads synchronously and asynchronously. 573 * webkit/webkitwebview.cpp: 574 (webkit_web_view_class_init): 575 (webkit_web_view_request_download): Only try to start a requested 576 download if the destination URI is set and clarify the documentation. 577 5782009-12-17 Christian Dywan <christian@twotoasts.de> 579 580 Reviewed by Xan Lopez. 581 582 Deprecate the title-changed signal of WebKitWebFrame. 583 584 * webkit/webkitwebframe.cpp: 585 (webkit_web_frame_class_init): 586 5872009-12-17 Martin Robinson <martin.james.robinson@gmail.com> 588 589 Reviewed by Gustavo Noronha Silva. 590 591 [GTK] WebKit GTK needs a wrapper for ref counted glib/gobject structs 592 https://bugs.webkit.org/show_bug.cgi?id=21599 593 594 Convert a use of GOwnPtr for a reference counted type to GRefPtr. 595 596 * WebCoreSupport/FrameLoaderClientGtk.cpp: 597 (WebKit::FrameLoaderClient::createPlugin): 598 5992009-12-17 Evan Martin <evan@chromium.org> 600 601 Reviewed by Xan Lopez. 602 603 Expose the page workarounds ("quirks") setting to the GTK+ WebKit API. 604 605 * webkit/webkitwebsettings.cpp: 606 (webkit_web_settings_class_init): 607 (webkit_web_settings_set_property): 608 (webkit_web_settings_get_property): 609 (webkit_web_settings_copy): 610 * webkit/webkitwebview.cpp: 611 (webkit_web_view_update_settings): 612 6132009-12-16 Dan Winship <danw@gnome.org> 614 615 Reviewed by Gustavo Noronha Silva. 616 617 Content-Encoding support 618 619 https://bugs.webkit.org/show_bug.cgi?id=522772 620 621 * webkit/webkitprivate.cpp: 622 (webkit_init): add a SoupContentDecoder feature to the session 623 6242009-12-16 Christian Dywan <christian@twotoasts.de> 625 626 Reviewed by Gustavo Noronha Silva. 627 628 Deprecate the old loading signals load-started, load-committed, 629 load-finished, load-progress-changed and change unit tests to use 630 load-status instead. 631 632 * tests/testmimehandling.c: 633 (idle_quit_loop_cb): 634 (test_mime_type): use notify::load-status 635 * tests/testwebdatasource.c: 636 (notify_load_status_unreachable_cb): 637 (notify_load_status_cb): 638 (test_webkit_web_data_source): 639 (test_webkit_web_data_source_unreachable_uri): Remove uses of 640 g_main_loop_is_running. It's an error if the loop is wrongly terminated. 641 * tests/testwebresource.c: 642 (notify_load_status_cb): 643 (test_web_resource_loading): 644 (notify_load_status_sub_cb): 645 (test_web_resource_sub_resource_loading): use notify::load-status 646 * tests/testwebview.c: 647 (idle_quit_loop_cb): 648 (test_webkit_web_view_icon_uri): 649 * tests/testwindow.c: 650 (notify_load_status_cb): 651 (test_webkit_window_scrollbar_policy): use notify::load-status 652 * webkit/webkitwebframe.cpp: 653 (webkit_web_frame_class_init): 654 * webkit/webkitwebview.cpp: 655 (webkit_web_view_class_init): Deprecate old load signals. 656 6572009-12-16 Christian Dywan <christian@twotoasts.de> 658 659 Reviewed by Gustavo Noronha Silva. 660 661 Take into account favicon.ico in the webresource test. 662 663 * tests/testwebresource.c: 664 (test_web_resource_sub_resource_loading): 665 6662009-12-16 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 667 668 Rubber-stamped by Xan Lopez. 669 670 Add tab_key_cycles_through_elements to copies of 671 WebKitWebSettings. 672 673 * webkit/webkitwebsettings.cpp: 674 (webkit_web_settings_copy): 675 6762009-12-16 Martin Robinson <martin.james.robinson@gmail.com> 677 678 Reviewed by Gustavo Noronha Silva. 679 680 [GTK] webkit_web_navigation_action_get_button() documentation 681 https://bugs.webkit.org/show_bug.cgi?id=25555 682 683 Small documentation improvement for webkit_web_navigation_action_get_button. 684 685 * webkit/webkitwebnavigationaction.cpp: 686 6872009-12-13 Sam Weinig <sam@webkit.org> 688 689 Reviewed by Dan Bernstein. 690 691 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499 692 Add client based Geolocation provider 693 694 Add first cut of a client based Geolocation provider. This is guarded by 695 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a 696 GeolocationControllerClient interface that no-one currently implements, 697 but will in a subsequent patch. 698 699 * webkit/webkitwebview.cpp: 700 (webkit_web_view_init): 701 7022009-12-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 703 704 Reviewed by Xan Lopez. 705 706 New setting to allow applications to completely suppress the 707 default context menu that is generated by WebKit. This allows them 708 to still pass the event to the default handler without needing to 709 use ugly hacks such as handling populate-popup, and removing all 710 the items from the default context menu. 711 712 * webkit/webkitwebsettings.cpp: 713 (webkit_web_settings_class_init): 714 (webkit_web_settings_set_property): 715 (webkit_web_settings_get_property): 716 (webkit_web_settings_copy): 717 * webkit/webkitwebview.cpp: 718 (webkit_web_view_forward_context_menu_event): 719 7202009-12-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 721 722 Reviewed by Xan Lopez. 723 724 Also give the right click event to the frame's event handler, if 725 there WebCore decides to not generate the default context 726 menu. This fixes some pages that handle right-button clicks for 727 things other than context menu creation. 728 729 * webkit/webkitwebview.cpp: 730 (webkit_web_view_forward_context_menu_event): 731 7322009-12-13 Christian Dywan <christian@twotoasts.de> 733 734 Reviewed by Holger Freyther. 735 736 http://bugs.webkit.org/show_bug.cgi?id=31014 737 [Gtk] Build fails with gtk+-2.10 (no tested with older releases) 738 739 Guard GTK+ 2.12 specific tooltip code with #ifdef. 740 741 * WebCoreSupport/ChromeClientGtk.cpp: 742 (WebKit::ChromeClient::mouseDidMoveOverElement): 743 7442009-12-11 Christian Dywan <christian@twotoasts.de> 745 746 Reviewed by Eric Seidel. 747 748 [GTK] Build with --disable-svg is broken 749 http://bugs.webkit.org/show_bug.cgi?id=32361 750 751 * webkit/webkitwebframe.cpp: 752 (webkit_web_frame_pause_svg_animation): Fix ENABLE(SVG) guards. 753 7542009-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 755 756 Reviewed by Xan Lopez. 757 758 Add a missing null-check, that is causing some crash reports. 759 760 * WebCoreSupport/FrameLoaderClientGtk.cpp: 761 (WebKit::FrameLoaderClient::committedLoad): 762 7632009-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 764 765 Reviewed by Xan Lopez. 766 767 [GTK] Should provide an API to control the IconDatabase 768 https://bugs.webkit.org/show_bug.cgi?id=32334 769 770 First step towards a full IconDatabase API. This provides 771 notification for pages with favicons, and lets clients handle 772 them. 773 774 * WebCoreSupport/FrameLoaderClientGtk.cpp: 775 (WebKit::FrameLoaderClient::registerForIconNotification): 776 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon): 777 * tests/resources/blank.ico: Added. 778 * tests/testwebview.c: Added. 779 (server_callback): 780 (idle_quit_loop_cb): 781 (icon_uri_changed_cb): 782 (icon_loaded_cb): 783 (test_webkit_web_view_icon_uri): 784 (main): 785 * webkit/webkitprivate.cpp: 786 (closeIconDatabaseOnExit): 787 (webkit_init): 788 * webkit/webkitprivate.h: 789 * webkit/webkitwebview.cpp: 790 (webkit_web_view_get_property): 791 (webkit_web_view_finalize): 792 (webkit_web_view_class_init): 793 (webkit_web_view_get_icon_uri): 794 * webkit/webkitwebview.h: 795 7962009-12-08 Christian Dywan <christian@twotoasts.de> 797 798 Reviewed by Gustavo Noronha Silva. 799 800 Point out the meaning of "Content-Disposition" when implementing the 801 mime-type-policy-decision-requested signal. 802 803 * webkit/webkitwebview.cpp: 804 (webkit_web_view_class_init): 805 8062009-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 807 808 Reviewed by Xan Lopez. 809 810 [GTK] Doesn't respect Content-Disposition for downloads, and provides no way for apps to do that 811 https://bugs.webkit.org/show_bug.cgi?id=32247 812 813 Provide a way for applications to respect Content-Disposition, by 814 fetching the WebKitNetworkResponse from the frame during 815 mime-type-policy-decision-requested. 816 817 * WebCoreSupport/FrameLoaderClientGtk.cpp: 818 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Download 819 content when Content-Disposition is attachment. 820 * tests/testmimehandling.c: 821 (server_callback): 822 (mime_type_policy_decision_requested_cb): 823 * tests/testwebframe.c: 824 (test_webkit_web_frame_response): 825 (main): 826 * webkit/webkitprivate.cpp: 827 (WebKit::core): 828 * webkit/webkitwebframe.cpp: 829 (webkit_web_frame_get_network_response): 830 * webkit/webkitwebframe.h: 831 8322009-12-07 Gyuyoung Kim <gyuyoung@gmail.com> 833 834 Reviewed by Eric Seidel. 835 836 https://bugs.webkit.org/show_bug.cgi?id=32024 837 [GTK] WebKit does not compile without JAVASCRIPT_DEBUGGER 838 839 Fix build errors when javascript-debugger is disabled on GTK 840 841 * webkit/webkitwebinspector.cpp: 842 (webkit_web_inspector_set_property): 843 (webkit_web_inspector_get_property): 844 8452009-12-07 Joanmarie Diggs <joanmarie.diggs@gmail.com> 846 847 Reviewed by Xan Lopez. 848 849 https://bugs.webkit.org/show_bug.cgi?id=25415 850 [GTK][ATK] Please implement support for get_text_at_offset 851 852 Eliminate the segfaults which occur when accessing the text interface now 853 implemented by text controls. 854 855 * tests/testatk.c 856 (test_webkit_atk_get_text_at_offset_textarea): 857 (test_webkit_atk_get_text_at_offset_text_input): 858 (main): 859 8602009-12-06 Gustavo Noronha Silva <gns@gnome.org> 861 862 Reviewed by Xan Lopez. 863 864 New test to make sure we do not regress this feature anymore. All 865 test files were created by me. 866 867 [GTK] REGRESSION: webkit thinks it can render PDFs 868 https://bugs.webkit.org/show_bug.cgi?id=32183 869 870 * tests/resources/test.html: Added. 871 * tests/resources/test.ogg: Added. 872 * tests/resources/test.pdf: Added. 873 * tests/resources/test.txt: Added. 874 * tests/testmimehandling.c: Added. 875 (server_callback): 876 (idle_quit_loop_cb): 877 (mime_type_policy_decision_requested_cb): 878 (test_mime_type): 879 (test_mime_pdf): 880 (test_mime_html): 881 (test_mime_text): 882 (test_mime_ogg): 883 (main): 884 8852009-12-05 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 886 887 Reviewed by Xan Lopez. 888 889 Use a better URI for the unreachable test. localhost:80 is very 890 likely to be open. 891 892 * tests/testwebdatasource.c: 893 (load_finished_unreachable_cb): 894 (test_webkit_web_data_source_unreachable_uri): 895 8962009-12-03 Brady Eidson <beidson@apple.com> 897 898 Reviewed by Sam Weinig. 899 900 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API 901 902 * WebCoreSupport/FrameLoaderClientGtk.cpp: 903 (WebKit::FrameLoaderClient::dispatchDidPushStateWithinPage): 904 (WebKit::FrameLoaderClient::dispatchDidReplaceStateWithinPage): 905 (WebKit::FrameLoaderClient::dispatchDidPopStateWithinPage): 906 * WebCoreSupport/FrameLoaderClientGtk.h: 907 9082009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com> 909 910 Reviewed by Timothy Hatcher. 911 912 Web Inspector: Simplify the settings support in inspector controller. 913 914 https://bugs.webkit.org/show_bug.cgi?id=32076 915 916 * WebCoreSupport/InspectorClientGtk.cpp: 917 (WebKit::InspectorClient::populateSetting): 918 (WebKit::InspectorClient::storeSetting): 919 * WebCoreSupport/InspectorClientGtk.h: 920 9212009-12-03 Ben Murdoch <benm@google.com> 922 923 Reviewed by Brady Eidson. 924 925 [Android] The FrameLoaderClient is unaware of BackForwardList changes. 926 https://bugs.webkit.org/show_bug.cgi?id=31914 927 928 * WebCoreSupport/FrameLoaderClientGtk.cpp: 929 (WebKit::FrameLoaderClient::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug). 930 (WebKit::FrameLoaderClient::dispatchDidRemoveBackForwardItem): ditto. 931 (WebKit::FrameLoaderClient::dispatchDidChangeBackForwardIndex): ditto. 932 * WebCoreSupport/FrameLoaderClientGtk.h: 933 9342009-12-01 Nikolas Zimmermann <nzimmermann@rim.com> 935 936 Reviewed by Simon Fraser. 937 938 Add SVG animation test framework with 'snapshot' functionality 939 https://bugs.webkit.org/show_bug.cgi?id=31897 940 941 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method, 942 forwarding the call to SVGDocumentExtensions, if SVG is enabled. 943 944 Implemented just like the existing pauseAnimation* methods for CSS animations. 945 946 * webkit/webkitprivate.h: 947 * webkit/webkitwebframe.cpp: 948 (webkit_web_frame_pause_svg_animation): 949 9502009-11-30 Xan Lopez <xlopez@igalia.com> 951 952 Reviewed by Gustavo Noronha. 953 954 Prepare for 1.1.17 release. 955 956 * NEWS: 957 * docs/webkitgtk-docs.sgml: 958 * docs/webkitgtk-sections.txt: 959 * webkit/webkitwebsettings.cpp: 960 (webkit_web_settings_class_init): 961 9622009-11-26 Laszlo Gombos <laszlo.1.gombos@nokia.com> 963 964 Reviewed by Oliver Hunt. 965 966 Move GOwnPtr* from wtf to wtf/gtk 967 https://bugs.webkit.org/show_bug.cgi?id=31793 968 969 * webkit/webkitwebview.cpp: Change the path for GOwnPtr.h. 970 9712009-11-24 Joanmarie Diggs <joanmarie.diggs@gmail.com> 972 973 Reviewed by Xan Lopez. 974 975 https://bugs.webkit.org/show_bug.cgi?id=25415 976 [GTK][ATK] Please implement support for get_text_at_offset 977 978 When building up the pango layout from text boxes, only append a 979 newline char after verifying there are no more boxes on this line. 980 981 * tests/testatk.c 982 (test_webkit_atk_get_text_at_offset_newlines): 983 (main): 984 9852009-11-19 Pavel Feldman <pfeldman@chromium.org> 986 987 Reviewed by Gustavo Noronha Silva. 988 989 Web Inspector: Implement "show inspector" in WebKit GTK 990 API and enable console tests. 991 992 https://bugs.webkit.org/show_bug.cgi?id=31669 993 994 * webkit/webkitwebinspector.cpp: 995 (webkit_web_inspector_show): 996 * webkit/webkitwebinspector.h: 997 9982009-11-18 Martin Robinson <martin.james.robinson@gmail.com> 999 1000 Reviewed by Gustavo Noronha. 1001 1002 [GTK] Tab key does not cycle through elements by default 1003 https://bugs.webkit.org/show_bug.cgi?id=31505 1004 1005 Properly localize documentation strings for the 1006 tab-key-cycles-through-elements property. 1007 1008 * webkit/webkitwebsettings.cpp: 1009 (webkit_web_settings_class_init): 1010 10112009-11-17 Martin Robinson <martin.james.robinson@gmail.com> 1012 1013 Reviewed by Gustavo Noronha. 1014 1015 [GTK] Tab key does not cycle through elements by default 1016 https://bugs.webkit.org/show_bug.cgi?id=31505 1017 1018 Ensure that WebKitWebSettings tab-key-cycles-through-elements 1019 property is true by default with the G_PARAM_CONSTRUCT_FLAG. 1020 1021 * webkit/webkitwebsettings.cpp: 1022 (webkit_web_settings_class_init): 1023 10242009-11-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1025 1026 Reviewed by Xan Lopez. 1027 1028 [GTK] Failing test media/video-document-types.html 1029 https://bugs.webkit.org/show_bug.cgi?id=31352 1030 1031 Match what Mac has been doing since r36001: cancel the main load, 1032 and handle failures caused by 'will be handled by plugin' errors. 1033 1034 Covered by test media/video-document-types.html 1035 1036 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1037 (WebKit::FrameLoaderClient::committedLoad): 1038 (WebKit::FrameLoaderClient::shouldFallBack): 1039 10402009-11-17 Pavel Feldman <pfeldman@chromium.org> 1041 1042 Reviewed by Timothy Hatcher. 1043 1044 Web Inspector: Make DRT show web inspector for tests in inspector/ folder. 1045 - Updated DRT to show/close inspector for all tests under /inspector 1046 - Introduced LayoutTestController::setTimelineProfilingEnabled and 1047 WebInspector::setTimelineProfilingEnabled beside setJavaScriptProfilingEnabled 1048 - Removed reload on each inspector test 1049 - Renamed fast/inspector to fast/inspector-support in order not to trigger 1050 inspector for those. 1051 - Reimplemented timeline tests in order to get rid of reload there. 1052 - Moved tests that don't require harness into the fast group. 1053 1054 https://bugs.webkit.org/show_bug.cgi?id=31472 1055 1056 * webkit/webkitwebinspector.cpp: 1057 (webkit_web_inspector_class_init): 1058 (webkit_web_inspector_set_property): 1059 (webkit_web_inspector_get_property): 1060 10612009-11-13 Adam Roben <aroben@apple.com> 1062 1063 Update for changes to FrameLoaderClient 1064 1065 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when 1066 window objects in isolated worlds are cleared 1067 1068 Reviewed by Dave Hyatt. 1069 1070 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1071 (WebKit::FrameLoaderClient::dispatchDidClearWindowObjectInWorld): 1072 * WebCoreSupport/FrameLoaderClientGtk.h: 1073 Replaced windowObjectCleared with this function. Does nothing if the 1074 passed-in world is not the mainThreadNormalWorld(). 1075 10762009-11-12 Shinichiro Hamaji <hamaji@chromium.org> 1077 1078 Reviewed by Darin Adler. 1079 1080 externalRepresentation should take Frame as the argument 1081 https://bugs.webkit.org/show_bug.cgi?id=31393 1082 1083 No new tests as this is just a refactoring. 1084 1085 * webkit/webkitwebframe.cpp: 1086 (webkit_web_frame_dump_render_tree): 1087 10882009-11-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1089 1090 Reviewed by Holger Freyther. 1091 1092 Should not print javascript console messages to stdout 1093 https://bugs.webkit.org/show_bug.cgi?id=31346 1094 1095 * webkit/webkitwebview.cpp: 1096 (webkit_web_view_real_console_message): Print console messages to 1097 stderr instead, using the recommended method (a g_log variant). 1098 10992009-11-11 Philippe Normand <pnormand@igalia.com> 1100 1101 Reviewed by Xan Lopez. 1102 1103 https://bugs.webkit.org/show_bug.cgi?id=30221 1104 [GTK] fails to load media embedded in iframe element 1105 1106 The FrameLoader can show Media if the audio/video support is 1107 enabled at compile time. 1108 1109 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1110 (WebKit::FrameLoaderClient::canShowMIMEType): 1111 11122009-11-10 Martin Robinson <martin.james.robinson@gmail.com> 1113 1114 Reviewed by Jan Alonzo. 1115 1116 [GTK] Remove WebSocket configuration from WebKitWebSettings 1117 https://bugs.webkit.org/show_bug.cgi?id=31244 1118 1119 Remove non-functional enable-web-sockets property from WebKitWebSettings. 1120 1121 * webkit/webkitwebsettings.cpp: 1122 (webkit_web_settings_class_init): 1123 (webkit_web_settings_set_property): 1124 (webkit_web_settings_get_property): 1125 (webkit_web_settings_copy): 1126 11272009-11-09 Martin Robinson <martin.james.robinson@gmail.com> 1128 1129 Reviewed by Jan Alonzo. 1130 1131 [GTK] Expose Page::tabKeyCyclesThroughElements in the API 1132 https://bugs.webkit.org/show_bug.cgi?id=30482 1133 1134 Expose Page::tabKeyCyclesThroughElements as a property of 1135 WebKitWebSettings. 1136 1137 * webkit/webkitwebsettings.cpp: 1138 (webkit_web_settings_class_init): 1139 (webkit_web_settings_set_property): 1140 (webkit_web_settings_get_property): 1141 * webkit/webkitwebview.cpp: 1142 (webkit_web_view_update_settings): 1143 (webkit_web_view_settings_notify): 1144 11452009-11-04 Martin Robinson <martin.james.robinson@gmail.com> 1146 1147 Reviewed by Jan Alonzo. 1148 1149 [GTK] Enable DOM clipboard and drag-and-drop access 1150 https://bugs.webkit.org/show_bug.cgi?id=30623 1151 1152 Move handling of target list to PasteboardHelperGtk. 1153 1154 * WebCoreSupport/PasteboardHelperGtk.cpp: 1155 (WebKit::PasteboardHelperGtk::PasteboardHelperGtk): 1156 (WebKit::PasteboardHelperGtk::~PasteboardHelperGtk): 1157 (WebKit::PasteboardHelperGtk::fullTargetList): 1158 * WebCoreSupport/PasteboardHelperGtk.h: 1159 * webkit/webkitprivate.cpp: 1160 (WebKit::pasteboardHelperInstance): 1161 (webkit_init): 1162 * webkit/webkitprivate.h: 1163 * webkit/webkitwebview.cpp: 1164 (webkit_web_view_dispose): 1165 (webkit_web_view_init): 1166 (webkit_web_view_get_copy_target_list): 1167 (webkit_web_view_get_paste_target_list): 1168 11692009-10-30 Evan Stade <estade@chromium.org> 1170 1171 Reviewed by David Levin. 1172 1173 Notify the chrome when the focused node has changed. 1174 https://bugs.webkit.org/show_bug.cgi?id=30832 1175 1176 Added stub implementation for new ChromeClient function. 1177 1178 * WebCoreSupport/ChromeClientGtk.cpp: 1179 (WebKit::ChromeClient::focusedNodeChanged): 1180 * WebCoreSupport/ChromeClientGtk.h: 1181 11822009-10-29 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1183 1184 Unreviewed. Trivial fix - move public API declaration into the 1185 public subsection of the doc. 1186 1187 * docs/webkitgtk-sections.txt: 1188 11892009-10-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1190 1191 Reviewed by Jan Alonzo. 1192 1193 [GTK] API to start inspector for a WebView 1194 https://bugs.webkit.org/show_bug.cgi?id=22551 1195 1196 Provide a simple, coordinates-based API to start the inspector. 1197 1198 * WebCoreSupport/InspectorClientGtk.cpp: 1199 (WebKit::InspectorClient::createPage): Use files from the source 1200 tree when running from the top of the source directory. 1201 (WebKit::InspectorClient::localizedStringsURL): Ditto. 1202 * webkit/webkitprivate.h: 1203 * webkit/webkitwebinspector.cpp: 1204 (webkit_web_inspector_inspect_coordinates): 1205 (webkit_web_inspector_close): 1206 (webkit_web_inspector_execute_script): 1207 * webkit/webkitwebinspector.h: 1208 12092009-10-27 Shinichiro Hamaji <hamaji@chromium.org> 1210 1211 Reviewed by Darin Adler. 1212 1213 Provide a way to get counter values with layoutTestContoller 1214 https://bugs.webkit.org/show_bug.cgi?id=30555 1215 1216 * webkit/webkitprivate.h: 1217 * webkit/webkitwebframe.cpp: 1218 (webkit_web_frame_counter_value_for_element_by_id): 1219 12202009-10-28 Joe Mason <jmason@rim.com> 1221 1222 Reviewed by Adam Treat. 1223 1224 Call the shared FrameLoader::defaultObjectContentType instead of 1225 copying code into FrameLoaderClient::objectContentType. This causes no 1226 behavioural change. 1227 1228 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1229 (WebKit::FrameLoaderClient::objectContentType): 1230 12312009-10-28 Xan Lopez <xlopez@igalia.com> 1232 1233 Reviewed by Jan Alonzo. 1234 1235 [Gtk] Extraneous object of ROLE_PANEL in hierarchy for entries 1236 https://bugs.webkit.org/show_bug.cgi?id=25897 1237 1238 Update test to also check that entries implement the AtkText 1239 interface. 1240 1241 * tests/testatk.c: 1242 (run_get_text_tests): 1243 (test_webkit_atk_get_text_at_offset_forms): 1244 (test_webkit_atk_get_text_at_offset): 1245 (main): 1246 12472009-10-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1248 1249 Unreviewed. Update documentation control files for 1.1.16. 1250 1251 * docs/webkitgtk-docs.sgml: 1252 * docs/webkitgtk-sections.txt: 1253 12542009-10-26 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1255 1256 Reviewed by Xan Lopez. 1257 1258 https://bugs.webkit.org/show_bug.cgi?id=30759 1259 [GTK] Should use WebKitNetworkResponse, and expose it 1260 1261 WebKitDownload now uses our WebKitNetworkResponse instead of using 1262 ResourceResponse directly. By exposing the response, like we do 1263 with the request, we give our users the ability to look at the 1264 response headers, status code, and so on, through the SoupMessage 1265 object. 1266 1267 * webkit/webkitdownload.cpp: 1268 (webkit_download_dispose): 1269 (webkit_download_finalize): 1270 (webkit_download_get_property): 1271 (webkit_download_set_property): 1272 (webkit_download_class_init): 1273 (webkit_download_get_network_response): 1274 (webkit_download_set_response): 1275 (webkit_download_get_total_size): 1276 (webkit_download_get_progress): 1277 (webkit_download_received_data): 1278 * webkit/webkitdownload.h: 1279 12802009-10-26 Xan Lopez <xlopez@igalia.com> 1281 1282 Reviewed by Gustavo Noronha. 1283 1284 Update for 1.1.16 release. 1285 1286 * NEWS: 1287 12882009-10-22 Gavin Barraclough <barraclough@apple.com> 1289 1290 Reviewed by NOBODY (build fix). 1291 Build fix following bug #30696. 1292 1293 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1294 (WebKit::FrameLoaderClient::windowObjectCleared): 1295 * webkit/webkitwebframe.cpp: 1296 (webkit_web_frame_get_global_context): 1297 12982009-10-22 Alejandro G. Castro <alex@igalia.com> 1299 1300 Reviewed by Xan Lopez. 1301 1302 m_webView should be private attribute of the EditorClientGtk. 1303 https://bugs.webkit.org/show_bug.cgi?id=30664 1304 1305 * WebKit/gtk/WebCoreSupport/EditorClientGtk.h: 1306 13072009-10-20 Fumitoshi Ukai <ukai@chromium.org> 1308 1309 Reviewed by David Levin. 1310 1311 Removed WebSocket runtime settings. 1312 https://bugs.webkit.org/show_bug.cgi?id=29896 1313 1314 WebSocket runtime configuration is supported by chromium/v8 only. 1315 1316 * webkit/webkitwebview.cpp: 1317 (webkit_web_view_update_settings): 1318 (webkit_web_view_settings_notify): 1319 13202009-10-19 Jan Michael Alonzo <jmalonzo@webkit.org> 1321 1322 Reviewed by Alexey Proskuryakov. 1323 1324 [Gtk] ApplicationCacheStorage error while compiling WebKit/gtk/webkit/webkitapplicationcache.cpp 1325 https://bugs.webkit.org/show_bug.cgi?id=30358 1326 1327 Guard calls to cacheStorage() with ENABLE(OFFLINE_WEB_APPLICATIONS). 1328 1329 * webkit/webkitapplicationcache.cpp: 1330 13312009-10-19 Zan Dobersek <zandobersek@gmail.com> 1332 1333 Reviewed by Gustavo Noronha. 1334 1335 Add a settings to allow DOM pastes to be performed. 1336 1337 * webkit/webkitwebsettings.cpp: 1338 (webkit_web_settings_class_init): 1339 (webkit_web_settings_set_property): 1340 (webkit_web_settings_get_property): 1341 (webkit_web_settings_copy): 1342 * webkit/webkitwebview.cpp: 1343 (webkit_web_view_update_settings): 1344 (webkit_web_view_settings_notify): 1345 13462009-10-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1347 1348 Unreviewed. Make WebKitHitTestResult actually appear in the 1349 documentation index. 1350 1351 * docs/webkitgtk-docs.sgml: 1352 13532009-10-15 Xan Lopez <xlopez@igalia.com> 1354 1355 Reviewed by Gustavo Noronha. 1356 1357 Protect WebSocket calls in case the feature is not compiled in. 1358 1359 * webkit/webkitwebview.cpp: 1360 (webkit_web_view_update_settings): 1361 (webkit_web_view_settings_notify): 1362 13632009-10-15 Zan Dobersek <zandobersek@gmail.com> 1364 1365 Reviewed by Gustavo Noronha. 1366 1367 Add a settings to enable support for experimental Web Sockets. 1368 Currently this comes in handy in layout tests. 1369 1370 * webkit/webkitwebsettings.cpp: 1371 (webkit_web_settings_class_init): 1372 (webkit_web_settings_set_property): 1373 (webkit_web_settings_get_property): 1374 (webkit_web_settings_copy): 1375 * webkit/webkitwebview.cpp: 1376 (webkit_web_view_update_settings): 1377 (webkit_web_view_settings_notify): 1378 13792009-10-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1380 1381 Reviewed by Xan Lopez. 1382 1383 page transition may crash webkit 1384 https://bugs.webkit.org/show_bug.cgi?id=29890 1385 1386 There are actually cases in which a resource may be asked using 1387 webkit_web_view_get_resource after a new load has already been 1388 started, so protect ourselves from crashes in this case. 1389 1390 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1391 (WebKit::FrameLoaderClient::dispatchDidFinishLoading): 1392 * webkit/webkitwebview.cpp: 1393 (webkit_web_view_get_resource): 1394 13952009-10-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1396 1397 Rubber-stamped by Xan Lopez. 1398 1399 Remove unnecessary self-include. 1400 1401 * webkit/webkitsecurityorigin.h: 1402 14032009-10-12 Christian Dywan <christian@twotoasts.de> 1404 1405 Reviewed by Gustavo Noronha. 1406 1407 [GTK] Crash when right-clicking misspelled word 1408 https://bugs.webkit.org/show_bug.cgi?id=29772 1409 1410 Make sure the dictionary exist before adding it to the list of 1411 dictionaries. 1412 1413 * WebCoreSupport/EditorClientGtk.cpp: 1414 (WebKit::EditorClient::checkSpellingOfString): 1415 * webkit/webkitwebsettings.cpp: 1416 (webkit_web_settings_set_property): 1417 14182009-10-08 Adam Barth <abarth@webkit.org> 1419 1420 Reviewed by Eric Seidel. 1421 1422 Move executeScript from FrameLoader to ScriptController 1423 https://bugs.webkit.org/show_bug.cgi?id=30200 1424 1425 Update API call. 1426 1427 * webkit/webkitwebview.cpp: 1428 (webkit_web_view_execute_script): 1429 14302009-10-07 Xan Lopez <xlopez@igalia.com> 1431 1432 Fix the GTK+ build. 1433 1434 * webkit/webkitwebpolicydecision.cpp: 1435 (webkit_web_policy_decision_use): 1436 (webkit_web_policy_decision_ignore): 1437 (webkit_web_policy_decision_download): 1438 14392009-10-07 Adam Barth <abarth@webkit.org> 1440 1441 Reviewed by Darin Adler. 1442 1443 Factor PolicyChecker out of FrameLoader 1444 https://bugs.webkit.org/show_bug.cgi?id=30155 1445 1446 Move the policy callback to the policy object. 1447 1448 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1449 (WebKit::FrameLoaderClient::dispatchWillSubmitForm): 1450 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): 1451 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 1452 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 1453 14542009-10-07 Martin Robinson <martin.james.robinson@gmail.com> 1455 1456 [GTK] Segfault while testing fast/events/keydown-keypress-preventDefault.html 1457 https://bugs.webkit.org/show_bug.cgi?id=30121 1458 1459 Clear previous preedit or pending composition before storing new ones. 1460 This can happen when a WebView receives a native keydown event without 1461 a matching keyup event or when preventDefault() is called on DOM keydown 1462 events. 1463 1464 * WebCoreSupport/EditorClientGtk.cpp: 1465 (WebKit::setPendingComposition): 1466 (WebKit::setPendingPreedit): 1467 (WebKit::clearPendingIMData): 1468 (WebKit::imContextCommitted): 1469 (WebKit::imContextPreeditChanged): 1470 14712009-10-06 Xan Lopez <xlopez@igalia.com> 1472 1473 Reviewed by Eric Seidel. 1474 1475 https://bugs.webkit.org/show_bug.cgi?id=25526 1476 [Gtk] Additional support is needed for caret browsing 1477 1478 Remove special cases for caret browsing, they are now handled in 1479 cross-platform code. 1480 1481 * WebCoreSupport/EditorClientGtk.cpp: 1482 (WebKit::EditorClient::handleKeyboardEvent): 1483 14842009-10-06 Pavel Feldman <pfeldman@chromium.org> 1485 1486 Reviewed by Timothy Hatcher. 1487 1488 Web Inspector: close inspector client view on 1489 InspectorController::close API call. 1490 1491 In order to run batch web inspector layout tests (and not affect 1492 subsequent tests) we should close inspector client's view upon 1493 InspectorController::close API call. 1494 1495 https://bugs.webkit.org/show_bug.cgi?id=30009 1496 1497 * WebCoreSupport/InspectorClientGtk.cpp: 1498 (WebKit::InspectorClient::createPage): 1499 15002009-10-06 Alejandro G. Castro <alex@igalia.com> 1501 1502 Reviewed by Xan Lopez. 1503 1504 ASSERT executing the webhistory unittest in a debug build 1505 https://bugs.webkit.org/show_bug.cgi?id=28947 1506 1507 We have to call g_object_new first to initialize webkit threading 1508 before creating the KURL. 1509 1510 * WebKit/gtk/webkit/webkitwebhistoryitem.cpp: 1511 15122009-10-06 José Millán Soto <fid@gpul.org> 1513 1514 Reviewed by Xan Lopez. 1515 1516 Header files of WebKitGTK do not comply with WebKit coding style (Patch attached) 1517 https://bugs.webkit.org/show_bug.cgi?id=30076 1518 1519 Solves various issues in header files. 1520 1521 * WebCoreSupport/DocumentLoaderGtk.h: Added "headed guards" 1522 * webkit/webkitdefines.h: 1523 * webkit/webkitdownload.h: 1524 * webkit/webkiterror.h: 1525 * webkit/webkithittestresult.h: 1526 * webkit/webkitnetworkrequest.h: 1527 * webkit/webkitnetworkresponse.h: 1528 * webkit/webkitprivate.h: 1529 * webkit/webkitsecurityorigin.h: 1530 * webkit/webkitsoupauthdialog.h: 1531 * webkit/webkitversion.h.in: 1532 * webkit/webkitwebbackforwardlist.h: 1533 * webkit/webkitwebdatabase.h: 1534 * webkit/webkitwebdatasource.h: 1535 * webkit/webkitwebframe.h: 1536 * webkit/webkitwebhistoryitem.h: 1537 * webkit/webkitwebinspector.h: 1538 * webkit/webkitwebnavigationaction.h: 1539 * webkit/webkitwebpolicydecision.h: 1540 * webkit/webkitwebresource.h: 1541 * webkit/webkitwebsettings.h: 1542 * webkit/webkitwebview.h: 1543 * webkit/webkitwebwindowfeatures.h: 1544 15452009-10-03 Adam Barth <abarth@webkit.org> 1546 1547 More build fixing. 1548 1549 * webkit/webkitwebview.cpp: 1550 (webkit_web_view_go_back_or_forward): 1551 (webkit_web_view_can_go_back_or_forward): 1552 15532009-10-03 Adam Barth <abarth@webkit.org> 1554 1555 Unreviewed build fix. 1556 1557 * webkit/webkitwebview.cpp: 1558 (webkit_web_view_go_back_or_forward): 1559 15602009-10-03 Adam Barth <abarth@webkit.org> 1561 1562 Reviewed by Sam Weinig. 1563 1564 Factor PageController out of FrameLoader and Page 1565 https://bugs.webkit.org/show_bug.cgi?id=30037 1566 1567 * webkit/webkitwebview.cpp: 1568 (webkit_web_view_can_go_back_or_forward): 1569 15702009-10-01 Xan Lopez <xlopez@igalia.com> 1571 1572 Reviewed by Gustavo Noronha. 1573 1574 Set the type for the fake event, otherwise the test ASSERTs in 1575 debug builds. 1576 1577 * tests/testhittestresult.c: 1578 (load_status_cb): 1579 15802009-10-01 Martin Robinson <martin.james.robinson@gmail.com> 1581 1582 Reviewed by Xan Lopez. 1583 1584 [GTK] GtkIMContext filtering interferes with DOM key events 1585 https://bugs.webkit.org/show_bug.cgi?id=28733 1586 1587 Ensure that keyboard events filtered by the GtkIMContext still create 1588 the proper DOM events. 1589 1590 * WebCoreSupport/EditorClientGtk.cpp: 1591 (WebKit::clearPendingIMData): 1592 (WebKit::imContextCommitted): 1593 (WebKit::imContextPreeditChanged): 1594 (WebKit::EditorClient::shouldBeginEditing): 1595 (WebKit::EditorClient::shouldEndEditing): 1596 (WebKit::interpretEditorCommandKeyEvent): 1597 (WebKit::handleCaretBrowsingKeyboardEvent): 1598 (WebKit::EditorClient::handleKeyboardEvent): 1599 (WebKit::EditorClient::handleInputMethodKeydown): 1600 * tests/testkeyevents.c: Added. 1601 (test_info_new): 1602 (test_info_destroy): 1603 (key_event_fixture_setup): 1604 (key_event_fixture_teardown): 1605 (key_press_event_cb): 1606 (key_release_event_cb): 1607 (load_status_cb): 1608 (map_event_cb): 1609 (test_keypress): 1610 (main): 1611 16122009-09-29 Xan Lopez <xlopez@igalia.com> 1613 1614 Reviewed by Gustavo Noronha. 1615 1616 Do not set a non-default parent window for child widgets. We are 1617 just doing the same than the default path does, and on top of that 1618 if the widget's window changes (for example, during DnD widgets 1619 are usually unrealized/realized) the child widget will we left 1620 pointing to a dead window. 1621 1622 For examples of crashers caused by this see 1623 https://bugzilla.gnome.org/show_bug.cgi?id=596397 and 1624 https://bugzilla.gnome.org/show_bug.cgi?id=596398 1625 1626 * webkit/webkitwebview.cpp: 1627 (webkit_web_view_container_add): 1628 16292009-09-29 Xan Lopez <xlopez@igalia.com> 1630 1631 Rubber-stamped by Eric Seidel. 1632 1633 [Gtk] Crash when saving a password 1634 https://bugs.webkit.org/show_bug.cgi?id=28070 1635 1636 Disconnect the 'got-headers' callback when we are done with 1637 it. The signal can be emitted more than once if the message is 1638 retransmitted, but each time that happens authData is created 1639 again and a new callback connected, so we have to get rid of the 1640 old one (which will crash because we free authData). 1641 1642 * webkit/webkitsoupauthdialog.c: 1643 (save_password_callback): 1644 16452009-09-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1646 1647 Reviewed by Xan Lopez. 1648 1649 Pop down the context menu when the page transitions to committed, 1650 to avoid keeping a context menu out of context. 1651 1652 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1653 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 1654 * webkit/webkitprivate.h: 1655 * webkit/webkitwebview.cpp: 1656 (destroy_menu_cb): 1657 (webkit_web_view_forward_context_menu_event): 1658 16592009-09-24 Jon Honeycutt <jhoneycutt@apple.com> 1660 1661 Reviewed by Alice Liu. 1662 1663 * webkit/webkitwebview.cpp: 1664 (webkit_web_view_init): 1665 Pass 0 for new Page constructor argument. 1666 16672009-09-24 Xan Lopez <xlopez@igalia.com> 1668 1669 Reviewed by Gustavo Noronha and Jan Alonzo. 1670 [GTK] Add WEBKIT_LOAD_ERROR status 1671 https://bugs.webkit.org/show_bug.cgi?id=29644 1672 1673 Add a new load-status enum value, WEBKIT_LOAD_FAILED, emitted when 1674 there's an error during the load process. This is needed if we 1675 want notify::load-status to be able to handle all situations, 1676 since WEBKIT_LOAD_FINISHED is not emitted when there's an error 1677 and we are lacking a notification of the load being stopped. 1678 1679 * WebCoreSupport/FrameLoaderClientGtk.cpp: 1680 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 1681 * tests/testloading.c: 1682 (web_loading_fixture_setup): 1683 (load_error_status_changed_cb): 1684 (load_error_cb): 1685 (test_loading_error): 1686 (load_cancelled_cb): 1687 (stop_load): 1688 (load_cancelled_status_changed_cb): 1689 (test_loading_cancelled): 1690 (main): 1691 * webkit/webkitwebframe.h: 1692 16932009-09-24 Xan Lopez <xlopez@igalia.com> 1694 1695 Revert r48697, since it broke key handling notification to GTK+. 1696 1697 * WebCoreSupport/EditorClientGtk.cpp: 1698 (WebKit::imContextCommitted): 1699 (WebKit::imContextPreeditChanged): 1700 (WebKit::EditorClient::shouldBeginEditing): 1701 (WebKit::EditorClient::shouldEndEditing): 1702 (WebKit::interpretKeyEvent): 1703 (WebKit::handleEditingKeyboardEvent): 1704 (WebKit::EditorClient::handleKeyboardEvent): 1705 (WebKit::EditorClient::handleInputMethodKeydown): 1706 17072009-09-23 Martin Robinson <martin.james.robinson@gmail.com> 1708 1709 Reviewed by Xan Lopez. 1710 1711 [GTK] REGRESSION: BitmapImage::getGdkPixbuf fails for non-square images 1712 https://bugs.webkit.org/show_bug.cgi?id=29654 1713 1714 Ensure that even when GTKSimpleIMContext filters non-IME keystrokes, 1715 keyboard events are fired properly. 1716 1717 * WebCoreSupport/EditorClientGtk.cpp: 1718 (WebKit::clearPendingIMData): 1719 (WebKit::imContextCommitted): 1720 (WebKit::imContextPreeditChanged): 1721 (WebKit::EditorClient::shouldBeginEditing): 1722 (WebKit::EditorClient::shouldEndEditing): 1723 (WebKit::interpretEditorCommandKeyEvent): 1724 (WebKit::handleCaretBrowsingKeyboardEvent): 1725 (WebKit::EditorClient::handleKeyboardEvent): 1726 (WebKit::EditorClient::handleInputMethodKeydown): 1727 17282009-09-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1729 1730 Reviewed by Xan Lopez. 1731 1732 [GTK] need to dump number of pending unload handlers 1733 https://bugs.webkit.org/show_bug.cgi?id=29685 1734 1735 * webkit/webkitprivate.h: 1736 * webkit/webkitwebframe.cpp: 1737 (webkit_web_frame_get_pending_unload_event_count): New function to 1738 satisfy DRT needs. 1739 17402009-09-23 Jan Michael Alonzo <jmalonzo@webkit.org> 1741 1742 Reviewed by Xan Lopez. 1743 1744 Minor reorganization to the patch landed in 1745 http://trac.webkit.org/changeset/48670. Also move JSCore-1.0.gir 1746 in the gtk directory as that's only useful to the Gtk port at the 1747 moment. 1748 1749 * JSCore-1.0.gir: Renamed from JSCore-1.0.gir. 1750 17512009-09-22 Xan Lopez <xlopez@igalia.com> 1752 1753 Reviewed by Jan Alonzo. 1754 1755 Hardcode element positions at 0,0 so that we know where to 1756 generate events to test WebKitHitTestResult. 1757 1758 * tests/testhittestresult.c: 1759 (load_status_cb): 1760 (test_webkit_hit_test_result): 1761 (main): 1762 17632009-09-22 Xan Lopez <xlopez@igalia.com> 1764 1765 Reviewed by Jan Alonzo. 1766 1767 [GTK] WebKitHitTestResult is completely broken in gmail 1768 https://bugs.webkit.org/show_bug.cgi?id=29527 1769 1770 We need to use the main or focused frame when doing the coordinate 1771 transformation instead of always using the main frame. 1772 1773 * webkit/webkitwebview.cpp: 1774 (webkit_web_view_get_hit_test_result): 1775 17762009-09-21 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1777 1778 Update documentation control files to 1.1.15. 1779 1780 * docs/webkitgtk-docs.sgml: 1781 * docs/webkitgtk-sections.txt: 1782 17832009-09-21 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1784 1785 Unreviewed docs build fix. Current CFLAGS and LIBS variables no 1786 longer bring gthread in. 1787 1788 * docs/GNUmakefile.am: 1789 17902009-09-21 Xan Lopez <xlopez@igalia.com> 1791 1792 Reviewed by Gustavo Noronha. 1793 1794 Update for release. 1795 1796 * NEWS: 1797 17982009-09-20 Xan Lopez <xlopez@igalia.com> 1799 1800 Reviewed by Gustavo Noronha. 1801 1802 Small documentation fix. 1803 1804 * webkit/webkithittestresult.cpp: 1805 18062009-09-18 Xan Lopez <xlopez@igalia.com> 1807 1808 Build fix. 1809 1810 Add missing file to the repository. 1811 1812 * tests/testhittestresult.c: Added. 1813 (test_info_new): 1814 (test_info_destroy): 1815 (hit_test_result_fixture_setup): 1816 (hit_test_result_fixture_teardown): 1817 (load_status_cb): 1818 (test_webkit_hit_test_result): 1819 (main): 1820 18212009-09-18 Kenneth Rohde Christiansen <kenneth@webkit.org> 1822 1823 [Gtk] Unreviewed build fix. 1824 1825 * WebCoreSupport/ChromeClientGtk.cpp: 1826 (WebKit::ChromeClient::platformPageClient): 1827 18282009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org> 1829 1830 Reviewed by Simon Hausmann. 1831 1832 Make PlatformWindow return something else than PlatformWidget 1833 https://bugs.webkit.org/show_bug.cgi?id=29085 1834 1835 Reflect the rename of platformWindow and it's return type. 1836 1837 * WebCoreSupport/ChromeClientGtk.cpp: 1838 (WebKit::ChromeClient::platformPageClient): 1839 (WebKit::ChromeClient::runOpenPanel): 1840 * WebCoreSupport/ChromeClientGtk.h: 1841 * webkit/webkitprivate.cpp: 1842 (currentToplevelCallback): 1843 * webkit/webkitwebview.cpp: 1844 (webkit_web_view_popup_menu_handler): 1845 18462009-09-18 Xan Lopez <xlopez@igalia.com> 1847 1848 Reviewed by Jan Alonzo. 1849 1850 Document webkit_web_view_stop_loading. 1851 1852 * webkit/webkitwebview.cpp: 1853 18542009-09-18 Xan Lopez <xlopez@igalia.com> 1855 1856 Reviewed by Gustavo Noronha and Jan Alonzo. 1857 1858 [GTK] context menu overriding API is very limited 1859 https://bugs.webkit.org/show_bug.cgi?id=27546 1860 1861 Add webkit_web_view_get_hit_test_result, a function to get a hit 1862 test result from a GdkEventButton. Useful to let applications 1863 decide between several actions on button press depending on what 1864 is being pressed. 1865 1866 * webkit/webkitwebview.cpp: 1867 (webkit_web_view_stop_loading): 1868 (documentPointForWindowPoint): 1869 (webkit_web_view_get_hit_test_result): 1870 * webkit/webkitwebview.h: 1871 18722009-09-18 Xan Lopez <xlopez@igalia.com> 1873 1874 Reviewed by Gustavo Noronha and Jan Alonzo. 1875 1876 [GTK] context menu overriding API is very limited 1877 https://bugs.webkit.org/show_bug.cgi?id=27546 1878 1879 Add WebKitHitTestResult, a wrapper over HitTestResult. It contains 1880 context information about a point in the web page. 1881 1882 * webkit/webkit.h: 1883 * webkit/webkitdefines.h: 1884 * webkit/webkithittestresult.cpp: Added. 1885 (webkit_hit_test_result_finalize): 1886 (webkit_hit_test_result_get_property): 1887 (webkit_hit_test_result_set_property): 1888 (webkit_hit_test_result_class_init): 1889 (webkit_hit_test_result_init): 1890 * webkit/webkithittestresult.h: Added. 1891 * webkit/webkitprivate.cpp: 1892 (WebKit::kit): 1893 * webkit/webkitprivate.h: 1894 18952009-09-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1896 1897 Reviewed by Xan Lopez and Jan Alonzo. 1898 1899 https://bugs.webkit.org/show_bug.cgi?id=29134 1900 [GTK] Add API to access sub resources 1901 1902 Implement getting subresources, and improve testing of 1903 main, and sub resources loading. 1904 19052009-09-11 Xan Lopez <xlopez@igalia.com> 1906 1907 Reviewed by Jan Alonzo. 1908 1909 [GTK] Use gtk_style_set_background instead of gdk_window_set_background 1910 https://bugs.webkit.org/show_bug.cgi?id=29173 1911 1912 Use gtk_style_set_background instead of gdk_window_set_background, 1913 as suggested by the documentation. Also, use GTK_STATE_NORMAL 1914 directly, since that's the default state of a GtkWidget. 1915 1916 * webkit/webkitwebview.cpp: 1917 (webkit_web_view_realize): 1918 19192009-09-09 Zan Dobersek <zandobersek@gmail.com> 1920 1921 Reviewed by Gustavo Noronha. 1922 1923 [GTK] DumpRenderTree needs eventSender object and implementation 1924 https://bugs.webkit.org/show_bug.cgi?id=25990 1925 1926 Creates a function that is accessible from the DumpRenderTree tool 1927 and calls the layout method on the frame view. 1928 1929 * webkit/webkitprivate.h: 1930 * webkit/webkitwebframe.cpp: 1931 (webkit_web_frame_layout): 1932 19332009-09-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1934 1935 Reviewed by Xan Lopez. 1936 1937 https://bugs.webkit.org/show_bug.cgi?id=29044 1938 [GTK] Should update suggested-filename when the response is received 1939 1940 Set suggested filename also when the response only comes after the 1941 download has started. 1942 1943 * webkit/webkitdownload.cpp: 1944 (webkit_download_set_response): 1945 (webkit_download_set_suggested_filename): 1946 * webkit/webkitwebview.cpp: 1947 (webkit_web_view_request_download): 1948 19492009-09-08 Priit Laes <plaes@plaes.org> 1950 1951 Reviewed by Gustavo Noronha. 1952 1953 Fix up erroneus 'Since: @version@' tags in documentation. 1954 1955 * webkit/webkitwebdatasource.cpp: 1956 * webkit/webkitwebresource.cpp: 1957 (webkit_web_resource_class_init): 1958 * webkit/webkitwebsettings.cpp: 1959 (webkit_web_settings_class_init): 1960 * webkit/webkitwebview.cpp: 1961 (webkit_web_view_class_init): 1962 * webkit/webkitwebwindowfeatures.cpp: 1963 19642009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1965 1966 Link new objects documents in the main document. 1967 1968 * docs/webkitgtk-docs.sgml: 1969 19702009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1971 1972 Documentation control files updated for 1.1.14. 1973 1974 * docs/webkitgtk-docs.sgml: 1975 * docs/webkitgtk-sections.txt: 1976 19772009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1978 1979 What's new for 1.1.14. 1980 1981 * NEWS: 1982 19832009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1984 1985 Rubber-stamped by Xan Lopez. 1986 1987 Use g_return_if_fail to check for the SoupURI creation, instead of 1988 printing a custom warning. 1989 1990 * webkit/webkitnetworkrequest.cpp: 1991 (webkit_network_request_set_uri): 1992 19932009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 1994 1995 Reviewed by Xan Lopez. 1996 1997 https://bugs.webkit.org/show_bug.cgi?id=26854 1998 [GTK] Needs API to allow more control over outgoing requests 1999 2000 Map the willSendRequest delegate to the 'resource-request-starting' 2001 signal, allowing more control of the resources that are fetched. 2002 2003 Mapping willSendRequest properly requires an appropriate Response 2004 object, so we are introducing WebKitNetworkResponse, which works in a 2005 way similar to WebKitNetworkRequest. 2006 2007 * WebCoreSupport/FrameLoaderClientGtk.cpp: 2008 (WebKit::FrameLoaderClient::dispatchWillSendRequest): 2009 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest): 2010 (WebKit::FrameLoaderClient::dispatchDidFinishLoading): 2011 (WebKit::FrameLoaderClient::dispatchDidFailLoading): 2012 * tests/testnetworkresponse.c: Added. 2013 (test_network_response_create_destroy): 2014 (test_network_response_properties): 2015 (main): 2016 * tests/testwebresource.c: 2017 (resource_request_starting_cb): 2018 (load_finished_cb): 2019 (test_web_resource_loading): 2020 (main): 2021 * webkit/webkit.h: 2022 * webkit/webkitdefines.h: 2023 * webkit/webkitnetworkrequest.cpp: 2024 * webkit/webkitnetworkresponse.cpp: Added. 2025 (webkit_network_response_dispose): 2026 (webkit_network_response_finalize): 2027 (webkit_network_response_get_property): 2028 (webkit_network_response_set_property): 2029 (webkit_network_response_class_init): 2030 (webkit_network_response_init): 2031 (webkit_network_response_new_with_core_response): 2032 (webkit_network_response_new): 2033 (webkit_network_response_set_uri): 2034 (webkit_network_response_get_uri): 2035 (webkit_network_response_get_message): 2036 * webkit/webkitnetworkresponse.h: Added. 2037 * webkit/webkitprivate.cpp: 2038 (WTF::SoupMessage): 2039 (WTF::WebKitNetworkRequest): 2040 (WTF::WebKitNetworkResponse): 2041 (WTF::WebKitWebResource): 2042 * webkit/webkitprivate.h: 2043 * webkit/webkitwebresource.cpp: 2044 (webkit_web_resource_cleanup): 2045 (webkit_web_resource_finalize): 2046 (webkit_web_resource_class_init): 2047 (webkit_web_resource_set_property): 2048 (webkit_web_resource_get_uri): 2049 * webkit/webkitwebview.cpp: 2050 (webkit_web_view_class_init): 2051 * webkitmarshal.list: 2052 20532009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2054 2055 Reviewed by Jan Alonzo. 2056 2057 https://bugs.webkit.org/show_bug.cgi?id=28979 2058 [GTK] Misc improvments to NetworkRequest 2059 2060 Unref message in dispose, as it should be, not in finalize. 2061 2062 * webkit/webkitnetworkrequest.cpp: 2063 (webkit_network_request_dispose): 2064 (webkit_network_request_finalize): 2065 (webkit_network_request_class_init): 2066 20672009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2068 2069 Reviewed by Jan Alonzo. 2070 2071 https://bugs.webkit.org/show_bug.cgi?id=28979 2072 [GTK] Misc improvments to NetworkRequest 2073 2074 Bring documentation up-to-date with reality regarding NetworkRequest. 2075 2076 * webkit/webkitnetworkrequest.cpp: 2077 20782009-09-07 Xan Lopez <xlopez@igalia.com> 2079 2080 Reviewed by Gustavo Noronha. 2081 2082 Make the auth dialog usable when libsoup does not have a 2083 SoupPasswordManager, since it might go away in the next 2084 development cycle. 2085 2086 * webkit/webkitsoupauthdialog.c: 2087 (response_callback): 2088 (session_can_save_passwords): 2089 (session_authenticate): 20902009-09-06 Xan Lopez <xlopez@igalia.com> 2091 2092 Reviewed by Gustavo Noronha. 2093 2094 Update the unitests to latest changes wrt scrollbar policy. 2095 2096 * tests/testwindow.c: 2097 (test_webkit_window_scrollbar_policy): 2098 20992009-09-06 Martin Robinson <martin.james.robinson@gmail.com> 2100 2101 Reviewed by Gustavo Noronha, Jan Alonzo and Xan Lopez. 2102 2103 [Gtk] Expose a database API 2104 https://bugs.webkit.org/show_bug.cgi?id=27899 2105 2106 Expose an HTML5 database API for GTK+. 2107 2108 * WebCoreSupport/ChromeClientGtk.cpp: 2109 (WebKit::ChromeClient::print): 2110 * webkit/webkit.h: 2111 * webkit/webkitdefines.h: 2112 * webkit/webkitprivate.cpp: 2113 (webkit_init): 2114 * webkit/webkitprivate.h: 2115 * webkit/webkitsecurityorigin.cpp: Added. 2116 (webkit_security_origin_finalize): 2117 (webkit_security_origin_dispose): 2118 (webkit_security_origin_set_property): 2119 (webkit_security_origin_get_property): 2120 (webkit_security_origins): 2121 (webkit_security_origin_class_init): 2122 (webkit_security_origin_init): 2123 (webkit_security_origin_get_protocol): 2124 (webkit_security_origin_get_host): 2125 (webkit_security_origin_get_port): 2126 (webkit_security_origin_get_web_database_usage): 2127 (webkit_security_origin_get_web_database_quota): 2128 (webkit_security_origin_set_web_database_quota): 2129 (webkit_security_origin_get_all_web_databases): 2130 (WebKit::kit): 2131 (WebKit::core): 2132 (webkit_security_origin_get_web_database): 2133 * webkit/webkitsecurityorigin.h: Added. 2134 * webkit/webkitwebdatabase.cpp: Added. 2135 (webkit_web_database_finalize): 2136 (webkit_web_database_dispose): 2137 (webkit_web_database_set_property): 2138 (webkit_web_database_get_property): 2139 (webkit_web_database_class_init): 2140 (webkit_web_database_init): 2141 (webkit_web_database_set_security_origin): 2142 (webkit_web_database_set_name): 2143 (webkit_web_database_get_security_origin): 2144 (webkit_web_database_get_name): 2145 (webkit_web_database_get_display_name): 2146 (webkit_web_database_get_expected_size): 2147 (webkit_web_database_get_size): 2148 (webkit_web_database_get_filename): 2149 (webkit_web_database_remove): 2150 (webkit_remove_all_web_databases): 2151 (webkit_get_web_database_directory_path): 2152 (webkit_set_web_database_directory_path): 2153 (webkit_get_default_web_database_quota): 2154 * webkit/webkitwebdatabase.h: Added. 2155 * webkit/webkitwebframe.cpp: 2156 (webkit_web_frame_new): 2157 (webkit_web_frame_get_focused_accessible_element): 2158 (webkit_web_frame_get_horizontal_scrollbar_policy): 2159 * webkit/webkitwebframe.h: 2160 * webkit/webkitwebview.cpp: 2161 (webkit_web_view_class_init): 2162 21632009-09-03 Adam Barth <abarth@webkit.org> 2164 2165 Reviewed by eric@webkit.org. 2166 2167 https://bugs.webkit.org/show_bug.cgi?id=24696 2168 2169 Stub implementations of mixed content methods of FrameLoaderClient. 2170 2171 * WebCoreSupport/FrameLoaderClientGtk.cpp: 2172 (WebKit::FrameLoaderClient::didDisplayInsecureContent): 2173 (WebKit::FrameLoaderClient::didRunInsecureContent): 2174 * WebCoreSupport/FrameLoaderClientGtk.h: 2175 21762009-09-03 Xan Lopez <xlopez@igalia.com> 2177 2178 Reviewed by Gustavo Noronha. 2179 2180 Access private member variables directly instead of using the 2181 accessor. 2182 2183 * WebCoreSupport/FrameLoaderClientGtk.cpp: 2184 (WebKit::FrameLoaderClient::createFrame): 2185 (WebKit::FrameLoaderClient::windowObjectCleared): 2186 21872009-09-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2188 2189 Reviewed by Xan Lopez. 2190 2191 Remove bogus asserts that break Debug builds at runtime. 2192 2193 * WebCoreSupport/DocumentLoaderGtk.cpp: 2194 (WebKit::DocumentLoader::detachFromFrame): 2195 (WebKit::DocumentLoader::decreaseLoadCount): 2196 21972009-09-02 Jan Michael Alonzo <jmalonzo@webkit.org> 2198 2199 Reviewed by Xan Lopez and Gustavo Noronha. 2200 2201 [Gtk] Implement a WebDataSource for the gtk port 2202 https://bugs.webkit.org/show_bug.cgi?id=24758 2203 2204 Add data source API getters to WebKitWebFrame. 2205 Also add WebKitWebDataSource unit test. 2206 2207 * tests/testwebdatasource.c: Added. 2208 * webkit/webkitwebframe.cpp: 2209 * webkit/webkitwebframe.h: 2210 22112009-09-02 Jan Michael Alonzo <jmalonzo@webkit.org> 2212 2213 Reviewed by Xan Lopez and Gustavo Noronha. 2214 2215 [Gtk] Implement a WebDataSource for the gtk port 2216 https://bugs.webkit.org/show_bug.cgi?id=24758 2217 2218 Subclass DocumentLoader for Gtk and implement it under the WebKit 2219 namespace. Add WebKitWebDataSource implementation that closely 2220 follows the mac implementation of the API. 2221 2222 * WebCoreSupport/DocumentLoaderGtk.cpp: Added. 2223 * WebCoreSupport/DocumentLoaderGtk.h: Added. 2224 * webkit/webkitwebdatasource.cpp: Added. 2225 * webkit/webkitwebdatasource.h: Added. 2226 22272009-09-01 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2228 2229 Reviewed by Xan Lopez. 2230 2231 Avoid causing unexpected issues with window sizing when sites 2232 disable scrollbars completely. 2233 2234 * WebCoreSupport/ChromeClientGtk.cpp: 2235 (WebKit::ChromeClient::scrollbarsModeDidChange): 2236 * tests/testwindow.c: 2237 (test_webkit_window_scrollbar_policy): 2238 * webkit/webkitwebframe.cpp: 2239 (webkit_web_frame_class_init): 2240 22412009-09-01 Jan Michael Alonzo <jmalonzo@webkit.org> 2242 2243 Reviewed by Xan Lopez and Gustavo Noronha. 2244 2245 [Gtk] Implement a WebDataSource for the gtk port 2246 https://bugs.webkit.org/show_bug.cgi?id=24758 2247 2248 Implement WebKitWebResource for the resource-related API for 2249 WebKitWebDataSource. 2250 2251 * GNUmakefile.am: 2252 22532009-09-01 Xan Lopez <xlopez@igalia.com> 2254 2255 Reviewed by Jan Alonzo. 2256 2257 https://bugs.webkit.org/show_bug.cgi?id=28842 2258 [GTK] Do not emit extra FINISHED load-status signals 2259 2260 Do not emit FINISHED load-status signals on our own, just rely on 2261 WebCore for that. Avoids emitting FINISHED several times when we 2262 fail to load a URI. 2263 2264 * WebCoreSupport/FrameLoaderClientGtk.cpp: 2265 (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad): 2266 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 2267 * tests/testloading.c: 2268 (web_loading_fixture_setup): 2269 (web_loading_fixture_teardown): 2270 (load_finished_cb): 2271 (status_changed_cb): 2272 (test_loading_status): 2273 (load_error_status_changed_cb): 2274 (load_error_cb): 2275 (test_loading_error): 2276 (main): 2277 * webkit/webkitwebframe.h: 2278 22792009-08-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2280 2281 Reviewed by Alexey Proskuryakov. 2282 2283 https://bugs.webkit.org/show_bug.cgi?id=28466 2284 When downloading a file, two GET requests are sent to the HTTP server 2285 2286 Support reusing a connection that is already ongoing, instead of 2287 cancelling the connection and creating another. 2288 2289 * WebCoreSupport/FrameLoaderClientGtk.cpp: 2290 (WebKit::FrameLoaderClient::download): 2291 * webkit/webkitdownload.cpp: 2292 (webkit_download_new_with_handle): 2293 (webkit_download_start): 2294 * webkit/webkitprivate.h: 2295 * webkit/webkitwebview.cpp: 2296 (webkit_web_view_request_download): 2297 22982009-08-31 Alexey Proskuryakov <ap@apple.com> 2299 2300 Gtk build fix. 2301 2302 This is also a behavior fix, at least on debug builds - a caller of 2303 webkit_web_history_item_new_with_data() could pass an URL that could cause an assertion 2304 failure in KURL. 2305 2306 * webkit/webkitwebhistoryitem.cpp: (webkit_web_history_item_new_with_data): Pass a null 2307 KURL as base to parse properly. 2308 23092009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2310 2311 Reviewed by Holger Freyther. 2312 2313 https://bugs.webkit.org/show_bug.cgi?id=25889 2314 [GTK] scrollbar policy for main frame is not implementable 2315 2316 Add properties and a signal to report scrollbar policy changes to 2317 client code, and a default handler that does the right thing when 2318 using GtkScrolledWindow. 2319 2320 * WebCoreSupport/ChromeClientGtk.cpp: 2321 (WebKit::ChromeClient::scrollbarsModeDidChange): 2322 * WebCoreSupport/ChromeClientGtk.h: 2323 * webkit/webkitwebframe.cpp: 2324 (webkit_web_frame_get_property): 2325 (webkit_web_frame_class_init): 2326 (webkit_web_frame_get_horizontal_scrollbar_policy): 2327 (webkit_web_frame_get_vertical_scrollbar_policy): 2328 * webkit/webkitwebframe.h: 2329 * tests/testwindow.c: Added. 2330 (load_finished_cb): 2331 (test_webkit_window_scrollbar_policy): 2332 (main): 2333 23342009-08-28 Jan Michael Alonzo <jmalonzo@webkit.org> 2335 2336 Reviewed by Gustavo Noronha and Xan Lopez. 2337 2338 [Gtk] Add view source mode API 2339 https://bugs.webkit.org/show_bug.cgi?id=28805 2340 2341 Implement setter and getter for "view source" mode. 2342 2343 * webkit/webkitwebview.cpp: 2344 (webkit_web_view_set_view_source_mode): 2345 (webkit_web_frame_get_view_source_mode): 2346 * webkit/webkitwebview.h: 2347 23482009-08-26 Xan Lopez <xlopez@igalia.com> 2349 2350 Reviewed by Gustavo Noronha. 2351 2352 https://bugs.webkit.org/show_bug.cgi?id=28738 2353 Expose undo/redo functionality in WebKitWebView 2354 2355 Expose undo/redo functionality in WebKitWebView, keeping the 2356 default bindings as they were. 2357 2358 * WebCoreSupport/EditorClientGtk.cpp: 2359 (WebKit::): 2360 * webkit/webkitwebview.cpp: 2361 (webkit_web_view_real_undo): 2362 (webkit_web_view_real_redo): 2363 (webkit_web_view_class_init): 2364 (webkit_web_view_can_undo): 2365 (webkit_web_view_undo): 2366 (webkit_web_view_can_redo): 2367 (webkit_web_view_redo): 2368 * webkit/webkitwebview.h: 2369 23702009-08-24 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2371 2372 Reviewed by Xan Lopez. 2373 2374 News about the 1.1.13 release. 2375 2376 * NEWS: 2377 23782009-08-24 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2379 2380 Reviewed by Xan Lopez. 2381 2382 Add new symbols, and an index of new symbols for the 1.1.13 2383 release. 2384 2385 * docs/webkitgtk-docs.sgml: 2386 * docs/webkitgtk-sections.txt: 2387 23882009-08-23 Xan Lopez <xlopez@igalia.com> 2389 2390 Reviewed by Gustavo Noronha. 2391 2392 Fix a couple of typos. 2393 2394 * webkit/webkitwebsettings.cpp: 2395 (webkit_web_settings_class_init): 2396 23972009-08-23 Xan Lopez <xlopez@igalia.com> 2398 2399 Reviewed by Gustavo Noronha. 2400 2401 Update editing-behavior property here too. 2402 2403 * webkit/webkitwebview.cpp: 2404 (webkit_web_view_settings_notify): 2405 24062009-08-23 Jan Michael Alonzo <jmalonzo@webkit.org> 2407 2408 Rubberstamped by Gustavo Noronha. 2409 2410 Fix regressions introduced by http://trac.webkit.org/changeset/47690. 2411 2412 Update the setting whenever the property gets set. 2413 2414 * webkit/webkitwebview.cpp: 2415 (webkit_web_view_settings_notify): 2416 24172009-08-23 Jan Michael Alonzo <jmalonzo@webkit.org> 2418 2419 Reviewed by Xan Lopez. 2420 2421 [Gtk] API for disabling local file access to web URLs 2422 https://bugs.webkit.org/show_bug.cgi?id=28663 2423 2424 Add a setting to enable or disable file access to web URLs. It's 2425 disabled by default for security reasons. 2426 2427 * webkit/webkitwebsettings.cpp: 2428 (webkit_web_settings_class_init): 2429 (webkit_web_settings_set_property): 2430 (webkit_web_settings_get_property): 2431 (webkit_web_settings_copy): 2432 * webkit/webkitwebview.cpp: 2433 (webkit_web_view_update_settings): 2434 24352009-08-22 Xan Lopez <xlopez@igalia.com> 2436 2437 Reviewed by Jan Alonzo. 2438 2439 https://bugs.webkit.org/show_bug.cgi?id=28154 2440 clicking below end of text in a textarea moves cursor to wrong position 2441 2442 Expose the EditingBehavior setting and set it by default to Mac, 2443 since that what matches the GTK+ default behavior. 2444 2445 * webkit/webkitprivate.cpp: 2446 (WebKit::core): 2447 * webkit/webkitprivate.h: 2448 * webkit/webkitwebsettings.cpp: 2449 (webkit_web_settings_class_init): 2450 (webkit_web_settings_set_property): 2451 (webkit_web_settings_get_property): 2452 (webkit_web_settings_copy): 2453 * webkit/webkitwebsettings.h: 2454 * webkit/webkitwebview.cpp: 2455 (webkit_web_view_update_settings): 2456 24572009-08-20 Aaron Boodman <aa@chromium.org> 2458 2459 Hopefully the last speculative build for gtk. 2460 2461 * webkit/webkitprivate.cpp: 2462 (webkit_white_list_access_from_origin): 2463 * webkit/webkitprivate.h: 2464 24652009-08-20 David Levin <levin@chromium.org> 2466 2467 Another speculative build for gtk. 2468 2469 * webkit/webkitprivate.cpp: 2470 (webkit_white_list_access_to_origin): 2471 24722009-08-20 David Levin <levin@chromium.org> 2473 2474 Speculative build for gtk. 2475 2476 * webkit/webkitprivate.cpp: 2477 (webkit_white_list_access_to_origin): 2478 24792009-08-19 Aaron Boodman <aa@chromium.org> 2480 2481 Fix build break. 2482 2483 * webkit/webkitprivate.h: "WEBKIT API" -> "WEBKIT_API" 2484 24852009-08-19 Aaron Boodman <aa@chromium.org> 2486 2487 Reviewed by David Levin. 2488 2489 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to 2490 specify a more granular policy for cross-origin XHR access. 2491 2492 * webkit/webkitprivate.cpp: 2493 (webkit_white_list_access_to_origin): Add API to manipulate origin access whitelists. 2494 (webkit_reset_origin_access_white_lists): Ditto. 2495 * webkit/webkitprivate.h: Ditto. 2496 24972009-08-18 Xan Lopez <xlopez@igalia.com> 2498 2499 Rubber-stamped by Holger Freyther. 2500 2501 Remove an unneeded include. 2502 2503 * WebCoreSupport/DragClientGtk.cpp: 2504 25052009-08-18 Fumitoshi Ukai <ukai@chromium.org> 2506 2507 Reviewed by Eric Seidel. 2508 2509 https://bugs.webkit.org/show_bug.cgi?id=28443 2510 Fix build break with gtk older than 2.14. 2511 2512 WebKit gtk port requires gtk 2.10 or later, but DragClientGtk.cpp 2513 uses gtk_widget_get_window that is introduced in 2.14. 2514 2515 * WebCoreSupport/DragClientGtk.cpp: 2516 define gtk_widget_get_window for gtk older than 2.14. 2517 25182009-08-18 Jan Michael Alonzo <jmalonzo@webkit.org> 2519 2520 Reviewed by Oliver Hunt. 2521 2522 [Gtk] crash when closing page from javascript 2523 https://bugs.webkit.org/show_bug.cgi?id=27439 2524 2525 Do not unref the WebView in ChromeClientGtk::closeWindowSoon 2526 because (1) a create-web-view handler can return a NULL WebView, 2527 (2) the created WebView is owned by its containing widget, and (3) 2528 clients may not handle the close-web-view signal so this avoids 2529 unreffing a WebView more than once. 2530 2531 * WebCoreSupport/ChromeClientGtk.cpp: 2532 (WebKit::ChromeClient::closeWindowSoon): 2533 * webkit/webkitwebview.cpp: 2534 (webkit_web_view_class_init): 2535 25362009-08-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2537 2538 Reviewed by Jan Alonzo. 2539 2540 https://bugs.webkit.org/show_bug.cgi?id=19360 2541 Frags on current page don't generate "navigation-requested" events 2542 2543 Fix order of parameters for the creation of SubstituteData object, 2544 so that normal data loads do not have an unreachable URL. Also 2545 remove a confusion about the purpose of the last parameter. 2546 2547 * webkit/webkitwebframe.cpp: 2548 (webkit_web_frame_load_data): 2549 25502009-08-18 Drew Wilson <atwilson@google.com> 2551 2552 Reviewed by Eric Seidel. 2553 2554 Need to extend DumpRenderTree to expose number of worker threads 2555 https://bugs.webkit.org/show_bug.cgi?id=28292 2556 2557 * webkit/webkitprivate.h: 2558 * webkit/webkitworkers.cpp: Added. 2559 (webkit_worker_thread_count): 2560 Exposed WebCore::WorkerThread::workerThreadCount() for the gtk version of DumpRenderTree. 2561 25622009-08-18 Xan Lopez <xlopez@igalia.com> 2563 2564 Reviewed by Gustavo Noronha. 2565 2566 Fix the ATK unit test. 2567 2568 We now support line boundaries in the get_text functions, so we 2569 need to make sure the test has the layout we expect by giving it 2570 enough space to fit in one line. 2571 2572 * tests/testatk.c: 2573 (test_webkit_atk_get_text_at_offset): 2574 25752009-08-15 Zan Dobersek <zandobersek@gmail.com> 2576 2577 Reviewed by Xan Lopez. 2578 2579 Fix compiler warnings. 2580 2581 * webkit/webkitwebview.cpp: 2582 (clipboard_contents_received): 2583 (webkit_web_view_drag_data_get): 2584 25852009-08-14 Jiahua Huang <jhuangjiahua@gmail.com> 2586 2587 Reviewed by Jan Alonzo. 2588 2589 [gtk] Pasteboard/GtkClipboard can't handle the "text/html" target. 2590 https://bugs.webkit.org/show_bug.cgi?id=27028 2591 2592 Add a function in WebKit::PasteboardHelperGtk that will return the 2593 value of WEBKIT_WEB_VIEW_TARGET_INFO_HTML, 2594 and WebCore::clipboard_get_contents_cb will use that. 2595 2596 * WebCoreSupport/PasteboardHelperGtk.cpp: 2597 (WebKit::PasteboardHelperGtk::getWebViewTargetInfoHtml): 2598 * WebCoreSupport/PasteboardHelperGtk.h: 2599 26002009-08-14 Benjamin Otte <otte@gnome.org> 2601 2602 Reviewed by Gustavo Noronha. 2603 2604 Fix webkit_web_view_set_highlight_text_matches() so that highlighting 2605 works properly in documents with frames. 2606 2607 * webkit/webkitwebview.cpp: 2608 (webkit_web_view_set_highlight_text_matches): 2609 26102009-08-13 Zan Dobersek <zandobersek@gmail.com> 2611 2612 Reviewed by Gustavo Noronha. 2613 2614 [GTK] Drag and drop support 2615 https://bugs.webkit.org/show_bug.cgi?id=23642 2616 2617 Adds support for drag actions in WebKitWebView and DragClient. 2618 2619 Defines a support structure that can hold additional drag and drop data, 2620 such as selection data or target IDs (infos) and can be passed through 2621 clipboard requests. 2622 2623 Implements DragClient functions that gather start position of the drag 2624 and start the GTK drag. 2625 2626 * WebCoreSupport/DragClientGtk.cpp: 2627 (WebKit::DragClient::DragClient): 2628 (WebKit::DragClient::willPerformDragSourceAction): 2629 (WebKit::DragClient::startDrag): 2630 (WebKit::DragClient::createDragImageForLink): A small style fix. 2631 * WebCoreSupport/DragClientGtk.h: 2632 * webkit/webkitwebview.cpp: 2633 (webkit_web_view_drag_end): 2634 (clipboard_contents_received): GtkClipboard callback. 2635 (webkit_web_view_drag_data_get): 2636 (webkit_web_view_class_init): 2637 (webkit_web_view_init): 2638 * webkit/webkitwebview.h: Add GTK selection targets. 2639 26402009-08-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2641 2642 Unreviewed build fix. 2643 2644 Last-minute change on the new soup API to use the keyring was not 2645 reflected in our usage - the documentation says we should use 2646 g_slist_free, and soup_auth_free_saved_users doesn't exist. 2647 2648 * webkit/webkitsoupauthdialog.c: 2649 (session_authenticate): 2650 26512009-08-12 Xan Lopez <xlopez@igalia.com> 2652 2653 Reviewed by Jan Alonzo. 2654 2655 [GTK] Remove keyring optional features 2656 https://bugs.webkit.org/show_bug.cgi?id=28173 2657 2658 Remove keyring support from our code and rely on libsoup to store 2659 the authentication data if the user requests that support in their 2660 application/library. 2661 2662 * webkit/webkitsoupauthdialog.c: 2663 (response_callback): 2664 (show_auth_dialog): 2665 (session_authenticate): 2666 26672009-08-11 Benjamin Otte <otte@gnome.org> 2668 2669 Reviewed by Xan Lopez. 2670 2671 When instructed to print an out-of-range page, print an empty page 2672 instead of crashing. 2673 2674 * webkit/webkitwebframe.cpp: 2675 (draw_page_callback): 2676 26772009-08-10 Brady Eidson <beidson@apple.com> 2678 2679 GTK build fix. 2680 2681 * webkit/webkitdownload.cpp: 2682 (webkit_download_get_suggested_filename): 2683 26842009-08-08 Xan Lopez <xlopez@igalia.com> 2685 2686 Roll out r46928, since it wasn't done in accordance with the 2687 agreed naming. 2688 2689 * ChangeLog: 2690 2691 Remove the ChangeLog entry, since it was added at the bottom of 2692 the file. 2693 2694 * gdom/GdomDOMObject.h: Removed. 2695 * gdom/GdomDOMObjectPrivate.h: Removed. 2696 26972009-08-08 Jan Michael Alonzo <jmalonzo@webkit.org> 2698 2699 Reviewed by Xan Lopez. 2700 2701 [Gtk] Enable accessibility in Gtk DRT 2702 https://bugs.webkit.org/show_bug.cgi?id=25989 2703 2704 Add SPI to get the focused accessible element to be used by DRT. 2705 2706 * webkit/webkitprivate.h: 2707 * webkit/webkitwebframe.cpp: 2708 (webkit_web_frame_get_focused_accessible_element): 2709 27102009-07-30 Martin Robinson <mrobinson@appcelerator.com> 2711 2712 Reviewed by Xan Lopez, Gustavo Noronha and Jan Alonzo. 2713 2714 [GTK] new-window-policy-decision-requested provides no information about the target frame 2715 https://bugs.webkit.org/show_bug.cgi?id=27792 2716 2717 Add frameName property to the WebKitWebNavigation object. 2718 2719 * WebCoreSupport/FrameLoaderClientGtk.cpp: 2720 (WebKit::getNavigationAction): 2721 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 2722 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 2723 * webkit/webkitwebnavigationaction.cpp: 2724 (webkit_web_navigation_action_get_property): 2725 (webkit_web_navigation_action_set_property): 2726 (webkit_web_navigation_action_class_init): 2727 (webkit_web_navigation_action_get_target_frame): 2728 (webkit_web_navigation_action_set_target_frame): 2729 * webkit/webkitwebnavigationaction.h: 2730 27312009-07-29 Kevin McCullough <kmccullough@apple.com> 2732 2733 Reviewed by Darin Adler. 2734 2735 Added foundation work to allow a testing infrastructure for the Web 2736 Inspector. 2737 2738 * WebCoreSupport/InspectorClientGtk.cpp: 2739 (WebKit::InspectorClient::inspectorWindowObjectCleared): 2740 * WebCoreSupport/InspectorClientGtk.h: 2741 27422009-07-29 Jan Michael Alonzo <jmalonzo@webkit.org> 2743 2744 Reviewed by Eric Seidel and Xan Lopez. 2745 2746 [Gtk] Enable http/tests/appcache tests 2747 https://bugs.webkit.org/show_bug.cgi?id=27674 2748 2749 Add 'enable-offline-web-application-cache' WebSetting to enable 2750 or disable the appcache. Also, Add appcache SPI for DRT to use. 2751 2752 * webkit/webkitapplicationcache.cpp: Added. 2753 (webkit_application_cache_set_maximum_size): 2754 * webkit/webkitprivate.cpp: 2755 (webkit_init): 2756 * webkit/webkitprivate.h: 2757 * webkit/webkitwebsettings.cpp: 2758 (webkit_web_settings_class_init): 2759 (webkit_web_settings_set_property): 2760 (webkit_web_settings_get_property): 2761 (webkit_web_settings_copy): 2762 * webkit/webkitwebview.cpp: 2763 (webkit_web_view_update_settings): 2764 (webkit_web_view_settings_notify): 2765 27662009-07-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2767 2768 Reviewed by Xan Lopez. 2769 2770 Add information about the regression fix for WEBKIT_DEBUG. 2771 2772 * NEWS: 2773 27742009-07-28 Priit Laes <plaes@plaes.org> 2775 2776 Reviewed by Xan Lopez. 2777 2778 Fix mnemonics in the soup authentication dialog. 2779 2780 * webkit/webkitsoupauthdialog.c: 2781 (show_auth_dialog): 2782 27832009-07-28 Xan Lopez <xlopez@igalia.com> 2784 2785 Reviewed by Gustavo Noronha. 2786 2787 * NEWS: update for 1.1.12 release. 2788 27892009-07-27 Alexey Proskuryakov <ap@webkit.org> 2790 2791 Build fix. 2792 2793 * webkit/webkitwebframe.cpp: (webkit_gc_count_javascript_objects): Added a namespace to 2794 SilenceAssertionsOnly. 2795 27962009-07-27 Alexey Proskuryakov <ap@webkit.org> 2797 2798 Reviewed by Darin Adler. 2799 2800 https://bugs.webkit.org/show_bug.cgi?id=27735 2801 Give a helpful name to JSLock constructor argument 2802 2803 * webkit/webkitwebframe.cpp: 2804 (webkit_gc_count_javascript_objects): 2805 28062009-07-24 Priit Laes <plaes@plaes.org> 2807 2808 Reviewed by Xan Lopez. 2809 2810 [Gtk] Password is saved into gnome-keyring even if auth. fails 2811 https://bugs.webkit.org/show_bug.cgi?id=27560 2812 2813 Check authentication result and save password only when authentication 2814 succeeds. 2815 2816 * webkit/webkitsoupauthdialog.c: 2817 (free_authData): 2818 (response_callback): 2819 (save_password_callback): 2820 28212009-07-24 Andrei Popescu <andreip@google.com> 2822 2823 Reviewed by Anders Carlsson. 2824 2825 ApplicationCache should have size limit 2826 https://bugs.webkit.org/show_bug.cgi?id=22700 2827 2828 * WebCoreSupport/ChromeClientGtk.cpp: 2829 (WebKit::ChromeClient::reachedMaxAppCacheSize): 2830 Adds empty implementation of reachedMaxAppCacheSize. 2831 * WebCoreSupport/ChromeClientGtk.h: 2832 28332009-07-23 Jan Michael Alonzo <jmalonzo@webkit.org> 2834 2835 Reviewed by Eric Seidel. 2836 2837 [Gtk] Add implementation of GCController for DRT 2838 https://bugs.webkit.org/show_bug.cgi?id=27636 2839 2840 Add SPI for GCController to use. 2841 2842 * webkit/webkitprivate.h: 2843 * webkit/webkitwebframe.cpp: 2844 (webkit_gc_collect_javascript_objects): 2845 (webkit_gc_collect_javascript_objects_on_alternate_thread): 2846 (webkit_gc_count_javascript_objects): 2847 28482009-07-22 Xan Lopez <xlopez@igalia.com> 2849 2850 Reviewed by Mark Rowe. 2851 2852 Fix compiler warning. 2853 2854 * tests/testwebsettings.c: 2855 (test_webkit_web_settings_user_agent): 2856 28572009-07-22 Xan Lopez <xlopez@igalia.com> 2858 2859 Reviewed by Gustavo Noronha. 2860 2861 Remove unused variables. 2862 2863 * webkit/webkitwebview.cpp: 2864 (webkit_web_view_grab_focus): 2865 (webkit_web_view_focus_in_event): 2866 28672009-07-21 Priit Laes <plaes@plaes.org> 2868 2869 Reviewed by Holger Freyther. 2870 2871 [GTK+] Missing accelerator in authentication dialog 2872 https://bugs.webkit.org/show_bug.cgi?id=25509 2873 2874 Add accelerator to checkbox text. 2875 2876 * WebKit/gtk/webkit/webkitsoupauthdialog.c: 2877 (show_auth_dialog): 2878 28792009-07-21 Priit Laes <plaes@plaes.org> 2880 2881 Reviewed by Holger Freyther. 2882 2883 [GTK] http auth dialog pops up twice after a cancelled atempt 2884 https://bugs.webkit.org/show_bug.cgi?id=24818 2885 2886 Remove workaround required for libsoup versions <=2.26.2 as we depend 2887 on 2.27.4 now. 2888 2889 * webkit/webkitsoupauthdialog.c: 2890 (session_authenticate): 2891 28922009-07-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2893 2894 Reviewed by Holger Freyther. 2895 2896 [GTK] Widget size negotiation 2897 https://bugs.webkit.org/show_bug.cgi?id=17154 2898 2899 Implement proper size request for the WebView widget. 2900 2901 * WebCoreSupport/ChromeClientGtk.cpp: 2902 (WebKit::ChromeClient::contentsSizeChanged): 2903 * webkit/webkitwebview.cpp: 2904 (webkit_web_view_size_request): 2905 (webkit_web_view_class_init): 2906 29072009-07-16 Holger Hans Peter Freyther <zecke@selfish.org> 2908 2909 Reviewed by Jan Alonzo. 2910 2911 [GTK+] Update the focus handling code. 2912 2913 Change focus-in to always call setActive(true), call 2914 FocusController::setFocusedFrame when no focused frame exists 2915 other SelectionController::setActive. This is matching Windows 2916 and Qt. 2917 2918 On focus-out call FocusController::setActive(false) and 2919 SelectionController::setFocued(false). This is matching Windows 2920 and Qt as well. 2921 2922 * webkit/webkitwebview.cpp: 2923 (webkit_web_view_focus_in_event): 2924 (webkit_web_view_focus_out_event): 2925 29262009-07-16 Xiaomei Ji <xji@chromium.org> 2927 2928 Reviewed by Dan Bernstein. 2929 2930 This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's." 2931 https://bugs.webkit.org/show_bug.cgi?id=24187 2932 2933 Add one extra parameter to the callee of HitTestResult::title() due to the signature change. 2934 2935 2936 * WebCoreSupport/ChromeClientGtk.cpp: 2937 (WebKit::ChromeClient::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title(). 2938 29392009-07-16 Xiaomei Ji <xji@chromium.org> 2940 2941 Reviewed by Darin Adler. 2942 2943 Fix tooltip does not get its directionality from its element's directionality. 2944 https://bugs.webkit.org/show_bug.cgi?id=24187 2945 2946 Per mitz's suggestion in comment #6, while getting the plain-text 2947 title, we also get the directionality of the title. How to handle 2948 the directionality is up to clients. Clients could ignore it, 2949 or use attribute or unicode control characters to display the title 2950 as what they want. 2951 2952 * WebCoreSupport/ChromeClientGtk.cpp: 2953 (WebKit::ChromeClient::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet). 2954 * WebCoreSupport/ChromeClientGtk.h: Add directionality as 2nd parameter to setToolTip(). 2955 29562009-07-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2957 2958 Rubber-stamped by Jan Alonzo. 2959 2960 Fix enable-xss-auditor property documentation, and default value 2961 to match the fact that it is now enabled by default. 2962 2963 * webkit/webkitwebsettings.cpp: 2964 (webkit_web_settings_class_init): 2965 29662009-07-14 Zoltan Horvath <hzoltan@inf.u-szeged.hu> 2967 2968 Reviewed by Darin Adler. 2969 2970 Change all Noncopyable inheriting visibility to public. 2971 https://bugs.webkit.org/show_bug.cgi?id=27225 2972 2973 Change all Noncopyable inheriting visibility to public because 2974 it is needed to the custom allocation framework (bug #20422). 2975 2976 * webkit/webkitdownload.cpp: 2977 29782009-07-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2979 2980 Unreviewed. Late NEWS file for 1.1.11. 2981 2982 * NEWS: 2983 29842009-07-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2985 2986 Unreviewed. Changes to the doc control files for 1.1.11. 2987 2988 * docs/webkitgtk-docs.sgml: 2989 * docs/webkitgtk-sections.txt: 2990 29912009-07-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2992 2993 Rubber-stamped by Holger Freyther. 2994 2995 Fix unit test to use the correct assumption that the SoupMessage 2996 will be NULL when WebKitNetworkRequest is created from an URI. 2997 2998 * tests/testnetworkrequest.c: 2999 (test_network_request_create_destroy): 3000 30012009-07-13 Jan Michael Alonzo <jmalonzo@webkit.org> 3002 3003 <https://bugs.webkit.org/show_bug.cgi?id=27171> [Gtk] 3004 REGRESSION (r45440): fails at fast/events/frame-programmatic-focus.html 3005 3006 Reviewed by Gustavo Noronha. 3007 3008 focus-in and focus-out events only get triggered when there's user 3009 interaction, hence setFocused(bool) never gets called when 3010 focusEvent is triggered when running the layout tests. The 3011 solution seems to be to implement grab-focus too so we can call 3012 setFocused(bool) when a widget has focus. 3013 3014 * webkit/webkitwebview.cpp: 3015 (webkit_web_view_grab_focus): 3016 (webkit_web_view_focus_in_event): 3017 (webkit_web_view_class_init): 3018 30192009-07-13 Jan Michael Alonzo <jmalonzo@webkit.org> 3020 3021 https://bugs.webkit.org/show_bug.cgi?id=26718 [Gtk] Add support for javascript windows for DRT 3022 3023 Reviewed by Gustavo Noronha and Xan Lopez. 3024 3025 Add API to support opening and closing of JavaScript windows automatically. 3026 3027 * WebCoreSupport/ChromeClientGtk.cpp: 3028 (WebKit::ChromeClient::closeWindowSoon): 3029 * webkit/webkitprivate.h: 3030 * webkit/webkitwebsettings.cpp: 3031 (webkit_web_settings_class_init): 3032 (webkit_web_settings_set_property): 3033 (webkit_web_settings_get_property): 3034 (webkit_web_settings_copy): 3035 * webkit/webkitwebview.cpp: 3036 (webkit_web_view_real_close_web_view): 3037 (webkit_web_view_class_init): 3038 (webkit_web_view_update_settings): 3039 (webkit_web_view_settings_notify): 3040 (webkit_web_view_set_group_name): 3041 * webkit/webkitwebview.h: 3042 30432009-07-12 Brent Fulgham <bfulgham@gmail.com> 3044 3045 Speculative build fix after http://trac.webkit.org/changeset/45786. 3046 3047 * WebCoreSupport/ChromeClientGtk.cpp: 3048 (WebKit::ChromeClient::addMessageToConsole): 3049 * WebCoreSupport/ChromeClientGtk.h: 3050 30512009-07-09 Beth Dakin and Jon Honeycutt <bdakin@apple.com> 3052 3053 Reviewed by Dave Hyatt. 3054 3055 Make Widget RefCounted to fix: 3056 3057 <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs 3058 at WebCore::Widget::afterMouseDown() after clicking To Do's close 3059 box 3060 <rdar://problem/6978804> WER #16: Repro Access Violation in 3061 WebCore::PluginView::bindingInstance (1310178023) 3062 -and- 3063 <rdar://problem/6991251> WER #13: Crash in WebKit! 3064 WebCore::PluginView::performRequest+203 (1311461169) 3065 3066 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3067 (WebKit::FrameLoaderClient::createPlugin): 3068 (WebKit::FrameLoaderClient::createJavaAppletWidget): 3069 * WebCoreSupport/FrameLoaderClientGtk.h: 3070 30712009-07-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3072 3073 Reviewed by Jan Alonzo. 3074 3075 Use soup's content sniffing 3076 https://bugs.webkit.org/show_bug.cgi?id=26982 3077 3078 Add the new Content Sniffing feature provided by libsoup. 3079 3080 * webkit/webkitprivate.cpp: 3081 (webkit_init): 3082 30832009-07-05 Holger Hans Peter Freyther <zecke@selfish.org> 3084 3085 Reviewed by Xan Lopez. 3086 3087 Always initialize WebCore. 3088 3089 It is possible that WebKitWebSettings and other classes get 3090 constructed before the WebKitWebView. In this case WebCore is 3091 not yet properly initialized. Add webkit_init to every class 3092 that can be constructed by API users. 3093 3094 * webkit/webkitdownload.cpp: 3095 (webkit_download_class_init): 3096 * webkit/webkitnetworkrequest.cpp: 3097 (webkit_network_request_class_init): 3098 * webkit/webkitwebbackforwardlist.cpp: 3099 (webkit_web_back_forward_list_class_init): 3100 * webkit/webkitwebhistoryitem.cpp: 3101 (webkit_web_history_item_class_init): 3102 * webkit/webkitwebsettings.cpp: 3103 (webkit_web_settings_class_init): 3104 * webkit/webkitwebwindowfeatures.cpp: 3105 (webkit_web_window_features_class_init): 3106 31072009-07-03 Jan Michael Alonzo <jmalonzo@webkit.org> 3108 3109 Reviewed by Xan Lopez and Gustavo Noronha. 3110 3111 Set user-agent from application 3112 https://bugs.webkit.org/show_bug.cgi?id=17375 3113 3114 Add 'user-agent' setter/getter API to WebSettings. 3115 3116 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3117 (WebKit::FrameLoaderClient::FrameLoaderClient): 3118 (WebKit::FrameLoaderClient::userAgent): 3119 * WebCoreSupport/FrameLoaderClientGtk.h: 3120 * webkit/webkitprivate.h: 3121 * webkit/webkitversion.h.in: 3122 * webkit/webkitwebsettings.cpp: 3123 (webkit_get_user_agent): 3124 (webkit_web_settings_class_init): 3125 (webkit_web_settings_finalize): 3126 (webkit_web_settings_set_property): 3127 (webkit_web_settings_get_property): 3128 (webkit_web_settings_copy): 3129 (webkit_web_settings_get_user_agent): 3130 * webkit/webkitwebsettings.h: 3131 * webkit/webkitwebview.cpp: 3132 (webkit_web_view_dispose): 3133 31342009-07-02 Xan Lopez <xlopez@igalia.com> 3135 3136 Reviewed by Holger Freyther. 3137 3138 Update the new boolean property in FocusController that keeps 3139 track of whether or not the Page is focused. 3140 3141 * webkit/webkitwebview.cpp: 3142 (webkit_web_view_focus_in_event): 3143 (webkit_web_view_focus_out_event): 3144 31452009-06-29 Xan Lopez <xlopez@igalia.com> 3146 3147 Reviewed by Jan Alonzo. 3148 3149 Fix a couple of compiler warnings. 3150 3151 * webkit/webkitwebnavigationaction.cpp: 3152 * webkit/webkitwebview.cpp: 3153 (webkit_web_view_real_move_cursor): 3154 31552009-06-28 Xan Lopez <xlopez@igalia.com> 3156 3157 Fix the GTK+ build. 3158 3159 * WebCoreSupport/ContextMenuClientGtk.cpp: 3160 (WebKit::ContextMenuClient::isSpeaking): 3161 * WebCoreSupport/ContextMenuClientGtk.h: 3162 31632009-06-24 Jiahua Huang <jhuangjiahua@gmail.com> 3164 3165 Reviewed by Holger Freyther. 3166 3167 [Gtk] Add Undo/Redo support to WebKitGtk 3168 https://bugs.webkit.org/show_bug.cgi?id=26573 3169 3170 Implement EditorClient::undo and other interested funcs. 3171 3172 * WebCoreSupport/EditorClientGtk.cpp: 3173 (WebKit::EditorClient::registerCommandForUndo): 3174 (WebKit::EditorClient::registerCommandForRedo): 3175 (WebKit::EditorClient::clearUndoRedoOperations): 3176 (WebKit::EditorClient::canUndo): 3177 (WebKit::EditorClient::canRedo): 3178 (WebKit::EditorClient::undo): 3179 (WebKit::EditorClient::redo): 3180 (WebKit::EditorClient::EditorClient): 3181 * WebCoreSupport/EditorClientGtk.h: 3182 31832009-06-20 Jan Michael Alonzo <jmalonzo@webkit.org> 3184 3185 Reviewed by Gustavo Noronha and Xan Lopez. 3186 3187 [Gtk] Implement DRT XSS auditor support 3188 https://bugs.webkit.org/show_bug.cgi?id=26571 3189 3190 Add a setting "enable-xss-auditor" to enable this feature. 3191 3192 * webkit/webkitwebsettings.cpp: 3193 (webkit_web_settings_class_init): 3194 (webkit_web_settings_set_property): 3195 (webkit_web_settings_get_property): 3196 (webkit_web_settings_copy): 3197 * webkit/webkitwebview.cpp: 3198 (webkit_web_view_update_settings): 3199 (webkit_web_view_settings_notify): 3200 32012009-06-20 Jan Michael Alonzo <jmalonzo@webkit.org> 3202 3203 Reviewed by Gustavo Noronha and Xan Lopez. 3204 3205 webkit_web_back_forward_list_add_item() should add a ref for the history item 3206 https://bugs.webkit.org/show_bug.cgi?id=26517 3207 3208 Add a ref to the WebHistoryItem when it's added to the back 3209 forward list through webkit_web_back_forward_list_add_item. 3210 This keeps the history item alive and prevents pywebkitgtk from 3211 crashing 3212 3213 * tests/testwebbackforwardlist.c: 3214 (test_webkit_web_history_item_lifetime): 3215 (test_webkit_web_back_forward_list_order): 3216 (test_webkit_web_back_forward_list_add_item): 3217 * webkit/webkitwebbackforwardlist.cpp: 3218 (webkit_web_back_forward_list_add_item): 3219 32202009-06-20 Gustavo Noronha Silva <gns@gnome.org> 3221 3222 Reviewed by Jan Alonzo. 3223 3224 Initial test case for loading statuses. 3225 3226 * tests/testloading.c: Added. 3227 (load_finished_cb): 3228 (status_changed_cb): 3229 (test_loading_status): 3230 (main): 3231 32322009-06-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3233 3234 Rubber-stamped by Jan Alonzo. 3235 3236 Fix the ordering in which the new load status goes into the enum 3237 to avoid ABI breakage. 3238 3239 * webkit/webkitwebframe.h: 3240 32412009-06-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3242 3243 Reviewed by Xan Lopez and Christian Dywan. 3244 3245 Add a new load status to report that the first visually non-empty 3246 layout has been done. 3247 3248 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3249 (WebKit::FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout): 3250 * webkit/webkitwebframe.h: 3251 32522009-06-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3253 3254 Reviewed by Xan Lopez. 3255 3256 Fix parameters of navigation-policy-decision-requested callback, 3257 to be correct in number and type 3258 3259 * tests/testhttpbackend.c: 3260 (navigation_policy_decision_requested_cb): 3261 32622009-06-18 Christian Dywan <christian@twotoasts.de> 3263 3264 Reviewed by Gustavo Noronha. 3265 3266 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3267 (WebKit::loadDone): 3268 (WebKit::FrameLoaderClient::dispatchDidFinishLoad): 3269 (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad): 3270 (WebKit::FrameLoaderClient::dispatchDidFailLoad): Introduce the static 3271 function loadDone to emit "load-done" and update the status and update 3272 the relevent places. We missed some status notifications before. 3273 32742009-06-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3275 3276 Rubber-stamped by Xan Lopez. 3277 3278 Be consistent in always using the term URI instead of URL in the 3279 documentation of WebKitWebView signals. 3280 3281 * webkit/webkitwebview.cpp: 3282 (webkit_web_view_class_init): 3283 32842009-06-16 Xan Lopez <xlopez@igalia.com> 3285 3286 Reviewed by Gustavo Noronha. 3287 3288 Do not use g_assert_cmpint to test for NULL pointer, just 3289 g_assert. 3290 3291 * tests/testnetworkrequest.c: 3292 (test_network_request_create_destroy): 3293 32942009-06-15 Xan Lopez <xlopez@igalia.com> 3295 3296 Reviewed by Gustavo Noronha. 3297 3298 https://bugs.webkit.org/show_bug.cgi?id=26377 3299 [GTK] Confusion about range of 'progress' property 3300 3301 Range for the progress property is 0.0 .. 1.0, don't multiply it 3302 by 100 to make it a percentage. 3303 3304 * webkit/webkitwebview.cpp: 3305 (webkit_web_view_get_progress): 3306 33072009-06-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3308 3309 Unreviewed. Add new symbols list for 1.1.10 release. 3310 3311 * docs/webkitgtk-docs.sgml: 3312 33132009-06-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3314 3315 Rubber-stamped by Xan Lopez. 3316 3317 Fix Since tags for the new uri and message properties. 3318 3319 * webkit/webkitnetworkrequest.cpp: 3320 (webkit_network_request_class_init): 3321 33222009-06-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3323 3324 Unreviewed. Adding new documented API to the generated 3325 documentation. 3326 3327 * docs/webkitgtk-sections.txt: 3328 33292009-06-15 Xan Lopez <xlopez@igalia.com> 3330 3331 Reviewed by Gustavo Noronha. 3332 3333 Update NEWS for 1.1.10 release. 3334 3335 * NEWS: 3336 33372009-06-11 Gustavo Noronha Silva <gns@gnome.org> 3338 3339 Reviewed by Xan Lopez. 3340 3341 Add a test to perform an actual download. 3342 3343 * tests/testdownload.c: 3344 (navigation_policy_decision_requested_cb): 3345 (notify_status_cb): 3346 (download_requested_cb): 3347 (test_webkit_download_perform): 3348 (main): 3349 33502009-06-11 Gustavo Noronha Silva <gns@gnome.org> 3351 3352 Reviewed by Xan Lopez. 3353 3354 Fix crash when downloading, caused by assuming SoupMessage would 3355 be there. This change factors the logic required to create a 3356 ResourceRequest from a WebKitNetworkRequest into a core() 3357 function, like we have for some other classes. 3358 3359 * webkit/webkitdownload.cpp: 3360 (webkit_download_start): 3361 * webkit/webkitprivate.cpp: 3362 (WebKit::core): 3363 * webkit/webkitprivate.h: 3364 * webkit/webkitwebframe.cpp: 3365 (webkit_web_frame_load_request): 3366 33672009-06-10 Gustavo Noronha Silva <gns@gnome.org> 3368 3369 Reviewed by Xan Lopez. 3370 3371 Make WebKitNetworkRequest a proper GObject, making URI and 3372 SoupMessage properties. Also adding unit tests for creation and 3373 destruction. 3374 3375 * tests/testnetworkrequest.c: Added. 3376 (test_network_request_create_destroy): 3377 (test_network_request_properties): 3378 (main): 3379 * webkit/webkitnetworkrequest.cpp: 3380 (webkit_network_request_get_property): 3381 (webkit_network_request_set_property): 3382 (webkit_network_request_class_init): 3383 (webkit_network_request_init): 3384 (webkit_network_request_constructor): 3385 (webkit_network_request_new_with_core_request): 3386 (webkit_network_request_new): 3387 (webkit_network_request_set_uri): 3388 (webkit_network_request_get_uri): 3389 * webkit/webkitnetworkrequest.h: 3390 33912009-06-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3392 3393 Reviewed by Xan Lopez. 3394 3395 News for 1.1.9. 3396 3397 * NEWS: 3398 33992009-06-09 Jan Michael Alonzo <jmalonzo@webkit.org> 3400 3401 Reviewed by Gustavo Noronha. 3402 3403 Clear the frame name before we run each tests so we don't get 3404 "someFloaString" or "3" in the target frame name. 3405 3406 * webkit/webkitprivate.h: 3407 * webkit/webkitwebframe.cpp: 3408 (webkit_web_frame_clear_main_frame_name): 3409 3410 34112009-06-10 Xan Lopez <xlopez@igalia.com> 3412 3413 Reviewed by Jan Alonzo. 3414 3415 https://bugs.webkit.org/show_bug.cgi?id=25415 3416 [GTK][ATK] Please implement support for get_text_at_offset 3417 3418 Update test for new implementation (it fixes two bugs and adds 3419 actual implementations for LINE boundaries). 3420 3421 * tests/testatk.c: 3422 (test_webkit_atk_get_text_at_offset): 3423 34242009-06-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3425 3426 Reviewed by Xan Lopez. 3427 3428 https://bugs.webkit.org/show_bug.cgi?id=26104 3429 [GTK] Make NetworkRequest a proper GObject and expose SoupMessage 3430 3431 Refactor how SoupMessage is handled, so that our ResourceRequest 3432 object doesn't have to store it as a member, which complicates 3433 managing ResourceRequest's lifetvime. 3434 3435 * tests/testhttpbackend.c: 3436 (navigation_policy_decision_requested_cb): 3437 (test_soup_message_lifetime): 3438 * webkit/webkitnetworkrequest.cpp: 3439 (WTF::SoupMessage): 3440 (webkit_network_request_new_with_core_request): 3441 34422009-06-08 Gustavo Noronha Silva <gns@gnome.org> 3443 3444 Reviewed by Jan Alonzo. 3445 3446 https://bugs.webkit.org/show_bug.cgi?id=26240 3447 [GTK] Try again button loses query strings 3448 3449 Only trigger reload, when try again is clicked, this way we do not 3450 lose the query strings, like we did when also triggering a form 3451 submission. 3452 3453 * resources/error.html: 3454 34552009-06-06 Gustavo Noronha Silva <gns@gnome.org> 3456 3457 Reviewed by Xan Lopez. 3458 3459 https://bugs.webkit.org/show_bug.cgi?id=26175 3460 [GTK] Download progress notification should be throttled, for the benefit of download managers 3461 3462 Throttle notifications for the 'progress' property of the Download 3463 object, and update documentation to note the fact that this is 3464 being done, and how to get all notifications if you really care 3465 about them. 3466 3467 * webkit/webkitdownload.cpp: 3468 (webkit_download_class_init): 3469 (webkit_download_received_data): 3470 34712009-05-29 Jan Michael Alonzo <jmalonzo@webkit.org> 3472 3473 Reviewed by Gustavo Noronha. 3474 3475 Fixed compile warning when comparing the different navigation types 3476 3477 * webkit/webkitwebnavigationaction.cpp: 3478 (webkit_web_navigation_action_class_init): 3479 34802009-05-29 Xan Lopez <xlopez@igalia.com> 3481 3482 Reviewed by Gustavo Noronha. 3483 3484 https://bugs.webkit.org/show_bug.cgi?id=26075 3485 [GTK] Refactor key scrolling code 3486 3487 After the scrolling changes in r44177 we can now use the 3488 FrameView::scroll method like the other ports, keeping the magic 3489 constants for the scrolling amounts inside WebCore proper. 3490 3491 * webkit/webkitwebview.cpp: 3492 (webkit_web_view_real_move_cursor): 3493 34942009-05-29 Gustavo Noronha Silva <gns@gnome.org> 3495 3496 Reviewed by Jan Alonzo. 3497 3498 Make NetworkRequest carry a reference of the SoupMessage used by 3499 ResourceRequest, and use that to create new ResourceRequests where 3500 needed, so that no information is lost while passing around 3501 NetworkRequest objects. 3502 3503 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3504 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): 3505 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 3506 (WebKit::FrameLoaderClient::startDownload): 3507 * webkit/webkitdownload.cpp: 3508 (webkit_download_start): 3509 * webkit/webkitnetworkrequest.cpp: 3510 (webkit_network_request_finalize): 3511 (webkit_network_request_new_with_core_request): 3512 (webkit_network_request_new): 3513 (webkit_network_request_get_message): 3514 * webkit/webkitprivate.h: 3515 * webkit/webkitwebframe.cpp: 3516 (webkit_web_frame_load_request): 3517 35182009-05-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3519 3520 Reviewed by Xan Lopez. 3521 3522 https://bugs.webkit.org/show_bug.cgi?id=26048 3523 navigation-policy-decision-requested documentation incomplete 3524 3525 Fix documentation for all policy decision request signals, to 3526 mention that an actual decision is expected when you return TRUE, 3527 meaning that you handled the signal. 3528 3529 * webkit/webkitwebview.cpp: 3530 (webkit_web_view_class_init): 3531 35322009-05-28 Xan Lopez <xlopez@igalia.com> 3533 3534 Reviewed by Gustavo Noronha. 3535 3536 Mention the implementation of the new AtkText methods. 3537 3538 * NEWS: 3539 35402009-05-19 Xan Lopez <xlopez@igalia.com> 3541 3542 Reviewed by Jan Alonzo and Gustavo Noronha. 3543 3544 https://bugs.webkit.org/show_bug.cgi?id=25415 3545 [GTK][ATK] Please implement support for get_text_at_offset 3546 3547 New test file for ATK functionality. 3548 3549 * tests/testatk.c: Added. 3550 (bail_out): 3551 (test_get_text_function): 3552 (test_webkit_atk_get_text_at_offset): 3553 (main): 3554 35552009-05-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3556 3557 Reviewed by Xan Lopez. 3558 3559 Document changes worth noting for 1.1.8. 3560 3561 * NEWS: 3562 35632009-05-27 Xan Lopez <xlopez@igalia.com> 3564 3565 Reviewed by Gustavo Noronha. 3566 3567 https://bugs.webkit.org/show_bug.cgi?id=26039 3568 [GTK] WebKitWebHistoryItem lifetime fixes 3569 3570 Modify the management of history items by the BackForward list. 3571 3572 Having the objects add themselves to a hash table with an extra 3573 reference made impossible for the cleanup code in the dispose 3574 method to be ever called in normal conditions, since dispose is 3575 called before getting rid of the last reference, which the objects 3576 were making to themselves. Get rid of this extra reference and 3577 move the responsibility of the cleanup to the BackForward list 3578 itself, which effectively owns the WebKitWebHistoryItems now. 3579 3580 Also, update the tests to reflect this change. 3581 3582 * tests/testwebbackforwardlist.c: 3583 (test_webkit_web_history_item_lifetime): 3584 (test_webkit_web_back_forward_list_order): 3585 (test_webkit_web_back_forward_list_add_item): 3586 * tests/testwebhistoryitem.c: 3587 (web_history_item_fixture_setup): 3588 (web_history_item_fixture_teardown): 3589 * webkit/webkitprivate.h: 3590 * webkit/webkitwebbackforwardlist.cpp: 3591 (webkit_web_back_forward_list_dispose): 3592 (webkit_web_back_forward_list_class_init): 3593 * webkit/webkitwebhistoryitem.cpp: 3594 (webkit_history_items): 3595 (webkit_history_item_add): 3596 (webkit_web_history_item_dispose): 3597 (WebKit::kit): 3598 35992009-05-26 Xan Lopez <xlopez@igalia.com> 3600 3601 Reviewed by Jan Alonzo. 3602 3603 https://bugs.webkit.org/show_bug.cgi?id=26039 3604 [GTK] WebKitWebHistoryItem lifetime fixes 3605 3606 Delete the BackForwardList before the Page, otherwise the references 3607 to the WebKitWebHistoryItems will be gone. 3608 3609 * webkit/webkitwebview.cpp: 3610 (webkit_web_view_dispose): 3611 36122009-05-27 Gustavo Noronha Silva <gns@gnome.org> 3613 3614 Reviewed by Xan Lopez. 3615 3616 Add comment to clarify why scrolling is done as it is and not with 3617 gdk_window_scroll. 3618 3619 * WebCoreSupport/ChromeClientGtk.cpp: 3620 (WebKit::ChromeClient::scroll): 3621 36222009-05-27 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3623 3624 Unreviewed. Adding new symbols index for 1.1.8. 3625 3626 * docs/webkitgtk-docs.sgml: 3627 36282009-05-26 Holger Hans Peter Freyther <zecke@selfish.org> 3629 3630 Reviewed by Xan Lopez. 3631 3632 Add a new signal called "create-plugin-widget" and emit it from 3633 within the FrameLoaderClientGtk::createPlugin method. If a 3634 GtkWidget gets returned it will be embedded as a WebCore::Widget 3635 using the new GtkPluginWidget. 3636 3637 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3638 (WebKit::FrameLoaderClient::createPlugin): 3639 * webkit/webkitwebview.cpp: 3640 (webkit_signal_accumulator_object_handled): 3641 (webkit_web_view_class_init): 3642 * webkitmarshal.list: 3643 36442009-05-24 Xan Lopez <xlopez@igalia.com> 3645 3646 Reviewed by Mark Rowe. 3647 3648 https://bugs.webkit.org/show_bug.cgi?id=25987 3649 [GTK] Clarify WebKitWebView::download-requested documentation 3650 3651 Explain a bit why this signal is not emitted by default and offer 3652 a common solution/setup for that issue. 3653 3654 * webkit/webkitwebview.cpp: 3655 (webkit_web_view_class_init): 3656 36572009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org> 3658 3659 Rubber-stamped by Gustavo Noronha. 3660 3661 Break the switch once private browsing is selected. 3662 3663 * webkit/webkitwebsettings.cpp: 3664 (webkit_web_settings_set_property): 3665 (webkit_web_settings_get_property): 3666 36672009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org> 3668 3669 Reviewed by Gustavo Noronha and Xan Lopez. 3670 3671 [Gtk] Enable database and localStorage support 3672 https://bugs.webkit.org/show_bug.cgi?id=25629 3673 3674 Add settings to enable or disable database and localStorage 3675 support and enable them by default. This allows databases to be 3676 shown in the WebInspector as well as allow us to run the storage 3677 layout tests. 3678 3679 * webkit/webkitwebsettings.cpp: 3680 (webkit_web_settings_class_init): 3681 (webkit_web_settings_set_property): 3682 (webkit_web_settings_get_property): 3683 (webkit_web_settings_copy): 3684 * webkit/webkitwebview.cpp: 3685 (webkit_web_view_update_settings): 3686 (webkit_web_view_settings_notify): 3687 36882009-05-23 David Kilzer <ddkilzer@apple.com> 3689 3690 Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr 3691 3692 <https://bugs.webkit.org/show_bug.cgi?id=25495> 3693 3694 Reviewed by Oliver Hunt. 3695 3696 * WebCoreSupport/ChromeClientGtk.h: 3697 (WebKit::ChromeClient::createHTMLParserQuirks): Return a 3698 PassOwnPtr<> instead of a raw HTMLParserQuirks pointer. 3699 37002009-05-22 Gustavo Noronha Silva <gns@gnome.org> 3701 3702 Reviewed by Jan Alonzo. 3703 3704 Improve NetworkRequest documentation. 3705 3706 * webkit/webkitnetworkrequest.cpp: 3707 (webkit_network_request_class_init): 3708 (webkit_network_request_init): 3709 37102009-05-21 Xan Lopez <xlopez@igalia.com> 3711 3712 Reviewed by Maciej Stachowiak. 3713 3714 https://bugs.webkit.org/show_bug.cgi?id=24818 3715 [GTK] http auth dialog pops up twice after a cancelled atempt 3716 3717 Workaround libsoup bug 3718 http://bugzilla.gnome.org/show_bug.cgi?id=583462, which made 3719 libsoup emit the 'authenticate' signal more often than it was 3720 expected. 3721 3722 We'll be able to remove this when we depend on libsoup > 2.26.2. 3723 3724 * webkit/webkitsoupauthdialog.c: 3725 (session_authenticate): 3726 37272009-05-21 Darin Fisher <darin@chromium.org> 3728 3729 Fix build bustage. 3730 3731 * WebCoreSupport/EditorClientGtk.cpp: 3732 (WebKit::EditorClient::getAutoCorrectSuggestionForMisspelledWord): Add stub for method. 3733 * WebCoreSupport/EditorClientGtk.h: 3734 37352009-05-20 Holger Hans Peter Freyther <zecke@selfish.org> 3736 3737 Reviewed by Darin Adler. 3738 3739 https://bugs.webkit.org/show_bug.cgi?id=25834 3740 3741 Make ChromeClient a interface again 3742 3743 With recent additions to ChromeClient.h empty defaults were 3744 added. This is bad for porters as these changes go unnoticed 3745 and at runtime no notImplemented warning is logged and grepping 3746 for notImplemented will not show anything. Change this Client 3747 to be like the other Clients again and always have pure virtuals 3748 (but for stuff inside #ifdef PLATFORM(MAC)). 3749 3750 Update the various WebKit/* implementations to compile again. 3751 3752 * WebCoreSupport/ChromeClientGtk.cpp: 3753 (WebKit::ChromeClient::setCursor): 3754 (WebKit::ChromeClient::requestGeolocationPermissionForFrame): 3755 * WebCoreSupport/ChromeClientGtk.h: 3756 (WebKit::ChromeClient::scrollRectIntoView): 3757 37582009-05-19 Xan Lopez <xlopez@igalia.com> 3759 3760 Reviewed by Jan Alonzo. 3761 3762 Do not try to free enchant broker and dictionary if they do not 3763 exist, those functions aren't NULL-safe. 3764 3765 * webkit/webkitwebsettings.cpp: 3766 (free_spell_checking_language): 3767 37682009-05-15 Gustavo Noronha Silva <gns@gnome.org> 3769 3770 Reviewed by Jan Alonzo. 3771 3772 Plug memory leak. 3773 3774 * webkit/webkitwebsettings.cpp: 3775 (free_spell_checking_language): 3776 (webkit_web_settings_finalize): 3777 (webkit_web_settings_set_property): 3778 37792009-05-15 Fridrich Strba <fridrich.strba@bluewin.ch> 3780 3781 Reviewed by Jan Alonzo. 3782 3783 Converting filename to uri by concatenating strings is broken 3784 on Windows. Use proper glib conversion functions. 3785 3786 * webkit/webkitwebview.cpp: 3787 (webkit_web_view_open): 3788 * tests/testdownload.c: 3789 (test_webkit_download_create): 3790 37912009-05-13 Xan Lopez <xlopez@igalia.com> 3792 3793 Reviewed by Gustavo Noronha. 3794 3795 Do not handle KeyEvents with Ctrl or Alt modifiers that we 3796 otherwise know nothing about. Otherwise shortcuts defined in the 3797 WebView will never be executed. 3798 3799 * WebCoreSupport/EditorClientGtk.cpp: 3800 (WebKit::handleEditingKeyboardEvent): 3801 38022009-05-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3803 3804 Add information about the SVG index bounds check committed in 3805 r43590. 3806 3807 * NEWS: 3808 38092009-05-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3810 3811 Reviewed by Xan Lopez. 3812 3813 Note changes since 1.1.6. 3814 3815 * NEWS: 3816 38172009-05-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3818 3819 Unreviewed. Updated control file, and main file for the 1.1.7 3820 release. 3821 3822 * docs/webkitgtk-docs.sgml: 3823 * docs/webkitgtk-sections.txt: 3824 38252009-05-11 Holger Hans Peter Freyther <zecke@selfish.org> 3826 3827 Reviewed by Xan Lopez. 3828 3829 https://bugs.webkit.org/show_bug.cgi?id=25685 3830 [GTK] Middle click paste form the pasteboard 3831 3832 For paste from middle button (button==2) we want to use 3833 the GDK_PRIMARY_SELECTION. Implement the new getCurrentTarget 3834 method in PasteboardHelperGtk by asking the WebView which 3835 clipboard to use. 3836 3837 * WebCoreSupport/PasteboardHelperGtk.cpp: 3838 (WebKit::PasteboardHelperGtk::getCurrentTarget): 3839 * WebCoreSupport/PasteboardHelperGtk.h: 3840 * webkit/webkitprivate.h: 3841 * webkit/webkitwebview.cpp: 3842 (webkit_web_view_button_press_event): 3843 (webkit_web_view_use_primary_for_paste): 3844 38452009-05-12 Jan Michael Alonzo <jmalonzo@webkit.org> 3846 3847 Reviewed by Holger Freyther. 3848 3849 [Gtk] Various autotools build refactoring and fixes 3850 https://bugs.webkit.org/show_bug.cgi?id=25286 3851 3852 Add glib-2.0 to the list of required package. 3853 3854 * webkit.pc.in: 3855 38562009-05-11 Christian Dywan <christian@twotoasts.de> 3857 3858 Reviewed by Gustavo Noronha. 3859 3860 https://bugs.webkit.org/show_bug.cgi?id=25697 3861 [GTK] Warnings building WebKit/gtk/tests/testwebframe.c 3862 3863 * tests/testwebframe.c: 3864 (test_webkit_web_frame_create_destroy): Declare webView as a GtkWidget* 3865 to fix pointer type incompatibility warnings. 3866 38672009-05-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3868 3869 Reviewed by Xan Lopez. 3870 3871 Make the scan program call g_thread_init(NULL) in addition to 3872 g_type_init(), so that it actually works. 3873 3874 * docs/GNUmakefile.am: 3875 38762009-05-08 Xan Lopez <xlopez@igalia.com> 3877 3878 Reviewed by Gustavo Noronha. 3879 3880 Unify scrolling code via adjustments and keys. Use the WebCore 3881 defined constants, since that's what people are most used to at 3882 this point. 3883 3884 * ChangeLog: 3885 * webkit/webkitwebview.cpp: 3886 (webkit_web_view_real_move_cursor): 3887 38882009-05-07 Christian Dywan <christian@twotoasts.de> 3889 3890 Reviewed by Gustavo Noronha. 3891 3892 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3893 (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage): 3894 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): Add missing 3895 call to notifyStatus in the committed case and a missing property notify. 3896 38972009-05-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 3898 3899 Reviewed by Xan Lopez. 3900 3901 https://bugs.webkit.org/show_bug.cgi?id=24786 3902 WebKitDownload sometimes suggests peculiar filenames 3903 3904 When a download is requested by an ongoing request, use the already 3905 provided response to set the suggested filename for the WebKitDownload 3906 object, if available. 3907 3908 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3909 (WebKit::FrameLoaderClient::download): 3910 * webkit/webkitdownload.cpp: 3911 (_WebKitDownloadPrivate::webkit_download_set_property): 3912 (_WebKitDownloadPrivate::webkit_download_get_suggested_filename): 3913 (_WebKitDownloadPrivate::webkit_download_set_suggested_filename): 3914 * webkit/webkitprivate.h: 3915 * webkit/webkitwebview.cpp: 3916 39172009-05-06 Jan Michael Alonzo <jmalonzo@webkit.org> 3918 3919 Reviewed by Holger Freyther. 3920 3921 GTK+ API implementation files have bogus extern "C" entries 3922 https://bugs.webkit.org/show_bug.cgi?id=24322 3923 3924 Remove bogus extern "C" from the source files. 3925 3926 * webkit/webkitdownload.cpp: 3927 (DownloadClient::cannotShowURL): 3928 * webkit/webkiterror.cpp: 3929 (webkit_plugin_error_quark): 3930 * webkit/webkitnetworkrequest.cpp: 3931 (webkit_network_request_get_uri): 3932 * webkit/webkitprivate.cpp: 3933 (webkit_init): 3934 * webkit/webkitversion.cpp: 3935 (webkit_micro_version): 3936 * webkit/webkitwebbackforwardlist.cpp: 3937 * webkit/webkitwebframe.cpp: 3938 (webkit_web_frame_get_load_status): 3939 * webkit/webkitwebhistoryitem.cpp: 3940 * webkit/webkitwebinspector.cpp: 3941 (webkit_web_inspector_set_inspector_client): 3942 * webkit/webkitwebnavigationaction.cpp: 3943 (webkit_web_navigation_action_get_modifier_state): 3944 * webkit/webkitwebpolicydecision.cpp: 3945 (webkit_web_policy_decision_cancel): 3946 * webkit/webkitwebsettings.cpp: 3947 (webkit_web_settings_get_spell_languages): 3948 * webkit/webkitwebview.cpp: 3949 * webkit/webkitwebwindowfeatures.cpp: 3950 (webkit_web_window_features_equal): 3951 39522009-05-06 Jan Michael Alonzo <jmalonzo@webkit.org> 3953 3954 Reviewed by Holger Freyther. 3955 3956 Misc fixes to InspectorClientGtk. 3957 3958 * WebCoreSupport/InspectorClientGtk.cpp: 3959 (WebKit::InspectorClient::createPage): use g_filename_to_uri to 3960 get the URI and use web_view_load_uri instead of the deprecated 3961 web_view_open method for loading the URI. 3962 (WebKit::InspectorClient::localizedStringsURL): implement. 3963 39642009-05-05 Ben Murdoch <benm@google.com> 3965 3966 Reviewed by Eric Seidel. 3967 3968 Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds. 3969 https://bugs.webkit.org/show_bug.cgi?id=24776 3970 3971 * WebCoreSupport/ChromeClientGtk.cpp: 3972 (WebKit::ChromeClient::exceededDatabaseQuota): 3973 * WebCoreSupport/ChromeClientGtk.h: 3974 39752009-05-06 Christian Dywan <christian@twotoasts.de> 3976 3977 Reviewed by Gustavo Noronha. 3978 3979 http://bugs.webkit.org/show_bug.cgi?id=17066 3980 [GTK] Improve frameloader signals 3981 3982 Implement load-status and progress properties on the view, as well as 3983 load-status on the frame. This supersedes the different load signals 3984 load-progress-changed, load-committed, load-done, load-started and 3985 load-finished which are not only misnamed but broken by design. 3986 3987 * WebCoreSupport/FrameLoaderClientGtk.cpp: 3988 (WebKit::notifyStatus): 3989 (WebKit::FrameLoaderClient::postProgressStartedNotification): 3990 (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification): 3991 (WebKit::FrameLoaderClient::dispatchDidFinishLoad): 3992 (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad): 3993 * webkit/webkitprivate.h: 3994 * webkit/webkitwebframe.cpp: 3995 * webkit/webkitwebframe.h: 3996 * webkit/webkitwebview.cpp: 3997 * webkit/webkitwebview.h: 3998 39992009-05-05 Xan Lopez <xlopez@igalia.com> 4000 4001 Reviewed by Holger Freyther. 4002 4003 Fix memory leaks. 4004 4005 * WebCoreSupport/EditorClientGtk.cpp: 4006 (WebKit::EditorClient::checkSpellingOfString): 4007 40082009-05-02 Gustavo Noronha Silva <gns@gnome.org> 4009 4010 Reviewed by Holger Freyther. 4011 4012 https://bugs.webkit.org/show_bug.cgi?id=25466 4013 WebKitGtk+ 1.1.6 prints weird error messages in Liferea 4014 4015 Use strlen instead of g_utf8_strlen when calculating the size of 4016 the data that is being given to webkit_web_frame_load_string to be 4017 loaded, so that we don't miss any of the content. 4018 4019 * webkit/webkitwebframe.cpp: 4020 40212009-05-01 Dimitri Glazkov <dglazkov@chromium.org> 4022 4023 Unreviewed, bulid fix. 4024 4025 Fix mis-applied patch. 4026 4027 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4028 (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): 4029 40302009-05-01 Pavel Feldman <pfeldman@chromium.org> 4031 4032 Reviewed by Timothy Hatcher. 4033 4034 Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest. 4035 4036 https://bugs.webkit.org/show_bug.cgi?id=25347 4037 4038 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4039 (WebKit::FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest): 4040 * WebCoreSupport/FrameLoaderClientGtk.h: 4041 40422009-04-30 David Kilzer <ddkilzer@apple.com> 4043 4044 Provide a mechanism to create a quirks delegate for HTMLParser 4045 4046 Reviewed by David Hyatt. 4047 4048 * WebCoreSupport/ChromeClientGtk.h: 4049 (WebKit::ChromeClient::createHTMLParserQuirks): Added. The 4050 default implementation of this factory method returns 0. 4051 40522009-04-30 Pavel Feldman <pfeldman@chromium.org> 4053 4054 Reviewed by Dimitri Glazkov. 4055 4056 https://bugs.webkit.org/show_bug.cgi?id=25342 4057 Add MessageSource and MessageLevel parameters to the ChromeClient::addMessageToConsole. 4058 4059 * WebCoreSupport/ChromeClientGtk.cpp: 4060 (WebKit::ChromeClient::addMessageToConsole): 4061 * WebCoreSupport/ChromeClientGtk.h: 4062 40632009-04-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4064 4065 Unreviewed. Update gtk-doc control and base sgml files for 1.1.6. 4066 4067 * docs/webkitgtk-docs.sgml: 4068 * docs/webkitgtk-sections.txt: 4069 40702009-04-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4071 4072 Reviewed by Xan Lopez. 4073 4074 Updated with news for the 1.1.6 release. 4075 4076 * NEWS: 4077 40782009-04-28 Xan Lopez <xlopez@igalia.com> 4079 4080 Reviewed by Gustavo Noronha. 4081 4082 Leave a bit of space from the previous page when advacing a whole 4083 page. This matches the behavior of our scrollbar scrolling code 4084 and is just nicer in general. 4085 4086 * webkit/webkitwebview.cpp: 4087 40882009-04-28 Xan Lopez <xlopez@igalia.com> 4089 4090 Unreviewed: committed a few bits by mistake, remove them. 4091 4092 * WebCoreSupport/EditorClientGtk.cpp: 4093 (WebKit::handleEditingKeyboardEvent): 4094 40952009-04-28 Xan Lopez <xlopez@igalia.com> 4096 4097 Reviewed by Gustavo Noronha. 4098 4099 https://bugs.webkit.org/show_bug.cgi?id=16135 4100 [GTK] Support caret browsing 4101 4102 Refactor keyboard event handling to work properly under caret 4103 browsing mode. Most of the code comes from the Windows port. 4104 4105 * WebCoreSupport/EditorClientGtk.cpp: 4106 (WebKit::): 4107 (WebKit::interpretKeyEvent): 4108 (WebKit::handleEditingKeyboardEvent): 4109 (WebKit::EditorClient::handleKeyboardEvent): 4110 41112009-04-28 Xan Lopez <xlopez@igalia.com> 4112 4113 Reviewed by Gustavo Noronha. 4114 4115 https://bugs.webkit.org/show_bug.cgi?id=16135 4116 [GTK] Support caret browsing 4117 4118 Based on a patch by Alp Toker. 4119 4120 Add enable-caret-browsing setting to WebKitWebView. 4121 4122 * webkit/webkitwebsettings.cpp: 4123 (_WebKitWebSettingsPrivate::): 4124 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 4125 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 4126 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 4127 (_WebKitWebSettingsPrivate::webkit_web_settings_copy): 4128 * webkit/webkitwebview.cpp: 4129 41302009-04-27 Gustavo Noronha Silva <gns@gnome.org> 4131 4132 Reviewed by Xan Lopez. 4133 4134 https://bugs.webkit.org/show_bug.cgi?id=25409 4135 [GTK] incorrectly fallsback on cancellation 4136 4137 Check whether we should fallback also on didFailLoad, so that we 4138 don't get error pages showing up in parts of the content of some 4139 sites because of, for instance, location changes. 4140 4141 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4142 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 4143 41442009-04-27 Gustavo Noronha Silva <gns@gnome.org> 4145 4146 Reviewed by Xan Lopez. 4147 4148 https://bugs.webkit.org/show_bug.cgi?id=25409 4149 [GTK] incorrectly fallsback on cancellation 4150 4151 Correctly handle cancellation and frame loading interruption 4152 caused by policy change. This also fixes 4153 fast/frames/location-change.html. 4154 4155 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4156 (WebKit::FrameLoaderClient::shouldFallBack): 4157 41582009-04-26 Xan Lopez <xlopez@igalia.com> 4159 4160 Reviewed by Mark Rowe. 4161 4162 Plug memory leak. 4163 4164 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4165 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 4166 41672009-04-26 Xan Lopez <xlopez@igalia.com> 4168 4169 Reviewed by Gustavo Noronha. 4170 4171 https://bugs.webkit.org/show_bug.cgi?id=25391 4172 G_SIGNAL_ACTION flag in WebKitWebView signals 4173 4174 Most of the signals in WebKitGTK+ have the G_SIGNAL_ACTION flag, 4175 but I don't think this makes sense. The flag is meant for those 4176 signals that can be emitted by the user to trigger some action in 4177 the view, as if it were a normal API, which is not the case for 4178 most of them. 4179 4180 * webkit/webkitdownload.cpp: 4181 (_WebKitDownloadPrivate::webkit_download_class_init): 4182 * webkit/webkitwebframe.cpp: 4183 * webkit/webkitwebinspector.cpp: 4184 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 4185 * webkit/webkitwebview.cpp: 4186 41872009-04-26 Xan Lopez <xlopez@igalia.com> 4188 4189 Unreviewed, actually apply the right patch. 4190 4191 * webkit/webkitwebview.cpp: 4192 (webkit_web_view_move_cursor): 4193 41942009-04-26 Xan Lopez <xlopez@igalia.com> 4195 4196 Reviewed by Gustavo Noronha. 4197 4198 Pass a variable to hold the return value of the 'move-cursor' 4199 signal, otherwise a crash can happen. 4200 4201 * webkit/webkitwebview.cpp: 4202 (webkit_web_view_move_cursor): 4203 42042009-04-25 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4205 4206 Reviewed by Xan Lopez. 4207 4208 https://bugs.webkit.org/show_bug.cgi?id=24786 4209 WebKitDownload sometimes suggests peculiar filenames 4210 4211 Refactor the emission of the download-requested signal so that we 4212 have less code duplication. 4213 4214 * WebCoreSupport/ContextMenuClientGtk.cpp: 4215 (WebKit::ContextMenuClient::downloadURL): 4216 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4217 (WebKit::FrameLoaderClient::startDownload): 4218 * webkit/webkitprivate.h: 4219 * webkit/webkitwebview.cpp: 4220 42212009-04-25 Jan Michael Alonzo <jmalonzo@webkit.org> 4222 4223 Reviewed by Xan Lopez. 4224 4225 [GTK] Error reporting 4226 https://bugs.webkit.org/show_bug.cgi?id=18344 4227 4228 Update FrameLoad errors to use WebKitErrors. 4229 4230 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4231 (WebKit::FrameLoaderClient::cancelledError): 4232 (WebKit::FrameLoaderClient::blockedError): 4233 (WebKit::FrameLoaderClient::cannotShowURLError): 4234 (WebKit::FrameLoaderClient::interruptForPolicyChangeError): 4235 (WebKit::FrameLoaderClient::cannotShowMIMETypeError): 4236 (WebKit::FrameLoaderClient::fileDoesNotExistError): 4237 (WebKit::FrameLoaderClient::pluginWillHandleLoadError): 4238 (WebKit::FrameLoaderClient::shouldFallBack): 4239 * webkit/webkiterror.h: Added. 4240 * webkit/webkiterror.cpp: Added. 4241 42422009-04-25 Jan Michael Alonzo <jmalonzo@webkit.org> 4243 4244 Reviewed by Xan Lopez. 4245 4246 [GTK] Error reporting 4247 https://bugs.webkit.org/show_bug.cgi?id=18344 4248 4249 Display a default error page for load errors. 4250 4251 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4252 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 4253 * resources/error.html: Added. 4254 42552009-04-25 Jan Michael Alonzo <jmalonzo@webkit.org> 4256 4257 Reviewed by Xan Lopez. 4258 4259 [GTK] Error reporting 4260 https://bugs.webkit.org/show_bug.cgi?id=18344 4261 4262 Add a WebKitWebFrame API to load alternate content for unreachable URLs. 4263 Also add a new signal "load-error" for handling load errors. 4264 4265 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4266 (WebKit::FrameLoaderClient::postProgressFinishedNotification): 4267 (WebKit::FrameLoaderClient::dispatchDidFailLoading): 4268 (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad): 4269 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 4270 * webkit/webkitwebframe.cpp: 4271 * webkit/webkitwebframe.h: 4272 * webkit/webkitwebview.cpp: 4273 42742009-04-24 Jan Michael Alonzo <jmalonzo@webkit.org> 4275 4276 Rubber-stamped by Gustavo Noronha. 4277 4278 Fix braces to comply with style guidelines. 4279 4280 * WebCoreSupport/PasteboardHelperGtk.cpp: 4281 (WebKit::PasteboardHelperGtk::getClipboard): 4282 (WebKit::PasteboardHelperGtk::getCopyTargetList): 4283 (WebKit::PasteboardHelperGtk::getPasteTargetList): 4284 42852009-04-24 Sergio García-Cuevas <sergio_gcg@telefonica.net> 4286 4287 Reviewed by Gustavo Noronha. 4288 4289 https://bugs.webkit.org/show_bug.cgi?id=17267 4290 [GTK] Primary selection/clipboard support 4291 4292 Add a method for getting the primary selection. 4293 4294 * WebCoreSupport/PasteboardHelperGtk.cpp: 4295 (WebKit::PasteboardHelperGtk::getPrimary): 4296 * WebCoreSupport/PasteboardHelperGtk.h: 4297 42982009-04-24 Johan Bilien <jobi@via.ecp.fr> 4299 4300 Reviewed by Xan Lopez. 4301 4302 https://bugs.webkit.org/show_bug.cgi?id=25373 4303 Popup menu has the wrong size when popped up near the edge 4304 of the screen 4305 4306 * webkit/webkitwebview.cpp: 4307 (webkit_web_view_forward_context_menu_event): Let GTK place 4308 the popup menu instead of trying to do better and failing 4309 43102009-04-24 Christian Dywan <christian@twotoasts.de> 4311 4312 Rubber-stamped by Gustavo Noronha. 4313 4314 * webkit/webkitwebsettings.cpp: 4315 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): Reword the 4316 description of the enable-spell-checking property and correct the 4317 mentioning of the default language used. 4318 43192009-04-24 Diego Escalante Urrelo <diegoe@gnome.org> 4320 4321 Reviewed by Gustavo Noronha. 4322 4323 https://bugs.webkit.org/show_bug.cgi?id=15616 4324 [GTK] Add spell checking 4325 4326 Implement EditorClient::ignoreWordInSpellDocument, 4327 EditorClient::learnWord and EditorClient::getGuessesForWord. This 4328 enables the corresponding user actions. 4329 4330 * WebCoreSupport/EditorClientGtk.cpp: 4331 (WebKit::EditorClient::ignoreWordInSpellDocument): 4332 (WebKit::EditorClient::learnWord): 4333 (WebKit::EditorClient::getGuessesForWord): 4334 43352009-04-24 Diego Escalante Urrelo <diegoe@gnome.org> 4336 4337 Reviewed by Gustavo Noronha. 4338 4339 https://bugs.webkit.org/show_bug.cgi?id=15616 4340 [GTK] Add spell checking 4341 4342 Implement EditorClient::checkSpellingOfString; enabling spell checking 4343 to actually happen, this is the basis for other spelling functions. 4344 4345 * WebCoreSupport/EditorClientGtk.cpp: 4346 (WebKit::EditorClient::checkSpellingOfString): 4347 43482009-04-24 Diego Escalante Urrelo <diegoe@gnome.org> 4349 4350 Reviewed by Gustavo Noronha. 4351 4352 https://bugs.webkit.org/show_bug.cgi?id=15616 4353 [GTK] Add spell checking 4354 4355 Add spell-checking-languages property to WebKitWebSettings. 4356 4357 * webkit/webkitprivate.h: 4358 * webkit/webkitwebsettings.cpp: 4359 (_WebKitWebSettingsPrivate::): 4360 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 4361 (_WebKitWebSettingsPrivate::webkit_web_settings_init): 4362 (_WebKitWebSettingsPrivate::webkit_web_settings_finalize): 4363 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 4364 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 4365 (_WebKitWebSettingsPrivate::webkit_web_settings_copy): 4366 (_WebKitWebSettingsPrivate::webkit_web_settings_get_spell_languages): 4367 43682009-04-24 Diego Escalante Urrelo <diegoe@gnome.org> 4369 4370 Reviewed by Gustavo Noronha. 4371 4372 https://bugs.webkit.org/show_bug.cgi?id=15616 4373 [GTK] Add spell checking 4374 4375 Add enable-spell-checking property to WebKitWebSettings and implement 4376 EditorClient::isContinuousSpellCheckingEnabled and 4377 EditorClient::toggleContinuousSpellChecking to allow the UI to 4378 enable check as you type spell checking. 4379 4380 * WebCoreSupport/EditorClientGtk.cpp: 4381 (WebKit::EditorClient::isContinuousSpellCheckingEnabled): 4382 (WebKit::EditorClient::toggleContinuousSpellChecking): 4383 * webkit/webkitwebsettings.cpp: 4384 (_WebKitWebSettingsPrivate::): 4385 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 4386 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 4387 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 4388 (_WebKitWebSettingsPrivate::webkit_web_settings_copy): 4389 43902009-04-21 Xan Lopez <xlopez@igalia.com> 4391 4392 Reviewed by Gustavo Noronha. 4393 4394 https://bugs.webkit.org/show_bug.cgi?id=21546 4395 [GTK] ATK accessibility enhancements 4396 4397 Implement window<->screen coordinate transformation functions. 4398 4399 * WebCoreSupport/ChromeClientGtk.cpp: 4400 (WebKit::widgetScreenPosition): 4401 (WebKit::ChromeClient::windowToScreen): 4402 (WebKit::ChromeClient::screenToWindow): 4403 44042009-04-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4405 4406 Reviewed by Xan Lopez. 4407 4408 https://bugs.webkit.org/show_bug.cgi?id=24786 4409 WebKitDownload sometimes suggests peculiar filenames 4410 4411 Remove query and ref from the URI that is to be downloaded when 4412 using it to provide a file name suggestion. 4413 4414 * webkit/webkitdownload.cpp: 4415 (_WebKitDownloadPrivate::webkit_download_set_property): 4416 44172009-04-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4418 4419 Reviewed by Xan Lopez. 4420 4421 Handle the case when the plugin view is destroyed during 4422 didReceiveResponse, to avoid crashing. 4423 4424 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4425 (WebKit::FrameLoaderClient::committedLoad): 4426 44272009-04-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4428 4429 Reviewed by Alexey Proskuryakov. 4430 4431 https://bugs.webkit.org/show_bug.cgi?id=25251 4432 Crash when frame creation removes it from the parent 4433 4434 This brings us up-to-date with the expectations of sub-frame 4435 creation, following what Mac has done. It fixes crashes when 4436 calling init on the child frame removes it from the page. 4437 4438 This makes the following test pass instead of crash: 4439 4440 fast/loader/frame-creation-removal.html 4441 4442 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4443 (WebKit::FrameLoaderClient::createFrame): 4444 44452009-04-16 Christian Dywan <christian@twotoasts.de> 4446 4447 Reviewed by Holger Freyther. 4448 4449 http://bugs.webkit.org/show_bug.cgi?id=25042 4450 destroying webview widget directly causes crash. 4451 4452 * tests/testwebframe.c: 4453 (test_webkit_web_frame_create_destroy): Add a test case for destroying 4454 a web view shortly after packing it in a window. 4455 44562009-04-16 Xan Lopez <xlopez@igalia.com> 4457 4458 Reviewed by Sam Weinig. 4459 4460 https://bugs.webkit.org/show_bug.cgi?id=25241 4461 Remove superfluous NotImplemented.h includes. 4462 4463 * webkit/webkitprivate.cpp: 4464 44652009-04-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4466 4467 Unreviewed. Update gtk-doc control and base sgml files for 1.1.5. 4468 4469 * docs/webkitgtk-docs.sgml: 4470 * docs/webkitgtk-sections.txt: 4471 44722009-04-14 Xan Lopez <xlopez@igalia.com> 4473 4474 * NEWS: updated for 1.1.5 release. 4475 44762009-04-13 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4477 4478 Reviewed by Holger Freyther. 4479 4480 https://bugs.webkit.org/show_bug.cgi?id=22898 4481 [GTK] need proper API for printing 4482 4483 Added simple printing unit tests. 4484 4485 * tests/testwebframe.c: 4486 (print_requested_cb): 4487 (print_timeout): 4488 (test_webkit_web_frame_printing): 4489 (main): 4490 44912009-04-13 Gustavo Noronha Silva <gns@gnome.org> 4492 4493 Reviewed by Holger Freyther. 4494 4495 https://bugs.webkit.org/show_bug.cgi?id=22898 4496 [GTK] need proper API for printing 4497 4498 Implement proper printing API, using the GTK+ printing API. 4499 4500 * WebCoreSupport/ChromeClientGtk.cpp: 4501 (WebKit::ChromeClient::print): 4502 * webkit/webkitprivate.h: 4503 * webkit/webkitwebframe.cpp: 4504 * webkit/webkitwebframe.h: 4505 * webkit/webkitwebview.cpp: 4506 45072009-04-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4508 4509 Reviewed by Holger Freyther. 4510 4511 https://bugs.webkit.org/show_bug.cgi?id=25124 4512 [GTK] many strings still missing translation calls 4513 4514 Mark the missing strings for translation. 4515 4516 * webkit/webkitdownload.cpp: 4517 (_WebKitDownloadPrivate::webkit_download_cancel): 4518 * webkit/webkitsoupauthdialog.c: 4519 (show_auth_dialog): 4520 * webkit/webkitwebhistoryitem.cpp: 4521 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init): 4522 * webkit/webkitwebinspector.cpp: 4523 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 4524 * webkit/webkitwebnavigationaction.cpp: 4525 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init): 4526 * webkit/webkitwebsettings.cpp: 4527 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 4528 * webkit/webkitwebview.cpp: 4529 45302009-04-08 Alejandro Piñeiro <apinheiro@igalia.com> 4531 4532 Reviewed by Holger Freyther. 4533 4534 https://bugs.webkit.org/show_bug.cgi?id=21546 4535 [GTK] ATK accessibility enhancements 4536 4537 Use getOrCreate instead of just get, as we need to actually create 4538 the wrapper object the first time this function is called. 4539 4540 * webkit/webkitwebview.cpp: 4541 45422009-04-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4543 4544 Rubber-stamped by Sam Weinig. 4545 4546 https://bugs.webkit.org/show_bug.cgi?id=20575 4547 No localization in WebKitGtk 4548 4549 Implemented localization support for WebKitGTK+. 4550 4551 * WebCoreSupport/ChromeClientGtk.cpp: 4552 * WebCoreSupport/ContextMenuClientGtk.cpp: 4553 * po/POTFILES: Added. 4554 * po/README: Added. 4555 * po/webkit.pot: Added. 4556 * webkit/webkitdownload.cpp: 4557 (_WebKitDownloadPrivate::webkit_download_class_init): 4558 * webkit/webkitprivate.cpp: 4559 (webkit_init): 4560 * webkit/webkitwebframe.cpp: 4561 45622009-04-05 Xan Lopez <xlopez@igalia.com> 4563 4564 Reviewed by Holger Freyther. 4565 4566 https://bugs.webkit.org/show_bug.cgi?id=25042 4567 destroying webview widget directly causes crash. 4568 4569 Do not connect the WebView to its own screen-changed signal, set a 4570 default handler instead. 4571 4572 * webkit/webkitwebview.cpp: 4573 45742009-04-05 Xan Lopez <xlopez@igalia.com> 4575 4576 Reviewed by Holger Freyther. 4577 4578 https://bugs.webkit.org/show_bug.cgi?id=25042 4579 destroying webview widget directly causes crash. 4580 4581 GtkWidget::screen-changed can be emitted when a widget is being 4582 destroyed, protect against it. 4583 4584 * webkit/webkitwebview.cpp: 4585 45862009-04-05 Jan Michael Alonzo <jmalonzo@webkit.org> 4587 4588 Reviewed by Holger Freyther. 4589 4590 [Gtk] Implement LayoutTestControllerGtk::setPrivateBrowsingEnabled 4591 https://bugs.webkit.org/show_bug.cgi?id=24487 4592 4593 Updated documentation and put more information about the 4594 private-browsing setting for WebKitGtk. 4595 4596 * webkit/webkitwebsettings.cpp: 4597 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 4598 45992009-04-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4600 4601 Reviewed by Holger Freyther. 4602 4603 Remove pre-processor checks for GTK+ >= 2.10, since we now require 4604 at least that version. 4605 4606 * WebCoreSupport/EditorClientGtk.cpp: 4607 (WebKit::clipboard_clear_contents_cb): 4608 (WebKit::EditorClient::respondToChangedSelection): 4609 * webkit/webkitwebframe.cpp: 4610 * webkit/webkitwebview.cpp: 4611 46122009-04-02 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4613 4614 Reviewed by Alexey Proskuryakov. 4615 4616 https://bugs.webkit.org/show_bug.cgi?id=24844 4617 Unit test WebKitDownload 4618 4619 Extra checks to avoid crashing and a critical message when 4620 property accessor functions are called before the download is 4621 started. 4622 4623 * webkit/webkitdownload.cpp: 4624 (_WebKitDownloadPrivate::webkit_download_get_progress): 4625 (_WebKitDownloadPrivate::webkit_download_get_elapsed_time): 4626 46272009-04-01 Christian Dywan <christian@twotoasts.de> 4628 4629 Reviewed by Holger Freyther. 4630 4631 * tests/testdownload.c: Added. 4632 (test_webkit_download_create): 4633 (main): Add an initial unit test for downloading. 4634 46352009-04-01 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4636 4637 Unreviewed typo fixes, and naming normalization in the 4638 documentation. 4639 4640 * docs/webkitenvironment.xml: 4641 * webkit/webkitwebview.cpp: 4642 46432009-03-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4644 4645 Reviewed by Holger Freyther. 4646 4647 Updated gtk-doc configuration files for the 1.1.1, 1.1.2, 1.1.3, 4648 and 1.1.4 versions of WebKitGTK+. 4649 4650 * docs/webkitgtk-docs.sgml: 4651 * docs/webkitgtk-sections.txt: 4652 46532009-03-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4654 4655 Reviewed by Holger Freyther. 4656 4657 https://bugs.webkit.org/show_bug.cgi?id=17045 4658 [GTK] Documentation 4659 4660 Added header documentation for WebKitWebNavigationAction and 4661 WebKitWebPolicyDecision. 4662 4663 Added missing documentation pieces for WebKitSoupAuthDialog, 4664 WebKitDownload and WebKitWebPolicyDecision. 4665 4666 Wrote a section about using the WEBKIT_DEBUG environment variable. 4667 4668 * docs/GNUmakefile.am: 4669 * docs/webkitenvironment.xml: Added. 4670 * docs/webkitgtk-docs.sgml: 4671 * webkit/webkitdownload.cpp: 4672 * webkit/webkitsoupauthdialog.c: 4673 * webkit/webkitwebnavigationaction.cpp: 4674 * webkit/webkitwebpolicydecision.cpp: 4675 46762009-03-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4677 4678 Reviewed by Holger Freyther. 4679 4680 Integrate gtk-doc into the Gtk+ buildsystem. 4681 4682 Based on original work by Holger Freyther. 4683 4684 Integrate gtk-doc into our buildsystem. We are forced to 4685 use recursive make for gtk-doc itself as the to be installed 4686 gtk-doc.make (done by gtkdocize) is not working in a non 4687 recursive environment. 4688 4689 The documentation can only be generated when srcdir == builddir. 4690 In all other cases the generated files will not be found. This 4691 limitation can be found in pango and gtk+ as well. There is no 4692 easy way around. The resulting html documentation will be saved 4693 in the srcdir as well. 4694 4695 * docs/GNUmakefile.am: Added. 4696 * docs/version.xml.in: Added. 4697 * docs/webkitgtk-docs.sgml: 4698 46992009-03-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4700 4701 Unreviewed. Documenting what changed since the 1.1.3 release, in 4702 the GTK+ port. 4703 4704 * NEWS: 4705 47062009-03-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 4707 4708 Unreviewed. Add information on the bug-fix-only 1.1.3 release. 4709 4710 * NEWS: 4711 47122009-03-30 Xan Lopez <xlopez@igalia.com> 4713 4714 Reviewed by Holger Freyther. 4715 4716 https://bugs.webkit.org/show_bug.cgi?id=24878 4717 [GTK] Use GtkBinding system to handle key events in WebView 4718 4719 Use GtkBinding system for key events in WebKitWebView. Allows the 4720 user to reconfigure the bindings and fixes a bunch of bugs along 4721 the way (we were not checking modifier keys in most actions). 4722 4723 * webkit/webkitwebview.cpp: 4724 (webkit_web_view_move_cursor): 4725 * webkit/webkitwebview.h: 4726 * webkitmarshal.list: 4727 47282009-03-28 Xan Lopez <xlopez@igalia.com> 4729 4730 Reviewed by Mark Rowe. 4731 4732 https://bugs.webkit.org/show_bug.cgi?id=24790 4733 [GTK] webkitsoupauthdialog.h lacks WEBKIT_API before function 4734 4735 Set the right visibility to the WebKitSoupAuthDialog get_type 4736 function. 4737 4738 * webkit/webkitsoupauthdialog.h: 4739 47402009-03-28 Jan Michael Alonzo <jmalonzo@webkit.org> 4741 4742 Gtk build fix. Not reviewed. 4743 4744 FrameLoader::loadURL and FrameLoader::detachChildren went private 4745 per changes in http://trac.webkit.org/changeset/42055. Follow 4746 Mac's behaviour and use FrameLoader::loadURLIntoChildFrame for 4747 loadURL and FrameLoader::detachParent for detachChildrem. 4748 4749 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4750 (WebKit::FrameLoaderClient::createFrame): 4751 * webkit/webkitwebview.cpp: 4752 47532009-03-25 Gustavo Noronha Silva <gns@gnome.org> 4754 4755 Reviewed by Holger Freyther. 4756 4757 https://bugs.webkit.org/show_bug.cgi?id=15793 4758 [GTK] tooltip position doesn't update when hovering consecutive links 4759 4760 Work-around tooltips not updating their location when the elements 4761 are consecutive, by clearing the tooltip when handling 4762 mouseDidMoveOverElement. 4763 4764 * WebCoreSupport/ChromeClientGtk.cpp: 4765 (WebKit::ChromeClient::mouseDidMoveOverElement): 4766 47672009-03-23 Alejandro Garcia Castro <alex@igalia.com> 4768 4769 Reviewed by Holger Freyther. 4770 4771 [Gtk] Current API does not allow us to open target="_blank" links 4772 in new tabs instead of windows 4773 https://bugs.webkit.org/show_bug.cgi?id=23932 4774 4775 Added a signal to the API (new-window-policy-decision-requested) 4776 that allows the browser to decide the policy for the new window 4777 request, if the signal is not handled we open the new window as 4778 usual. 4779 4780 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4781 (WebKit::getNavigationAction): 4782 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 4783 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 4784 * webkit/webkitwebview.cpp: 4785 47862009-03-20 Jan Michael Alonzo <jmalonzo@gmail.com> 4787 4788 Not reviewed. Fix style issues with my previous commit (r41866) as 4789 suggested by Holger in https://bugs.webkit.org/show_bug.cgi?id=24493 4790 4791 * tests/testwebhistoryitem.c: 4792 (test_webkit_web_history_item_get_data): 4793 (test_webkit_web_history_item_alternate_title): 4794 47952009-03-20 Jan Michael Alonzo <jmalonzo@gmail.com> 4796 4797 Reviewed by Holger Freyther. 4798 4799 [GTK] Misc patches for WebKitWebHistoryItem 4800 https://bugs.webkit.org/show_bug.cgi?id=24493 4801 4802 Add unit test for WebKitWebHistoryItem 4803 4804 * tests/testwebhistoryitem.c: Added. 4805 (web_history_item_fixture_setup): 4806 (web_history_item_fixture_teardown): 4807 (test_webkit_web_history_item_get_data): 4808 (test_webkit_web_history_item_alternate_title): 4809 (main): 4810 48112009-03-20 Jan Michael Alonzo <jmalonzo@gmail.com> 4812 4813 Reviewed by Holger Freyther. 4814 4815 Separate gtk unit tests 4816 https://bugs.webkit.org/show_bug.cgi?id=24039 4817 4818 Split the current single-file unit test to make it more 4819 modularized and manageable in the future as more unit tests are 4820 written. 4821 4822 * tests/main.c: Removed. 4823 * tests/testwebbackforwardlist.c: Copied from WebKit/gtk/tests/main.c. 4824 (main): 4825 * tests/testwebframe.c: Copied from WebKit/gtk/tests/main.c. 4826 (main): 4827 48282009-03-16 Christian Dywan <christian@twotoasts.de> 4829 4830 Reviewed by Adam Roben. 4831 4832 [gtk] API implementation: url and title 4833 http://bugs.webkit.org/show_bug.cgi?id=14807 4834 4835 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4836 (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage): 4837 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle): 4838 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): 4839 * webkit/webkitwebview.cpp: 4840 * webkit/webkitwebview.h: Implement "title" and "uri" properties as well 4841 as according functions. "uri" always reflects the current location 4842 including navigation inside the same page. title-changed is deprecated. 4843 48442009-03-15 Gustavo Noronha Silva <gns@gnome.org> 4845 4846 Reviewed by Anders Carlsson. 4847 4848 Fix default policy decision to be ignore, on MIME checks, if 4849 WebKit doesn't know how to handle the MIME type. The documentation 4850 is already correct, and this was an oversight when the policy 4851 decision code was first committed. Since 1.1.2 will be the first 4852 release to support download, there is no practical change in 4853 behavior. 4854 4855 * WebCoreSupport/FrameLoaderClientGtk.cpp: 4856 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): 4857 48582009-03-15 Xan Lopez <xlopez@igalia.com> 4859 4860 * NEWS: update for 1.1.2. 4861 48622009-03-14 Jan Michael Alonzo <jmalonzo@webkit.org> 4863 4864 Reviewed by Holger Freyther. 4865 4866 [GTK] use of confirm dialog (yes/no) causes segfault 4867 https://bugs.webkit.org/show_bug.cgi?id=20940 4868 4869 Change the script-confirm marshaller from OBJECT,STRING,BOOLEAN to 4870 OBJECT,STRING,POINTER 4871 4872 * webkit/webkitwebview.cpp: 4873 * webkitmarshal.list: 4874 48752009-03-12 Gustavo Noronha Silva <gns@gnome.org> 4876 4877 Reviewed by Alexey Proskuryakov. 4878 4879 https://bugs.webkit.org/show_bug.cgi?id=24553 4880 [GTK] Improvements to WebKitDownload 4881 4882 Rename 'state' to 'status' to match the naming in the frame 4883 loader rework that we plan to land soonish, and make it a 4884 property, for the same reason. 4885 4886 * webkit/webkitdownload.cpp: 4887 (_WebKitDownloadPrivate::): 4888 (_WebKitDownloadPrivate::webkit_download_finalize): 4889 (_WebKitDownloadPrivate::webkit_download_get_property): 4890 (_WebKitDownloadPrivate::webkit_download_set_property): 4891 (_WebKitDownloadPrivate::webkit_download_class_init): 4892 (_WebKitDownloadPrivate::webkit_download_init): 4893 (_WebKitDownloadPrivate::webkit_download_start): 4894 (_WebKitDownloadPrivate::webkit_download_cancel): 4895 (_WebKitDownloadPrivate::webkit_download_set_destination_uri): 4896 (_WebKitDownloadPrivate::webkit_download_get_status): 4897 (_WebKitDownloadPrivate::webkit_download_set_status): 4898 (_WebKitDownloadPrivate::webkit_download_received_data): 4899 (_WebKitDownloadPrivate::webkit_download_finished_loading): 4900 (_WebKitDownloadPrivate::webkit_download_error): 4901 * webkit/webkitdownload.h: 4902 49032009-03-12 Gustavo Noronha Silva <gns@gnome.org> 4904 4905 Reviewed by Alexey Proskuryakov. 4906 4907 https://bugs.webkit.org/show_bug.cgi?id=24553 4908 [GTK] Improvements to WebKitDownload 4909 4910 Improved documentation for the download-requested signal, to make 4911 its usage clear. 4912 4913 * webkit/webkitwebview.cpp: 4914 49152009-03-12 Gustavo Noronha Silva <gns@gnome.org> 4916 4917 Reviewed by Alp Toker. 4918 4919 https://bugs.webkit.org/show_bug.cgi?id=24541 4920 Scrolling with home and end keys not always works 4921 4922 Also make page up and page down keys be handled by the webview key 4923 event code, so that they also work in cases where the GTK+ 4924 scrollbars don't handle them directly, like in the bugzill's patch 4925 review page. 4926 4927 * webkit/webkitwebview.cpp: 4928 49292009-03-12 Gustavo Noronha Silva <gns@gnome.org> 4930 4931 Reviewed by Alp Toker. 4932 4933 https://bugs.webkit.org/show_bug.cgi?id=24541 4934 Scrolling with home and end keys not always works 4935 4936 Make home and end keys behave more consistently for scrolling the 4937 view. 4938 4939 * webkit/webkitwebview.cpp: 4940 49412009-03-12 Gustavo Noronha Silva <gns@gnome.org> 4942 4943 Reviewed by Alp Toker. 4944 4945 https://bugs.webkit.org/show_bug.cgi?id=24254 4946 [GTK] spacebar doesn't scroll down 4947 4948 Make spacebar and shift+spacebar scroll like page up and down 4949 respectively would. 4950 4951 * webkit/webkitwebview.cpp: 4952 49532009-03-10 Xan Lopez <xlopez@igalia.com> 4954 4955 Reviewed by Holger Freyther. 4956 4957 https://bugs.webkit.org/show_bug.cgi?id=24493 4958 [GTK] Misc patches for WebKitWebHistoryItem 4959 4960 Only run code in dispose once per instance. 4961 4962 * webkit/webkitwebhistoryitem.cpp: 4963 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 4964 49652009-03-10 Xan Lopez <xlopez@igalia.com> 4966 4967 Reviewed by Holger Freyther. 4968 4969 https://bugs.webkit.org/show_bug.cgi?id=24493 4970 [GTK] Misc patches for WebKitWebHistoryItem 4971 4972 Call deref() on our internal HistoryItem on dispose, as we always 4973 acquire it with a releaseRef() call to a PassRefPtr, which passes 4974 ownership. 4975 4976 * webkit/webkitwebhistoryitem.cpp: 4977 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 4978 49792009-03-10 Xan Lopez <xlopez@igalia.com> 4980 4981 Reviewed by Holger Freyther. 4982 4983 https://bugs.webkit.org/show_bug.cgi?id=24493 4984 [GTK] Misc patches for WebKitWebHistoryItem 4985 4986 return foo? foo : NULL == return foo 4987 4988 * webkit/webkitwebhistoryitem.cpp: 4989 (WebKit::core): 4990 49912009-03-11 Jan Michael Alonzo <jmalonzo@webkit.org> 4992 4993 Reviewed by Holger Freyther. 4994 4995 Gtk] Implement LayoutTestControllerGtk::setPrivateBrowsingEnabled 4996 https://bugs.webkit.org/show_bug.cgi?id=24487 4997 4998 Add private browsing option "enable-private-browsing" to WebKitWebSettings. 4999 5000 * webkit/webkitwebsettings.cpp: 5001 (_WebKitWebSettingsPrivate::): 5002 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 5003 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 5004 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 5005 (_WebKitWebSettingsPrivate::webkit_web_settings_copy): 5006 * webkit/webkitwebview.cpp: 5007 50082009-03-11 Jan Michael Alonzo <jmalonzo@webkit.org> 5009 5010 Reviewed by Holger Freyther. 5011 5012 [GTK] BackForward history leak? 5013 https://bugs.webkit.org/show_bug.cgi?id=19528 5014 5015 Don't ref the history items when returning the back/forward list 5016 Added test_webkit_web_history_item_lifetime test case for this. 5017 5018 * tests/main.c: 5019 (test_webkit_web_history_item_lifetime): 5020 (test_webkit_web_back_forward_list_order): Style fix. 5021 (test_webkit_web_back_forward_list_add_item): Style fix. 5022 (main): 5023 * webkit/webkitwebbackforwardlist.cpp: 5024 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit): 5025 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit): 5026 50272009-03-10 Xan Lopez <xlopez@igalia.com> 5028 5029 Reviewed by Alexey Proskuryakov. 5030 5031 https://bugs.webkit.org/show_bug.cgi?id=24493 5032 [GTK] Misc patches for WebKitWebHistoryItem 5033 5034 Use g_hash_table_new_full so we can save the manual unref on the 5035 values when removing them from the table. 5036 5037 * webkit/webkitwebhistoryitem.cpp: 5038 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 5039 50402009-03-10 Xan Lopez <xan@gnome.org> 5041 5042 Reviewed by Alexey Proskuryakov. 5043 5044 https://bugs.webkit.org/show_bug.cgi?id=24493 5045 [GTK] Misc patches for WebKitWebHistoryItem 5046 5047 Use 'if (foo)' instead of 'if (foo != NULL)', per coding style 5048 guidelines. 5049 5050 * webkit/webkitwebhistoryitem.cpp: 5051 (_WebKitWebHistoryItemPrivate::webkit_history_item_remove): 5052 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title): 5053 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title): 5054 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri): 5055 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri): 5056 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_last_visited_time): 5057 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_target): 5058 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_is_target_item): 5059 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_children): 5060 50612009-03-10 Xan Lopez <xlopez@igalia.com> 5062 5063 Reviewed by Alexey Proskuryakov. 5064 5065 Correct return value to false instead of NULL. 5066 5067 * webkit/webkitwebhistoryitem.cpp: 5068 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_is_target_item): 5069 50702009-03-08 Holger Hans Peter Freyther <zecke@selfish.org> 5071 5072 Reviewed by Mark Rowe. 5073 5074 Add javascript-profiling-enabled property and implement it. This 5075 will enable/disable the profiler on the InstpectorController. 5076 5077 * webkit/webkitprivate.h: 5078 * webkit/webkitwebinspector.cpp: 5079 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 5080 (_WebKitWebInspectorPrivate::webkit_web_inspector_set_property): 5081 (_WebKitWebInspectorPrivate::webkit_web_inspector_get_property): 5082 (_WebKitWebInspectorPrivate::webkit_web_inspector_set_inspector_client): 5083 * webkit/webkitwebview.cpp: 5084 50852009-03-05 Gustavo Noronha Silva <gns@gnome.org> 5086 5087 Reviewed by Olliej. 5088 5089 https://bugs.webkit.org/show_bug.cgi?id=24295 5090 webkit_web_back_forward_list_add_item needs a Since tag 5091 5092 Add missing Since tag to webkit_web_back_forward_list_add_item 5093 documentation. 5094 5095 * webkit/webkitwebbackforwardlist.cpp: 5096 50972009-03-05 Gustavo Noronha Silva <gns@gnome.org> 5098 5099 Reviewed by Mark Rowe. 5100 5101 https://bugs.webkit.org/show_bug.cgi?id=24417 5102 [GTK] WebKitDownload's _cancel and _dispose methods may emit warnings 5103 5104 NULL-check for timer on _cancel and _dispose, to avoid bad 5105 warnings. 5106 5107 * webkit/webkitdownload.cpp: 5108 (_WebKitDownloadPrivate::webkit_download_finalize): 5109 (_WebKitDownloadPrivate::webkit_download_cancel): 5110 51112009-03-02 Xan Lopez <xan@gnome.org> 5112 5113 Reviewed by Mark Rowe. 5114 5115 https://bugs.webkit.org/show_bug.cgi?id=24287 5116 [GTK] Move auth dialog feature to WebKit/ 5117 5118 Add WebKitSoupAuthDialog and add it to the session in webkit_init. 5119 5120 * webkit/webkitprivate.cpp: 5121 (currentToplevelCallback): 5122 (webkit_init): 5123 * webkit/webkitsoupauthdialog.c: Added. 5124 (webkit_soup_auth_dialog_class_init): 5125 (webkit_soup_auth_dialog_init): 5126 (webkit_soup_auth_dialog_session_feature_init): 5127 (free_authData): 5128 (set_password_callback): 5129 (response_callback): 5130 (table_add_entry): 5131 (show_auth_dialog): 5132 (find_password_callback): 5133 (session_authenticate): 5134 (attach): 5135 * webkit/webkitsoupauthdialog.h: Added. 5136 51372009-03-03 Gustavo Noronha Silva <gns@gnome.org> 5138 5139 Reviewed by Alexey Proskuryakov. 5140 5141 https://bugs.webkit.org/show_bug.cgi?id=16826 5142 [Gtk] Implement WebKitDownload 5143 5144 Implement download, and provide a nice object wrapping the 5145 download process. Initial work done by Marco Barisione and 5146 Pierre-Luc Beaudoin for Collabora. 5147 5148 * WebCoreSupport/ContextMenuClientGtk.cpp: 5149 (WebKit::ContextMenuClient::downloadURL): 5150 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5151 (WebKit::FrameLoaderClient::download): 5152 (WebKit::FrameLoaderClient::startDownload): 5153 * webkit/webkit.h: 5154 * webkit/webkitdefines.h: 5155 * webkit/webkitdownload.cpp: Added. 5156 (_WebKitDownloadPrivate::): 5157 (_WebKitDownloadPrivate::webkit_download_dispose): 5158 (_WebKitDownloadPrivate::webkit_download_finalize): 5159 (_WebKitDownloadPrivate::webkit_download_get_property): 5160 (_WebKitDownloadPrivate::webkit_download_set_property): 5161 (_WebKitDownloadPrivate::webkit_download_class_init): 5162 (_WebKitDownloadPrivate::webkit_download_init): 5163 (_WebKitDownloadPrivate::webkit_download_new): 5164 (_WebKitDownloadPrivate::webkit_download_open_stream_for_uri): 5165 (_WebKitDownloadPrivate::webkit_download_close_stream): 5166 (_WebKitDownloadPrivate::webkit_download_start): 5167 (_WebKitDownloadPrivate::webkit_download_cancel): 5168 (_WebKitDownloadPrivate::webkit_download_get_uri): 5169 (_WebKitDownloadPrivate::webkit_download_get_network_request): 5170 (_WebKitDownloadPrivate::webkit_download_set_response): 5171 (_WebKitDownloadPrivate::webkit_download_get_suggested_filename): 5172 (_WebKitDownloadPrivate::webkit_download_get_destination_uri): 5173 (_WebKitDownloadPrivate::webkit_download_set_destination_uri): 5174 (_WebKitDownloadPrivate::webkit_download_get_state): 5175 (_WebKitDownloadPrivate::webkit_download_get_total_size): 5176 (_WebKitDownloadPrivate::webkit_download_get_current_size): 5177 (_WebKitDownloadPrivate::webkit_download_get_progress): 5178 (_WebKitDownloadPrivate::webkit_download_get_elapsed_time): 5179 (_WebKitDownloadPrivate::webkit_download_received_data): 5180 (_WebKitDownloadPrivate::webkit_download_finished_loading): 5181 (_WebKitDownloadPrivate::webkit_download_error): 5182 (_WebKitDownloadPrivate::DownloadClient::DownloadClient): 5183 (_WebKitDownloadPrivate::DownloadClient::didReceiveResponse): 5184 (_WebKitDownloadPrivate::DownloadClient::didReceiveData): 5185 (_WebKitDownloadPrivate::DownloadClient::didFinishLoading): 5186 (_WebKitDownloadPrivate::DownloadClient::didFail): 5187 (_WebKitDownloadPrivate::DownloadClient::wasBlocked): 5188 (_WebKitDownloadPrivate::DownloadClient::cannotShowURL): 5189 * webkit/webkitdownload.h: Added. 5190 * webkit/webkitprivate.h: 5191 * webkit/webkitwebview.cpp: 5192 * webkitmarshal.list: 5193 51942009-03-01 Jan Michael Alonzo <jmalonzo@webkit.org> 5195 5196 Reviewed by Holger Freyther. 5197 5198 [Gtk] get the HTTP layout tests going 5199 https://bugs.webkit.org/show_bug.cgi?id=24259 5200 5201 Added API to get the response mime type from a frame. We need this 5202 so we can decide if we need to dump the frame as text or its 5203 render tree 5204 5205 * webkit/webkitprivate.h: 5206 * webkit/webkitwebframe.cpp: 5207 52082009-03-01 Jan Michael Alonzo <jmalonzo@webkit.org> 5209 5210 Reviewed by Holger Freyther. 5211 5212 [Gtk] get the HTTP layout tests going 5213 https://bugs.webkit.org/show_bug.cgi?id=24259 5214 5215 Create a WebKitWebHistoryItem for each WebCore::HistoryItem when 5216 necessary. 5217 Add necessary API additions for us to be able to dump a WebKitWebHistoryItem 5218 5219 * webkit/webkitprivate.h: 5220 * webkit/webkitwebbackforwardlist.cpp: 5221 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit): 5222 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit): 5223 * webkit/webkitwebhistoryitem.cpp: 5224 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item): 5225 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): 5226 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): 5227 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_target): 5228 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_is_target_item): 5229 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_children): 5230 (WebKit::core): 5231 (WebKit::kit): 5232 52332009-03-01 Christian Dywan <christian@twotoasts.de> 5234 5235 Reviewed by Holger Freyther. 5236 5237 * webkit/webkitprivate.h: 5238 * webkit/webkitwebview.cpp: 5239 (webkit_web_view_get_encoding): 5240 * webkit/webkitwebview.h: Implement 'encoding' and 'custom-encoding' 5241 properties as well as webkit_web_view_get_encoding. 5242 52432009-03-01 Gustavo Noronha Silva <gns@gnome.org> 5244 5245 Unreviewed simple wording fix for the NEWS file. 5246 5247 * NEWS: 5248 52492009-03-01 Xan Lopez <xan@gnome.org> 5250 5251 Add NEWS file to track progress between releases. 5252 5253 * NEWS: Added. 5254 52552009-02-28 Christian Dywan <christian@twotoasts.de> 5256 5257 Reviewed by Holger Freyther. 5258 5259 * webkit/webkitwebview.cpp: Let webkit_web_view_open add file:// if a 5260 locale path is passed for compatibility, since we used to support that. 5261 52622009-02-27 Gustavo Noronha Silva <gns@gnome.org> 5263 5264 Reviewed by David Hyatt. 5265 5266 Automatically ignore empty requests to avoid crashing. This fixes 5267 the crash in fast/loader/empty-embed-src-attribute.html. 5268 5269 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5270 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): 5271 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 5272 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 5273 52742009-02-27 Xan Lopez <xan@gnome.org> 5275 5276 Reviewed by Alexey Proskuryakov. 5277 5278 https://bugs.webkit.org/show_bug.cgi?id=24221 5279 [GTK] Do not emit load-finished when being disposed 5280 5281 webkit_web_view_stop_load() is called from dispose() on 5282 WebKitWebView. This eventually calls postProgressFinishedNotification 5283 in FrameLoaderClientGtk, which emits load-finished. Add 5284 a 'disposing' flag to WebView that we can check here, so 5285 we avoid emitting signals on objects on their way to be 5286 destroyed. This fixes a bunch of critical warnings when 5287 closing a loading WebView. 5288 5289 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5290 (WebKit::FrameLoaderClient::postProgressFinishedNotification): 5291 * webkit/webkitprivate.h: 5292 * webkit/webkitwebview.cpp: 5293 52942009-02-27 Xan Lopez <xan@gnome.org> 5295 5296 Rubber-stamped by Alexey Proskuryakov. 5297 5298 https://bugs.webkit.org/show_bug.cgi?id=24222 5299 [GTK] Remove checks for old glib versions 5300 5301 libsoup, which is a hard dependency, needs at least glib 2.15.3, 5302 so remove all glib checks for versions older than that. 5303 5304 * webkit/webkitwebview.cpp: 5305 53062009-02-26 Xan Lopez <xan@gnome.org> 5307 5308 Reviewed by Holger Freyther. 5309 5310 https://bugs.webkit.org/show_bug.cgi?id=16947 5311 [GTK] Missing HTTP Auth challenge 5312 5313 Add new marshalers list. 5314 5315 * webkitmarshal.list: Added. 5316 53172009-02-26 Xan Lopez <xan@gnome.org> 5318 5319 Reviewed by Alexey Proskuryakov. 5320 5321 https://bugs.webkit.org/show_bug.cgi?id=24193 5322 [GTK] Checkbuttons not activated with space 5323 5324 Do not swallow key events with GtkIMContext for non-editable 5325 content. 5326 5327 * WebCoreSupport/EditorClientGtk.cpp: 5328 (WebKit::EditorClient::handleInputMethodKeydown): 5329 53302009-02-26 Xan Lopez <xan@gnome.org> 5331 5332 Reviewed by Alexey Proskuryakov. 5333 5334 https://bugs.webkit.org/show_bug.cgi?id=24103 5335 [GTK] Use correct return value for WebView button-release handler 5336 5337 We are returning whatever the core code tells us it did, but this 5338 does not play well with the GTK+ model. GTK+ in general expects it 5339 will see a button-release if it saw a button-press and no 5340 motion/leave/etc events in between. EventHandler.cpp will, in some 5341 cases, not handle press but handle release, confusing the parent 5342 container of the WebView. 5343 5344 As a workaround return always FALSE for button-release (this is 5345 the same than the Windows port does). 5346 5347 * webkit/webkitwebview.cpp: 5348 53492009-02-26 Xan Lopez <xan@gnome.org> 5350 5351 Reviewed by Holger Freyther. 5352 5353 https://bugs.webkit.org/show_bug.cgi?id=17585 5354 [gtk] get|set encoding api 5355 5356 Add functions to get and set a custom encoding an a view. 5357 5358 * webkit/webkitprivate.h: 5359 * webkit/webkitwebview.cpp: 5360 (webkit_web_view_set_custom_encoding): 5361 (webkit_web_view_get_custom_encoding): 5362 * webkit/webkitwebview.h: 5363 53642009-02-23 Xan Lopez <xan@gnome.org> 5365 5366 Reviewed by Alexey Proskuryakov. 5367 5368 https://bugs.webkit.org/show_bug.cgi?id=22624 5369 [SOUP][GTK] Need API to get SoupSession from WebKit. 5370 5371 Add API to get the default soup session. 5372 5373 * webkit/webkitwebview.cpp: 5374 * webkit/webkitwebview.h: 5375 53762009-02-23 Xan Lopez <xan@gnome.org> 5377 5378 Reviewed by Alexey Proskuryakov. 5379 5380 https://bugs.webkit.org/show_bug.cgi?id=22624 5381 [SOUP][GTK] Need API to get SoupSession from WebKit. 5382 5383 Add soup dependency to pc file. 5384 5385 * webkit.pc.in: 5386 53872009-02-23 Jan Michael Alonzo <jmalonzo@webkit.org> 5388 5389 Reviewed by Mark Rowe. 5390 5391 [GTK] Back / Forward history menus are flipped 5392 https://bugs.webkit.org/show_bug.cgi?id=22694 5393 5394 Don't call g_list_reverse when returning the back or forward list. 5395 5396 * tests/main.c: 5397 (test_webkit_web_back_forward_list_order): 5398 (main): 5399 * webkit/webkitwebbackforwardlist.cpp: 5400 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit): 5401 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit): 5402 54032009-02-17 Xan Lopez <xan@gnome.org> 5404 5405 Rubber-stamped by Alexey Proskuryakov. 5406 5407 Restoring change landed in r40715, which was accidentally undone 5408 by r40918. 5409 5410 * webkit/webkitwebframe.cpp: 5411 54122009-02-12 Christian Dywan <christian@twotoasts.de> 5413 5414 Reviewed by Holger Freyther. 5415 5416 http://bugs.webkit.org/show_bug.cgi?id=17176 5417 [GTK] API: hovering-over-link and webkit_web_view_open /_load_foo 5418 5419 * webkit/webkitwebframe.cpp: 5420 * webkit/webkitwebframe.h: 5421 * webkit/webkitwebview.cpp: 5422 * webkit/webkitwebview.h: Introduce webkit_web_frame_load_uri, 5423 webkit_web_frame_load_string, webkit_web_view_load_uri and 5424 webkit_web_view_load_request and unify implementations. 5425 54262009-02-11 Dimitri Dupuis-latour <dupuislatour@apple.com> 5427 5428 Stub out InspectorClient::hiddenPanels. 5429 5430 Reviewed by Timothy Hatcher. 5431 5432 * WebCoreSupport/InspectorClientGtk.cpp: 5433 (WebKit::InspectorClient::hiddenPanels): 5434 * WebCoreSupport/InspectorClientGtk.h: 5435 54362009-02-07 Holger Hans Peter Freyther <zecke@selfish.org> 5437 5438 Unreviewed build fix Use toNormalizedRange(). 5439 5440 * WebCoreSupport/EditorClientGtk.cpp: 5441 (WebKit::clipboard_get_contents_cb): 5442 54432009-02-06 Geoffrey Garen <ggaren@apple.com> 5444 5445 Build fix. 5446 5447 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5448 (WebKit::FrameLoaderClient::updateGlobalHistoryRedirectLinks): 5449 * WebCoreSupport/FrameLoaderClientGtk.h: 5450 54512009-02-06 Xan Lopez <xan@gnome.org> 5452 5453 Reviewed by Holger Freyther. 5454 5455 Reported by Daniel Macks. 5456 5457 https://bugs.webkit.org/show_bug.cgi?id=20412 5458 5459 Use positive numbers for the target info IDs, gtk_target_list_add 5460 casts them to 'guint'. Also just start them from 0, since the 5461 values are not relevant or magic in any way, they are just used as 5462 tokens for the user of the API. 5463 5464 * webkit/webkitwebview.h: 5465 54662009-02-06 Xan Lopez <xan@gnome.org> 5467 5468 Reviewed by Alexey Proskuryakov. 5469 5470 https://bugs.webkit.org/show_bug.cgi?id=23769 5471 5472 Do not use empty ResourceError errors. 5473 5474 Rather create bogus but non-null errors, since some codepaths 5475 expect these. For example, see DocumentLoader::mainReceivedError. 5476 5477 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5478 (WebKit::FrameLoaderClient::cancelledError): 5479 (WebKit::FrameLoaderClient::blockedError): 5480 (WebKit::FrameLoaderClient::cannotShowURLError): 5481 (WebKit::FrameLoaderClient::interruptForPolicyChangeError): 5482 (WebKit::FrameLoaderClient::cannotShowMIMETypeError): 5483 (WebKit::FrameLoaderClient::fileDoesNotExistError): 5484 (WebKit::FrameLoaderClient::pluginWillHandleLoadError): 5485 54862009-02-06 Xan Lopez <xan@gnome.org> 5487 5488 Reviewed by Alexey Proskuryakov. 5489 5490 https://bugs.webkit.org/show_bug.cgi?id=23761 5491 5492 Use two-arg KURL ctor. 5493 5494 We are using the one-arg ctor currently, but: 5495 5496 - It assumes the strings are already encoded, which is not 5497 necesarily the case for us. 5498 5499 - The single-argument KURL ctors expect their input to already be 5500 the output of a previous KURL::parse call, so for the general 5501 case (ie, random user input) we need to use the two-arg ctor 5502 anyway. 5503 5504 * webkit/webkitwebframe.cpp: 5505 * webkit/webkitwebview.cpp: 5506 55072009-02-05 Aaron Boodman <aa@chromium.org> 5508 5509 Reviewed by Dave Hyatt. 5510 5511 https://bugs.webkit.org/show_bug.cgi?id=23708 5512 Adds documentElementAvailable() callback to FrameLoaderClient. 5513 5514 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5515 (WebKit::FrameLoaderClient::documentElementAvailable): 5516 Stub out documentElementAvailable() 5517 * WebCoreSupport/FrameLoaderClientGtk.h: 5518 Ditto. 5519 55202009-02-03 Hiroyuki Ikezoe <poincare@ikezoe.net> 5521 5522 Reviewed by Holger Freyther. 5523 5524 https://bugs.webkit.org/show_bug.cgi?id=22988 5525 [GTK] Need a public method to add a WebKitWebHistoryItem to 5526 WebKitWebBackForwardList. 5527 5528 Wrap WebCore::BackForwardList::addItem. 5529 5530 * tests/main.c: 5531 (test_webkit_web_back_forward_list_add_item): 5532 (main): 5533 * webkit/webkitwebbackforwardlist.cpp: 5534 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_add_item): 5535 * webkit/webkitwebbackforwardlist.h: 5536 55372009-02-02 Geoffrey Garen <ggaren@apple.com> 5538 5539 Build fix. 5540 5541 * webkit/webkitwebview.cpp: 5542 55432009-02-02 Geoffrey Garen <ggaren@apple.com> 5544 5545 Build fix. 5546 5547 * webkit/webkitwebframe.cpp: 5548 55492009-02-02 Geoffrey Garen <ggaren@apple.com> 5550 5551 Build fix. 5552 5553 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5554 (WebKit::FrameLoaderClient::createFrame): 5555 55562009-02-02 Geoffrey Garen <ggaren@apple.com> 5557 5558 Reviewed by Sam Weinig. 5559 5560 Track redirects in global history. 5561 5562 Keep GTK building. 5563 5564 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5565 (WebKit::FrameLoaderClient::createFrame): 5566 (WebKit::FrameLoaderClient::updateGlobalHistoryForRedirectWithoutHistoryItem): 5567 * WebCoreSupport/FrameLoaderClientGtk.h: 5568 55692009-02-02 Anders Carlsson <andersca@apple.com> 5570 5571 Build fix. 5572 5573 * WebCoreSupport/FrameLoaderClientGtk.h: 5574 55752009-02-02 Anders Carlsson <andersca@apple.com> 5576 5577 Reviewed by Dan Bernstein. 5578 5579 Update for changes to WebCore. 5580 5581 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5582 (WebKit::FrameLoaderClient::createPlugin): 5583 (WebKit::FrameLoaderClient::createJavaAppletWidget): 5584 * WebCoreSupport/FrameLoaderClientGtk.h: 5585 55862009-02-02 Holger Hans Peter Freyther <zecke@selfish.org> 5587 5588 Reviewed by Darin Adler. 5589 5590 Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView 5591 5592 https://bugs.webkit.org/show_bug.cgi?id=23428 5593 5594 FrameView::forceLayout could be killed but the comment might 5595 contain a value over the the plain FrameView::layout... 5596 5597 Adjust the WebCore/WebKit consumers of these methods. 5598 5599 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5600 (WebKit::FrameLoaderClient::forceLayout): 5601 * webkit/webkitwebview.cpp: 5602 56032009-01-30 Geoffrey Garen <ggaren@apple.com> 5604 5605 Build fix. 5606 5607 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5608 (WebKit::FrameLoaderClient::createFrame): 5609 56102009-01-30 Holger Hans Peter Freyther <zecke@selfish.org> 5611 5612 Reviewed by Simon Hausmann. 5613 5614 https://bugs.webkit.org/show_bug.cgi?id=22056 5615 5616 Kill FrameLoaderClient.cpp, move the code over to Frame::createView 5617 5618 FrameLoaderClient is supposed to be an interface, move the 5619 to be shared code to Frame which is a controller and is 5620 allowed to create a FrameView. 5621 5622 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5623 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 5624 56252009-01-27 Brady Eidson <beidson@apple.com> 5626 5627 Reviewed by Dan Bernstein 5628 5629 Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage 5630 5631 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5632 (WebKit::FrameLoaderClient::savePlatformDataToCachedFrame): 5633 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedFrame): 5634 * WebCoreSupport/FrameLoaderClientGtk.h: 5635 56362009-01-25 Darin Adler <darin@apple.com> 5637 5638 Try to fix GTK build. 5639 5640 * webkit/webkitwebview.cpp: Added include of FloatQuad.h. 5641 56422009-01-13 Alexander V. Butenko <alex@digiqube.com> 5643 5644 Reviewed by Holger Freyther. 5645 5646 https://bugs.webkit.org/show_bug.cgi?id=23279 5647 5648 Fix crash on WebView dispose stage. 5649 5650 Add null checks to webkit_web_view_set_scroll_adjustments and 5651 webkit_web_view_get_accessible as they get called from within 5652 the dispose. 5653 5654 * webkit/webkitwebview.cpp: 5655 56562009-01-11 Xan Lopez <xan@gnome.org> 5657 5658 Reviewed by Holger Freyther. 5659 5660 Use NULL instead of 0 when dealing with pointers, as agreed for 5661 the coding style of the WebKit GTK port for its GTK+ specific 5662 files. 5663 5664 * webkit/webkitwebview.cpp: 5665 56662009-01-11 Xan Lopez <xan@gnome.org> 5667 5668 Reviewed by Holger Freyther. 5669 5670 Add padding to the class structs to avoid breaking ABI each time 5671 we add stuff there. 5672 5673 * webkit/webkitnetworkrequest.h: 5674 * webkit/webkitwebbackforwardlist.h: 5675 * webkit/webkitwebhistoryitem.h: 5676 * webkit/webkitwebnavigationaction.h: 5677 * webkit/webkitwebpolicydecision.h: 5678 * webkit/webkitwebview.h: 5679 56802009-01-09 Benjamin Otte <otte@gnome.org> 5681 5682 Reviewed by Holger Freyther. 5683 5684 https://bugs.webkit.org/show_bug.cgi?id=23194 5685 5686 make the finalize function the dispose function. Not releasing held 5687 objects in dispose can cause crashers later. 5688 5689 * webkit/webkitwebview.cpp: 5690 56912009-01-09 Benjamin Otte <otte@gnome.org> 5692 5693 Reviewed by Holger Freyther. 5694 5695 https://bugs.webkit.org/show_bug.cgi?id=23194 5696 5697 Remove broken code that uses a fallback. The previous code did 2 5698 policy decisions which caused crashes. 5699 Download is still notImplemented(); 5700 5701 * webkit/webkitwebpolicydecision.cpp: 5702 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_download): 5703 57042009-01-03 Xan Lopez <xan@gnome.org> 5705 5706 Reviewed by Holger Freyther. 5707 5708 [GTK] Need a public method to reload view bypassing cache 5709 https://bugs.webkit.org/show_bug.cgi?id=19815 5710 5711 * webkit/webkitwebview.cpp: 5712 * webkit/webkitwebview.h: 5713 5714 Add webkit_web_view_reload_bypass_cache. 5715 57162009-01-07 Holger Hans Peter Freyther <zecke@selfish.org> 5717 5718 Reviewed by Maciej Stachowiak. 5719 5720 Add private API to get the number of active animations of 5721 a frame. This is required by the DumpRenderTree utility. 5722 5723 * webkit/webkitprivate.h: 5724 * webkit/webkitwebframe.cpp: 5725 57262009-01-05 Adam Treat <adam.treat@torchmobile.com> 5727 5728 Fix build 5729 5730 * WebCoreSupport/ChromeClientGtk.h: 5731 57322009-01-05 Adam Treat <adam.treat@torchmobile.com> 5733 5734 Reviewed by George Staikos. 5735 5736 Build fix for contentsSizeChanged 5737 5738 * WebCoreSupport/ChromeClientGtk.cpp: 5739 (WebKit::ChromeClient::contentsSizeChanged): 5740 * WebCoreSupport/ChromeClientGtk.h: 5741 57422009-01-04 Adam Treat <adam.treat@torchmobile.com> 5743 5744 Reviewed by George Staikos. 5745 5746 Make the gtk port build with the new fixedLayoutSize feature 5747 5748 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5749 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 5750 57512009-01-03 Holger Hans Peter Freyther <zecke@selfish.org> 5752 5753 Reviewed by Darin Adler. 5754 5755 [GTK] Fix the reference counting of WebKitWebFrames 5756 5757 The ownership is the following: WebKitWebView owns a WebCore::Page. 5758 WebKitWebView is creating one WebKitWebFrame which will be the 5759 mainFrame of the WebCore::Page (having the reference on the Frame). 5760 5761 The FrameLoaderClient has the reference of the WebKitWebFrame for 5762 the main frame and also any other frame. This means when the 5763 WebCore::Frame goes away the FrameLoaderClient will go away which 5764 will normally remove the last reference of the WebKitWebFrame. Because 5765 an API user might have g_object_ref'ed the WebKitWebFrame null 5766 checks had to be added to WebKitWebFrame. 5767 5768 For WebCore::Frames created by the FrameLoaderClient the ownership 5769 will be passed down to the FrameTree, the WebKitWebFrame is not holding 5770 a reference to the WebCore::Frame. 5771 5772 Do not g_object_unref the mainFrame in the destructor of the 5773 WebKitWebFrame as this will happen from within the WebCore::Page 5774 destruction. Do not hold a reference to the WebCore::Frame (circle) in 5775 WebKitWebFrame, add null checks as the WebCore::Frame might have gone 5776 away. Do not keep track of the FrameLoaderClient in the private 5777 structures as it was mostly unusued. 5778 5779 https://bugs.webkit.org/show_bug.cgi?id=21837 5780 5781 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5782 (WebKit::FrameLoaderClient::frameLoaderDestroyed): 5783 (WebKit::FrameLoaderClient::createFrame): 5784 * tests/main.c: Add test case. 5785 (test_webkit_web_frame_create_destroy): 5786 (test_webkit_web_frame_lifetime): 5787 (main): 5788 * webkit/webkitprivate.cpp: 5789 (WebKit::core): 5790 * webkit/webkitprivate.h: 5791 * webkit/webkitwebframe.cpp: 5792 * webkit/webkitwebview.cpp: 5793 57942009-01-02 Holger Hans Peter Freyther <zecke@selfish.org> 5795 5796 Unreviewed build fix. 5797 5798 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5799 58002008-12-31 Holger Hans Peter Freyther <zecke@selfish.org> 5801 5802 Reviewed by Nikolas Zimmermann. 5803 5804 https://bugs.webkit.org/show_bug.cgi?id=17045 5805 5806 Add section information for View, Frame, Settings, HistoryItem, BackForwardList, WindowFeatures and Inspector 5807 5808 Add section information and informal examples for WebKitWebView, 5809 WebKitWebFrame, WebKitWebSettings, WebKitWebNetworkRequest, 5810 WebKitWebWindowFeatures, WebKitWebHistoryItem, 5811 WebKitWebBackForwardList and WebKitWebInspector. 5812 5813 * docs/webkitgtk-sections.txt: Decide to not document some bits 5814 * webkit/webkitnetworkrequest.cpp: 5815 * webkit/webkitwebbackforwardlist.cpp: 5816 * webkit/webkitwebframe.cpp: 5817 * webkit/webkitwebhistoryitem.cpp: 5818 * webkit/webkitwebhistoryitem.h: 5819 * webkit/webkitwebinspector.cpp: 5820 * webkit/webkitwebsettings.cpp: 5821 * webkit/webkitwebsettings.h: 5822 * webkit/webkitwebview.cpp: 5823 * webkit/webkitwebwindowfeatures.cpp: 5824 58252008-12-21 Xan Lopez <xan@gnome.org> 5826 5827 Reviewed by Holger Freyther. 5828 5829 https://bugs.webkit.org/show_bug.cgi?id=16092 5830 [GTK] Middle-mouse click should allow opening a URL in a new tab 5831 5832 Add mouse button and keyboard state modifiers info to navigation action. 5833 5834 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5835 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 5836 * webkit/webkitwebnavigationaction.cpp: 5837 (_WebKitWebNavigationActionPrivate::): 5838 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_property): 5839 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_property): 5840 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init): 5841 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_button): 5842 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_modifier_state): 5843 * webkit/webkitwebnavigationaction.h: 5844 58452008-12-19 Marco Barisione <marco.barisione@collabora.co.uk> 5846 5847 Reviewed by Holger Freyther. 5848 5849 http://bugs.webkit.org/show_bug.cgi?id=16562 5850 [gtk] Implement WebPolicyDelegate methods 5851 5852 Original work by Pierre-Luc Beaudoin. Final touches by Gustavo 5853 Noronha. 5854 5855 This implements the delegates methods of WebPolicyDelegate. 5856 Since Gtk+/C doesn't have delegate methods, they are replaced with 5857 signals. 5858 5859 A new object WebKitWebPolicyDecision allows the browser to delay its 5860 response in certain cases. WebKitWebNavigationAction contains the 5861 information about what caused a navigation request. 5862 5863 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5864 (WebKit::FrameLoaderClient::FrameLoaderClient): 5865 (WebKit::FrameLoaderClient::~FrameLoaderClient): 5866 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): 5867 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 5868 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 5869 (WebKit::FrameLoaderClient::cancelPolicyCheck): 5870 (WebKit::FrameLoaderClient::canShowMIMEType): 5871 * WebCoreSupport/FrameLoaderClientGtk.h: 5872 * webkit/webkit.h: 5873 * webkit/webkitdefines.h: 5874 * webkit/webkitprivate.cpp: 5875 (WebKit::kit): 5876 (WebKit::core): 5877 * webkit/webkitprivate.h: 5878 * webkit/webkitwebnavigationaction.cpp: Added. 5879 (_WebKitWebNavigationActionPrivate::): 5880 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_property): 5881 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_property): 5882 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_init): 5883 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_finalize): 5884 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init): 5885 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_reason): 5886 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_reason): 5887 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_original_uri): 5888 (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_original_uri): 5889 * webkit/webkitwebnavigationaction.h: Added. 5890 * webkit/webkitwebpolicydecision.cpp: Added. 5891 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_class_init): 5892 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_init): 5893 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_new): 5894 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_use): 5895 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_ignore): 5896 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_download): 5897 (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_cancel): 5898 * webkit/webkitwebpolicydecision.h: Added. 5899 * webkit/webkitwebview.cpp: 5900 * webkit/webkitwebview.h: 5901 59022008-12-18 Dan Bernstein <mitz@apple.com> 5903 5904 Reviewed by Sam Weinig. 5905 5906 - stub out FrameLoaderClient::shouldUseCredentialStorage(). 5907 5908 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5909 (WebKit::FrameLoaderClient::shouldUseCredentialStorage): 5910 * WebCoreSupport/FrameLoaderClientGtk.h: 5911 59122008-12-18 Sam Weinig <sam@webkit.org> 5913 5914 Reviewed by John Sullivan. 5915 5916 Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() 5917 5918 * WebCoreSupport/FrameLoaderClientGtk.cpp: 5919 (WebKit::FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout): 5920 * WebCoreSupport/FrameLoaderClientGtk.h: 5921 59222008-12-13 Holger Hans Peter Freyther <zecke@selfish.org> 5923 5924 Reviewed by Cameron Zwarich. 5925 5926 [GTK] Fix crash with LayoutTests/fast/loader/frame-creation-removal.html 5927 5928 Call WebCore::Frame::init after the frame has been given 5929 a name and been added to the FrameTree of the parent. 5930 5931 Removing the call to init is fine as FrameLoaderClientGtk::createFrame 5932 is the only user of webkit_web_frame_init_with_web_view and is already 5933 calling WebCore::Frame::init. 5934 5935 * webkit/webkitwebframe.cpp: 5936 59372008-12-13 Adam Bergkvist <adam.bergkvist@ericsson.com> 5938 5939 Reviewed by Holger Freyther. 5940 5941 https://bugs.webkit.org/show_bug.cgi?id=22779 5942 5943 Check for GTK version >= 2.14.0 before using gtk_test_init. 5944 5945 * tests/main.c: 5946 (main): 5947 59482008-12-13 Zan Dobersek <zandobersek@gmail.com> 5949 5950 Reviewed by Darin Adler. 5951 5952 https://bugs.webkit.org/show_bug.cgi?id=22039 5953 5954 Implement animation and transition pausing as needed by DumpRenderTree. 5955 5956 * webkit/webkitprivate.h: 5957 * webkit/webkitwebframe.cpp: 5958 59592008-11-29 Holger Hans Peter Freyther <zecke@selfish.org> 5960 5961 Rubber-stamped by Simon Hausmann. 5962 5963 https://bugs.webkit.org/show_bug.cgi?id=22574 5964 5965 Make webkit_web_view_set_window_features internal 5966 5967 Calling this method will not result in a notify::window-features 5968 signal being emitted. This would allow replacing a 5969 WebKitWebWindowFeature on a WebKitWebView without anyone noticing 5970 and the client code would monitor the wrong object. 5971 5972 * WebCoreSupport/ChromeClientGtk.cpp: 5973 (WebKit::ChromeClient::createWindow): 5974 * webkit/webkitwebview.cpp: 5975 * webkit/webkitwebview.h: 5976 59772008-12-09 Brett Wilson <brettw@chromium.org> 5978 5979 Reviewed by Dave Hyatt. 5980 5981 https://bugs.webkit.org/show_bug.cgi?id=22177 5982 5983 Add a callback on ChromeClient that the state of form elements on 5984 the page has changed. This is to allow clients implementing session 5985 saving to know when the current state is dirty. 5986 5987 * WebCoreSupport/ChromeClientGtk.h: 5988 (WebKit::ChromeClient::formStateDidChange): 5989 59902008-12-07 Holger Hans Peter Freyther <zecke@selfish.org> 5991 5992 Reviewed by Eric Seidel. 5993 5994 [Gtk+] Use glib's unit test facilities to test the WebKit/Gtk+ API 5995 5996 https://bugs.webkit.org/show_bug.cgi?id=22491 5997 5998 Add the skeleton to WebKit/gtk/tests and integrate that into the 5999 buildsystem. Testing support was added in glib 2.16. For versions 6000 using glib < 2.16 we compile an empty application. 6001 6002 * tests/main.c: Added. https://bugs.webkit.org/show_bug.cgi?id=21837 6003 will be the first consumer. 6004 (main): 6005 60062008-12-06 Simon Fraser <simon.fraser@apple.com> 6007 6008 Reviewed by Dave Hyatt 6009 6010 https://bugs.webkit.org/show_bug.cgi?id=15671 6011 6012 Renderer::caretRect() is now localCaretRect(), which needs 6013 converting to absolute coordinates (taking transforms into account). 6014 6015 * webkit/webkitwebview.cpp: 6016 60172008-12-01 Xan Lopez <xan@gnome.org> 6018 6019 Reviewed by Holger Freyther. 6020 6021 http://bugs.webkit.org/show_bug.cgi?id=22553 6022 Remove unneeded GObject casts. 6023 6024 Remove unneeded casts to GObject in functions that take a gpointer 6025 argument. 6026 6027 * WebCoreSupport/ChromeClientGtk.cpp: 6028 (WebKit::ChromeClient::setWindowRect): 6029 (WebKit::ChromeClient::createWindow): 6030 (WebKit::ChromeClient::setToolbarsVisible): 6031 (WebKit::ChromeClient::toolbarsVisible): 6032 (WebKit::ChromeClient::setStatusbarVisible): 6033 (WebKit::ChromeClient::statusbarVisible): 6034 (WebKit::ChromeClient::setScrollbarsVisible): 6035 (WebKit::ChromeClient::scrollbarsVisible): 6036 (WebKit::ChromeClient::setMenubarVisible): 6037 (WebKit::ChromeClient::menubarVisible): 6038 (WebKit::ChromeClient::setToolTip): 6039 * WebCoreSupport/InspectorClientGtk.cpp: 6040 (WebKit::InspectorClient::createPage): 6041 * webkit/webkitwebframe.cpp: 6042 * webkit/webkitwebview.cpp: 6043 * webkit/webkitwebwindowfeatures.cpp: 6044 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_new_from_core_features): 6045 60462008-11-29 Christian Dywan <christian@twotoasts.de> 6047 6048 Reviewed by Holger Freyther. 6049 6050 http://bugs.webkit.org/show_bug.cgi?id=17122 6051 [GTK] Bad font default settings 6052 6053 Implement a property "enforce-96-dpi" in WebKitWebSettings 6054 that can be enabled to force the view to assume 96 DPI. 6055 6056 * webkit/webkitwebsettings.cpp: 6057 (_WebKitWebSettingsPrivate::): 6058 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 6059 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 6060 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 6061 * webkit/webkitwebview.cpp: 6062 60632008-11-28 Holger Hans Peter Freyther <zecke@selfish.org> 6064 6065 Reviewed by Nikolas Zimmermann. 6066 6067 Simplify the code. There is no reason to have code like 6068 if (true) return false; which is using temporary variables. 6069 6070 * webkit/webkitwebview.cpp: 6071 60722008-11-28 Holger Hans Peter Freyther <zecke@selfish.org> 6073 6074 Reviewed by Nikolas Zimmermann. 6075 6076 Remove bogus null checks. The WebKitWebView own's a WebCore::Page 6077 which is owning a WebCore::ChromeClient. There is no way that a 6078 WebCore::ChromeClient is still around when the WebKitWebView is gone. 6079 6080 m_webView can only be null when a ChromeClient gets constructed with 6081 a null WebKitWebView which is not allowed. 6082 6083 * WebCoreSupport/ChromeClientGtk.cpp: 6084 (WebKit::ChromeClient::ChromeClient): 6085 (WebKit::ChromeClient::windowRect): 6086 (WebKit::ChromeClient::setWindowRect): 6087 (WebKit::ChromeClient::pageRect): 6088 (WebKit::ChromeClient::focus): 6089 (WebKit::ChromeClient::unfocus): 6090 (WebKit::ChromeClient::show): 6091 (WebKit::ChromeClient::setToolbarsVisible): 6092 (WebKit::ChromeClient::toolbarsVisible): 6093 (WebKit::ChromeClient::setStatusbarVisible): 6094 (WebKit::ChromeClient::statusbarVisible): 6095 (WebKit::ChromeClient::setScrollbarsVisible): 6096 (WebKit::ChromeClient::setMenubarVisible): 6097 (WebKit::ChromeClient::menubarVisible): 6098 (WebKit::ChromeClient::canTakeFocus): 6099 (WebKit::ChromeClient::repaint): 6100 (WebKit::ChromeClient::scroll): 6101 (WebKit::ChromeClient::platformWindow): 6102 61032008-11-28 Gustavo Noronha Silva <gns@gnome.org> 6104 6105 Reviewed and slightly modified by Holger Freyther. 6106 6107 https://bugs.webkit.org/show_bug.cgi?id=19130 6108 6109 ChromeClient::createWindow and friends need to be implemented 6110 6111 Code from Gustavo Noronha and Marco Barisione 6112 <marco.barisione@collabora.co.uk> in this change set. 6113 6114 Implemented all the ChromeClient interfaces needed to have new 6115 window creation functioning and exposed to client code. We 6116 implemented a mirror GObject to the WindowFeatures object provided 6117 by WebCore. 6118 6119 * WebCoreSupport/ChromeClientGtk.cpp: 6120 (WebKit::ChromeClient::windowRect): 6121 (WebKit::ChromeClient::setWindowRect): 6122 (WebKit::ChromeClient::unfocus): 6123 (WebKit::ChromeClient::createWindow): 6124 (WebKit::ChromeClient::show): 6125 (WebKit::ChromeClient::setToolbarsVisible): 6126 (WebKit::ChromeClient::toolbarsVisible): 6127 (WebKit::ChromeClient::setStatusbarVisible): 6128 (WebKit::ChromeClient::statusbarVisible): 6129 (WebKit::ChromeClient::setScrollbarsVisible): 6130 (WebKit::ChromeClient::scrollbarsVisible): 6131 (WebKit::ChromeClient::setMenubarVisible): 6132 (WebKit::ChromeClient::menubarVisible): 6133 (WebKit::ChromeClient::setResizable): 6134 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6135 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 6136 (WebKit::FrameLoaderClient::dispatchShow): 6137 (WebKit::FrameLoaderClient::dispatchCreatePage): 6138 * webkit/webkit.h: 6139 * webkit/webkitdefines.h: 6140 * webkit/webkitprivate.h: 6141 * webkit/webkitwebview.cpp: 6142 * webkit/webkitwebview.h: 6143 * webkit/webkitwebwindowfeatures.cpp: Added. 6144 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_class_init): 6145 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_init): 6146 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_finalize): 6147 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_set_property): 6148 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_get_property): 6149 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_new): 6150 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_new_from_core_features): 6151 (_WebKitWebWindowFeaturesPrivate::webkit_web_window_features_equal): 6152 * webkit/webkitwebwindowfeatures.h: Added. 6153 61542008-11-24 Darin Fisher <darin@chromium.org> 6155 6156 Fix bustage. 6157 6158 http://bugs.webkit.org/show_bug.cgi?id=15643 6159 6160 * WebCoreSupport/EditorClientGtk.cpp: 6161 (WebKit::EditorClient::isSelectTrailingWhitespaceEnabled): 6162 * WebCoreSupport/EditorClientGtk.h: 6163 61642008-11-24 Darin Adler <darin@apple.com> 6165 6166 Reviewed by Dan Bernstein. 6167 6168 - https://bugs.webkit.org/show_bug.cgi?id=22470 6169 remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory 6170 6171 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6172 (WebKit::FrameLoaderClient::updateGlobalHistory): Remove argument. 6173 * WebCoreSupport/FrameLoaderClientGtk.h: Ditto. 6174 61752008-11-24 Christian Dywan <christian@twotoasts.de> 6176 6177 Reviewed by Holger Freyther. 6178 6179 http://bugs.webkit.org/show_bug.cgi?id=17122 6180 [GTK] Bad font default settings 6181 6182 * webkit/webkitwebsettings.cpp: 6183 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 6184 Use default font size 12 instead of 10 6185 61862008-11-24 Zan Dobersek <zandobersek@gmail.com> 6187 6188 Reviewed by Holger Freyther. 6189 6190 https://bugs.webkit.org/show_bug.cgi?id=22039 6191 6192 Implement a semi-private function for adding a directory to 6193 PluginDatabase's paths. 6194 6195 * webkit/webkitprivate.h: 6196 * webkit/webkitwebsettings.cpp: 6197 (_WebKitWebSettingsPrivate::webkit_web_settings_add_extra_plugin_directory): 6198 61992008-11-23 Holger Hans Peter Freyther <zecke@selfish.org> 6200 6201 Rubber-stamped by Sam Weinig. 6202 6203 Add gtk-doc configuration/source for the WebKit/Gtk+ Reference Manual 6204 6205 These files will be used by gtk-doc to generate the documentation. They 6206 contain information how to group the symbols of our API, which objects 6207 to inspect during the generation of the manual and how to display the 6208 manual. 6209 6210 * docs/webkitgtk-docs.sgml: Added. 6211 * docs/webkitgtk-overrides.txt: Added. 6212 * docs/webkitgtk-sections.txt: Added. 6213 * docs/webkitgtk.types: Added. 6214 62152008-11-23 Holger Hans Peter Freyther <zecke@selfish.org> 6216 6217 Reviewed by Sam Weinig. 6218 6219 Make gtk-doc happy with the existing API documentation 6220 6221 - Mark the *Private pointers in the struct private 6222 - Use Returns: where gtk-doc wants us to 6223 - Fix the parameters to make gtk-doc happy 6224 - Fix signal references 6225 6226 * webkit/webkitnetworkrequest.h: 6227 * webkit/webkitwebbackforwardlist.cpp: 6228 * webkit/webkitwebbackforwardlist.h: 6229 * webkit/webkitwebframe.h: 6230 * webkit/webkitwebhistoryitem.cpp: 6231 * webkit/webkitwebinspector.cpp: 6232 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 6233 * webkit/webkitwebview.cpp: 6234 * webkit/webkitwebview.h: 6235 62362008-11-19 Darin Fisher <darin@chromium.org> 6237 6238 Bustage fix. 6239 6240 https://bugs.webkit.org/show_bug.cgi?id=22373 6241 Ports busted by addition of ScriptValue.{h,cpp} 6242 6243 * webkit/webkitwebview.cpp: 6244 62452008-11-18 Holger Hans Peter Freyther <zecke@selfish.org> 6246 6247 Reviewed by Simon Hausmann. 6248 6249 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports 6250 6251 After Hyatt's work on Widget and ScrollView there is little difference 6252 between the implementation of Qt, Gtk+ and Win. In fact any kind of 6253 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+ 6254 port and the Qt port has at least one of them left. 6255 6256 The only difference between the implementations is in getting the the 6257 IntSize for the new FrameView, the background color to be applied and 6258 eventually some post processing. 6259 6260 Unify the implementations by providing a static helper function that 6261 takes a Frame, IntSize, color and transparency bit and calling it from 6262 the Gtk+, the Qt and the Windows port. 6263 6264 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6265 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 6266 62672008-11-16 Christian Dywan <christian@twoasts.de> 6268 6269 Reviewed by Holger Freyther. 6270 6271 https://bugs.webkit.org/show_bug.cgi?id=22207 6272 [Gtk] Font sizes are not handled properly when updated at runtime 6273 6274 * webkit/webkitwebview.cpp: Move the DPI/ conversion into a 6275 helper function and apply the logic in the notification callback. 6276 62772008-11-06 Alp Toker <alp@nuanti.com> 6278 6279 Reviewed by Darin Adler. 6280 6281 https://bugs.webkit.org/show_bug.cgi?id=22047 6282 GTK: Add support for multiple file selection in the file upload control 6283 6284 Implemented with GtkFileChooser. 6285 6286 * WebCoreSupport/ChromeClientGtk.cpp: 6287 (WebKit::ChromeClient::runOpenPanel): 6288 62892008-11-03 Cameron Zwarich <zwarich@apple.com> 6290 6291 Rubber-stamped by Maciej Stachowiak. 6292 6293 Move more files into the runtime subdirectory of JavaScriptCore. 6294 6295 * webkit/webkitprivate.cpp: 6296 62972008-11-03 Alp Toker <alp@nuanti.com> 6298 6299 Reviewed by Holger Freyther. 6300 6301 Deprecate flawed webkit_web_frame_new() function. This would never 6302 have worked properly when used outside WebCore since Frame::create() 6303 can only be called without an owner element once in the lifetime of a 6304 Page and would result in assertions, leaks and an unusable WebView 6305 instance. 6306 6307 Frame creation may be exposed in API some time later via the DOM 6308 binding but probably not in the WebKit GTK+ core API. 6309 6310 * webkit/webkitwebframe.cpp: 6311 * webkit/webkitwebframe.h: 6312 63132008-11-03 Alp Toker <alp@nuanti.com> 6314 6315 Reviewed by Holger Freyther. 6316 6317 Redundant scrollbars appear in frames where they shouldn't be visible 6318 eg. embedded Google adverts. 6319 6320 Call setCanHaveScrollbars() when necessary. The Mac and Win ports 6321 already have this but it was missing in FrameLoaderClientGtk. 6322 6323 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6324 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 6325 63262008-11-03 Alp Toker <alp@nuanti.com> 6327 6328 Rubber-stamped by Holger Freyther. 6329 6330 Sync WebKit GTK+ default UA version string to 528.5+. (We're still 6331 doing this manually!) 6332 6333 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6334 (WebKit::composeUserAgent): 6335 63362008-10-31 Christian Dywan <christian@twotoasts.de> 6337 6338 Reviewed by Mark Rowe. 6339 6340 http://bugs.webkit.org/show_bug.cgi?id=22018 6341 enable-developer-extras doesn't toggle WebInspector 6342 6343 * webkit/webkitwebview.cpp: 6344 Add missing 'if' in notification for 'enable-developer-extras'. 6345 63462008-10-30 Alp Toker <alp@nuanti.com> 6347 6348 Reviewed by Dave Hyatt. 6349 6350 Fix GIF animations. WebCore will not update animated GIFs if 6351 the WebView is marked offscreen so we need to call 6352 frameView->setParentVisible() when necessary like the Mac and Win 6353 ports do. Regression was introduced around r37155 during the 6354 HostWindow refactor. 6355 6356 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6357 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 6358 63592008-10-30 Alp Toker <alp@nuanti.com> 6360 6361 Rubber-stamped by Holger Freyther. 6362 6363 Fix typo in recently added web inspector signal. dettach -> detach. 6364 6365 * WebCoreSupport/InspectorClientGtk.cpp: 6366 (WebKit::InspectorClient::detachWindow): 6367 * webkit/webkitwebinspector.cpp: 6368 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 6369 63702008-10-30 Alp Toker <alp@nuanti.com> 6371 6372 Fix version comments for the web inspector added in r37982. Available 6373 since 1.0.3, not 1.0.2. 6374 6375 * webkit/webkitwebinspector.cpp: 6376 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 6377 * webkit/webkitwebsettings.cpp: 6378 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 6379 * webkit/webkitwebview.cpp: 6380 63812008-10-29 Gustavo Noronha Silva <gns@gnome.org> 6382 6383 Reviewed and slightly changed by Holger Freyther. 6384 6385 Implemented a new WebKitWebInspector class to provide a GObject 6386 API for the Web Inspector. Also implemented InspectorClient. 6387 6388 * WebCoreSupport/InspectorClientGtk.cpp: 6389 (WebKit::notifyWebViewDestroyed): 6390 (WebKit::InspectorClient::InspectorClient): 6391 (WebKit::InspectorClient::inspectorDestroyed): 6392 (WebKit::InspectorClient::webViewDestroyed): 6393 (WebKit::InspectorClient::createPage): 6394 (WebKit::InspectorClient::showWindow): 6395 (WebKit::InspectorClient::closeWindow): 6396 (WebKit::InspectorClient::attachWindow): 6397 (WebKit::InspectorClient::detachWindow): 6398 (WebKit::InspectorClient::inspectedURLChanged): 6399 * WebCoreSupport/InspectorClientGtk.h: 6400 * webkit/webkit.h: 6401 * webkit/webkit-marshal.list: 6402 * webkit/webkitdefines.h: 6403 * webkit/webkitprivate.h: 6404 * webkit/webkitwebinspector.cpp: Added. 6405 (_WebKitWebInspectorPrivate::webkit_inspect_web_view_request_handled): 6406 (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init): 6407 (_WebKitWebInspectorPrivate::webkit_web_inspector_init): 6408 (_WebKitWebInspectorPrivate::webkit_web_inspector_finalize): 6409 (_WebKitWebInspectorPrivate::webkit_web_inspector_set_property): 6410 (_WebKitWebInspectorPrivate::webkit_web_inspector_get_property): 6411 (_WebKitWebInspectorPrivate::webkit_web_inspector_set_web_view): 6412 * webkit/webkitwebinspector.h: Added. 6413 * webkit/webkitwebsettings.cpp: 6414 (_WebKitWebSettingsPrivate::): 6415 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 6416 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 6417 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 6418 (_WebKitWebSettingsPrivate::webkit_web_settings_copy): 6419 * webkit/webkitwebview.cpp: 6420 * webkit/webkitwebview.h: 6421 64222008-10-27 Michael Tross <michael@tross.org> 6423 6424 Reviewed by Alp Toker. Landed by Jan Alonzo. 6425 6426 https://bugs.webkit.org/show_bug.cgi?id=21827 6427 [GTK] Fix memory leak in webkit_web_view_load_string 6428 6429 * webkit/webkitwebview.cpp: 6430 64312008-10-24 Sam Weinig <sam@webkit.org> 6432 6433 Fix the Gtk build. 6434 6435 * WebCoreSupport/ChromeClientGtk.cpp: 6436 64372008-10-24 Sam Weinig <sam@webkit.org> 6438 6439 Reviewed by Dan Bernstein. 6440 6441 Fix https://bugs.webkit.org/show_bug.cgi?id=21759 6442 Layering violation: FileChooser should not depend on Document/Frame/Page 6443 6444 * WebCoreSupport/ChromeClientGtk.cpp: 6445 (WebKit::ChromeClient::runOpenPanel): 6446 * WebCoreSupport/ChromeClientGtk.h: 6447 64482008-10-24 Timothy Hatcher <timothy@apple.com> 6449 6450 Stub out new InspectorClient methods. 6451 6452 https://bugs.webkit.org/show_bug.cgi?id=21856 6453 6454 Reviewed by Darin Adler. 6455 6456 * WebCoreSupport/InspectorClientGtk.cpp: 6457 (WebKit::InspectorClient::populateSetting): Not implemented. 6458 (WebKit::InspectorClient::storeSetting): Ditto. 6459 (WebKit::InspectorClient::removeSetting): Ditto. 6460 * WebCoreSupport/InspectorClientGtk.h: 6461 64622008-10-22 Alp Toker <alp@nuanti.com> 6463 6464 Build fix for older GTK+ versions where GTK_TYPE_TARGET_LIST isn't 6465 defined. 6466 6467 * webkit/webkitwebview.cpp: 6468 64692008-10-22 Alp Toker <alp@nuanti.com> 6470 6471 Reviewed by Adam Roben. 6472 6473 Avoid critical warnings on older GTK+ versions (2.8) by not checking 6474 for GTK+ setting properties when we know they don't exist. 6475 6476 * WebCoreSupport/ContextMenuClientGtk.cpp: 6477 (WebKit::inputMethodsMenuItem): 6478 (WebKit::unicodeMenuItem): 6479 64802008-10-20 Sam Weinig <sam@webkit.org> 6481 6482 Reviewed by Anders Carlsson. 6483 6484 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port. 6485 6486 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6487 * WebCoreSupport/FrameLoaderClientGtk.h: 6488 64892008-10-20 Alp Toker <alp@nuanti.com> 6490 6491 Reviewed by Dave Hyatt. 6492 6493 https://bugs.webkit.org/show_bug.cgi?id=21303 6494 [GTK] Scrolling glitches 6495 6496 Implement a buffering scheme to avoid full repaints when scrolling 6497 views or subframes significantly improving scrolling performance. 6498 6499 Improve rendering performance by coalescing large numbers of small 6500 repaints. 6501 6502 Also fixes long-running issues with scrollbar positioning and frame 6503 invalidation. 6504 6505 Rendering in the GTK+ port should be more similar to other ports after 6506 these changes. 6507 6508 * WebCoreSupport/ChromeClientGtk.cpp: 6509 (WebKit::ChromeClient::repaint): 6510 (WebKit::ChromeClient::scroll): 6511 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6512 (WebKit::FrameLoaderClient::forceLayout): 6513 * webkit/webkitwebview.cpp: 6514 65152008-10-17 Luke Kenneth Casson Leighton <lkcl@lkcl.net> 6516 6517 Reviewed by Mark Rowe. Landed by Jan Alonzo. 6518 6519 https://bugs.webkit.org/show_bug.cgi?id=20403 6520 [Gtk] Segfault after a table with an iframe is attempted to be added twice to DOM model with javascript 6521 6522 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6523 (WebKit::FrameLoaderClient::frameLoaderDestroyed): 6524 (WebKit::FrameLoaderClient::detachedFromParent4): 6525 65262008-10-06 David Hyatt <hyatt@apple.com> 6527 6528 Enable viewless Mac WebKit to paint some basic pages. 6529 6530 Reviewed by Sam Weinig 6531 6532 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6533 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 6534 * WebCoreSupport/FrameLoaderClientGtk.h: 6535 65362008-10-03 David Hyatt <hyatt@apple.com> 6537 6538 Fix Gtk bustage from use of containingWindow() over on the WebKit side. Replace with HostWindow use. 6539 6540 * webkit/webkitwebview.cpp: 6541 65422008-10-03 David Hyatt <hyatt@apple.com> 6543 6544 https://bugs.webkit.org/show_bug.cgi?id=21340 6545 6546 Remove "containingWindow()/setContainingWindow()" from Widget. HostWindow covers this now. 6547 6548 Reviewed by Dan Bernstein & Darin Adler 6549 6550 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6551 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 6552 65532008-10-03 Alp Toker <alp@nuanti.com> 6554 6555 Remove some left-over GTK+ includes. No change in functionality. 6556 6557 * webkit/webkitwebhistoryitem.h: 6558 65592008-10-03 Alp Toker <alp@nuanti.com> 6560 6561 Build fix following r37234. Remove addToDirtyRegion from the header 6562 too. 6563 6564 * WebCoreSupport/ChromeClientGtk.h: 6565 65662008-10-03 David Hyatt <hyatt@apple.com> 6567 6568 Remove addToDirtyRegion. 6569 6570 Reviewed by Oliver Hunt 6571 6572 * WebCoreSupport/ChromeClientGtk.cpp: 6573 65742008-10-02 David Hyatt <hyatt@apple.com> 6575 6576 https://bugs.webkit.org/show_bug.cgi?id=21314 6577 6578 Make scrollBackingStore cross-platform. 6579 6580 Reviewed by Sam Weinig 6581 6582 * WebCoreSupport/ChromeClientGtk.cpp: 6583 (WebKit::ChromeClient::repaint): 6584 (WebKit::ChromeClient::scroll): 6585 * WebCoreSupport/ChromeClientGtk.h: 6586 65872008-10-01 David Hyatt <hyatt@apple.com> 6588 6589 https://bugs.webkit.org/show_bug.cgi?id=21282 6590 6591 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now. 6592 6593 Reviewed by Adam Roben 6594 6595 * WebCoreSupport/ChromeClientGtk.cpp: 6596 (WebKit::ChromeClient::windowToScreen): 6597 (WebKit::ChromeClient::screenToWindow): 6598 * WebCoreSupport/ChromeClientGtk.h: 6599 66002008-09-30 Dave Hyatt <hyatt@apple.com> 6601 6602 http://bugs.webkit.org/show_bug.cgi?id=21250 6603 6604 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending 6605 repaints up through the ChromeClient. 6606 6607 Reviewed by Darin Adler 6608 6609 * WebCoreSupport/ChromeClientGtk.cpp: 6610 (WebKit::ChromeClient::repaint): 6611 * WebCoreSupport/ChromeClientGtk.h: 6612 66132008-09-16 Alp Toker <alp@nuanti.com> 6614 6615 Suggested by Dave Hyatt. 6616 6617 Build fix and cleanup. Rename ScrollBar to Scrollbar. 6618 6619 * webkit/webkitwebview.cpp: 6620 66212008-09-13 Adrien Nader <camaradetux@gmail.com> 6622 6623 Gtk build fix, not reviewed. 6624 6625 * webkit/webkitwebview.cpp: 6626 66272008-09-10 Alp Toker <alp@nuanti.com> 6628 6629 Reviewed by Mark Rowe. 6630 6631 https://bugs.webkit.org/show_bug.cgi?id=17267 6632 [GTK] Primary selection/clipboard support 6633 6634 Implement primary selection support (copying only, no paste yet). 6635 6636 * WebCoreSupport/EditorClientGtk.cpp: 6637 (WebKit::clipboard_get_contents_cb): 6638 (WebKit::clipboard_clear_contents_cb): 6639 (WebKit::EditorClient::respondToChangedSelection): 6640 66412008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca> 6642 6643 Reviewed by Maciej Stachowiak. 6644 6645 Bug 20704: Replace the KJS namespace 6646 <https://bugs.webkit.org/show_bug.cgi?id=20704> 6647 6648 Rename the KJS namespace to JSC. 6649 6650 * webkit/webkitprivate.cpp: 6651 (webkit_init): 6652 66532008-09-05 Gustavo Noronha Silva <gns@gnome.org> 6654 6655 Reviewed by Alp Toker. 6656 6657 https://bugs.webkit.org/show_bug.cgi?id=18346 6658 [GTK] Remove build warnings 6659 6660 Removed/commented code that is not (yet) used, and reordered 6661 member variables initialization for FrameLoaderClient, so that the 6662 compiler is happy and prints less warnings when building. 6663 6664 * WebCoreSupport/ContextMenuClientGtk.cpp: 6665 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6666 (WebKit::FrameLoaderClient::FrameLoaderClient): 6667 66682008-09-03 Alp Toker <alp@nuanti.com> 6669 6670 Build fix following r36073. Include config.h where necessary. 6671 6672 * WebCoreSupport/PasteboardHelperGtk.cpp: 6673 * webkit/webkitversion.cpp: 6674 66752008-09-01 Alp Toker <alp@nuanti.com> 6676 6677 Reviewed by Eric Seidel. 6678 6679 https://bugs.webkit.org/show_bug.cgi?id=19939 6680 [GTK] webkit_web_history_item_get_title() fails with assertion 6681 6682 Make sure newly constructed WebHistoryItem objects wrap a WebCore 6683 history item when necessary. Avoid G_PARAM_CONSTRUCT since it destroys 6684 history data -- use WEBKIT_PARAM flags instead as they do the right 6685 thing. This restores history functionality. 6686 6687 Also use CString to simplify UTF-8 string management. 6688 6689 * webkit/webkitwebbackforwardlist.cpp: 6690 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit): 6691 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit): 6692 No need to initialize the vector with a size since it's cleared by the 6693 callee. 6694 * webkit/webkitwebhistoryitem.cpp: 6695 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_finalize): 6696 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init): 6697 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item): 6698 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): 6699 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): 6700 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title): 6701 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title): 6702 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title): 6703 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri): 6704 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri): 6705 67062008-08-27 Adrien Nader <camaradetux@gmail.com> 6707 6708 Reviewed by Eric Seidel. 6709 6710 https://bugs.webkit.org/show_bug.cgi?id=20099 6711 [GTK] SHIFT+PAGE_UP/DOWN doesn't extend selection 6712 6713 * WebCoreSupport/EditorClientGtk.cpp: 6714 (WebKit::EditorClient::handleKeyboardEvent): 6715 67162008-08-27 Brady Eidson <beidson@apple.com> 6717 6718 Reviewed by Anders 6719 6720 <rdar://problem/6134133> - Crash when loading large movie as a standalone document 6721 6722 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6723 (WebKit::FrameLoaderClient::pluginWillHandleLoadError): Stubbed for now 6724 * WebCoreSupport/FrameLoaderClientGtk.h: 6725 67262008-08-18 Alp Toker <alp@nuanti.com> 6727 6728 Reviewed by Holger Freyther. 6729 6730 https://bugs.webkit.org/show_bug.cgi?id=20350 6731 [GTK] Get DumpRenderTree working 6732 6733 Add a private function to WebFrame to dump the render tree as required 6734 for the DumpRenderTree testing tool. 6735 6736 * webkit/webkitprivate.h: 6737 * webkit/webkitwebframe.cpp: 6738 67392008-08-12 Timothy Hatcher <timothy@apple.com> 6740 6741 Add a stub for InspectorClient::setAttachedWindowHeight. 6742 6743 * WebCoreSupport/InspectorClientGtk.cpp: 6744 (WebKit::InspectorClient::setAttachedWindowHeight): 6745 Call notImplemented(). 6746 * WebCoreSupport/InspectorClientGtk.h: 6747 67482008-08-10 Alp Toker <alp@nuanti.com> 6749 6750 Remove leftover qmake/GTK+ build files. 6751 6752 * webkit/headers.pri: Removed. 6753 67542008-08-02 Christian Dywan <christian@twotoasts.de> 6755 6756 Reviewed by Eric Seidel. 6757 6758 Remove webkit-marshal.list, which was made obsolete in #19742 6759 6760 * webkit/webkit-marshal.list: Removed. 6761 67622008-08-01 Wouter Bolsterlee <uws@xs4all.nl> 6763 6764 Reviewed by Eric Seidel. 6765 6766 https://bugs.webkit.org/show_bug.cgi?id=20035 6767 [GTK] Fix return value for webkit_web_view_go_to_back_forward_item() 6768 6769 * webkit/webkitwebview.cpp: 6770 67712008-07-30 Marco Barisione <marco.barisione@collabora.co.uk> 6772 6773 Reviewed by Holger. 6774 6775 http://bugs.webkit.org/show_bug.cgi?id=19742 6776 [GTK] Auto generate webkitmarshal.list 6777 6778 Auto generate webkitmarshal.list from source files to reduce the 6779 number of conflicts when merging git branches or when applying 6780 patches. 6781 Also rename webkit-marshal.* to webkitmarshal.* for consistency. 6782 6783 * webkit/webkitwebframe.cpp: Include webkitmarshal.h instead of 6784 webkit-marshal.h. 6785 * webkit/webkitwebview.cpp: Ditto. 6786 67872008-07-30 Gustavo Noronha Silva <gns@gnome.org> 6788 6789 Reviewed by Sam. 6790 6791 https://bugs.webkit.org/show_bug.cgi?id=20205 6792 Typo in comment for bracer ending block 6793 6794 * webkit/webkitprivate.cpp: Typo fix in comment for the brace 6795 that ends the WebKit namespace; WebCore -> WebKit 6796 67972008-07-26 Mark Rowe <mrowe@apple.com> 6798 6799 Build fix. Changes to accommodate newly named/signatured loading methods in WebCore. 6800 6801 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6802 (WebKit::FrameLoaderClient::createFrame): 6803 68042008-07-17 Christian Dywan <christian@twotoasts.de> 6805 6806 Reviewed by Holger Freyther. 6807 6808 https://bugs.webkit.org/show_bug.cgi?id=19813 6809 [GTK] WebKit crashes on invalid settings notify callback 6810 6811 * webkit/webkitwebview.cpp: Disconnect in webkit_web_view_finalize 6812 68132008-07-08 Jan Michael Alonzo <jmalonzo@webkit.org> 6814 6815 Reviewed by Christian Dywan. 6816 6817 Replace 'const' with G_CONST_RETURN macro to make it flexible to 6818 disable constness 6819 6820 * webkit/webkitnetworkrequest.cpp: 6821 * webkit/webkitnetworkrequest.h: 6822 * webkit/webkitwebframe.cpp: 6823 * webkit/webkitwebframe.h: 6824 * webkit/webkitwebhistoryitem.cpp: 6825 * webkit/webkitwebhistoryitem.h: 6826 68272008-06-18 Marco Barisione <marco.barisione@collabora.co.uk> 6828 6829 Reviewed by Alp Toker. 6830 6831 https://bugs.webkit.org/show_bug.cgi?id=19171 6832 [GTK] GTypes for enumerations 6833 6834 Generate GTypes for public enumerations so they can be used as 6835 properties. 6836 6837 * GNUmakefile.am: Generate webkit-enum-types.cpp and 6838 webkit-enum-types.h. 6839 68402008-06-17 Christian Dywan <christian@twotoasts.de> 6841 6842 Reviewed by Alp. 6843 6844 [GTK] WebKitWebHistoryItem needs properties 6845 https://bugs.webkit.org/show_bug.cgi?id=19558 6846 6847 Implement properties matching the existing accessors. 6848 6849 * webkit/webkitwebhistoryitem.cpp: 6850 (_WebKitWebHistoryItemPrivate::): 6851 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init): 6852 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_property): 6853 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_property): 6854 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title): 6855 68562008-06-15 Darin Adler <darin@apple.com> 6857 6858 - give Frame object functions shorter names: scriptProxy() -> script(), 6859 selectionController() -> selection(), animationController() -> animation() 6860 6861 * WebCoreSupport/EditorClientGtk.cpp: 6862 (WebKit::EditorClient::handleKeyboardEvent): 6863 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6864 (WebKit::FrameLoaderClient::windowObjectCleared): 6865 * webkit/webkitwebframe.cpp: 6866 * webkit/webkitwebview.cpp: 6867 68682008-06-15 Darin Adler <darin@apple.com> 6869 6870 - undo bogus renaming done by the script 6871 6872 * WebCoreSupport/ContextMenuClientGtk.cpp: 6873 * webkit/webkitnetworkrequest.h: 6874 * webkit/webkitwebbackforwardlist.h: 6875 * webkit/webkitwebframe.h: 6876 * webkit/webkitwebhistoryitem.h: 6877 * webkit/webkitwebsettings.h: 6878 68792008-06-15 Darin Adler <darin@apple.com> 6880 6881 - new names for a few key JavaScriptCore files 6882 6883 * WebCoreSupport/ContextMenuClientGtk.cpp: 6884 * webkit/webkitnetworkrequest.h: 6885 * webkit/webkitwebbackforwardlist.h: 6886 * webkit/webkitwebframe.h: 6887 * webkit/webkitwebhistoryitem.h: 6888 * webkit/webkitwebsettings.h: 6889 68902008-06-15 Christian Dywan <christian@twotoasts.de> 6891 6892 Reviewed by Alp Toker. 6893 6894 [GTK] Property setters do not call g_object_notify() 6895 https://bugs.webkit.org/show_bug.cgi?id=18405 6896 6897 * webkit/webkitwebview.cpp: 6898 68992008-06-15 Christian Dywan <christian@twotoasts.de> 6900 6901 Reviewed by Alp Toker. 6902 6903 Tiny documentation fix, s/capacity/limit 6904 6905 * webkit/webkitwebbackforwardlist.cpp: 6906 69072008-06-14 Darin Adler <darin@apple.com> 6908 6909 Rubber stamped by Sam. 6910 6911 - new names for kjs_binding.h and kjs_proxy.h 6912 6913 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6914 * webkit/webkitwebframe.cpp: 6915 69162008-06-14 Darin Adler <darin@apple.com> 6917 6918 - fix build 6919 6920 * webkit/webkitwebframe.cpp: Remove a bogus release() call. 6921 69222008-06-14 Darin Adler <darin@apple.com> 6923 6924 Reviewed by Sam. 6925 6926 - more https://bugs.webkit.org/show_bug.cgi?id=17257 6927 start ref counts at 1 instead of 0 for speed 6928 6929 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6930 (WebKit::FrameLoaderClient::createDocumentLoader): Use create instead of new. 6931 * webkit/webkitwebframe.cpp: 6932 (webkit_web_frame_new): Ditto. 6933 (webkit_web_frame_init_with_web_view): Ditto. 6934 69352008-06-13 Darin Adler <darin@apple.com> 6936 6937 - try to fix build 6938 6939 * WebCoreSupport/FrameLoaderClientGtk.h: Add missing argument. 6940 69412008-06-13 Darin Adler <darin@apple.com> 6942 6943 Reviewed by John Sullivan. 6944 6945 - updated for addition of FormState argument to action policy functions 6946 6947 * WebCoreSupport/FrameLoaderClientGtk.cpp: 6948 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction): 6949 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 6950 69512008-06-10 Christian Dywan <christian@twotoasts.de> 6952 6953 Reviewed by Alp Toker and Darin Adler. 6954 6955 https://bugs.webkit.org/show_bug.cgi?id=16676 6956 Apply GTK coding style to WebKit Gtk public headers 6957 6958 * webkit/webkitnetworkrequest.h: 6959 * webkit/webkitwebbackforwardlist.h: 6960 * webkit/webkitwebframe.h: 6961 * webkit/webkitwebhistoryitem.h: 6962 * webkit/webkitwebsettings.h: 6963 * webkit/webkitwebview.h: 6964 69652008-06-07 Jan Michael Alonzo <jmalonzo@webkit.org> 6966 6967 Confirmed by Christian Dywan. 6968 6969 Gtk build fix for r34432 6970 6971 * webkit/webkitwebhistoryitem.cpp: 6972 (_WebKitWebHistoryItemPrivate::webkit_history_item_add): 6973 (_WebKitWebHistoryItemPrivate::webkit_history_item_remove): 6974 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 6975 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item): 6976 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): 6977 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): 6978 (WebKit::core): 6979 69802008-06-07 Darin Adler <darin@apple.com> 6981 6982 - try to fix build after HistoryItem changes 6983 6984 * webkit/webkitwebhistoryitem.cpp: 6985 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): Use HistoryItem::create. 6986 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): Ditto. I also 6987 believe this fixes a memory leak in the old version. 6988 69892008-06-07 Christian Dywan <christian@twotoasts.de> 6990 6991 Reviewed by Alp Toker. 6992 6993 https://bugs.webkit.org/show_bug.cgi?id=17324 6994 Remove PLATFORM ifdefs from ContextMenu.cpp 6995 6996 * WebCoreSupport/ContextMenuClientGtk.cpp: 6997 (WebKit::ContextMenuClient::ContextMenuClient): 6998 (WebKit::ContextMenuClient::contextMenuDestroyed): 6999 (WebKit::inputMethodsMenuItem): 7000 (WebKit::): 7001 (WebKit::insertControlCharacter): 7002 (WebKit::unicodeMenuItem): 7003 (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems): 7004 * WebCoreSupport/ContextMenuClientGtk.h: 7005 * webkit/webkitwebview.cpp: 7006 70072008-06-05 Alp Toker <alp@nuanti.com> 7008 7009 Add 'Since' documentation for API versioning functions. 7010 7011 * webkit/webkitversion.cpp: 7012 70132008-06-05 Christian Dywan <christian@twotoasts.de> 7014 7015 Reviewed by Alp Toker. 7016 7017 https://bugs.webkit.org/show_bug.cgi?id=14141 7018 Please add a version to the Gtk port 7019 7020 * webkit/webkit.h: 7021 * webkit/webkitversion.cpp: Added. 7022 * webkit/webkitversion.h.in: Added. 7023 * webkit/webkitwebsettings.cpp: 7024 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 7025 * webkit/webkitwebview.cpp: 7026 70272008-06-01 Alp Toker <alp@nuanti.com> 7028 7029 Suggested by Christian Dywan. 7030 7031 Use float literals for zoom values and improve documentation wording. 7032 7033 * webkit/webkitwebsettings.cpp: 7034 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 7035 * webkit/webkitwebview.cpp: 7036 70372008-06-01 Alp Toker <alp@nuanti.com> 7038 7039 Reviewed by Oliver. 7040 7041 Remove webkit_web_view_go_backward(), 7042 webkit_web_view_can_go_backward(). These have been obsoleted by 7043 the back() versions for quite a while. 7044 7045 * webkit/webkitwebview.cpp: 7046 * webkit/webkitwebview.h: 7047 70482008-05-31 Alp Toker <alp@nuanti.com> 7049 7050 Fix inconsistent zoom docs and enum name landed in r34249. Issue 7051 noticed by Marco Barisione. 7052 7053 * webkit/webkitwebview.cpp: 7054 70552008-05-30 Carlos Martín Nieto <carlos@cmartin.tk> 7056 7057 Reviewed by Alp Toker. 7058 7059 http://bugs.webkit.org/show_bug.cgi?id=18383 7060 [GTK] The "hovering-over-link" signal arguments aren't documented. 7061 7062 * webkit/webkitwebview.cpp: 7063 70642008-05-29 Marco Barisione <marco@collabora.co.uk> 7065 7066 Reviewed (and tweaked) by Alp Toker. 7067 7068 http://bugs.webkit.org/show_bug.cgi?id=18281 7069 [GTK] add functions to set/get the zoom level 7070 7071 * webkit/webkitwebsettings.cpp: 7072 (_WebKitWebSettingsPrivate::): 7073 (_WebKitWebSettingsPrivate::webkit_web_settings_class_init): 7074 (_WebKitWebSettingsPrivate::webkit_web_settings_set_property): 7075 (_WebKitWebSettingsPrivate::webkit_web_settings_get_property): 7076 * webkit/webkitwebview.cpp: Add functions to get and set the zoom 7077 level. 7078 * webkit/webkitwebview.h: Ditto. 7079 * webkit/webkitprivate.h: 7080 70812008-05-28 Alp Toker <alp@nuanti.com> 7082 7083 Reviewed by Alexey Proskuryakov. 7084 7085 http://bugs.webkit.org/show_bug.cgi?id=18704 7086 [gtk] cannot type letters with dead keys in textarea 7087 7088 http://bugs.webkit.org/show_bug.cgi?id=14120 7089 [GDK] Support input methods 7090 7091 Add support for input method composition. 7092 7093 Remove some old hacks so we handle input method events more 7094 consistently. 7095 7096 * WebCoreSupport/EditorClientGtk.cpp: 7097 (WebKit::imContextCommitted): 7098 (WebKit::imContextPreeditChanged): 7099 (WebKit::EditorClient::setInputMethodState): 7100 (WebKit::EditorClient::respondToChangedSelection): 7101 (WebKit::EditorClient::handleInputMethodKeydown): 7102 (WebKit::EditorClient::EditorClient): 7103 (WebKit::EditorClient::~EditorClient): 7104 (WebKit::EditorClient::textFieldDidBeginEditing): 7105 (WebKit::EditorClient::textFieldDidEndEditing): 7106 (WebKit::EditorClient::textDidChangeInTextField): 7107 (WebKit::EditorClient::doTextFieldCommandFromEvent): 7108 * webkit/webkitwebview.cpp: 7109 71102008-05-25 Alp Toker <alp@nuanti.com> 7111 7112 Reviewed by Niko. 7113 7114 Drop WebView focus when the widget is focused out. 7115 7116 * webkit/webkitwebview.cpp: 7117 71182008-05-25 Sriram Neelakandan <sriram.neelakandan@gmail.com> 7119 7120 Reviewed by Alp Toker. 7121 7122 http://bugs.webkit.org/show_bug.cgi?id=18935 7123 [Gtk] Plugin Load crashes with NP_FULL mode 7124 7125 Fix crash due to uninitialized variable. 7126 7127 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7128 (WebKit::FrameLoaderClient::FrameLoaderClient): 7129 71302008-05-24 Alp Toker <alp@nuanti.com> 7131 7132 https://bugs.webkit.org/show_bug.cgi?id=18825 7133 webkitgtk fails to build from source: "Database Tracker" has not been declared 7134 7135 GTK+ fix for building without database support. 7136 exceededDatabaseQuota() still needs to be present, just a no-op. 7137 7138 * WebCoreSupport/ChromeClientGtk.cpp: 7139 (WebKit::ChromeClient::exceededDatabaseQuota): 7140 71412008-05-23 Alp Toker <alp@nuanti.com> 7142 7143 GTK+ fixes for building without database support. 7144 7145 * WebCoreSupport/ChromeClientGtk.cpp: 7146 71472008-05-19 Alp Toker <alp@nuanti.com> 7148 7149 Reviewed by Anders and Beth. 7150 7151 http://bugs.webkit.org/show_bug.cgi?id=16495 7152 [GTK] Accessibility support with ATK/AT-SPI 7153 7154 Initial ATK/AT-SPI accessibility support for the GTK+ port. 7155 7156 * webkit/webkitwebview.cpp: 7157 71582008-05-06 Christian Dywan <christian@twotoasts.de> 7159 7160 Rubber stamped by Alp. 7161 7162 Back out 17626. It wasn't ready for commit. 7163 7164 * webkit/webkitprivate.h: 7165 * webkit/webkitwebview.cpp: 7166 * webkit/webkitwebview.h: 7167 71682008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk> 7169 7170 Reviewed by Alp Toker. 7171 7172 https://bugs.webkit.org/show_bug.cgi?id=14750 7173 Added support for NPAPI plugins on Gtk and Qt-x11 ports. 7174 7175 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7176 (WebKit::FrameLoaderClient::FrameLoaderClient): 7177 (WebKit::FrameLoaderClient::committedLoad): 7178 (WebKit::FrameLoaderClient::createPlugin): 7179 (WebKit::FrameLoaderClient::redirectDataToPlugin): 7180 (WebKit::FrameLoaderClient::finishedLoading): 7181 (WebKit::FrameLoaderClient::setMainDocumentError): 7182 * WebCoreSupport/FrameLoaderClientGtk.h: 7183 71842008-04-30 Sean Egan <seanegan@gmail.com> 7185 7186 Reviewed and modified by Holger. 7187 7188 https://bugs.webkit.org/show_bug.cgi?id=17626 7189 Support setting background color and a 16-bit alpha channel. 7190 7191 * webkit/webkitprivate.h: 7192 * webkit/webkitwebview.cpp: 7193 * webkit/webkitwebview.h: 7194 71952008-04-24 Dan Bernstein <mitz@apple.com> 7196 7197 - build fix 7198 7199 * webkit/webkitwebview.cpp: 7200 72012008-04-24 Anders Carlsson <andersca@apple.com> 7202 7203 Reviewed by Sam. 7204 7205 Change some String arguments to be const references instead. 7206 7207 * WebCoreSupport/EditorClientGtk.cpp: 7208 (WebKit::EditorClient::shouldInsertText): 7209 * WebCoreSupport/EditorClientGtk.h: 7210 72112008-04-23 Christian Dywan <christian@twotoasts.de> 7212 7213 Reviewed by Alp Toker. 7214 7215 Emit a warning about an unknown setting only if it is 7216 not a valid property. Otherwise applications can't 7217 subclass WebKitWebSettings to add new properties. 7218 7219 * webkit/webkitwebview.cpp: 7220 72212008-04-20 Simon Hausmann <hausmann@webkit.org> 7222 7223 Reviewed by Alp Toker. 7224 7225 http://bugs.webkit.org/show_bug.cgi?id=18578 7226 Share the printing code between the Gtk and the Qt port 7227 7228 Share the printing code between the Gtk and the Qt port 7229 and added printing to the Qt WebKit API. 7230 7231 * webkit/webkitwebframe.cpp: Removed PrintContext in favour of 7232 page/Printcontext.cpp/h 7233 72342008-04-19 Alp Toker <alp@nuanti.com> 7235 7236 Reviewed by Maciej. 7237 7238 Enable visited link tracking by default at startup. 7239 7240 With this patch, the GTK+ port rendering of Acid3 now matches the 7241 reference page. 7242 7243 * webkit/webkitprivate.cpp: 7244 (WebKit::core): 7245 (webkit_init): 7246 72472008-04-11 Mark Rowe <mrowe@apple.com> 7248 7249 Gtk build fix after r32231. 7250 7251 * webkit/webkitwebview.cpp: Update to use contentRenderer. 7252 72532008-04-18 Alp Toker <alp@atoker.com> 7254 7255 Rubber-stamped by Holger Freyther. 7256 7257 http://bugs.webkit.org/show_bug.cgi?id=18218 7258 [Gtk] segfault when clicking on a disabled button 7259 7260 Always use the main frame for mouse events (not the focused frame) 7261 since it knows best how to get the event through to the right target. 7262 7263 This also fixes a null crasher. 7264 7265 * webkit/webkitwebview.cpp: 7266 72672008-04-17 Alp Toker <alp@atoker.com> 7268 7269 Rubber-stamped by Holger Freyther. 7270 7271 Reduce hard-coded page-cache count to 3 based on research done for the 7272 Mac port on value / page. 7273 7274 We will need to make this more dynamic or configurable at some point 7275 but for now it's best to keep closer to the behaviour before page 7276 caching was enabled. 7277 7278 Issue spotted by Mark Rowe. 7279 7280 * webkit/webkitprivate.cpp: 7281 (webkit_init): 7282 72832008-04-17 Daniele Metilli <daniele.metilli@gmail.com> 7284 7285 Reviewed by Eric. 7286 7287 Fixed a typo in the copyright header. 7288 7289 * webkit/webkitprivate.h: 7290 72912008-04-14 Holger Freyther <zecke@selfish.org> 7292 7293 Reviewed by Alp Toker. 7294 7295 https://bugs.webkit.org/show_bug.cgi?id=18411 7296 Enable Page caching and create FrameViews on the fly 7297 7298 Create the FrameView on the fly and cache pages 7299 7300 - Keep a copy of the GtkAdjustment to be able to reuse it for the 7301 FrameViews 7302 - Do not initially create a FrameView and update the WebKit code to 7303 cope with not having a view. 7304 - Cache seven pages by default. 7305 7306 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7307 (WebKit::FrameLoaderClient::createFrame): 7308 (WebKit::FrameLoaderClient::canCachePage): 7309 (WebKit::FrameLoaderClient::savePlatformDataToCachedPage): 7310 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage): 7311 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 7312 * webkit/webkitprivate.cpp: 7313 (webkit_init): 7314 * webkit/webkitprivate.h: 7315 * webkit/webkitwebframe.cpp: 7316 * webkit/webkitwebview.cpp: 7317 73182008-04-10 Mario Bensi <mbensi@pleyo.com> 7319 7320 Reviewed by Alp Toker. 7321 7322 https://bugs.webkit.org/show_bug.cgi?id=18400 7323 Database example doesn't work on Gtk port 7324 7325 Fix quota in ChromeClient 7326 7327 * WebCoreSupport/ChromeClientGtk.cpp: 7328 (WebKit::ChromeClient::exceededDatabaseQuota): 7329 73302008-04-08 Adam Roben <aroben@apple.com> 7331 7332 Move callOnMainThread to WTF 7333 7334 Reviewed by Alexey Proskuryakov. 7335 7336 * webkit/webkitprivate.cpp: Updated #include. 7337 (webkit_init): Changed to call KJS::initializeThreading. 7338 73392008-04-06 Luca Bruno <lethalman88@gmail.com> 7340 7341 Reviewed by Alp Toker. 7342 7343 Fix webkit_web_view_get_transparent() return value. 7344 7345 * webkit/webkitwebview.cpp: 7346 73472008-03-31 Jasper Bryant-Greene <jasper@unix.geek.nz> 7348 7349 Reviewed by Darin Adler. 7350 7351 Resolves http://bugs.webkit.org/show_bug.cgi?id=18010 7352 "WebKitNetworkRequestPrivate is defined in two places unnecessarily" 7353 7354 Removed unnecessary definition of WebKitNetworkRequestPrivate in 7355 webkitprivate.h 7356 7357 * webkit/webkitprivate.h: 7358 73592008-03-25 Brady Eidson <beidson@apple.com> 7360 7361 Reviewed by Darin 7362 7363 Remove newly obsolete FrameLoaderClient methods 7364 7365 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7366 * WebCoreSupport/FrameLoaderClientGtk.h: 7367 73682008-03-20 Alp Toker <alp@atoker.com> 7369 7370 GTK+ build fix. Back out r31183. This patch also introduced API style 7371 issues. 7372 7373 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7374 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 7375 * webkit/headers.pri: 7376 * webkit/webkit-marshal.list: 7377 * webkit/webkitdefines.h: 7378 * webkit/webkitnavigationaction.cpp: Removed. 7379 * webkit/webkitnavigationaction.h: Removed. 7380 * webkit/webkitprivate.cpp: 7381 * webkit/webkitprivate.h: 7382 * webkit/webkitwebview.cpp: 7383 * webkit/webkitwebview.h: 7384 73852008-03-20 Jasper Bryant-Greene <jasper@unix.geek.nz> 7386 7387 Reviewed and tweaked by Anders. 7388 7389 Resolves http://bugs.webkit.org/show_bug.cgi?id=16092 7390 "[GTK] Middle-mouse click should allow opening a URL in a new tab" 7391 7392 Created WebKitNavigationAction object exported through the API. The 7393 navigation-requested signal provides this object as context for the 7394 requested navigation, allowing the application to decide what to do 7395 with the navigation based on which mouse button was used, which 7396 modifier keys were held down, etc. This allows, for example, the 7397 application to open links in a new tab when either middle-click or 7398 control-click are used to initiate the navigation. 7399 7400 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7401 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 7402 * webkit/headers.pri: 7403 * webkit/webkit-marshal.list: 7404 * webkit/webkitdefines.h: 7405 * webkit/webkitnavigationaction.cpp: Added. 7406 (webkit_navigation_action_finalize): 7407 (webkit_navigation_action_class_init): 7408 (webkit_navigation_action_init): 7409 (webkit_navigation_action_get_button): 7410 (webkit_navigation_action_get_modifier_flags): 7411 (webkit_navigation_action_get_navigation_type): 7412 (webkit_navigation_action_get_original_url): 7413 * webkit/webkitnavigationaction.h: Added. 7414 * webkit/webkitprivate.cpp: 7415 (WebKit::kit): 7416 * webkit/webkitprivate.h: 7417 * webkit/webkitwebview.cpp: 7418 * webkit/webkitwebview.h: 7419 74202008-03-18 Rodney Dawes <dobey@wayofthemonkey.com> 7421 7422 Reviewed and landed by jhoneycutt. 7423 7424 Update to check if the MIME type is supported by a plugin. 7425 7426 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7427 (FrameLoaderClient::objectContentType): 7428 74292008-03-18 Rodney Dawes <dobey@wayofthemonkey.com> 7430 7431 Reviewed by Jon Honeycutt. 7432 7433 Update setContainingWindow() calls to pass a GtkWidget. 7434 7435 * webkit/webkitwebframe.cpp: 7436 (webkit_web_frame_new): 7437 (webkit_web_frame_init_with_web_view): 7438 74392008-03-13 Rodney Dawes <dobey@wayofthemonkey.com> 7440 7441 Fix GTK+ build for SharedBuffer changes. 7442 7443 * webkit/webkitwebview.cpp: 7444 (webkit_web_view_load_string): 7445 74462008-03-12 Tommi Komulainen <tommi.komulainen@iki.fi> 7447 7448 Reviewed by Alp Toker. 7449 7450 http://bugs.webkit.org/show_bug.cgi?id=17799 7451 WebView signals should use more specific types 7452 7453 * webkit/webkitwebview.cpp: Use WEBKIT_TYPE_WEB_FRAME argument 7454 type in "script-alert", "script-confirm", "script-script-prompt" 7455 signals so that it gets more clearly documented rather than just 7456 plain GObject. 7457 74582008-03-10 Xan Lopez <xan@gnome.org> 7459 7460 Reviewed by Alp Toker. 7461 7462 Fix "missing braces" compiler warning. 7463 7464 * webkit/webkitwebview.cpp: 7465 74662008-03-04 Sam Weinig <sam@webkit.org> 7467 7468 Reviewed by Mark Rowe. 7469 7470 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including 7471 JSDOMWindow.h 7472 7473 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7474 * webkit/webkitwebframe.cpp: 7475 74762008-03-03 Sam Weinig <sam@webkit.org> 7477 7478 GTK+ build fix. 7479 7480 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7481 (WebKit::FrameLoaderClient::windowObjectCleared): 7482 74832008-03-03 Alp Toker <alp@atoker.com> 7484 7485 Fix the GTK+ build following breakage introduced in r30712. 7486 7487 * WebCoreSupport/EditorClientGtk.cpp: 7488 (WebKit::imContextCommitted): 7489 74902008-03-02 Alp Toker <alp@atoker.com> 7491 7492 Reviewed by Mark Rowe. 7493 7494 Split the WebKit GTK+ build out of the WebCore build and change the 7495 shared object name to match the package name. 7496 7497 * webkit.pc.in: 7498 74992008-02-27 Adam Roben <aroben@apple.com> 7500 7501 Attempt to fix the GTK+ build 7502 7503 * webkit/webkitwebframe.cpp: 7504 75052008-02-24 Darin Adler <darin@apple.com> 7506 7507 Reviewed by Sam. 7508 7509 - remove separate client calls for "standard" and "reload' history 7510 7511 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7512 (WebKit::FrameLoaderClient::updateGlobalHistory): 7513 * WebCoreSupport/FrameLoaderClientGtk.h: 7514 75152008-02-23 Alexey Proskuryakov <ap@webkit.org> 7516 7517 Build fix. 7518 7519 * webkit/webkitprivate.cpp: 7520 (webkit_init): Renamed initializeThreading to initializeThreadingAndMainThread. 7521 75222008-02-18 Alp Toker <alp@atoker.com> 7523 7524 Reviewed by Mark Rowe. 7525 7526 http://bugs.webkit.org/show_bug.cgi?id=17312 7527 [GTK] Webview Transparent Background 7528 7529 Add support for WebView background transparency. 7530 7531 * webkit/webkitprivate.h: 7532 * webkit/webkitwebview.cpp: 7533 * webkit/webkitwebview.h: 7534 75352008-02-18 Alp Toker <alp@atoker.com> 7536 7537 Reviewed by Mark Rowe. 7538 7539 Implement webkit_web_view_get_focused_frame() 7540 7541 Equivalent to selectedFrame in the Mac API. 7542 7543 * webkit/webkitwebview.cpp: 7544 * webkit/webkitwebview.h: 7545 75462008-02-17 Jan Michael Alonzo <jmalonzo@unpluggable.com> 7547 7548 Reviewed by Mark Rowe. 7549 7550 Fix a crash introduced in changeset #29985 by moving the dereference to after 7551 the null check. 7552 7553 * webkit/webkitwebhistoryitem.cpp: 7554 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item): 7555 75562008-02-15 Alp Toker <alp@atoker.com> 7557 7558 Fix the GTK+ build following breakage introduced in r30243. 7559 7560 * WebCoreSupport/ChromeClientGtk.cpp: 7561 (WebKit::ChromeClient::mouseDidMoveOverElement): 7562 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7563 (WebKit::FrameLoaderClient::objectContentType): 7564 75652008-02-15 Darin Adler <darin@apple.com> 7566 7567 - another try at fixing the build 7568 7569 * webkit/webkitwebview.cpp: Added some explicit conversions to KURL. 7570 75712008-02-14 Darin Adler <darin@apple.com> 7572 7573 * webkit/webkitwebframe.cpp: Removed DeprecatedString use to try to keep it building. 7574 * webkit/webkitwebview.cpp: Ditto. 7575 75762008-02-14 Holger Hans Peter Freyther <zecke@selfish.org> 7577 7578 Reviewed by Alp. 7579 7580 * Make the handling of the coreFrame consistent. We construct the coreFrame 7581 at the beginning and it will live until the end. Change the g_return_(val_)if 7582 to ASSERTs as having a 0 coreFrame can never happen. 7583 7584 * webkit/webkitwebframe.cpp: 7585 (PrintContext::webkit_web_frame_print): 7586 75872008-02-14 Holger Hans Peter Freyther <zecke@selfish.org> 7588 7589 Reviewed by Alp. 7590 7591 * Make sure that the WebCore::Frame is living as long as the WebKitWebFrame 7592 wrapped around it. All current calls to WebCore::Frame from within the 7593 WebKitWebFrame are safe, even in the case where the WebCore::Frame is already 7594 detached from the WebCore::Page. 7595 * For the mainFrame the WebKitWebView is holding the initial reference and 7596 will unref on destruction. 7597 * For sub-frames the FramerLoaderClientGtk.cpp will do the unrefing when the 7598 frame gets detached from the parent. 7599 * Make sure FrameLoader::detachFromParent gets called by calling FrameLoader::detachChildren 7600 7601 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7602 (WebKit::FrameLoaderClient::detachedFromParent4): 7603 * webkit/webkitprivate.cpp: 7604 (WebKit::core): 7605 * webkit/webkitprivate.h: 7606 * webkit/webkitwebframe.cpp: 7607 * webkit/webkitwebview.cpp: 7608 76092008-02-14 Holger Hans Peter Freyther <zecke@selfish.org> 7610 7611 Reviewed by Alp. 7612 7613 WebCore::Frame is RefCounted, do not manually delete it! 7614 7615 * webkit/webkitwebframe.cpp: 7616 76172008-02-14 Holger Hans Peter Freyther <zecke@selfish.org> 7618 7619 Reviewed by Alp. 7620 7621 * Plug a leak 7622 7623 * webkit/webkitwebframe.cpp: 7624 76252008-02-14 Holger Hans Peter Freyther <zecke@selfish.org> 7626 7627 Reviewed by Alp. 7628 7629 * Update the Copyright Information 7630 7631 * WebCoreSupport/FrameLoaderClientGtk.cpp: 7632 * webkit/webkitprivate.h: 7633 * webkit/webkitwebframe.cpp: 7634 76352008-02-13 Alp Toker <alp@atoker.com> 7636 7637 Reviewed by Adam Roben. 7638 7639 Fix very small, upside down, inside out text on GTK+/DirectFB. 7640 7641 Based on an initial patch by Sriram Neelakandan <sriram.neelakandan@gmail.com> 7642 7643 Test the result of gdk_screen_get_resolution() and use a default 7644 fallback in case of failure. 7645 7646 Also remove an unhelpful runtime warning. 7647 7648 * webkit/webkitwebview.cpp: 7649 76502008-02-08 Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk> 7651 7652 Reviewed by Alp Toker. 7653 7654 http://bugs.webkit.org/show_bug.cgi?id=17009 7655 [Gtk] Webkit strips accents from some dead-key combinations 7656 7657 KeyEvents have to go through the gtk input method. 7658 7659 * WebCoreSupport/EditorClientGtk.cpp: 7660 (WebKit::imContextCommitted): 7661 (WebKit::EditorClient::doTextFieldCommandFromEvent): 7662 76632008-02-05 Mark Rowe <mrowe@apple.com> 7664 7665 Reviewed by Alp Toker. 7666 7667 Fix warnings seen on the Gtk port by declaring variables and using constants of the correct types. 7668 7669 * webkit/webkitwebbackforwardlist.cpp: 7670 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_contains_item): 7671 * webkit/webkitwebhistoryitem.cpp: 7672 * webkit/webkitwebview.cpp: 7673 76742008-02-04 Christian Dywan <christian@imendio.com> 7675 7676 Reviewed by Alp Toker. 7677 7678 http://bugs.webkit.org/show_bug.cgi?id=17065 7679 [GTK] Use a consistent coding style 7680 7681 * WebCoreSupport/EditorClientGtk.cpp: 7682 (WebKit::imContextCommitted): 7683 (WebKit::EditorClient::EditorClient): 7684 (WebKit::EditorClient::~EditorClient): 7685 (WebKit::EditorClient::textFieldDidEndEditing): 7686 * webkit/webkitdefines.h: 7687 * webkit/webkitnetworkrequest.cpp: 7688 (_WebKitNetworkRequestPrivate::webkit_network_request_finalize): 7689 (_WebKitNetworkRequestPrivate::webkit_network_request_class_init): 7690 (_WebKitNetworkRequestPrivate::webkit_network_request_init): 7691 (_WebKitNetworkRequestPrivate::webkit_network_request_new): 7692 (_WebKitNetworkRequestPrivate::webkit_network_request_set_uri): 7693 (_WebKitNetworkRequestPrivate::webkit_network_request_get_uri): 7694 * webkit/webkitnetworkrequest.h: 7695 * webkit/webkitprivate.cpp: 7696 (WebKit::getViewFromFrame): 7697 (WebKit::core): 7698 * webkit/webkitprivate.h: 7699 * webkit/webkitwebbackforwardlist.cpp: 7700 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_new_with_web_view): 7701 * webkit/webkitwebbackforwardlist.h: 7702 * webkit/webkitwebframe.cpp: 7703 * webkit/webkitwebframe.h: 7704 * webkit/webkitwebhistoryitem.cpp: 7705 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 7706 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_finalize): 7707 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item): 7708 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): 7709 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): 7710 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title): 7711 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title): 7712 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title): 7713 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri): 7714 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri): 7715 (WebKit::core): 7716 * webkit/webkitwebhistoryitem.h: 7717 * webkit/webkitwebsettings.h: 7718 * webkit/webkitwebview.cpp: 7719 * webkit/webkitwebview.h: 7720 77212008-02-04 Alp Toker <alp@atoker.com> 7722 7723 Rubber-stamped by Mark Rowe. 7724 7725 Remove all trailing whitespace in the GTK+ port and related 7726 components. 7727 7728 * WebCoreSupport/DragClientGtk.h: 7729 * WebCoreSupport/FrameLoaderClientGtk.h: 7730 * WebCoreSupport/InspectorClientGtk.h: 7731 * WebCoreSupport/PasteboardHelperGtk.h: 7732 * webkit/webkitprivate.h: 7733 * webkit/webkitwebbackforwardlist.cpp: 7734 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_contains_item): 7735 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit): 7736 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_item): 7737 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_length): 7738 * webkit/webkitwebhistoryitem.cpp: 7739 (_WebKitWebHistoryItemPrivate::webkit_history_items): 7740 (_WebKitWebHistoryItemPrivate::webkit_history_item_add): 7741 (_WebKitWebHistoryItemPrivate::webkit_history_item_remove): 7742 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 7743 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): 7744 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title): 7745 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title): 7746 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title): 7747 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri): 7748 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_last_visited_time): 7749 (WebKit::kit): 7750 * webkit/webkitwebhistoryitem.h: 7751 * webkit/webkitwebview.cpp: 7752 * webkit/webkitwebview.h: 7753 77542008-02-03 Christian Dywan <christian@imendio.com> 7755 7756 Reviewed by Alp Toker. 7757 7758 http://bugs.webkit.org/show_bug.cgi?id=17046 7759 [GTK] Context menu fixes and customisation suport 7760 7761 * webkit/webkitwebview.cpp: 7762 77632008-01-31 Alp Toker <alp@atoker.com> 7764 7765 Reviewed by Mark Rowe. 7766 7767 Fix the pkg-config file to follow GTK+ package naming and versioning 7768 conventions. 7769 7770 Remove unneeded dependency listings. 7771 7772 * WebKitGtk.pc.in: Removed. 7773 * webkit.pc.in: Copied from WebKit/gtk/WebKitGtk.pc.in. 7774 77752008-01-31 Alp Toker <alp@atoker.com> 7776 7777 Rubber-stamped by Adam Roben. 7778 7779 http://bugs.webkit.org/show_bug.cgi?id=17006 7780 [GTK] Header path should be webkit/webkit.h 7781 7782 Move the GTK+ API sources as needed and update the build systems. 7783 7784 * WebView: Removed. 7785 * WebView/headers.pri: Removed. 7786 * WebView/webkit-marshal.list: Removed. 7787 * WebView/webkit.h: Removed. 7788 * WebView/webkitdefines.h: Removed. 7789 * WebView/webkitnetworkrequest.cpp: Removed. 7790 * WebView/webkitnetworkrequest.h: Removed. 7791 * WebView/webkitprivate.cpp: Removed. 7792 * WebView/webkitprivate.h: Removed. 7793 * WebView/webkitwebbackforwardlist.cpp: Removed. 7794 * WebView/webkitwebbackforwardlist.h: Removed. 7795 * WebView/webkitwebframe.cpp: Removed. 7796 * WebView/webkitwebframe.h: Removed. 7797 * WebView/webkitwebhistoryitem.cpp: Removed. 7798 * WebView/webkitwebhistoryitem.h: Removed. 7799 * WebView/webkitwebsettings.cpp: Removed. 7800 * WebView/webkitwebsettings.h: Removed. 7801 * WebView/webkitwebview.cpp: Removed. 7802 * WebView/webkitwebview.h: Removed. 7803 * webkit: Copied from WebKit/gtk/WebView. 7804 * webkit/webkit.h: 7805 * webkit/webkitnetworkrequest.h: 7806 * webkit/webkitprivate.h: 7807 * webkit/webkitwebbackforwardlist.h: 7808 * webkit/webkitwebframe.h: 7809 * webkit/webkitwebhistoryitem.h: 7810 * webkit/webkitwebsettings.h: 7811 * webkit/webkitwebview.h: 7812 78132008-01-27 Jan Michael Alonzo <jmalonzo@unpluggable.com> 7814 7815 Reviewed by Alp Toker. 7816 7817 http://bugs.webkit.org/show_bug.cgi?id=14811 7818 [gtk] [request] add a webkit_gtk_page_go_to_history_item function 7819 7820 implement back/forward list and history item 7821 7822 * WebView/headers.pri: 7823 * WebView/webkit.h: 7824 * WebView/webkitprivate.cpp: 7825 * WebView/webkitprivate.h: 7826 * WebView/webkitwebbackforwardlist.cpp: Added. 7827 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_dispose): 7828 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_class_init): 7829 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_init): 7830 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_new_with_web_view): 7831 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_go_forward): 7832 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_go_back): 7833 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_contains_item): 7834 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_go_to_item): 7835 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit): 7836 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit): 7837 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_item): 7838 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_current_item): 7839 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_item): 7840 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_nth_item): 7841 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_length): 7842 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_length): 7843 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_limit): 7844 (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_set_limit): 7845 * WebView/webkitwebbackforwardlist.h: Added. 7846 * WebView/webkitwebhistoryitem.cpp: Added. 7847 (_WebKitWebHistoryItemPrivate::webkit_history_items): 7848 (_WebKitWebHistoryItemPrivate::webkit_history_item_add): 7849 (_WebKitWebHistoryItemPrivate::webkit_history_item_remove): 7850 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose): 7851 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_finalize): 7852 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init): 7853 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_init): 7854 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item): 7855 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): 7856 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): 7857 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title): 7858 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title): 7859 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title): 7860 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri): 7861 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri): 7862 (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_last_visited_time): 7863 (WebKit::core): 7864 (WebKit::kit): 7865 * WebView/webkitwebhistoryitem.h: Added. 7866 * WebView/webkitwebview.cpp: 7867 * WebView/webkitwebview.h: 7868 78692008-01-25 Ori Bernstein <ori@eigenstate.org> 7870 7871 Reviewed by Alp Toker. 7872 7873 http://bugs.webkit.org/show_bug.cgi?id=16795 7874 WebKitGtk crashes when there is no focused Frame 7875 7876 Add a null check. focusedFrame() isn't used directly anywhere else so 7877 this is the only case that needs to be fixed. 7878 7879 * WebView/webkitwebview.cpp: 7880 78812008-01-22 Christian Dywan <christian@imendio.com> 7882 7883 Reviewed by Alp Toker. 7884 7885 [GTK] API: WebKitWebSettings is not usable 7886 http://bugs.webkit.org/show_bug.cgi?id=16219 7887 7888 Implement WebKitWebSettings. 7889 7890 * WebView/headers.pri: 7891 * WebView/webkit.h: 7892 * WebView/webkitprivate.cpp: 7893 * WebView/webkitprivate.h: 7894 * WebView/webkitsettings.cpp: Removed. 7895 * WebView/webkitsettings.h: Removed. 7896 * WebView/webkitwebsettings.cpp: Added. 7897 * WebView/webkitwebsettings.h: Added. 7898 * WebView/webkitwebview.cpp: 7899 * WebView/webkitwebview.h: 7900 79012008-01-21 Alp Toker <alp@atoker.com> 7902 7903 GTK+ build fix for breakage introduced in r29698. 7904 7905 * WebCoreSupport/ChromeClientGtk.h: 7906 79072008-01-21 Darin Adler <darin@apple.com> 7908 7909 Reviewed by John Sullivan. 7910 7911 - updated for changes to database functions 7912 7913 * WebCoreSupport/ChromeClientGtk.cpp: 7914 (WebKit::ChromeClient::exceededDatabaseQuota): 7915 * WebCoreSupport/ChromeClientGtk.h: 7916 * WebView/webkitprivate.cpp: 7917 (webkit_init): 7918 79192008-01-20 Alp Toker <alp@atoker.com> 7920 7921 Reviewed by Mark Rowe. 7922 7923 Attach the widget's style to its window and set the background to the 7924 base background to avoid black flicker when repainting. This is 7925 similar to what GtkTextView does. 7926 7927 * WebView/webkitwebview.cpp: 7928 79292008-01-19 Christian Dywan <christian@imendio.com> 7930 7931 Reviewed by Alp Toker. 7932 7933 http://bugs.webkit.org/show_bug.cgi?id=16882 7934 [GTK] ChromeClientGtk is incompete 7935 7936 Implement these functions. 7937 7938 * WebCoreSupport/ChromeClientGtk.cpp: 7939 (WebKit::ChromeClient::windowRect): 7940 (WebKit::ChromeClient::pageRect): 7941 (WebKit::ChromeClient::scaleFactor): 7942 (WebKit::ChromeClient::focus): 7943 (WebKit::ChromeClient::unfocus): 7944 (WebKit::ChromeClient::canTakeFocus): 7945 (WebKit::ChromeClient::takeFocus): 7946 (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel): 7947 79482008-01-18 Luca Bruno <lethalman88@gmail.com> 7949 7950 Reviewed by Alp Toker. 7951 7952 http://bugs.webkit.org/show_bug.cgi?id=16910 7953 [GTK] REGRESSION: keyboard cursor doesn't blink 7954 7955 http://bugs.webkit.org/show_bug.cgi?id=16863 7956 [GTK] REGRESSION: tab focusing doesn't work 7957 7958 * WebView/webkitwebview.cpp: 7959 (webkit_web_view_focus_in_event): Added. Set the active frame. 7960 (webkit_web_view_class_init): 7961 79622008-01-16 Alp Toker <alp@atoker.com> 7963 7964 Reviewed by Mark Rowe. 7965 7966 http://bugs.webkit.org/show_bug.cgi?id=16218 7967 [GTK] API: Should this entry point be called go_back rather than go_backward? 7968 7969 Obsolete 'backward' terminology in API in favour of 'back'. Introduce 7970 step-based back/forward functions. 7971 7972 Document more functions. 7973 7974 * WebView/webkitdefines.h: 7975 * WebView/webkitwebview.cpp: 7976 * WebView/webkitwebview.h: 7977 79782008-01-10 Maciej Stachowiak <mjs@apple.com> 7979 7980 Reviewed by Sam. 7981 7982 - remove SecurityOriginData and fold its functionality into SecurityOrigin 7983 7984 * WebCoreSupport/ChromeClientGtk.cpp: 7985 (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase): 7986 (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation): 7987 * WebCoreSupport/ChromeClientGtk.h: 7988 79892008-01-09 Luca Bruno <lethalman88@gmail.com> 7990 7991 Reviewed by Alp Toker. 7992 7993 http://bugs.webkit.org/show_bug.cgi?id=16802 7994 [GTK] Missing gtk properties 7995 7996 Add missing properties to WebKitViewFrame and WebKitWebView. 7997 7998 * WebView/webkitprivate.h: add some useful defines for param specs 7999 * WebView/webkitwebframe.cpp: 8000 (webkit_web_frame_get_property): added 8001 (webkit_web_frame_class_init): add name, title and uri read-only properties 8002 * WebView/webkitwebview.cpp: 8003 (webkit_web_view_get_property): add editable property read 8004 (webkit_web_view_set_property): added for editable property write 8005 (webkit_web_view_class_init): add read-write editable property 8006 80072008-01-03 Xan Lopez <xan@gnome.org> 8008 8009 Reviewed by Alp Toker. 8010 8011 http://bugs.webkit.org/show_bug.cgi?id=16654 8012 [GTK] Signal "navigation-requested" does not react correctly on 8013 return TRUE from callbacks 8014 8015 * WebView/webkitwebview.cpp: use our own accumulator for signals 8016 returning WebKitNavigationResponse. The emission will be stopped 8017 when any callback returns anything but 8018 WEBKIT_NAVIGATION_RESPONSE_ACCEPT. 8019 80202008-01-02 Holger Hans Peter Freyther <zecke@selfish.org> 8021 8022 Rubber stamped by Darin Adler. 8023 8024 Coding Style fix. Do not use an else because we use a return in the 8025 if branch. 8026 8027 * WebView/webkitwebview.cpp: 8028 80292008-01-02 Luca Bruno <lethalman88@gmail.com> 8030 8031 Reviewed by Alp Toker. 8032 8033 http://bugs.webkit.org/show_bug.cgi?id=16115 8034 [GTK] ContextMenu and ContextMenuItem lacks an implementation 8035 8036 Add context menu support. 8037 8038 Based on a patch by Holger Freyther. 8039 8040 * WebCoreSupport/ContextMenuClientGtk.cpp: 8041 (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems): 8042 * WebView/webkitprivate.h: 8043 * WebView/webkitwebview.cpp: 8044 80452007-12-29 Jan Michael Alonzo <jmalonzo@unpluggable.com> 8046 8047 Reviewed by Alp Toker. 8048 8049 http://bugs.webkit.org/show_bug.cgi?id=16669 8050 autotools update and fixes 8051 8052 pkgconfig file and icon database inclusion fix 8053 8054 * WebKitGtk.pc.in: Remove ICU_FLAGS from Cflags 8055 * WebView/webkitprivate.cpp: Guard ICONDATABASE inclusions 8056 80572007-12-28 Christian Dywan <christian@twotoasts.de> 8058 8059 Reviewed by Alp Toker. 8060 8061 http://bugs.webkit.org/show_bug.cgi?id=16642 8062 [GTK] webkit_web_view_has_selection returns the opposite result 8063 8064 Invert the return value. 8065 8066 * WebView/webkitwebview.cpp: 8067 80682007-12-26 Jan Michael Alonzo <jmalonzo@unpluggable.com> 8069 8070 Reviewed by Alp Toker. 8071 8072 http://bugs.webkit.org/show_bug.cgi?id=16390 8073 Use autotools or GNU make as the build system for the GTK port 8074 8075 * WebKitGtk.pc.in: Added. 8076 80772007-12-24 Christian Dywan <christian@twotoasts.de> 8078 8079 Reviewed by Alp Toker. 8080 8081 http://bugs.webkit.org/attachment.cgi?id=18099 8082 There are no NULL checks for strings in public api 8083 8084 Add missing NULL checks for string parameters. 8085 8086 Provide sensible defaults when NULL is passed for the optional 8087 parameters in webkit_web_view_load_string(). UTF-8 is the default 8088 encoding used by GLib and text/html is a reasonable default content 8089 type. 8090 8091 * WebView/webkitnetworkrequest.cpp: 8092 * WebView/webkitwebview.cpp: 8093 80942007-12-22 Xan Lopez <xan@gnome.org> 8095 8096 Reviewed by Alp Toker. 8097 8098 Use webView, web_view, etc for variable names instead of page, which 8099 was left over from the old API. 8100 8101 * WebCoreSupport/EditorClientGtk.cpp: 8102 (WebKit::imContextCommitted): 8103 (WebKit::EditorClient::EditorClient): 8104 (WebKit::EditorClient::~EditorClient): 8105 (WebKit::EditorClient::textFieldDidBeginEditing): 8106 (WebKit::EditorClient::textFieldDidEndEditing): 8107 * WebCoreSupport/EditorClientGtk.h: 8108 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8109 (WebKit::FrameLoaderClient::postProgressStartedNotification): 8110 (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification): 8111 (WebKit::FrameLoaderClient::postProgressFinishedNotification): 8112 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 8113 (WebKit::FrameLoaderClient::windowObjectCleared): 8114 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon): 8115 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle): 8116 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): 8117 81182007-12-22 Alp Toker <alp@atoker.com> 8119 8120 GTK+ build fix 8121 8122 GTK_TARGET_OTHER_APP is not available in older GTK+ versions. Pass 8123 empty target flags for now. 8124 8125 Check GTK+, not GLib versions, since they are different. 8126 8127 * WebView/webkitwebview.cpp: 8128 81292007-12-22 Luca Bruno <lethalman88@gmail.com> 8130 8131 Reviewed by Alp Toker. 8132 8133 http://bugs.webkit.org/show_bug.cgi?id=16311 8134 [Gtk] Copy rich text to clipboard as text/plain and text/html. 8135 8136 Add copy and paste targets for WebView and implement 8137 WebCore::PasteboardHelper. 8138 8139 * WebCoreSupport/PasteboardHelperGtk.cpp: Added. 8140 (WebKit::PasteboardHelperGtk::getClipboard): 8141 (WebKit::PasteboardHelperGtk::getCopyTargetList): 8142 (WebKit::PasteboardHelperGtk::getPasteTargetList): 8143 * WebCoreSupport/PasteboardHelperGtk.h: Added. 8144 * WebView/webkitprivate.cpp: 8145 (webkit_init): set the PasteboardHelperGtk as WebCore::Pasteboard helper 8146 * WebView/webkitprivate.h: 8147 (_WebKitWebViewPrivate::copy_target_list): added 8148 (_WebKitWebViewPrivate::paste_target_list): added 8149 * WebView/webkitwebview.cpp: 8150 (webkit_web_view_get_property): added 8151 (webkit_web_view_finalize): 8152 (webkit_web_view_class_init): create properties for COPY_TARGET and PASTE_TARGET and create the copy and paste target lists 8153 (webkit_web_view_get_copy_target_list): added 8154 (webkit_web_view_get_paste_target_list): added 8155 * WebView/webkitwebview.h: 8156 (webkit_web_view_get_copy_target_list): added 8157 (webkit_web_view_get_paste_target_list): added 8158 81592007-12-22 Xan Lopez <xan@gnome.org> 8160 8161 Reviewed by Alp Toker. 8162 8163 Follow up to http://bugs.webkit.org/show_bug.cgi?id=16144 8164 8165 * WebView/webkitwebview.cpp: 8166 Fix signal id arguments for g_signal_emit in 8167 clipboard functions. 8168 81692007-12-21 Alp Toker <alp@atoker.com> 8170 8171 Documentation typo fix: s/wether/whether 8172 8173 * WebView/webkitwebview.cpp: 8174 81752007-12-21 Christian Dywan <christian@twotoasts.de> 8176 8177 Reviewed by Alp Toker. 8178 8179 http://bugs.webkit.org/show_bug.cgi?id=16144 8180 [GTK] Clipboard/ selection handling functions 8181 8182 * WebView/webkitprivate.h: 8183 * WebView/webkitwebview.cpp: 8184 * WebView/webkitwebview.h: 8185 81862007-12-19 Christian Dywan <christian@twotoasts.de> 8187 8188 Reviewed by Alp Toker. 8189 8190 http://bugs.webkit.org/show_bug.cgi?id=16222 8191 [GTK] Implement inline search and highlighting of matching strings. 8192 8193 * WebView/webkitwebview.cpp: 8194 * WebView/webkitwebview.h: 8195 81962007-12-19 Alp Toker <alp@atoker.com> 8197 8198 Reviewed by Holger Freyther. 8199 8200 Delete when Destroy functions are called to avoid leaks 8201 8202 This matches the Mac port. 8203 8204 * WebCoreSupport/ChromeClientGtk.cpp: 8205 * WebCoreSupport/ContextMenuClientGtk.cpp: 8206 * WebCoreSupport/InspectorClientGtk.cpp: 8207 82082007-12-14 Juan A. Suarez Romero <jasuarez@igalia.com> 8209 8210 Reviewed by Alp Toker. 8211 8212 http://bugs.webkit.org/show_bug.cgi?id=16042 8213 [GTK] Eliminate webkit_init() 8214 8215 Move webkit initialization to WebView class init. 8216 8217 * WebView/headers.pri: 8218 * WebView/webkit.h: 8219 * WebView/webkitglobal.cpp: Removed. 8220 * WebView/webkitglobal.h: Removed. 8221 * WebView/webkitprivate.cpp: 8222 (WebKit::webkit_init): 8223 * WebView/webkitprivate.h: 8224 * WebView/webkitwebframe.cpp: 8225 * WebView/webkitwebview.cpp: 8226 82272007-12-17 Luca Bruno <lethalman88@gmail.com> 8228 8229 Reviewed by Alp Toker. 8230 8231 http://bugs.webkit.org/show_bug.cgi?id=13542 8232 gdklauncher doesnt change URL in adress GTKEntry. 8233 8234 Let DOMDocument observers do their work before emitting title-changed. 8235 The load-committed signal has been added for both the view and the frame. 8236 8237 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8238 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle): emit title-changed 8239 (WebKit::FrameLoaderClient::setTitle): set private title 8240 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): update the frame uri and emit load-committed 8241 * WebView/webkit-marshal.list: 8242 * WebView/webkitprivate.h: 8243 (_WebKitWebFramePrivate): rename location to uri 8244 * WebView/webkitwebframe.cpp: 8245 (webkit_web_frame_get_location): renamed to *_get_uri 8246 (webkit_web_frame_get_uri): 8247 (webkit_web_frame_real_title_changed): removed (see FrameLoaderClient::setTitle) 8248 (webkit_web_frame_class_init): pass the frame and the title in title-changed, not the uri 8249 (webkit_web_frame_finalize): 8250 * WebView/webkitwebframe.h: 8251 (_WebKitWebFrameClass): removed title_changed 8252 * WebView/webkitwebview.cpp: 8253 (webkit_web_view_class_init): pass only the title in title-changed 8254 82552007-12-14 Alp Toker <alp@atoker.com> 8256 8257 Fix inconsistent indentation in the license header. Maciej was right! 8258 8259 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8260 82612007-12-14 Alp Toker <alp@atoker.com> 8262 8263 Reviewed by Maciej. 8264 8265 http://bugs.webkit.org/show_bug.cgi?id=16432 8266 [GTK] Update license headers 8267 8268 Consent has been given by the authors of these files to change license 8269 to the LGPL as outlined in the bug report. 8270 8271 * WebCoreSupport/ChromeClientGtk.cpp: 8272 * WebCoreSupport/ContextMenuClientGtk.cpp: 8273 * WebCoreSupport/DragClientGtk.cpp: 8274 * WebCoreSupport/EditorClientGtk.cpp: 8275 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8276 (WebKit::FrameLoaderClient::makeRepresentation): 8277 (WebKit::FrameLoaderClient::forceLayout): 8278 (WebKit::FrameLoaderClient::forceLayoutForNonHTML): 8279 (WebKit::FrameLoaderClient::setCopiesOnScroll): 8280 (WebKit::FrameLoaderClient::detachedFromParent1): 8281 (WebKit::FrameLoaderClient::detachedFromParent2): 8282 (WebKit::FrameLoaderClient::detachedFromParent3): 8283 (WebKit::FrameLoaderClient::detachedFromParent4): 8284 (WebKit::FrameLoaderClient::loadedFromCachedPage): 8285 (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents): 8286 (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): 8287 (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect): 8288 (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect): 8289 (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage): 8290 (WebKit::FrameLoaderClient::dispatchWillClose): 8291 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): 8292 (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad): 8293 (WebKit::FrameLoaderClient::dispatchDidFirstLayout): 8294 (WebKit::FrameLoaderClient::dispatchShow): 8295 (WebKit::FrameLoaderClient::cancelPolicyCheck): 8296 (WebKit::FrameLoaderClient::dispatchDidLoadMainResource): 8297 (WebKit::FrameLoaderClient::revertToProvisionalState): 8298 (WebKit::FrameLoaderClient::clearUnarchivingState): 8299 (WebKit::FrameLoaderClient::willChangeTitle): 8300 (WebKit::FrameLoaderClient::didChangeTitle): 8301 (WebKit::FrameLoaderClient::finalSetupForReplace): 8302 (WebKit::FrameLoaderClient::setDefersLoading): 8303 (WebKit::FrameLoaderClient::isArchiveLoadPending): 8304 (WebKit::FrameLoaderClient::cancelPendingArchiveLoad): 8305 (WebKit::FrameLoaderClient::clearArchivedResources): 8306 (WebKit::FrameLoaderClient::canHandleRequest): 8307 (WebKit::FrameLoaderClient::canShowMIMEType): 8308 (WebKit::FrameLoaderClient::representationExistsForURLScheme): 8309 (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme): 8310 (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength): 8311 (WebKit::FrameLoaderClient::dispatchDidFinishLoading): 8312 (WebKit::FrameLoaderClient::dispatchDidFailLoading): 8313 (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): 8314 (WebKit::FrameLoaderClient::download): 8315 (WebKit::FrameLoaderClient::cancelledError): 8316 (WebKit::FrameLoaderClient::blockedError): 8317 (WebKit::FrameLoaderClient::cannotShowURLError): 8318 (WebKit::FrameLoaderClient::interruptForPolicyChangeError): 8319 (WebKit::FrameLoaderClient::cannotShowMIMETypeError): 8320 (WebKit::FrameLoaderClient::fileDoesNotExistError): 8321 (WebKit::FrameLoaderClient::shouldFallBack): 8322 (WebKit::FrameLoaderClient::willUseArchive): 8323 (WebKit::FrameLoaderClient::canCachePage): 8324 (WebKit::FrameLoaderClient::dispatchCreatePage): 8325 (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy): 8326 (WebKit::FrameLoaderClient::setMainDocumentError): 8327 (WebKit::FrameLoaderClient::startDownload): 8328 (WebKit::FrameLoaderClient::updateGlobalHistoryForStandardLoad): 8329 (WebKit::FrameLoaderClient::updateGlobalHistoryForReload): 8330 (WebKit::FrameLoaderClient::savePlatformDataToCachedPage): 8331 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage): 8332 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 8333 * WebCoreSupport/InspectorClientGtk.cpp: 8334 * WebView/webkitwebview.cpp: 8335 83362007-12-14 Darin Adler <darin@apple.com> 8337 8338 Reviewed by Alexey. 8339 8340 * WebCoreSupport/EditorClientGtk.cpp: 8341 (WebKit::EditorClient::handleKeyboardEvent): Changed to use Editor::command 8342 instead of Editor::execCommand. 8343 * WebView/webkitwebview.cpp: Ditto. 8344 83452007-12-12 Brady Eidson <beidson@apple.com> 8346 8347 Reviewed by Sam Weinig 8348 8349 As part of doing some CachedPage and client cleanup, keep GTK building 8350 8351 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8352 (WebKit::FrameLoaderClient::savePlatformDataToCachedPage): 8353 (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage): 8354 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 8355 * WebCoreSupport/FrameLoaderClientGtk.h: 8356 83572007-12-12 Alp Toker <alp@atoker.com> 8358 8359 Reviewed by Holger Freyther. 8360 8361 http://bugs.webkit.org/show_bug.cgi?id=15576 8362 [GTK] Printing support 8363 8364 Add printing support. 8365 8366 The API will be kept internal for the time being, but printing can now 8367 be triggered by Web pages or the JSC API using JavaScript. 8368 8369 The print spooler and pagination code is fairly abstract and could be 8370 shared by other ports including Win and Qt once complete. It doesn't 8371 have header/footer support yet. 8372 8373 * WebCoreSupport/ChromeClientGtk.cpp: 8374 (WebKit::ChromeClient::print): 8375 * WebView/webkitprivate.h: 8376 * WebView/webkitwebframe.cpp: 8377 (PrintContext::begin_print): 8378 (PrintContext::draw_page): 8379 (PrintContext::end_print): 8380 (PrintContext::webkit_web_frame_print): 8381 83822007-12-12 Sam Weinig <sam@webkit.org> 8383 8384 Build fix. 8385 8386 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8387 (WebKit::FrameLoaderClient::didChangeTitle): 8388 83892007-12-12 Sam Weinig <sam@webkit.org> 8390 8391 Build fix. 8392 8393 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8394 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 8395 83962007-12-11 George Wright <george.wright@collabora.co.uk> 8397 8398 Reviewed by Alp Toker. 8399 8400 http://bugs.webkit.org/show_bug.cgi?id=14120 8401 [GDK] Support input methods 8402 8403 This patch adds infrastructure for input method support. 8404 8405 It also adds Hildon features for the Maemo mobile platform sufficient 8406 to support the virtual keyboard. 8407 8408 * WebCoreSupport/EditorClientGtk.cpp: 8409 (WebKit::imContextCommitted): 8410 (WebKit::EditorClient::EditorClient): 8411 (WebKit::EditorClient::~EditorClient): 8412 (WebKit::EditorClient::textFieldDidBeginEditing): 8413 (WebKit::EditorClient::textFieldDidEndEditing): 8414 * WebCoreSupport/EditorClientGtk.h: 8415 * WebView/webkitprivate.h: 8416 * WebView/webkitwebview.cpp: 8417 84182007-12-07 Alexey Proskuryakov <ap@webkit.org> 8419 8420 Reviewed by Darin Adler. 8421 8422 <rdar://problem/5535636> 8423 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard. 8424 8425 http://bugs.webkit.org/show_bug.cgi?id=13916 8426 JavaScript detects Tab as a character input on a textfield validation 8427 8428 * WebCoreSupport/EditorClientGtk.cpp: 8429 (WebKit::EditorClient::handleKeyboardEvent): 8430 (WebKit::EditorClient::handleInputMethodKeydown): 8431 * WebCoreSupport/EditorClientGtk.h: 8432 Updated for cross-platform changes as much as it was possible without a gtk build environment. 8433 84342007-12-08 Luca Bruno <lethalman88@gmail.com> 8435 8436 Reviewed by Alp Toker. 8437 8438 http://bugs.webkit.org/show_bug.cgi?id=16346 8439 [GTK] Some webview parts must use the focused frame. 8440 8441 Also update some old code. 8442 8443 * WebView/webkitprivate.cpp: 8444 (getFrameFromView): removed 8445 8446 * WebView/webkitprivate.h: 8447 (getFrameFromView): removed 8448 8449 * WebView/webkitwebview.cpp: 8450 (webkit_web_view_expose_event): 8451 (webkit_web_view_key_press_event): use focused frame 8452 (webkit_web_view_key_release_event): use focused frame 8453 (webkit_web_view_button_press_event): 8454 (webkit_web_view_button_release_event): 8455 (webkit_web_view_motion_event): 8456 (webkit_web_view_scroll_event): 8457 (webkit_web_view_size_allocate): 8458 (webkit_web_view_set_scroll_adjustments): 8459 (webkit_web_view_execute_script): 8460 (webkit_web_view_stop_loading): 8461 (webkit_web_view_load_string): 8462 (webkit_web_view_reload): 8463 (webkit_web_view_open): 8464 (webkit_web_view_can_go_forward): 8465 (webkit_web_view_can_go_backward): 8466 (webkit_web_view_go_forward): 8467 (webkit_web_view_go_backward): 8468 8469 * WebCoreSupport/EditorClientGtk.cpp: 8470 (WebKit::EditorClient::handleKeypress): fix for page up and page down keys for editable contents 8471 84722007-12-07 Luca Bruno <lethalman88@gmail.com> 8473 8474 Reviewed by Alp Toker. 8475 8476 http://bugs.webkit.org/show_bug.cgi?id=16333 8477 [GTK] Key bindings must work with focused frames. 8478 8479 There are still more cases where getFrameFromView() is mis-used that 8480 need to be fixed, but this is a good start. 8481 8482 * WebView/webkitwebview.cpp: 8483 (webkit_web_view_real_select_all): 8484 (webkit_web_view_real_cut_clipboard): 8485 (webkit_web_view_real_copy_clipboard): 8486 (webkit_web_view_real_paste_clipboard): 8487 84882007-12-06 Xan Lopez <xan@gnome.org> 8489 8490 Reviewed by Alp Toker. 8491 8492 http://bugs.webkit.org/show_bug.cgi?id=16329 8493 [GTK] Two small cleanups 8494 8495 * WebCoreSupport/ChromeClientGtk.cpp: 8496 (WebKit::ChromeClient::createWindow): 8497 (WebKit::ChromeClient::addMessageToConsole): 8498 (WebKit::ChromeClient::runJavaScriptAlert): 8499 (WebKit::ChromeClient::runJavaScriptConfirm): 8500 (WebKit::ChromeClient::runJavaScriptPrompt): 8501 (WebKit::ChromeClient::setStatusbarText): 8502 (WebKit::ChromeClient::mouseDidMoveOverElement): 8503 (WebKit::ChromeClient::setToolTip): 8504 * WebCoreSupport/ChromeClientGtk.h: 8505 * WebView/webkitprivate.cpp: 8506 (WebKit::kit): 8507 s/m_webPage/m_webView/ 8508 * WebView/webkitwebview.cpp: 8509 Chain up to the parent class to activate bindings instead 8510 of doing it explicitely. 8511 85122007-12-06 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8513 8514 Reviewed by Alp Toker. 8515 8516 http://bugs.webkit.org/show_bug.cgi?id=16173 8517 Licensing change 8518 8519 Change license from BSD to LGPL. 8520 8521 * WebCoreSupport/ChromeClientGtk.h: 8522 * WebView/webkitdefines.h: 8523 * WebView/webkitglobal.cpp: 8524 * WebView/webkitglobal.h: 8525 * WebView/webkitnetworkrequest.cpp: 8526 * WebView/webkitnetworkrequest.h: 8527 * WebView/webkitprivate.cpp: 8528 * WebView/webkitprivate.h: 8529 * WebView/webkitsettings.cpp: 8530 * WebView/webkitsettings.h: 8531 * WebView/webkitwebframe.cpp: 8532 * WebView/webkitwebframe.h: 8533 * WebView/webkitwebview.h: 8534 85352007-12-05 Michael Natterer <mitch@imendio.com> 8536 8537 Reviewed by Alp Toker. 8538 8539 * WebView/webkitwebview.cpp: split key and button event handlers 8540 into separate press and release functions. 8541 85422007-12-05 Luca Bruno <lethalman88@gmail.com> 8543 8544 Reviewed by Alp Toker. 8545 8546 Handle events for Home and End keys. 8547 8548 * WebView/webkitwebview.cpp: 8549 (webkit_web_view_key_event): 8550 * WebCoreSupport/EditorClientGtk.cpp: 8551 (EditorClient::handleKeypress): 8552 85532007-12-05 Michael Natterer <mitch@imendio.com> 8554 8555 Reviewed by Alp Toker. 8556 8557 * WebView/webkitwebview.cpp 8558 * WebCoreSupport/ChromeClientGtk.cpp 8559 * WebCoreSupport/FrameLoaderClientGtk.cpp: canonicalize signal names. 8560 85612007-12-04 Darin Adler <darin@apple.com> 8562 8563 Reviewed by Kevin Decker. 8564 8565 * WebCoreSupport/FrameLoaderClientGtk.cpp: Removed obsolete privateBrowsingEnabled. 8566 * WebCoreSupport/FrameLoaderClientGtk.h: Ditto. 8567 85682007-12-04 Michael Natterer <mitch@imendio.com> 8569 8570 Reviewed by Alp Toker. 8571 8572 * WebView/webkitwebframe.cpp: don't redeclare the marshaller 8573 prototype but simply include "webkit-marshal.h" now that its build 8574 is fixed. 8575 85762007-12-04 Luca Bruno <lethalman88@gmail.com> 8577 8578 Reviewed by Alp Toker. 8579 8580 Fix a regression in key press propagation in r28386. 8581 8582 Fix indentation (was off by two spaces). 8583 8584 * WebView/webkitwebview.cpp: 8585 85862007-12-04 Luca Bruno <lethalman88@gmail.com> 8587 8588 Reviewed by Alp Toker. 8589 8590 http://bugs.webkit.org/show_bug.cgi?id=15911 8591 [GTK] Use GtkBindingSet to make key bindings user-configurable 8592 8593 This patch doesn't cover the full range of bindings, only the ones 8594 that seem obviously correct and have clear public API. 8595 8596 * WebCoreSupport/EditorClientGtk.cpp: 8597 (WebKit::EditorClient::handleKeypress): do not handle clipboard operations and select-all 8598 * WebView/webkitwebview.cpp: add cut, copy, paste and select-all signals and allow binding sets (issue #15911 and #16144) 8599 * WebView/webkitwebview.h: 8600 86012007-12-04 Xan Lopez <xan@gnome.org> 8602 8603 Reviewed by Alp Toker. 8604 8605 http://bugs.webkit.org/show_bug.cgi?id=15561 8606 GTK port needs DumpRenderTree implementation 8607 8608 Start work on the GTK+ DRT. 8609 8610 Add a couple of proposed new API entry points. They are currently for 8611 internal use only by DRT and not in the public headers. 8612 8613 * WebView/webkitprivate.h: 8614 * WebView/webkitwebframe.cpp: 8615 86162007-12-03 Dan Bernstein <mitz@apple.com> 8617 8618 Reviewed by Dave Hyatt. 8619 8620 - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame 8621 8622 * WebView/webkitwebview.cpp: Remove the call to sendResizeEvent() since 8623 FrameView sends it now. 8624 86252007-12-03 Alp Toker <alp@atoker.com> 8626 8627 globalObject() GTK+ build fix. 8628 8629 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8630 (WebKit::FrameLoaderClient::windowObjectCleared): 8631 86322007-12-03 Geoffrey Garen <ggaren@apple.com> 8633 8634 GTK Build fix: get globalExec from the right place. 8635 8636 * WebView/webkitwebframe.cpp: 8637 86382007-12-01 Alp Toker <alp@atoker.com> 8639 8640 Reviewed by Adam Roben. 8641 8642 Wrap type definitions in webkitdefines.h with G_BEGIN_DECLS, which 8643 takes care of extern "C". 8644 8645 Introduce a webkit.h convenience header. 8646 8647 Remove another left-over from the old API. 8648 8649 * WebView/headers.pri: 8650 * WebView/webkit.h: Added. 8651 * WebView/webkitdefines.h: 8652 86532007-12-01 Alp Toker <alp@atoker.com> 8654 8655 Reviewed by Adam Roben. 8656 8657 http://bugs.webkit.org/show_bug.cgi?id=15687 8658 [Gtk] Allow API clients to interact with JavaScript in web pages 8659 8660 Include the necessary JavaScriptCore headers directly in the public 8661 API headers. 8662 8663 This is the last of a series of changes needed to allow GTK+ 8664 applications to access the JS API. 8665 8666 Until http://bugs.webkit.org/show_bug.cgi?id=16029 is resolved, 8667 developers will still have to include the individual JS API headers 8668 individually if they want to use it in their applications. 8669 8670 Patch also removes some old legacy use of GDK that was in 8671 WebKitWebFrame. No ABI change. 8672 8673 * WebView/webkitdefines.h: 8674 * WebView/webkitwebframe.h: 8675 * WebView/webkitwebview.h: 8676 86772007-11-30 Jan Michael Alonzo <jmalonzo@unpluggable.com> 8678 8679 Fix for GTK+ Debug build breakage introduced in r28273. 8680 8681 * WebView/webkitprivate.cpp: 8682 (WebKit::kit): 8683 86842007-11-30 Alp Toker <alp@atoker.com> 8685 8686 Reviewed by Adam Roben. 8687 8688 http://bugs.webkit.org/show_bug.cgi?id=15691 8689 [GTK] Public API does not follow GTK+ conventions 8690 8691 Refactor the WebKit/GTK+ public API. Changes: 8692 WebKitPage -> WebKitWebView 8693 WebKitFrame -> WebKitWebFrame 8694 8695 Public API source and header names have been updated to mirror the API 8696 changes. 8697 8698 The API is now kept in WebKit/gtk/WebView to match other ports in the 8699 same class such as Mac and Win. 8700 8701 API/ABI-breaking change. 8702 8703 * Api: Removed. 8704 * Api/headers.pri: Removed. 8705 * Api/webkitgtk-marshal.list: Removed. 8706 * Api/webkitgtkdefines.h: Removed. 8707 * Api/webkitgtkframe.cpp: Removed. 8708 * Api/webkitgtkframe.h: Removed. 8709 * Api/webkitgtkglobal.cpp: Removed. 8710 * Api/webkitgtkglobal.h: Removed. 8711 * Api/webkitgtknetworkrequest.cpp: Removed. 8712 * Api/webkitgtknetworkrequest.h: Removed. 8713 * Api/webkitgtkpage.cpp: Removed. 8714 * Api/webkitgtkpage.h: Removed. 8715 * Api/webkitgtkprivate.cpp: Removed. 8716 * Api/webkitgtkprivate.h: Removed. 8717 * Api/webkitgtksettings.cpp: Removed. 8718 * Api/webkitgtksettings.h: Removed. 8719 * WebCoreSupport/ChromeClientGtk.cpp: 8720 (WebKit::ChromeClient::ChromeClient): 8721 (WebKit::ChromeClient::createWindow): 8722 * WebCoreSupport/ChromeClientGtk.h: 8723 (WebKit::ChromeClient::webPage): 8724 * WebCoreSupport/EditorClientGtk.cpp: 8725 (WebKit::EditorClient::isEditable): 8726 (WebKit::EditorClient::EditorClient): 8727 * WebCoreSupport/EditorClientGtk.h: 8728 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8729 (WebKit::FrameLoaderClient::FrameLoaderClient): 8730 (WebKit::FrameLoaderClient::postProgressStartedNotification): 8731 (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification): 8732 (WebKit::FrameLoaderClient::postProgressFinishedNotification): 8733 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction): 8734 (WebKit::FrameLoaderClient::createFrame): 8735 (WebKit::FrameLoaderClient::windowObjectCleared): 8736 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon): 8737 (WebKit::FrameLoaderClient::setTitle): 8738 * WebCoreSupport/FrameLoaderClientGtk.h: 8739 (WebKit::FrameLoaderClient::webFrame): 8740 * WebView: Added. 8741 * WebView/headers.pri: Added. 8742 * WebView/webkit-marshal.list: Added. 8743 * WebView/webkitdefines.h: Added. 8744 * WebView/webkitglobal.cpp: Added. 8745 * WebView/webkitglobal.h: Added. 8746 * WebView/webkitnetworkrequest.cpp: Added. 8747 * WebView/webkitnetworkrequest.h: Added. 8748 * WebView/webkitprivate.cpp: Added. 8749 (WebKit::apply): 8750 (WebKit::create): 8751 (WebKit::getFrameFromView): 8752 (WebKit::getViewFromFrame): 8753 (WebKit::core): 8754 (WebKit::kit): 8755 * WebView/webkitprivate.h: Added. 8756 * WebView/webkitsettings.cpp: Added. 8757 * WebView/webkitsettings.h: Added. 8758 * WebView/webkitwebframe.cpp: Added. 8759 * WebView/webkitwebframe.h: Added. 8760 * WebView/webkitwebview.cpp: Added. 8761 * WebView/webkitwebview.h: Added. 8762 87632007-11-28 Alp Toker <alp@atoker.com> 8764 8765 Reviewed by Timothy Hatcher. 8766 8767 http://bugs.webkit.org/show_bug.cgi?id=16174 8768 [GTK] Use "URI" not "URL" in public API 8769 8770 Replace use of the term "URL" with "URI" in public headers, 8771 documentation and some internal code to match GLib/GTK+ convention. 8772 8773 This is now mentioned in the API guidelines: 8774 http://trac.webkit.org/projects/webkit/wiki/HackingGtk 8775 8776 API/ABI-breaking change. 8777 8778 * Api/webkitgtkframe.cpp: 8779 * Api/webkitgtknetworkrequest.cpp: 8780 * Api/webkitgtknetworkrequest.h: 8781 * Api/webkitgtkpage.cpp: 8782 * Api/webkitgtkpage.h: 8783 * Api/webkitgtkprivate.h: 8784 * Api/webkitgtksettings.h: 8785 87862007-11-29 Brady Eidson <beidson@apple.com> 8787 8788 Better build fix for Gtk 8789 8790 * WebCoreSupport/ChromeClientGtk.h: 8791 87922007-11-29 Brady Eidson <beidson@apple.com> 8793 8794 Keep it building with new client method 8795 8796 * WebCoreSupport/ChromeClientGtk.cpp: 8797 (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase): 8798 (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation): 8799 * WebCoreSupport/ChromeClientGtk.h: 8800 88012007-11-26 Alp Toker <alp@atoker.com> 8802 8803 Reviewed by Adam Roben. 8804 8805 http://bugs.webkit.org/show_bug.cgi?id=16149 8806 Implement the window-object-cleared signal 8807 8808 This implementation provides the JSGlobalContextRef and JSObjectRef 8809 directly rather than using an intermediate JS wrapper object, similar 8810 to the approach taken by the Win port. 8811 8812 * Api/webkitgtk-marshal.list: 8813 * Api/webkitgtkframe.h: 8814 * Api/webkitgtkpage.cpp: 8815 * Api/webkitgtkpage.h: 8816 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8817 (WebKit::FrameLoaderClient::windowObjectCleared): 8818 88192007-11-24 Alp Toker <alp@atoker.com> 8820 8821 Reviewed by Mark Rowe. 8822 8823 http://bugs.webkit.org/show_bug.cgi?id=15691 8824 [GTK] Public API does not follow GTK+ conventions 8825 8826 Public API enhancements: 8827 8828 Implement webkit_page_get_editable() and webkit_page_set_editable(). 8829 8830 Implement webkit_frame_get_name(). 8831 8832 Remove definitions for functions that are unusable or not implemented. 8833 This has caused much confusion for application developers. 8834 8835 Improve documentation. 8836 8837 Correct/constify some return types. 8838 8839 Add parameter checks. 8840 8841 Make the default fixed font "Courier New" to match the other Web 8842 font names. 8843 8844 * Api/webkitgtkframe.cpp: 8845 * Api/webkitgtkframe.h: 8846 * Api/webkitgtkpage.cpp: 8847 * Api/webkitgtkpage.h: 8848 * Api/webkitgtkprivate.h: 8849 * WebCoreSupport/EditorClientGtk.cpp: 8850 (WebKit::EditorClient::isEditable): 8851 88522007-11-24 Alp Toker <alp@atoker.com> 8853 8854 Reviewed by Mark Rowe. 8855 8856 http://bugs.webkit.org/show_bug.cgi?id=16125 8857 [GTK] Up key doesn't work properly when content is editable 8858 8859 Add a missing 'break' to avoid falling through to the next case when 8860 handling VK_UP keystrokes. This was noticed when working on editing 8861 support in the GTK+ port. 8862 8863 I've checked the other cases for similar typos and they seem fine. 8864 8865 * WebCoreSupport/EditorClientGtk.cpp: 8866 (WebKit::EditorClient::handleKeypress): 8867 88682007-11-24 Xan Lopez <xan@gnome.org> 8869 8870 Reviewed by Alp Toker. 8871 8872 http://bugs.webkit.org/show_bug.cgi?id=15745 8873 [GTK] Arrow keys do not Scroll 8874 8875 * Api/webkitgtkpage.cpp: 8876 8877 Support Up/Down/Right/Left keys to scroll. Slight hack, see FIXME for 8878 details. 8879 88802007-11-24 Christian Dywan <christian@twotoasts.de> 8881 8882 Reviewed by Alp Toker. 8883 8884 http://bugs.webkit.org/show_bug.cgi?id=15891 8885 [GTK] Javascript console and dialogs are not implemented 8886 8887 Fix call to gtk_message_dialog_new() which expects a format string. 8888 8889 * Api/webkitgtkpage.cpp: 8890 88912007-11-24 Christian Dywan <christian@twotoasts.de> 8892 8893 Reviewed by Alp Toker. 8894 8895 http://bugs.webkit.org/show_bug.cgi?id=15793 8896 [GTK] Webkit doesn't show title attribute tooltip when hovering over an image 8897 8898 Implement tooltip support using the new Tooltip API. 8899 8900 Support for older versions of GTK+ is still lacking. 8901 8902 * WebCoreSupport/ChromeClientGtk.cpp: 8903 (WebKit::ChromeClient::setToolTip): 8904 89052007-11-22 Alp Toker <alp@atoker.com> 8906 8907 Reviewed by Mark Rowe. 8908 8909 Implement and document several WebKitFrame functions, some of which 8910 are necessary to support DRT. 8911 8912 Correct NULL handling and improve run-time checks. 8913 8914 * Api/webkitgtkframe.cpp: 8915 * Api/webkitgtkframe.h: 8916 * Api/webkitgtkprivate.cpp: 8917 89182007-11-22 Alp Toker <alp@atoker.com> 8919 8920 Whitespace fixes only. 8921 8922 * Api/webkitgtkframe.cpp: 8923 * Api/webkitgtkpage.cpp: 8924 * Api/webkitgtkpage.h: 8925 * Api/webkitgtkprivate.h: 8926 * WebCoreSupport/ChromeClientGtk.cpp: 8927 * WebCoreSupport/ContextMenuClientGtk.cpp: 8928 * WebCoreSupport/ContextMenuClientGtk.h: 8929 * WebCoreSupport/DragClientGtk.h: 8930 * WebCoreSupport/EditorClientGtk.h: 8931 * WebCoreSupport/FrameLoaderClientGtk.cpp: 8932 (WebKit::FrameLoaderClient::dispatchWillSendRequest): 8933 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest): 8934 (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification): 8935 (WebKit::FrameLoaderClient::createFrame): 8936 (WebKit::FrameLoaderClient::createJavaAppletWidget): 8937 (WebKit::FrameLoaderClient::registerForIconNotification): 8938 (WebKit::FrameLoaderClient::setMainFrameDocumentReady): 8939 (WebKit::FrameLoaderClient::dispatchDidFinishLoad): 8940 (WebKit::FrameLoaderClient::frameLoadCompleted): 8941 (WebKit::FrameLoaderClient::saveViewStateToItem): 8942 (WebKit::FrameLoaderClient::restoreViewState): 8943 (WebKit::FrameLoaderClient::shouldGoToHistoryItem): 8944 (WebKit::FrameLoaderClient::setTitle): 8945 * WebCoreSupport/FrameLoaderClientGtk.h: 8946 89472007-11-22 Michael Natterer <mitch@imendio.com> 8948 8949 Reviewed by Alp Toker. 8950 8951 http://bugs.webkit.org/show_bug.cgi?id=15984 8952 Implement "navigation-requested" signal for WebKit Gtk 8953 8954 * Api/webkitgtknetworkrequest.h: fix parent class member. 8955 8956 * Api/webkitgtknetworkrequest.cpp 8957 * Api/webkitgtkprivate.h: basic implementation featuring an 8958 "url" member and API. 8959 8960 * Api/webkitgtkdefines.h: added network request typedefs. 8961 8962 * Api/webkitgtkpage.h: fix enum name: 8963 s/WEBKIT_NAVIGATION_REQUEST_RESPONSE/WebKitNavigationRequestResponse/ 8964 and sanitized enum values. 8965 8966 * Api/webkitgtkpage.cpp: made "navigation-requested" a signal. 8967 8968 * Api/webkitgtk-marshal.list: added INT:OBJECT,OBJECT 8969 8970 * WebCoreSupport/FrameLoaderClientGtk.cpp: emit the new signal in 8971 dispatchDecidePolicyForNavigationAction(). 8972 89732007-11-18 Christian Dywan <christian@twotoasts.de> 8974 8975 Reviewed by Alp. 8976 8977 http://bugs.webkit.org/show_bug.cgi?id=15891 8978 [GTK] Javascript console and dialogs are not implemented 8979 8980 Correct script-prompt to return NULL when cancelled. 8981 8982 Small changes to avoid compiler warnings. 8983 8984 * Api/webkitgtkpage.cpp: 8985 89862007-11-17 Timothy Hatcher <timothy@apple.com> 8987 8988 Reviewed by Mark Rowe. 8989 8990 Bug 13470: i18n: The Web Inspector is not localizable 8991 http://bugs.webkit.org/show_bug.cgi?id=13470 8992 8993 * WebCoreSupport/InspectorClientGtk.cpp: 8994 (WebKit::InspectorClient::localizedStringsURL): Empty stub. 8995 * WebCoreSupport/InspectorClientGtk.h: Add localizedStringsURL. 8996 89972007-11-13 Mark Rowe <mrowe@apple.com> 8998 8999 Gtk build fix. Replace incorrect use of the LOG macro with g_print. 9000 9001 * Api/webkitgtkpage.cpp: 9002 90032007-11-13 Christian Dywan <christian@twotoasts.de> 9004 9005 Reviewed by Alp. 9006 9007 http://bugs.webkit.org/show_bug.cgi?id=15891 9008 [GTK] Javascript console and dialogs are not implemented 9009 9010 Implement signals for script dialogs and console messages. 9011 9012 * Api/webkitgtk-marshal.list: 9013 * Api/webkitgtkpage.cpp: 9014 * Api/webkitgtkpage.h: 9015 * WebCoreSupport/ChromeClientGtk.cpp: 9016 (WebKit::ChromeClient::addMessageToConsole): 9017 (WebKit::ChromeClient::runJavaScriptAlert): 9018 (WebKit::ChromeClient::runJavaScriptConfirm): 9019 (WebKit::ChromeClient::runJavaScriptPrompt): 9020 90212007-11-11 Alp Toker <alp@atoker.com> 9022 9023 Reviewed by Anders. 9024 9025 Initialize m_userAgent. 9026 9027 Fix typos in GDK_WINDOWING conditionals. 9028 9029 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9030 (WebKit::FrameLoaderClient::FrameLoaderClient): 9031 (WebKit::agentPlatform): 9032 90332007-11-11 Alp Toker <alp@atoker.com> 9034 9035 Reviewed by Mark Rowe. 9036 9037 Mention Safari in the UserAgent string to improve site compatibility. 9038 9039 Also bump the hard-coded AppleWebKit version number. 9040 9041 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9042 (WebKit::composeUserAgent): 9043 90442007-11-09 Xan Lopez <xan@gnome.org> 9045 9046 Reviewed by Alp. 9047 9048 Fix http://bugs.webkit.org/show_bug.cgi?id=15926 9049 [GTK] WebKitPage map handler is redundant. 9050 9051 * Api/webkitgtkpage.cpp: 9052 The map handler for WebKitPage is redundant, GtkContainer does 9053 the same (and more correctly). 9054 90552007-11-08 Alp Toker <alp@atoker.com> 9056 9057 Reviewed by Mark Rowe. 9058 9059 http://bugs.webkit.org/show_bug.cgi?id=15653 9060 [GTK] Text editor does not handle common keystrokes 9061 9062 Handle more keystrokes in EditorClientGtk. Note that this is a 9063 temporary measure pending a proper solution using GtkBindingSet (see 9064 http://bugs.webkit.org/show_bug.cgi?id=15911). 9065 9066 * WebCoreSupport/EditorClientGtk.cpp: 9067 (WebKit::EditorClient::handleKeypress): 9068 90692007-11-08 Kevin McCullough <kmccullough@apple.com> 9070 9071 Reviewed by Sam. 9072 9073 - windowObjectCleared() is no longer const. It needs to setup the 9074 script debugger and cannot be const to do so. 9075 9076 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9077 (WebKit::FrameLoaderClient::windowObjectCleared): 9078 * WebCoreSupport/FrameLoaderClientGtk.h: 9079 90802007-11-06 Rodney Dawes <dobey@wayofthemonkey.com> 9081 9082 Fix http://bugs.webkit.org/attachment.cgi?id=17043&action=view 9083 Bug 15766: [GTK] WebKit sometimes spews binary data as text/plain into iframes 9084 9085 FrameLoaderClient::objectContentType needs to check with the MIMETypeRegistry 9086 to determine whether the given MIME type is displayable as an image or non-image. 9087 9088 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9089 (FrameLoaderClient::objectContentType): Change logic to match that in 9090 the Windows and Mac ports. 9091 90922007-11-05 Christian Dywan <christian@twotoasts.de> 9093 9094 Reviewed by Maciej. 9095 9096 http://bugs.webkit.org/show_bug.cgi?id=15409 9097 FrameLoaderClientGtk hardcodes data, including platform to Linux i686 9098 9099 Compute a proper user agent string. 9100 9101 Patch includes fixes by Alp. 9102 9103 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9104 (WebKit::agentPlatform): 9105 (WebKit::agentOS): 9106 (WebKit::composeUserAgent): 9107 (WebKit::FrameLoaderClient::userAgent): 9108 * WebCoreSupport/FrameLoaderClientGtk.h: 9109 91102007-11-05 Mark Rowe <mrowe@apple.com> 9111 9112 Rubber-stamped by Alp Toker. 9113 9114 Remove unused m_firstData member from FrameLoaderClientGtk. 9115 9116 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9117 * WebCoreSupport/FrameLoaderClientGtk.h: 9118 91192007-11-05 Mark Rowe <mrowe@apple.com> 9120 9121 Reviewed by Alp Toker. 9122 9123 Fix http://bugs.webkit.org/show_bug.cgi?id=15842 9124 Bug 15842: [Gtk] about:blank doesn't work 9125 9126 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9127 (WebKit::FrameLoaderClient::finishedLoading): Set the encoding on the frame loader to 9128 get work done that is normally done when the first bit of data is received, even in the 9129 case of a document with no data (like about:blank). 9130 91312007-11-03 Alp Toker <alp@atoker.com> 9132 9133 Reviewed by Mark Rowe. 9134 9135 Restore correct double and triple click behaviour 9136 9137 We ended up ignoring GDK_2BUTTON_PRESS and GDK_3BUTTON_PRESS after 9138 recent refactoring. 9139 9140 * Api/webkitgtkpage.cpp: 9141 91422007-11-03 Alp Toker <alp@atoker.com> 9143 9144 Reviewed by Mark Rowe. 9145 9146 Frame scrolling and invalidation fixes 9147 9148 Make upward scroll events have a positive delta to match other ports. 9149 9150 Fix the invalidation rect offset for frames so that scrolling works properly. 9151 9152 Avoid allocating negative sizes to widgets to avoid GTK+ warnings. 9153 9154 Allow tabbing to all widgets and links. 9155 9156 Fix event returns, improving the focus situation and correcting scroll wheel 9157 behavior. 9158 9159 * Api/webkitgtkpage.cpp: 9160 * WebCoreSupport/ChromeClientGtk.cpp: 9161 91622007-10-29 Alp Toker <alp@atoker.com> 9163 9164 Reviewed by Maciej. 9165 9166 Do not allow control to reach end of non-void functions 9167 9168 * Api/webkitgtksettings.cpp: 9169 91702007-10-28 Lars Lindner <lars.lindner@gmail.com> 9171 9172 Reviewed by Alp. 9173 9174 http://bugs.webkit.org/show_bug.cgi?id=15466 9175 [gtk] widget does not take focus on mouse click 9176 9177 Grab widget focus in mouse press callback. 9178 9179 * Api/webkitgtkpage.cpp: 9180 91812007-10-25 Alp Toker <alp@atoker.com> 9182 9183 Reviewed by Brady. 9184 9185 http://bugs.webkit.org/show_bug.cgi?id=15686 9186 GtkLauncher aborts on launch due to uninitialized threading subsystem 9187 9188 Re-enable database support in the GTK+ port, with a fix. 9189 9190 Initialize GLib threading as early as possible. 9191 9192 * Api/webkitgtkglobal.cpp: 9193 91942007-10-25 Alp Toker <alp@atoker.com> 9195 9196 Unreviewed fix to make the GTK+ port run. 9197 9198 http://bugs.webkit.org/show_bug.cgi?id=15686 9199 GtkLauncher aborts on launch due to uninitialized threading subsystem 9200 9201 http://bugs.webkit.org/show_bug.cgi?id=15688 9202 [GTK] Make it possible to disable database support 9203 9204 Make database path initialization conditional on database support 9205 being enabled. 9206 9207 * Api/webkitgtkglobal.cpp: 9208 92092007-10-24 Mark Rowe <mrowe@apple.com> 9210 9211 Gtk build fix. Track WebCore changes in r27004. 9212 9213 * Api/webkitgtkglobal.cpp: 9214 92152007-10-22 Alp Toker <alp@atoker.com> 9216 9217 Reviewed by Mark Rowe. 9218 9219 http://bugs.webkit.org/show_bug.cgi?id=15611 9220 [GTK] Text selection behaviour different in Debug and Release builds 9221 9222 http://bugs.webkit.org/show_bug.cgi?id=15578 9223 [GTK] Text editor caret does not blink 9224 9225 Never allow control to reach the end of non-void functions. 9226 9227 Return more sensible values, or in some cases, nulls. 9228 9229 * Api/webkitgtksettings.cpp: 9230 * Api/webkitgtksettings.h: 9231 * WebCoreSupport/DragClientGtk.cpp: 9232 (WebKit::DragClient::actionMaskForDrag): 9233 (WebKit::DragClient::dragSourceActionMaskForPoint): 9234 (WebKit::DragClient::createDragImageForLink): 9235 92362007-10-20 Mark Rowe <mrowe@apple.com> 9237 9238 Reviewed by Alp. 9239 9240 Gtk changes needed to enable HTML 5 client-side database storage. 9241 9242 * Api/webkitgtkglobal.cpp: Set a default database path based on the user data directory. 9243 This should become configurable by client applications in the future. 9244 92452007-10-20 Mark Rowe <mrowe@apple.com> 9246 9247 Reviewed by Eric. 9248 9249 Don't allow control characters to be inserted into editable regions. 9250 9251 * WebCoreSupport/EditorClientGtk.cpp: 9252 (WebKit::EditorClient::handleKeypress): 9253 92542007-10-19 Alp Toker <alp@atoker.com> 9255 9256 Reviewed by Oliver. 9257 9258 GTK+ build fix enabling the new local database storage feature. 9259 There is also a prospective Qt build fix. 9260 9261 * WebCoreSupport/ChromeClientGtk.cpp: 9262 (WebKit::ChromeClient::runDatabaseSizeLimitPrompt): 9263 * WebCoreSupport/ChromeClientGtk.h: 9264 92652007-10-14 Jan Michael Alonzo <jmalonzo@unpluggable.com> 9266 9267 Reviewed by Adam. 9268 9269 http://bugs.webkit.org/show_bug.cgi?id=15299 9270 Fix "hovering_over_link" signal not emitted when consecutive links 9271 are hovered. 9272 9273 * WebCoreSupport/ChromeClientGtk.cpp: 9274 (WebKit::ChromeClient::mouseDidMoveOverElement): 9275 * WebCoreSupport/ChromeClientGtk.h: 9276 - Remove m_didSendLinkSignal as it is superseded by m_hoveredLinkURL 9277 92782007-10-10 Alice Liu <alice.liu@apple.com> 9279 9280 Reviewed by Geoff Garen. 9281 9282 changes to keep the build from breaking 9283 9284 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9285 (WebKit::FrameLoaderClient::createFrame): 9286 * WebCoreSupport/FrameLoaderClientGtk.h: 9287 92882007-10-03 Alp Toker <alp@atoker.com> 9289 9290 Reviewed by Adam. 9291 9292 http://bugs.webkit.org/show_bug.cgi?id=14726 9293 [gtk] API design. Mapping the WebView delegates to signals. 9294 9295 Change the API namespace of the Gtk+ port from 'WebKitGtk' to 'WebKit'. 9296 9297 * Api/webkitgtkdefines.h: 9298 * Api/webkitgtkframe.cpp: 9299 * Api/webkitgtkframe.h: 9300 * Api/webkitgtkglobal.cpp: 9301 * Api/webkitgtkglobal.h: 9302 * Api/webkitgtknetworkrequest.h: 9303 * Api/webkitgtkpage.cpp: 9304 * Api/webkitgtkpage.h: 9305 * Api/webkitgtkprivate.cpp: 9306 (WebKit::apply): 9307 (WebKit::create): 9308 (WebKit::getFrameFromPage): 9309 (WebKit::getPageFromFrame): 9310 (WebKit::core): 9311 (WebKit::kit): 9312 * Api/webkitgtkprivate.h: 9313 * Api/webkitgtksettings.cpp: 9314 * Api/webkitgtksettings.h: 9315 * WebCoreSupport/ChromeClientGtk.cpp: 9316 (WebKit::ChromeClient::ChromeClient): 9317 (WebKit::ChromeClient::createWindow): 9318 (WebKit::ChromeClient::addMessageToConsole): 9319 (WebKit::ChromeClient::runJavaScriptAlert): 9320 (WebKit::ChromeClient::runJavaScriptConfirm): 9321 (WebKit::ChromeClient::runJavaScriptPrompt): 9322 * WebCoreSupport/ChromeClientGtk.h: 9323 (WebKit::ChromeClient::webPage): 9324 * WebCoreSupport/EditorClientGtk.cpp: 9325 (WebKit::EditorClient::EditorClient): 9326 * WebCoreSupport/EditorClientGtk.h: 9327 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9328 (WebKit::FrameLoaderClient::FrameLoaderClient): 9329 (WebKit::FrameLoaderClient::postProgressStartedNotification): 9330 (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification): 9331 (WebKit::FrameLoaderClient::postProgressFinishedNotification): 9332 (WebKit::FrameLoaderClient::createFrame): 9333 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon): 9334 (WebKit::FrameLoaderClient::setTitle): 9335 * WebCoreSupport/FrameLoaderClientGtk.h: 9336 (WebKit::FrameLoaderClient::webFrame): 9337 93382007-10-02 Cosimo Cecchi <cosimoc@svn.gnome.org> 9339 9340 Reviewed by Mark. 9341 9342 http://bugs.webkit.org/show_bug.cgi?id=15299 9343 Fix "hovering_over_link" signal being fired every time mouse moves. 9344 9345 * WebCoreSupport/ChromeClientGtk.cpp: 9346 (WebKit::ChromeClient::ChromeClient): 9347 (WebKit::ChromeClient::mouseDidMoveOverElement): 9348 * WebCoreSupport/ChromeClientGtk.h: 9349 93502007-09-21 Sean Egan <seanegan@gmail.com> 9351 9352 Reviewed by Alp. 9353 9354 Add an "execute_script" method to programmatically call Javascript 9355 http://bugs.webkit.org/show_bug.cgi?id=15255 9356 9357 * Api/webkitgtkpage.cpp: 9358 * Api/webkitgtkpage.h: 9359 93602007-09-29 Lars Lindner <lars.lindner@gmail.com> 9361 9362 Reviewed by Adam. 9363 9364 ChromeClientGtk.cpp does not implement mouseDidMoveOverElement() 9365 http://bugs.webkit.org/show_bug.cgi?id=15299 9366 9367 Implementing "hovering_over_link" signal. 9368 9369 * WebCoreSupport/ChromeClientGtk.cpp: 9370 (WebKit::ChromeClient::mouseDidMoveOverElement): 9371 93722007-09-26 Mark Rowe <mrowe@apple.com> 9373 9374 Gtk build fix. 9375 9376 * WebCoreSupport/FrameLoaderClientGtk.cpp: Check for empty URL instead of invalid URL. 9377 93782007-09-17 Holger Hans Peter Freyther <zecke@selfish.org> 9379 9380 Reviewed by Adam. 9381 9382 WebKitGtkPage and WebKitGtkFrame have a dependency on each other. To 9383 allow client code to include both headers the typedef's for 9384 WebKitGtkFrame, WebKitGtkPage, WebKitGtkFrameData and WebKitGtkNetworkRequest 9385 are moved into webkitgtkdefines.h and included by both webkitgtkpage.h and 9386 webkitgtkframe.h 9387 9388 * Api/webkitgtkdefines.h: 9389 * Api/webkitgtkframe.h: 9390 * Api/webkitgtkpage.h: 9391 93922007-09-17 Cyril Brulebois <cyril.brulebois@enst-bretagne.fr> 9393 9394 Reviewed by Mark, some Coding Style changes by Holger. 9395 9396 This is from http://bugs.webkit.org/show_bug.cgi?id=14812. 9397 9398 Add title and location to WebKitGtkFramePrivate, add 9399 webkit_gtk_frame_get_location to the WebKitGtkFrame API as well 9400 as a title_changed callback, implement 9401 webkit_gtk_frame_get_title and webkit_gtk_frame_get_location. 9402 9403 Initial patch by Diego Escalante Urrelo. 9404 9405 * Api/webkitgtkframe.cpp: 9406 * Api/webkitgtkframe.h: 9407 * Api/webkitgtkprivate.h: 9408 94092007-09-15 Holger Hans Peter Freyther <zecke@selfish.org> 9410 9411 Reviewed by Mark. 9412 9413 Use the new WebCore::String::fromUTF8 function to convert 9414 from the Gtk+ representation of a string to WebCore::String. 9415 9416 * WebCoreSupport/ChromeClientGtk.cpp: 9417 (WebKit::ChromeClient::runJavaScriptPrompt): 9418 94192007-09-10 Nigel Tao <nigeltao@gnome.org> 9420 9421 Reviewed by Mark Rowe. 9422 9423 Fix a typo where webkit_gtk_page_can_copy was declared twice, 9424 rather than webkit_gtk_page_can_paste. 9425 9426 * Api/webkitgtkpage.h: 9427 94282007-09-08 Brady Eidson <beidson@apple.com> 9429 9430 Better build fix 9431 9432 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9433 (WebKit::FrameLoaderClient::registerForIconNotification): 9434 * WebCoreSupport/FrameLoaderClientGtk.h: 9435 94362007-09-08 Brady Eidson <beidson@apple.com> 9437 9438 Build fix 9439 9440 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9441 (WebKit::FrameLoaderClient::registerForIconNotification): 9442 * WebCoreSupport/FrameLoaderClientGtk.h: 9443 94442007-09-05 Geoffrey Garen <ggaren@apple.com> 9445 9446 Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher. 9447 9448 Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 9449 memory cache, or a very tiny one 9450 9451 Keep the GTK build working with an empty stub. 9452 9453 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9454 (WebKit::FrameLoaderClient::didPerformFirstNavigation): 9455 * WebCoreSupport/FrameLoaderClientGtk.h: 9456 94572007-09-01 Oliver Hunt <oliver@apple.com> 9458 9459 Reviewed by Sam. 9460 9461 <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions 9462 9463 EditorClient::setInputMethodState stub 9464 9465 * WebCoreSupport/EditorClientGtk.cpp: 9466 (WebKit::EditorClient::setInputMethodState): 9467 * WebCoreSupport/EditorClientGtk.h: 9468 94692007-08-18 Holger Hans Peter Freyther <zecke@selfish.org> 9470 9471 Build fix. Add const to the first parameter of createPlugin 9472 9473 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9474 94752007-08-17 Anders Carlsson <andersca@apple.com> 9476 9477 Build fix. 9478 9479 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9480 (WebKit::FrameLoaderClient::createPlugin): 9481 * WebCoreSupport/FrameLoaderClientGtk.h: 9482 94832007-08-11 Holger Hans Peter Freyther <zecke@selfish.org> 9484 9485 Reviewed by Adam. 9486 9487 To not hit the needsLayout() assert of Frame::paint for subframes we need to 9488 make sure they are layed out. Use the newly created FrameView::layoutIfNeededRecursive 9489 method to do this. 9490 9491 * Api/webkitgtkpage.cpp: 9492 94932007-08-11 Holger Hans Peter Freyther <zecke@selfish.org> 9494 9495 Reviewed by Adam. 9496 9497 Fix text selection by setting a DragClient when creating the Page. Now 9498 that we have a DragClient we can free the Page when WebKitGtkPage gets 9499 destructed. 9500 9501 * Api/webkitgtkpage.cpp: 9502 * WebCoreSupport/DragClientGtk.cpp: Added. 9503 (WebKit::DragClient::willPerformDragDestinationAction): 9504 (WebKit::DragClient::willPerformDragSourceAction): 9505 (WebKit::DragClient::actionMaskForDrag): 9506 (WebKit::DragClient::dragSourceActionMaskForPoint): 9507 (WebKit::DragClient::startDrag): 9508 (WebKit::DragClient::createDragImageForLink): 9509 * WebCoreSupport/DragClientGtk.h: Added. 9510 95112007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 9512 9513 Reviewed by Anders. 9514 9515 Make WebKitGtkPage a GtkContainer to avoid a size_allocate 9516 race of GtkScrollBar and GtkLayout. 9517 9518 * Api/webkitgtk-marshal.list: 9519 * Api/webkitgtkframe.cpp: 9520 * Api/webkitgtkpage.cpp: 9521 * Api/webkitgtkpage.h: 9522 * Api/webkitgtkprivate.h: 9523 95242007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 9525 9526 Reviewed by Niko. 9527 9528 Minor changes to the WebKit::EditorClient to allow removing 9529 of text from TextFields. Remove the selectWordBeforeMenuEvent method 9530 which is not used and not within WebCore::EditorClient. 9531 9532 * WebCoreSupport/EditorClientGtk.cpp: 9533 (WebKit::EditorClient::shouldDeleteRange): 9534 (WebKit::EditorClient::shouldBeginEditing): 9535 (WebKit::EditorClient::shouldEndEditing): 9536 (WebKit::EditorClient::shouldApplyStyle): 9537 (WebKit::EditorClient::shouldInsertNode): 9538 * WebCoreSupport/EditorClientGtk.h: 9539 95402007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 9541 9542 Reviewed by Mark. 9543 9544 Rename the namespace from WebKitGtk to WebKit. Move the various *Client 9545 classes into the WebKit namespace. Change the class names to not contain Gtk. 9546 The file names have to contain the Gtk suffix to not clash with files in WebCore (e.g. 9547 bridge/EditorClient.h). 9548 9549 9550 * Api/webkitgtkframe.cpp: 9551 * Api/webkitgtkpage.cpp: 9552 * Api/webkitgtkprivate.cpp: 9553 * Api/webkitgtkprivate.h: 9554 * ChangeLog: 9555 * WebCoreSupport/ChromeClientGtk.cpp: 9556 (WebKit::ChromeClient::ChromeClient): 9557 (WebKit::ChromeClient::chromeDestroyed): 9558 (WebKit::ChromeClient::windowRect): 9559 (WebKit::ChromeClient::setWindowRect): 9560 (WebKit::ChromeClient::pageRect): 9561 (WebKit::ChromeClient::scaleFactor): 9562 (WebKit::ChromeClient::focus): 9563 (WebKit::ChromeClient::unfocus): 9564 (WebKit::ChromeClient::createWindow): 9565 (WebKit::ChromeClient::createModalDialog): 9566 (WebKit::ChromeClient::show): 9567 (WebKit::ChromeClient::canRunModal): 9568 (WebKit::ChromeClient::runModal): 9569 (WebKit::ChromeClient::setToolbarsVisible): 9570 (WebKit::ChromeClient::toolbarsVisible): 9571 (WebKit::ChromeClient::setStatusbarVisible): 9572 (WebKit::ChromeClient::statusbarVisible): 9573 (WebKit::ChromeClient::setScrollbarsVisible): 9574 (WebKit::ChromeClient::scrollbarsVisible): 9575 (WebKit::ChromeClient::setMenubarVisible): 9576 (WebKit::ChromeClient::menubarVisible): 9577 (WebKit::ChromeClient::setResizable): 9578 (WebKit::ChromeClient::closeWindowSoon): 9579 (WebKit::ChromeClient::canTakeFocus): 9580 (WebKit::ChromeClient::takeFocus): 9581 (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel): 9582 (WebKit::ChromeClient::runBeforeUnloadConfirmPanel): 9583 (WebKit::ChromeClient::runJavaScriptAlert): 9584 (WebKit::ChromeClient::runJavaScriptConfirm): 9585 (WebKit::ChromeClient::setStatusbarText): 9586 (WebKit::ChromeClient::shouldInterruptJavaScript): 9587 (WebKit::ChromeClient::tabsToLinks): 9588 (WebKit::ChromeClient::windowResizerRect): 9589 (WebKit::ChromeClient::addToDirtyRegion): 9590 (WebKit::ChromeClient::scrollBackingStore): 9591 (WebKit::ChromeClient::updateBackingStore): 9592 (WebKit::ChromeClient::mouseDidMoveOverElement): 9593 (WebKit::ChromeClient::setToolTip): 9594 * WebCoreSupport/ChromeClientGtk.h: 9595 * WebCoreSupport/ContextMenuClientGtk.cpp: 9596 (WebKit::ContextMenuClient::contextMenuDestroyed): 9597 (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems): 9598 (WebKit::ContextMenuClient::contextMenuItemSelected): 9599 (WebKit::ContextMenuClient::downloadURL): 9600 (WebKit::ContextMenuClient::copyImageToClipboard): 9601 (WebKit::ContextMenuClient::searchWithGoogle): 9602 (WebKit::ContextMenuClient::lookUpInDictionary): 9603 (WebKit::ContextMenuClient::speak): 9604 * WebCoreSupport/ContextMenuClientGtk.h: 9605 * WebCoreSupport/EditorClientGtk.cpp: 9606 (WebKit::EditorClient::shouldDeleteRange): 9607 (WebKit::EditorClient::shouldShowDeleteInterface): 9608 (WebKit::EditorClient::isContinuousSpellCheckingEnabled): 9609 (WebKit::EditorClient::isGrammarCheckingEnabled): 9610 (WebKit::EditorClient::spellCheckerDocumentTag): 9611 (WebKit::EditorClient::shouldBeginEditing): 9612 (WebKit::EditorClient::shouldEndEditing): 9613 (WebKit::EditorClient::shouldInsertText): 9614 (WebKit::EditorClient::shouldChangeSelectedRange): 9615 (WebKit::EditorClient::shouldApplyStyle): 9616 (WebKit::EditorClient::shouldMoveRangeAfterDelete): 9617 (WebKit::EditorClient::didBeginEditing): 9618 (WebKit::EditorClient::respondToChangedContents): 9619 (WebKit::EditorClient::respondToChangedSelection): 9620 (WebKit::EditorClient::didEndEditing): 9621 (WebKit::EditorClient::didWriteSelectionToPasteboard): 9622 (WebKit::EditorClient::didSetSelectionTypesForPasteboard): 9623 (WebKit::EditorClient::selectWordBeforeMenuEvent): 9624 (WebKit::EditorClient::isEditable): 9625 (WebKit::EditorClient::registerCommandForUndo): 9626 (WebKit::EditorClient::registerCommandForRedo): 9627 (WebKit::EditorClient::clearUndoRedoOperations): 9628 (WebKit::EditorClient::canUndo): 9629 (WebKit::EditorClient::canRedo): 9630 (WebKit::EditorClient::undo): 9631 (WebKit::EditorClient::redo): 9632 (WebKit::EditorClient::shouldInsertNode): 9633 (WebKit::EditorClient::pageDestroyed): 9634 (WebKit::EditorClient::smartInsertDeleteEnabled): 9635 (WebKit::EditorClient::toggleContinuousSpellChecking): 9636 (WebKit::EditorClient::toggleGrammarChecking): 9637 (WebKit::EditorClient::handleInputMethodKeypress): 9638 (WebKit::EditorClient::EditorClient): 9639 (WebKit::EditorClient::textFieldDidBeginEditing): 9640 (WebKit::EditorClient::textFieldDidEndEditing): 9641 (WebKit::EditorClient::textDidChangeInTextField): 9642 (WebKit::EditorClient::doTextFieldCommandFromEvent): 9643 (WebKit::EditorClient::textWillBeDeletedInTextField): 9644 (WebKit::EditorClient::textDidChangeInTextArea): 9645 (WebKit::EditorClient::ignoreWordInSpellDocument): 9646 (WebKit::EditorClient::learnWord): 9647 (WebKit::EditorClient::checkSpellingOfString): 9648 (WebKit::EditorClient::checkGrammarOfString): 9649 (WebKit::EditorClient::updateSpellingUIWithGrammarString): 9650 (WebKit::EditorClient::updateSpellingUIWithMisspelledWord): 9651 (WebKit::EditorClient::showSpellingUI): 9652 (WebKit::EditorClient::spellingUIIsShowing): 9653 * WebCoreSupport/EditorClientGtk.h: 9654 * WebCoreSupport/FrameLoaderClientGtk.cpp: 9655 (WebKit::FrameLoaderClient::FrameLoaderClient): 9656 (WebKit::FrameLoaderClient::userAgent): 9657 (WebKit::FrameLoaderClient::createDocumentLoader): 9658 (WebKit::FrameLoaderClient::committedLoad): 9659 (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): 9660 (WebKit::FrameLoaderClient::dispatchDidCancelAuthenticationChallenge): 9661 (WebKit::FrameLoaderClient::dispatchWillSendRequest): 9662 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest): 9663 (WebKit::FrameLoaderClient::postProgressStartedNotification): 9664 (WebKit::FrameLoaderClient::postProgressFinishedNotification): 9665 (WebKit::FrameLoaderClient::frameLoaderDestroyed): 9666 (WebKit::FrameLoaderClient::dispatchDidReceiveResponse): 9667 (WebKit::FrameLoaderClient::createPlugin): 9668 (WebKit::FrameLoaderClient::redirectDataToPlugin): 9669 (WebKit::FrameLoaderClient::createJavaAppletWidget): 9670 (WebKit::FrameLoaderClient::overrideMediaType): 9671 (WebKit::FrameLoaderClient::windowObjectCleared): 9672 (WebKit::FrameLoaderClient::setMainFrameDocumentReady): 9673 (WebKit::FrameLoaderClient::hasWebView): 9674 (WebKit::FrameLoaderClient::hasFrameView): 9675 (WebKit::FrameLoaderClient::dispatchDidFinishLoad): 9676 (WebKit::FrameLoaderClient::frameLoadCompleted): 9677 (WebKit::FrameLoaderClient::saveViewStateToItem): 9678 (WebKit::FrameLoaderClient::restoreViewState): 9679 (WebKit::FrameLoaderClient::privateBrowsingEnabled): 9680 (WebKit::FrameLoaderClient::makeDocumentView): 9681 (WebKit::FrameLoaderClient::makeRepresentation): 9682 (WebKit::FrameLoaderClient::forceLayout): 9683 (WebKit::FrameLoaderClient::forceLayoutForNonHTML): 9684 (WebKit::FrameLoaderClient::setCopiesOnScroll): 9685 (WebKit::FrameLoaderClient::detachedFromParent1): 9686 (WebKit::FrameLoaderClient::detachedFromParent2): 9687 (WebKit::FrameLoaderClient::detachedFromParent3): 9688 (WebKit::FrameLoaderClient::detachedFromParent4): 9689 (WebKit::FrameLoaderClient::loadedFromCachedPage): 9690 (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents): 9691 (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): 9692 (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect): 9693 (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect): 9694 (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage): 9695 (WebKit::FrameLoaderClient::dispatchWillClose): 9696 (WebKit::FrameLoaderClient::dispatchDidReceiveIcon): 9697 (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad): 9698 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle): 9699 (WebKit::FrameLoaderClient::dispatchDidCommitLoad): 9700 (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad): 9701 (WebKit::FrameLoaderClient::dispatchDidFirstLayout): 9702 (WebKit::FrameLoaderClient::dispatchShow): 9703 (WebKit::FrameLoaderClient::cancelPolicyCheck): 9704 (WebKit::FrameLoaderClient::dispatchDidLoadMainResource): 9705 (WebKit::FrameLoaderClient::revertToProvisionalState): 9706 (WebKit::FrameLoaderClient::clearUnarchivingState): 9707 (WebKit::FrameLoaderClient::willChangeTitle): 9708 (WebKit::FrameLoaderClient::didChangeTitle): 9709 (WebKit::FrameLoaderClient::finishedLoading): 9710 (WebKit::FrameLoaderClient::finalSetupForReplace): 9711 (WebKit::FrameLoaderClient::setDefersLoading): 9712 (WebKit::FrameLoaderClient::isArchiveLoadPending): 9713 (WebKit::FrameLoaderClient::cancelPendingArchiveLoad): 9714 (WebKit::FrameLoaderClient::clearArchivedResources): 9715 (WebKit::FrameLoaderClient::canHandleRequest): 9716 (WebKit::FrameLoaderClient::canShowMIMEType): 9717 (WebKit::FrameLoaderClient::representationExistsForURLScheme): 9718 (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme): 9719 (WebKit::FrameLoaderClient::provisionalLoadStarted): 9720 (WebKit::FrameLoaderClient::didFinishLoad): 9721 (WebKit::FrameLoaderClient::setDocumentViewFromCachedPage): 9722 (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength): 9723 (WebKit::FrameLoaderClient::dispatchDidFinishLoading): 9724 (WebKit::FrameLoaderClient::dispatchDidFailLoading): 9725 (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache): 9726 (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad): 9727 (WebKit::FrameLoaderClient::dispatchDidFailLoad): 9728 (WebKit::FrameLoaderClient::download): 9729 (WebKit::FrameLoaderClient::cancelledError): 9730 (WebKit::FrameLoaderClient::blockedError): 9731 (WebKit::FrameLoaderClient::cannotShowURLError): 9732 (WebKit::FrameLoaderClient::interruptForPolicyChangeError): 9733 (WebKit::FrameLoaderClient::cannotShowMIMETypeError): 9734 (WebKit::FrameLoaderClient::fileDoesNotExistError): 9735 (WebKit::FrameLoaderClient::shouldFallBack): 9736 (WebKit::FrameLoaderClient::willUseArchive): 9737 (WebKit::FrameLoaderClient::saveDocumentViewToCachedPage): 9738 (WebKit::FrameLoaderClient::canCachePage): 9739 (WebKit::FrameLoaderClient::dispatchCreatePage): 9740 (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy): 9741 * WebCoreSupport/FrameLoaderClientGtk.h: 9742 * WebCoreSupport/InspectorClientGtk.cpp: 9743 (WebKit::InspectorClient::inspectorDestroyed): 9744 (WebKit::InspectorClient::createPage): 9745 (WebKit::InspectorClient::showWindow): 9746 (WebKit::InspectorClient::closeWindow): 9747 (WebKit::InspectorClient::attachWindow): 9748 (WebKit::InspectorClient::detachWindow): 9749 (WebKit::InspectorClient::highlight): 9750 (WebKit::InspectorClient::hideHighlight): 9751 * WebCoreSupport/InspectorClientGtk.h: 9752 97532007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 9754 9755 Reviewed by Adam. 9756 9757 As of http://bugs.webkit.org/show_bug.cgi?id=14727 move the 9758 various *ClientGdk.{cpp,h} files from WebCore to WebKit/gtk/WebCoreSupport and 9759 rename it from Gdk to Gtk. 9760 9761 * Api/webkitgtkdefines.h: 9762 * Api/webkitgtkframe.cpp: 9763 * Api/webkitgtkframe.h: 9764 * Api/webkitgtkglobal.cpp: 9765 * Api/webkitgtkglobal.h: 9766 * Api/webkitgtknetworkrequest.cpp: 9767 * Api/webkitgtknetworkrequest.h: 9768 * Api/webkitgtkpage.cpp: 9769 * Api/webkitgtkpage.h: 9770 * Api/webkitgtkprivate.cpp: 9771 * Api/webkitgtkprivate.h: 9772 * Api/webkitgtksettings.cpp: 9773 * Api/webkitgtksettings.h: 9774 * WebCoreSupport/ChromeClientGtk.cpp: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.cpp. 9775 (WebKitGtk::ChromeClientGtk::ChromeClientGtk): 9776 (WebKitGtk::ChromeClientGtk::chromeDestroyed): 9777 (WebKitGtk::ChromeClientGtk::windowRect): 9778 (WebKitGtk::ChromeClientGtk::setWindowRect): 9779 (WebKitGtk::ChromeClientGtk::pageRect): 9780 (WebKitGtk::ChromeClientGtk::scaleFactor): 9781 (WebKitGtk::ChromeClientGtk::focus): 9782 (WebKitGtk::ChromeClientGtk::unfocus): 9783 (WebKitGtk::ChromeClientGtk::createWindow): 9784 (WebKitGtk::ChromeClientGtk::createModalDialog): 9785 (WebKitGtk::ChromeClientGtk::show): 9786 (WebKitGtk::ChromeClientGtk::canRunModal): 9787 (WebKitGtk::ChromeClientGtk::runModal): 9788 (WebKitGtk::ChromeClientGtk::setToolbarsVisible): 9789 (WebKitGtk::ChromeClientGtk::toolbarsVisible): 9790 (WebKitGtk::ChromeClientGtk::setStatusbarVisible): 9791 (WebKitGtk::ChromeClientGtk::statusbarVisible): 9792 (WebKitGtk::ChromeClientGtk::setScrollbarsVisible): 9793 (WebKitGtk::ChromeClientGtk::scrollbarsVisible): 9794 (WebKitGtk::ChromeClientGtk::setMenubarVisible): 9795 (WebKitGtk::ChromeClientGtk::menubarVisible): 9796 (WebKitGtk::ChromeClientGtk::setResizable): 9797 (WebKitGtk::ChromeClientGtk::closeWindowSoon): 9798 (WebKitGtk::ChromeClientGtk::canTakeFocus): 9799 (WebKitGtk::ChromeClientGtk::takeFocus): 9800 (WebKitGtk::ChromeClientGtk::canRunBeforeUnloadConfirmPanel): 9801 (WebKitGtk::ChromeClientGtk::runBeforeUnloadConfirmPanel): 9802 (WebKitGtk::ChromeClientGtk::addMessageToConsole): 9803 (WebKitGtk::ChromeClientGtk::runJavaScriptAlert): 9804 (WebKitGtk::ChromeClientGtk::runJavaScriptConfirm): 9805 (WebKitGtk::ChromeClientGtk::runJavaScriptPrompt): 9806 (WebKitGtk::ChromeClientGtk::setStatusbarText): 9807 (WebKitGtk::ChromeClientGtk::shouldInterruptJavaScript): 9808 (WebKitGtk::ChromeClientGtk::tabsToLinks): 9809 (WebKitGtk::ChromeClientGtk::windowResizerRect): 9810 (WebKitGtk::ChromeClientGtk::addToDirtyRegion): 9811 (WebKitGtk::ChromeClientGtk::scrollBackingStore): 9812 (WebKitGtk::ChromeClientGtk::updateBackingStore): 9813 (WebKitGtk::ChromeClientGtk::mouseDidMoveOverElement): 9814 (WebKitGtk::ChromeClientGtk::setToolTip): 9815 * WebCoreSupport/ChromeClientGtk.h: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.h. 9816 (WebKitGtk::ChromeClientGtk::webPage): 9817 * WebCoreSupport/ContextMenuClientGtk.cpp: Renamed from WebCore/page/gdk/ContextMenuClientGdk.cpp. 9818 (WebCore::ContextMenuClientGtk::contextMenuDestroyed): 9819 (WebCore::ContextMenuClientGtk::getCustomMenuFromDefaultItems): 9820 (WebCore::ContextMenuClientGtk::contextMenuItemSelected): 9821 (WebCore::ContextMenuClientGtk::downloadURL): 9822 (WebCore::ContextMenuClientGtk::copyImageToClipboard): 9823 (WebCore::ContextMenuClientGtk::searchWithGoogle): 9824 (WebCore::ContextMenuClientGtk::lookUpInDictionary): 9825 (WebCore::ContextMenuClientGtk::speak): 9826 (WebCore::ContextMenuClientGtk::stopSpeaking): 9827 * WebCoreSupport/ContextMenuClientGtk.h: Renamed from WebCore/page/gdk/ContextMenuClientGdk.h. 9828 * WebCoreSupport/EditorClientGtk.cpp: Renamed from WebCore/platform/gdk/EditorClientGdk.cpp. 9829 (WebCore::EditorClientGtk::shouldDeleteRange): 9830 (WebCore::EditorClientGtk::shouldShowDeleteInterface): 9831 (WebCore::EditorClientGtk::isContinuousSpellCheckingEnabled): 9832 (WebCore::EditorClientGtk::isGrammarCheckingEnabled): 9833 (WebCore::EditorClientGtk::spellCheckerDocumentTag): 9834 (WebCore::EditorClientGtk::shouldBeginEditing): 9835 (WebCore::EditorClientGtk::shouldEndEditing): 9836 (WebCore::EditorClientGtk::shouldInsertText): 9837 (WebCore::EditorClientGtk::shouldChangeSelectedRange): 9838 (WebCore::EditorClientGtk::shouldApplyStyle): 9839 (WebCore::EditorClientGtk::shouldMoveRangeAfterDelete): 9840 (WebCore::EditorClientGtk::didBeginEditing): 9841 (WebCore::EditorClientGtk::respondToChangedContents): 9842 (WebCore::EditorClientGtk::respondToChangedSelection): 9843 (WebCore::EditorClientGtk::didEndEditing): 9844 (WebCore::EditorClientGtk::didWriteSelectionToPasteboard): 9845 (WebCore::EditorClientGtk::didSetSelectionTypesForPasteboard): 9846 (WebCore::EditorClientGtk::selectWordBeforeMenuEvent): 9847 (WebCore::EditorClientGtk::isEditable): 9848 (WebCore::EditorClientGtk::registerCommandForUndo): 9849 (WebCore::EditorClientGtk::registerCommandForRedo): 9850 (WebCore::EditorClientGtk::clearUndoRedoOperations): 9851 (WebCore::EditorClientGtk::canUndo): 9852 (WebCore::EditorClientGtk::canRedo): 9853 (WebCore::EditorClientGtk::undo): 9854 (WebCore::EditorClientGtk::redo): 9855 (WebCore::EditorClientGtk::shouldInsertNode): 9856 (WebCore::EditorClientGtk::pageDestroyed): 9857 (WebCore::EditorClientGtk::smartInsertDeleteEnabled): 9858 (WebCore::EditorClientGtk::toggleContinuousSpellChecking): 9859 (WebCore::EditorClientGtk::toggleGrammarChecking): 9860 (WebCore::EditorClientGtk::handleKeypress): 9861 (WebCore::EditorClientGtk::handleInputMethodKeypress): 9862 (WebCore::EditorClientGtk::EditorClientGtk): 9863 (WebCore::EditorClientGtk::textFieldDidBeginEditing): 9864 (WebCore::EditorClientGtk::textFieldDidEndEditing): 9865 (WebCore::EditorClientGtk::textDidChangeInTextField): 9866 (WebCore::EditorClientGtk::doTextFieldCommandFromEvent): 9867 (WebCore::EditorClientGtk::textWillBeDeletedInTextField): 9868 (WebCore::EditorClientGtk::textDidChangeInTextArea): 9869 (WebCore::EditorClientGtk::ignoreWordInSpellDocument): 9870 (WebCore::EditorClientGtk::learnWord): 9871 (WebCore::EditorClientGtk::checkSpellingOfString): 9872 (WebCore::EditorClientGtk::checkGrammarOfString): 9873 (WebCore::EditorClientGtk::updateSpellingUIWithGrammarString): 9874 (WebCore::EditorClientGtk::updateSpellingUIWithMisspelledWord): 9875 (WebCore::EditorClientGtk::showSpellingUI): 9876 (WebCore::EditorClientGtk::spellingUIIsShowing): 9877 (WebCore::EditorClientGtk::getGuessesForWord): 9878 * WebCoreSupport/EditorClientGtk.h: Renamed from WebCore/platform/gdk/EditorClientGdk.h. 9879 * WebCoreSupport/FrameLoaderClientGtk.cpp: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.cpp. 9880 (WebCore::FrameLoaderClientGtk::FrameLoaderClientGtk): 9881 (WebCore::FrameLoaderClientGtk::userAgent): 9882 (WebCore::FrameLoaderClientGtk::createDocumentLoader): 9883 (WebCore::FrameLoaderClientGtk::dispatchWillSubmitForm): 9884 (WebCore::FrameLoaderClientGtk::committedLoad): 9885 (WebCore::FrameLoaderClientGtk::dispatchDidReceiveAuthenticationChallenge): 9886 (WebCore::FrameLoaderClientGtk::dispatchDidCancelAuthenticationChallenge): 9887 (WebCore::FrameLoaderClientGtk::dispatchWillSendRequest): 9888 (WebCore::FrameLoaderClientGtk::assignIdentifierToInitialRequest): 9889 (WebCore::FrameLoaderClientGtk::postProgressStartedNotification): 9890 (WebCore::FrameLoaderClientGtk::postProgressEstimateChangedNotification): 9891 (WebCore::FrameLoaderClientGtk::postProgressFinishedNotification): 9892 (WebCore::FrameLoaderClientGtk::frameLoaderDestroyed): 9893 (WebCore::FrameLoaderClientGtk::dispatchDidReceiveResponse): 9894 (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForMIMEType): 9895 (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNewWindowAction): 9896 (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNavigationAction): 9897 (WebCore::FrameLoaderClientGtk::createPlugin): 9898 (WebCore::FrameLoaderClientGtk::createFrame): 9899 (WebCore::FrameLoaderClientGtk::redirectDataToPlugin): 9900 (WebCore::FrameLoaderClientGtk::createJavaAppletWidget): 9901 (WebCore::FrameLoaderClientGtk::objectContentType): 9902 (WebCore::FrameLoaderClientGtk::overrideMediaType): 9903 (WebCore::FrameLoaderClientGtk::windowObjectCleared): 9904 (WebCore::FrameLoaderClientGtk::setMainFrameDocumentReady): 9905 (WebCore::FrameLoaderClientGtk::hasWebView): 9906 (WebCore::FrameLoaderClientGtk::hasFrameView): 9907 (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoad): 9908 (WebCore::FrameLoaderClientGtk::frameLoadCompleted): 9909 (WebCore::FrameLoaderClientGtk::saveViewStateToItem): 9910 (WebCore::FrameLoaderClientGtk::restoreViewState): 9911 (WebCore::FrameLoaderClientGtk::shouldGoToHistoryItem): 9912 (WebCore::FrameLoaderClientGtk::privateBrowsingEnabled): 9913 (WebCore::FrameLoaderClientGtk::makeDocumentView): 9914 (WebCore::FrameLoaderClientGtk::makeRepresentation): 9915 (WebCore::FrameLoaderClientGtk::forceLayout): 9916 (WebCore::FrameLoaderClientGtk::forceLayoutForNonHTML): 9917 (WebCore::FrameLoaderClientGtk::setCopiesOnScroll): 9918 (WebCore::FrameLoaderClientGtk::detachedFromParent1): 9919 (WebCore::FrameLoaderClientGtk::detachedFromParent2): 9920 (WebCore::FrameLoaderClientGtk::detachedFromParent3): 9921 (WebCore::FrameLoaderClientGtk::detachedFromParent4): 9922 (WebCore::FrameLoaderClientGtk::loadedFromCachedPage): 9923 (WebCore::FrameLoaderClientGtk::dispatchDidHandleOnloadEvents): 9924 (WebCore::FrameLoaderClientGtk::dispatchDidReceiveServerRedirectForProvisionalLoad): 9925 (WebCore::FrameLoaderClientGtk::dispatchDidCancelClientRedirect): 9926 (WebCore::FrameLoaderClientGtk::dispatchWillPerformClientRedirect): 9927 (WebCore::FrameLoaderClientGtk::dispatchDidChangeLocationWithinPage): 9928 (WebCore::FrameLoaderClientGtk::dispatchWillClose): 9929 (WebCore::FrameLoaderClientGtk::dispatchDidReceiveIcon): 9930 (WebCore::FrameLoaderClientGtk::dispatchDidStartProvisionalLoad): 9931 (WebCore::FrameLoaderClientGtk::dispatchDidReceiveTitle): 9932 (WebCore::FrameLoaderClientGtk::dispatchDidCommitLoad): 9933 (WebCore::FrameLoaderClientGtk::dispatchDidFinishDocumentLoad): 9934 (WebCore::FrameLoaderClientGtk::dispatchDidFirstLayout): 9935 (WebCore::FrameLoaderClientGtk::dispatchShow): 9936 (WebCore::FrameLoaderClientGtk::cancelPolicyCheck): 9937 (WebCore::FrameLoaderClientGtk::dispatchDidLoadMainResource): 9938 (WebCore::FrameLoaderClientGtk::revertToProvisionalState): 9939 (WebCore::FrameLoaderClientGtk::clearUnarchivingState): 9940 (WebCore::FrameLoaderClientGtk::willChangeTitle): 9941 (WebCore::FrameLoaderClientGtk::didChangeTitle): 9942 (WebCore::FrameLoaderClientGtk::finishedLoading): 9943 (WebCore::FrameLoaderClientGtk::finalSetupForReplace): 9944 (WebCore::FrameLoaderClientGtk::setDefersLoading): 9945 (WebCore::FrameLoaderClientGtk::isArchiveLoadPending): 9946 (WebCore::FrameLoaderClientGtk::cancelPendingArchiveLoad): 9947 (WebCore::FrameLoaderClientGtk::clearArchivedResources): 9948 (WebCore::FrameLoaderClientGtk::canHandleRequest): 9949 (WebCore::FrameLoaderClientGtk::canShowMIMEType): 9950 (WebCore::FrameLoaderClientGtk::representationExistsForURLScheme): 9951 (WebCore::FrameLoaderClientGtk::generatedMIMETypeForURLScheme): 9952 (WebCore::FrameLoaderClientGtk::provisionalLoadStarted): 9953 (WebCore::FrameLoaderClientGtk::didFinishLoad): 9954 (WebCore::FrameLoaderClientGtk::prepareForDataSourceReplacement): 9955 (WebCore::FrameLoaderClientGtk::setTitle): 9956 (WebCore::FrameLoaderClientGtk::setDocumentViewFromCachedPage): 9957 (WebCore::FrameLoaderClientGtk::dispatchDidReceiveContentLength): 9958 (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoading): 9959 (WebCore::FrameLoaderClientGtk::dispatchDidFailLoading): 9960 (WebCore::FrameLoaderClientGtk::dispatchDidLoadResourceFromMemoryCache): 9961 (WebCore::FrameLoaderClientGtk::dispatchDidFailProvisionalLoad): 9962 (WebCore::FrameLoaderClientGtk::dispatchDidFailLoad): 9963 (WebCore::FrameLoaderClientGtk::download): 9964 (WebCore::FrameLoaderClientGtk::cancelledError): 9965 (WebCore::FrameLoaderClientGtk::blockedError): 9966 (WebCore::FrameLoaderClientGtk::cannotShowURLError): 9967 (WebCore::FrameLoaderClientGtk::interruptForPolicyChangeError): 9968 (WebCore::FrameLoaderClientGtk::cannotShowMIMETypeError): 9969 (WebCore::FrameLoaderClientGtk::fileDoesNotExistError): 9970 (WebCore::FrameLoaderClientGtk::shouldFallBack): 9971 (WebCore::FrameLoaderClientGtk::willUseArchive): 9972 (WebCore::FrameLoaderClientGtk::saveDocumentViewToCachedPage): 9973 (WebCore::FrameLoaderClientGtk::canCachePage): 9974 (WebCore::FrameLoaderClientGtk::dispatchCreatePage): 9975 (WebCore::FrameLoaderClientGtk::dispatchUnableToImplementPolicy): 9976 * WebCoreSupport/FrameLoaderClientGtk.h: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.h. 9977 (WebCore::FrameLoaderClientGtk::~FrameLoaderClientGtk): 9978 (WebCore::FrameLoaderClientGtk::webFrame): 9979 * WebCoreSupport/InspectorClientGtk.cpp: Renamed from WebCore/page/gdk/InspectorClientGdk.cpp. 9980 (WebCore::InspectorClientGtk::inspectorDestroyed): 9981 (WebCore::InspectorClientGtk::createPage): 9982 (WebCore::InspectorClientGtk::showWindow): 9983 (WebCore::InspectorClientGtk::closeWindow): 9984 (WebCore::InspectorClientGtk::attachWindow): 9985 (WebCore::InspectorClientGtk::detachWindow): 9986 (WebCore::InspectorClientGtk::highlight): 9987 (WebCore::InspectorClientGtk::hideHighlight): 9988 (WebCore::InspectorClientGtk::inspectedURLChanged): 9989 * WebCoreSupport/InspectorClientGtk.h: Renamed from WebCore/page/gdk/InspectorClientGdk.h. 9990 99912007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 9992 9993 Build fix. 9994 9995 * Api/webkitgtkframe.cpp: 9996 99972007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 9998 9999 Reviewed by Adam. 10000 10001 Remove the create_frame virtual method of WebKitGtkPage. This method was inspired 10002 by the Qt port but to be useful for reimplementations WebKitGtkFrameData would need 10003 to export/expose WebCore types. WebView doesn't offer such a method so I decided to 10004 remove it. 10005 Add a internal constructor to WebKitGtkFrame to be used for constructing Sub-Frames. This 10006 is currently used by FrameLoaderClientGdk::createFrame. 10007 10008 * Api/webkitgtkframe.cpp: 10009 * Api/webkitgtkframedata.cpp: Removed. 10010 * Api/webkitgtkframedata.h: Removed. 10011 * Api/webkitgtkpage.cpp: 10012 * Api/webkitgtkpage.h: 10013 * Api/webkitgtkprivate.h: 10014 100152007-08-10 Holger Hans Peter Freyther <zecke@selfish.org> 10016 10017 Reviewed by Adam. 10018 10019 Follow the changes of ScrollView in WebCore and call setContainingWindow, set the 10020 GtkAdjustment of the GtkLayout and reimplement the set_scroll_adjustments method and pass 10021 the GtkAdjustments to ScrollView. 10022 This makes having one GdkWindow for the complete FrameTree possible. 10023 10024 10025 * gtk/Api/webkitgtkframe.cpp: 10026 * gtk/Api/webkitgtkpage.cpp: 10027 100282007-08-08 Holger Hans Peter Freyther <zecke@selfish.org> 10029 10030 Reviewed by Niko. 10031 10032 We only need to set the Settings of the Page once so do it in 10033 WebKitGtkPage instead of WebKitGtkFrame. 10034 10035 * gtk/Api/webkitgtkframe.cpp: 10036 * gtk/Api/webkitgtkpage.cpp: 10037 100382007-08-08 Holger Hans Peter Freyther <zecke@selfish.org> 10039 10040 Reviewed by Niko. 10041 10042 Instead of reimplementing the general event method, reimplement 10043 the specific mouse, expose, keyboard event methods. 10044 10045 Call the finalize implementation of the base class from WebKitGtkPage 10046 and WebKitGtkFrame. 10047 10048 * gtk/Api/webkitgtkframe.cpp: 10049 * gtk/Api/webkitgtkpage.cpp: 10050 100512007-08-08 Holger Hans Peter Freyther <zecke@selfish.org> 10052 10053 Reviewed by Niko. 10054 10055 Remove the custom painting in favor of the Widget::paint 10056 implementation. 10057 10058 * gtk/Api/webkitgtkpage.cpp: 10059 100602007-08-08 Holger Hans Peter Freyther <zecke@selfish.org> 10061 10062 Reviewed by Adam. 10063 10064 Moved code from class FrameGdk into WebKitGtkFrame. Update the 10065 webkitgrkprivate.h header file to not include FrameGdk.h. 10066 10067 * gtk/Api/webkitgtkframe.cpp: 10068 * gtk/Api/webkitgtkprivate.h: 10069 100702007-08-08 Holger Hans Peter Freyther <zecke@selfish.org> 10071 10072 Reviewed by Adam. 10073 10074 Change variable names to follow the Coding-Style. Replace occurences 10075 of a_b with aB and place the '*' correctly. 10076 10077 * gtk/Api/webkitgtkframe.cpp: 10078 * gtk/Api/webkitgtkpage.cpp: 10079 * gtk/Api/webkitgtkprivate.h: 10080 100812007-08-08 Holger Hans Peter Freyther <zecke@selfish.org> 10082 10083 Reviewed by Adam. 10084 10085 Reimplement GtkWidget::event and handle the keyboard and mouse 10086 events inside WebKitGtkPage. 10087 10088 * gtk/Api/webkitgtkpage.cpp: 10089 (FrameGdkExposeData::frame_gdk_expose_child): 10090 (FrameGdkExposeData::webkit_gtk_page_rendering_area_handle_gdk_event): 10091 (FrameGdkExposeData::webkit_gtk_page_register_rendering_area_events): 10092 (FrameGdkExposeData::webkit_gtk_page_class_init): 10093 100942007-08-07 Xan Lopez <xan@gnome.org> 10095 10096 Reviewed by Mark Rowe. 10097 10098 http://bugs.webkit.org/show_bug.cgi?id=14815 10099 [gtk] API implementation: reload 10100 10101 * gtk/Api/webkitgtkpage.cpp: Implement the webkit_gtk_page_reload() 10102 function. 10103 101042007-07-30 Diego Escalante Urrelo <diegoe@gnome.org> 10105 10106 Reviewed by Adam. 10107 10108 http://bugs.webkit.org/show_bug.cgi?id=14806 10109 Implement can_go_backward and can_go_forward in webkitgtkpage.cpp 10110 10111 * gtk/Api/webkitgtkpage.cpp: Implement webkit_gtk_page_can_go_backward() and 10112 webkit_gtk_page_can_go_forward() functions. 10113 101142007-07-30 Diego Escalante Urrelo <diegoe@gnome.org> 10115 10116 Reviewed by Alp Toker. 10117 10118 http://bugs.webkit.org/show_bug.cgi?id=14810 10119 Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp 10120 10121 This is the proper fix for #14810. 10122 10123 * gtk/Api/webkitgtkframe.cpp: 10124 * gtk/Api/webkitgtkpage.cpp: Fix the marshaller type of the "load_finished" signal and 10125 correct the class_offset parameters. 10126 101272007-07-29 Diego Escalante Urrelo <diegoe@gnome.org> 10128 10129 Reviewed by Alp Toker. 10130 10131 http://bugs.webkit.org/show_bug.cgi?id=14810 10132 Bad n_params on load_finished's g_signal_new in webkitgtkpage.cpp 10133 10134 * gtk/Api/webkitgtkpage.cpp: Use a correct n_params value and the corresponding types for 10135 them in the "load_finished" signal. 10136 101372007-07-22 Holger Hans Peter Freyther <zecke@selfish.org> 10138 10139 Reviewed by Adam. 10140 10141 Add the first API and partial implementation of the WebKit/Gtk port as 10142 of http://bugs.webkit.org/show_bug.cgi?id=14678. 10143 10144 The delegates of WebView will be modeled as signals. Delegates like the 10145 WebPolicyDelegate will be implemented as signals with default handlers. 10146 10147 Start moving files to WebKit/gtk/WebCoreSupport. 10148 10149 * gtk: Added. 10150 * gtk/Api: Added. 10151 * gtk/Api/headers.pri: Added. 10152 * gtk/Api/webkitgtk-marshal.list: Added. 10153 * gtk/Api/webkitgtkdefines.h: Added. 10154 * gtk/Api/webkitgtkframe.cpp: Added. 10155 * gtk/Api/webkitgtkframe.h: Added. 10156 * gtk/Api/webkitgtkframedata.cpp: Added. 10157 * gtk/Api/webkitgtkframedata.h: Added. 10158 * gtk/Api/webkitgtkglobal.cpp: Added. 10159 * gtk/Api/webkitgtkglobal.h: Added. 10160 * gtk/Api/webkitgtknetworkrequest.cpp: Added. 10161 * gtk/Api/webkitgtknetworkrequest.h: Added. 10162 * gtk/Api/webkitgtkpage.cpp: Added. 10163 * gtk/Api/webkitgtkpage.h: Added. 10164 * gtk/Api/webkitgtkprivate.cpp: Added. 10165 * gtk/Api/webkitgtkprivate.h: Added. 10166 * gtk/Api/webkitgtksettings.cpp: Added. 10167 * gtk/Api/webkitgtksettings.h: Added. 10168 * gtk/WebCoreSupport: Added. 10169 * gtk/WebCoreSupport/ChromeClientGdk.cpp: Added. 10170 (WebCore::ChromeClientGdk::ChromeClientGdk): 10171 (WebCore::ChromeClientGdk::chromeDestroyed): 10172 (WebCore::ChromeClientGdk::windowRect): 10173 (WebCore::ChromeClientGdk::setWindowRect): 10174 (WebCore::ChromeClientGdk::pageRect): 10175 (WebCore::ChromeClientGdk::scaleFactor): 10176 (WebCore::ChromeClientGdk::focus): 10177 (WebCore::ChromeClientGdk::unfocus): 10178 (WebCore::ChromeClientGdk::createWindow): 10179 (WebCore::ChromeClientGdk::createModalDialog): 10180 (WebCore::ChromeClientGdk::show): 10181 (WebCore::ChromeClientGdk::canRunModal): 10182 (WebCore::ChromeClientGdk::runModal): 10183 (WebCore::ChromeClientGdk::setToolbarsVisible): 10184 (WebCore::ChromeClientGdk::toolbarsVisible): 10185 (WebCore::ChromeClientGdk::setStatusbarVisible): 10186 (WebCore::ChromeClientGdk::statusbarVisible): 10187 (WebCore::ChromeClientGdk::setScrollbarsVisible): 10188 (WebCore::ChromeClientGdk::scrollbarsVisible): 10189 (WebCore::ChromeClientGdk::setMenubarVisible): 10190 (WebCore::ChromeClientGdk::menubarVisible): 10191 (WebCore::ChromeClientGdk::setResizable): 10192 (WebCore::ChromeClientGdk::closeWindowSoon): 10193 (WebCore::ChromeClientGdk::canTakeFocus): 10194 (WebCore::ChromeClientGdk::takeFocus): 10195 (WebCore::ChromeClientGdk::canRunBeforeUnloadConfirmPanel): 10196 (WebCore::ChromeClientGdk::runBeforeUnloadConfirmPanel): 10197 (WebCore::ChromeClientGdk::addMessageToConsole): 10198 (WebCore::ChromeClientGdk::runJavaScriptAlert): 10199 (WebCore::ChromeClientGdk::runJavaScriptConfirm): 10200 (WebCore::ChromeClientGdk::runJavaScriptPrompt): 10201 (WebCore::ChromeClientGdk::setStatusbarText): 10202 (WebCore::ChromeClientGdk::shouldInterruptJavaScript): 10203 (WebCore::ChromeClientGdk::tabsToLinks): 10204 (WebCore::ChromeClientGdk::windowResizerRect): 10205 (WebCore::ChromeClientGdk::addToDirtyRegion): 10206 (WebCore::ChromeClientGdk::scrollBackingStore): 10207 (WebCore::ChromeClientGdk::updateBackingStore): 10208 (WebCore::ChromeClientGdk::mouseDidMoveOverElement): 10209 (WebCore::ChromeClientGdk::setToolTip): 10210 (WebCore::ChromeClientGdk::print): 10211 * gtk/WebCoreSupport/ChromeClientGdk.h: Added. 10212 10213