1 2010-12-09 Joone Hur <joone@kldp.org>
3 Reviewed by Martin Robinson.
5 [GTK] Support for viewport meta tag
6 https://bugs.webkit.org/show_bug.cgi?id=45443
8 This patch adds a new gobject to offer the viewport properties to user agents.
9 It is WebKitViewportAttributes that contains the viewport size, initial scale with limits,
10 and information about whether a user is able to scale the contents in the viewport.
12 This feature was introduced by Safari on the iPhone. For more information on
13 the viewport properties, refer to the Safari reference library at
14 http://developer.apple.com/safari/library/documentation/appleapplications/reference/safarihtmlref/articles/metatags.html
16 * GNUmakefile.am: Added webkitviewportattributes.h webkitviewportattributes.cpp.
17 * WebCoreSupport/ChromeClientGtk.cpp:
18 (WebKit::ChromeClient::dispatchViewportDataDidChange): Added this callback to know whether the viewport arguments is available.
19 * WebCoreSupport/ChromeClientGtk.h:
20 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
21 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport): Added this function to compute the viewport attributes with the given availableWidth and availableHeight.
22 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
23 * WebCoreSupport/FrameLoaderClientGtk.cpp:
24 (WebKit::postCommitFrameViewSetup): Invalidate the viewport attributes.
26 * webkit/webkitdefines.h:
27 * webkit/webkitprivate.h: Added webkitViewportAttributesRecompute as a private function.
28 * webkit/webkitviewportattributes.cpp: Added.
29 (webkit_viewport_attributes_class_init):
30 (webkit_viewport_attributes_init):
31 (webkit_viewport_attributes_get_property):
32 (webkit_viewport_attributes_set_property):
33 (webkitViewportAttributesRecompute): Recompute the optimal viewport attributes and emit the viewport-attributes-changed signal.
34 (webkit_viewport_attributes_recompute): a public API for calling webkitViewportAttributesRecompute.
35 * webkit/webkitviewportattributes.h: Added.
36 * webkit/webkitwebview.cpp:
37 (webkit_web_view_get_property): Added PROP_VIEWPORT_ATTRIBUTES.
38 (webkit_web_view_dispose): Deallocate the WebKitViewportAttributes instance.
39 (webkit_web_view_class_init): Added the viewport-attributes-recompute-requested and viewport-attributes-changed signals.
40 (webkit_web_view_init): Set the WebKitViewportAttributes instance.
41 (webkit_web_view_get_viewport_attributes): Added a getter to obtain the WebKitViewportAttributes instance held by the given WebKitWebView.
42 * webkit/webkitwebview.h:
43 * webkit/webkitwebviewprivate.h: Added WebKitViewportAttributes as a private variable.
45 2010-12-09 Xan Lopez <xlopez@igalia.com>
47 Reviewed by Martin Robinson.
49 Fix 'make install' woes with some versions of automake.
51 * GNUmakefile.am: use $(top_builddir) instead of $(builddir),
52 since we actually want a valid path for the file regardless of the
53 place from where the script is called.
55 2010-12-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
57 Build fix. Take webView{Enter,Exit}Fullscreen back out of the
58 WebKit namespace, and remove a function signature that got in by
59 mistake because of a bad merge.
61 * webkit/webkitprivate.h:
62 * webkit/webkitwebview.cpp:
66 2010-12-08 Brian Weinstein <bweinstein@apple.com>
68 Reviewed by John Sullivan.
70 Layering Violation in ContextMenu - member variable of type HitTestResult
71 https://bugs.webkit.org/show_bug.cgi?id=50586
73 Update users of ContextMenu and ContextMenuController to match where the new functions
76 * WebCoreSupport/ContextMenuClientGtk.cpp:
77 (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
79 2010-12-08 Martin Robinson <mrobinson@igalia.com>
81 Reviewed by John Sullivan.
83 [GTK] Layering violation in ContextMenuGtk.cpp
84 https://bugs.webkit.org/show_bug.cgi?id=50676
86 ContextMenuGtk accesses the page's ContextMenuController, which is a layering
87 violation. This was fixed for Mac with change r73469. We make a similar fix here
88 by moving the "activated" signal connection to the WebKit layer.
90 * webkit/webkitwebview.cpp:
91 (popupMenuItemActivated): Have ContextMenuController handle this signal.
92 (webkit_web_view_forward_context_menu_event): For all items in the untouched
93 context menu, connect their "activated" signal to the new popupMenuItemActivated
96 2010-12-08 Antonio Gomes <agomes@rim.com>
98 Reviewed by Martin Robinson.
100 [Gtk] Populate DumpRenderTreeSupportGtk (part III)
101 https://bugs.webkit.org/show_bug.cgi?id=48429
103 Adjusted some call sites of previously internal API declared
104 webkitprivate.h that have moved to DumpRenderTreeSupportGtk.
106 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
107 (DumpRenderTreeSupportGtk::gcCollectJavascriptObjects):
108 (DumpRenderTreeSupportGtk::gcCollectJavascriptObjectsOnAlternateThread):
109 (DumpRenderTreeSupportGtk::gcCountJavascriptObjects):
110 (DumpRenderTreeSupportGtk::layoutFrame):
111 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
112 * webkit/webkitprivate.h:
113 * webkit/webkitwebframe.cpp:
115 2010-12-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
117 Reviewed by Martin Robinson.
119 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
120 https://bugs.webkit.org/show_bug.cgi?id=50698
122 Split private bits of WebKitWebView to its own private header, and
123 to its implementation file. Take the opportunity to fix includes
124 sorting to comply with the style guide.
126 * WebCoreSupport/ChromeClientGtk.cpp:
127 (WebKit::ChromeClient::enterFullscreenForNode):
128 (WebKit::ChromeClient::exitFullscreenForNode):
129 * WebCoreSupport/ContextMenuClientGtk.cpp:
130 * WebCoreSupport/DragClientGtk.cpp:
131 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
132 * WebCoreSupport/EditorClientGtk.cpp:
133 * WebCoreSupport/FrameLoaderClientGtk.cpp:
134 * WebCoreSupport/InspectorClientGtk.cpp:
135 * WebCoreSupport/PasteboardHelperGtk.cpp:
136 * webkit/webkitprivate.cpp:
138 * webkit/webkitprivate.h:
139 * webkit/webkitwebbackforwardlist.cpp:
140 * webkit/webkitwebdatasource.cpp:
141 * webkit/webkitwebframe.cpp:
142 * webkit/webkitwebview.cpp:
145 (WebKit::webViewEnterFullscreen):
146 (WebKit::webViewExitFullscreen):
147 * webkit/webkitwebviewprivate.h: Added.
149 2010-12-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
151 Reviewed by Xan Lopez.
153 The storage for the subresources is a GHashTable which does not
154 guarantee order, so we need to make our checking more resilient.
156 * tests/testwebresource.c:
157 (test_web_resource_sub_resource_loading):
159 2010-12-08 Alejandro G. Castro <alex@igalia.com>
161 Reviewed by Gustavo Noronha Silva.
163 Fix assertion in the API test, we are requesting the favicon and
164 the subresource so we have to make sure we are assigning just the
167 * tests/testwebresource.c:
168 (resource_request_starting_sub_cb):
170 2010-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
172 Reviewed by Martin Robinson.
174 [GTK] clears the subresources prematurely
175 https://bugs.webkit.org/show_bug.cgi?id=50634
177 Make adding the main resource explicit, and only clear
178 subresources when the new load is committed, avoid clearing them
181 * WebCoreSupport/FrameLoaderClientGtk.cpp:
182 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
183 (WebKit::FrameLoaderClient::provisionalLoadStarted):
184 (WebKit::FrameLoaderClient::prepareForDataSourceReplacement):
185 (WebKit::postCommitFrameViewSetup):
186 * tests/testwebdatasource.c:
187 (notify_load_status_lifetime_cb):
188 (test_webkit_web_data_source_lifetime):
190 * webkit/webkitprivate.h:
191 * webkit/webkitwebview.cpp:
192 (webkit_web_view_add_main_resource):
193 (webkit_web_view_add_resource):
194 (webkit_web_view_clear_resources):
196 2010-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
198 Reviewed by Xan Lopez.
200 [GTK] testwebdatasource - unreachable test is broken
201 https://bugs.webkit.org/show_bug.cgi?id=50629
203 Fix, and disable testwebdatasource's unreachable test (it is not
204 passing now that it actually tests what it should). This also
205 fixes the wait timer to actually work as expected.
207 * tests/testwebdatasource.c:
208 (notify_load_status_unreachable_cb):
209 (notify_load_status_cb):
210 (test_webkit_web_data_source):
212 2010-12-07 Martin Robinson <mrobinson@igalia.com>
214 Unreviewed, rolling out r73392.
215 http://trac.webkit.org/changeset/73392
216 https://bugs.webkit.org/show_bug.cgi?id=50489
218 This commit caused crashes on the GTK+ bots
220 * WebCoreSupport/FrameLoaderClientGtk.cpp:
221 (WebKit::FrameLoaderClient::finishedLoading):
222 * webkit/webkitwebview.cpp:
223 (webkit_web_view_get_encoding):
225 2010-12-06 Nate Chapin <japhet@chromium.org>
227 Reviewed by Adam Barth.
229 Update calls to DocumentWriter.
230 https://bugs.webkit.org/show_bug.cgi?id=50489
232 * WebCoreSupport/FrameLoaderClientGtk.cpp:
233 (WebKit::FrameLoaderClient::finishedLoading):
234 * webkit/webkitwebview.cpp:
235 (webkit_web_view_get_encoding):
237 2010-12-06 Martin Robinson <mrobinson@igalia.com>
239 Reviewed by Xan Lopez.
241 [GTK] Build is broken after r73353
242 https://bugs.webkit.org/show_bug.cgi?id=50568
244 Fix the gtk-doc build by making all members of the cache model
245 enum public. gtk-doc does not support making only some enum
246 members private. We should also expose it so that users querying
247 the cache model do not get mysterious, undocumented results.
249 * webkit/webkitwebview.h: Fix gtk-doc for the cache model enum.
251 2010-12-06 Derek Weitzel <djw8605@gmail.com>
253 Reviewed by Martin Robinson.
255 [GTK] API Documentation referencing depreciated GTK_WIDGET_TOPLEVEL
256 https://bugs.webkit.org/show_bug.cgi?id=50512
258 Fixed reference to depreciated GTK_WIDGET_TOPLEVEL.
260 * webkit/webkitwebview.cpp:
262 2010-12-06 Joone Hur <joone@kldp.org>
264 Reviewed by Xan Lopez.
266 [GTK] The webkit cache model needs to be set when WebFrameLoaderClient::didPerformFirstNavigation() is called
267 https://bugs.webkit.org/show_bug.cgi?id=50430
269 * WebCoreSupport/FrameLoaderClientGtk.cpp:
270 (WebKit::FrameLoaderClient::didPerformFirstNavigation): Set the webview cache model.
271 * webkit/webkitprivate.cpp:
272 (webkit_init): Removed the code of setting the webview cache model.
274 2010-12-04 Antonio Gomes <agomes@rim.com>
276 Reviewed by Martin Robinson.
278 [Gtk] Populate DumpRenderTreeSupportGtk (Part II)
279 https://bugs.webkit.org/show_bug.cgi?id=48429
281 Moved more private method declared with WEBKIT_API to
282 DumpRenderTreeSupportGtk, since they were only being used by DRT.
284 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
285 (DumpRenderTreeSupportGtk::executeCoreCommandByName):
286 (DumpRenderTreeSupportGtk::isCommandEnabled):
287 (DumpRenderTreeSupportGtk::whiteListAccessFromOrigin):
288 (DumpRenderTreeSupportGtk::resetOriginAccessWhiteLists):
289 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
290 * webkit/webkitprivate.cpp:
291 * webkit/webkitprivate.h:
292 * webkit/webkitwebview.cpp:
294 2010-11-08 Antonio Gomes <agomes@rim.com>
296 Reviewed by Martin Robinson.
298 [Gtk] Populate DumpRenderTreeSupportGtk
299 https://bugs.webkit.org/show_bug.cgi?id=48429
301 Moved most of the webkit_web_frame* methods defined as private APIs in webkitprivate.h
302 to DumpRenderTreeSupportGtk, as static class methods. These methods had
303 not gone throught the formal API review process and were only being used by DRT for now.
305 The essence of each original method name were kept. For example
306 webkit_web_frame_get_children(...) was renamed to DumpRenderTreeSupportGtk::getFrameChildren(...),
309 Also some of the method bodies were changed to return non-glib types (gchar* -> CString).
311 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
312 (DumpRenderTreeSupportGtk::getFrameChildren):
313 (DumpRenderTreeSupportGtk::getInnerText):
314 (DumpRenderTreeSupportGtk::dumpRenderTree):
315 (DumpRenderTreeSupportGtk::counterValueForElementById):
316 (DumpRenderTreeSupportGtk::pageNumberForElementById):
317 (DumpRenderTreeSupportGtk::numberOfPagesForFrame):
318 (DumpRenderTreeSupportGtk::getPendingUnloadEventCount):
319 (DumpRenderTreeSupportGtk::pauseAnimation):
320 (DumpRenderTreeSupportGtk::pauseTransition):
321 (DumpRenderTreeSupportGtk::pauseSvgAnimation):
322 (DumpRenderTreeSupportGtk::markerTextForListItem):
323 (DumpRenderTreeSupportGtk::numberOfActiveAnimations):
324 (DumpRenderTreeSupportGtk::suspendAnimations):
325 (DumpRenderTreeSupportGtk::resumeAnimations):
326 (DumpRenderTreeSupportGtk::clearMainFrameName):
327 (DumpRenderTreeSupportGtk::getFocusedAccessibleElement):
328 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
329 * webkit/webkitprivate.h:
330 * webkit/webkitwebframe.cpp:
332 2010-12-02 Martin Robinson <mrobinson@igalia.com>
334 Reviewed by Xan Lopez.
336 [GTK] DumpRenderTree has two copies of JavaScriptCore
337 https://bugs.webkit.org/show_bug.cgi?id=49877
339 Keep WebKit/WebCore symbols hidden.
341 * GNUmakefile.am: Move the symbol visibility rules here, because
342 now JSC symbols are visible, but WebCore/WebKit symbols are hidden.
344 2010-12-02 Daniel Bates <dbates@rim.com>
346 Ignore WebKit/gtk/docs/GNUmakefile.in and WebKit/gtk/po/*.pot so that
347 these files do not appear in an svn stat. This change makes SVN
348 consistent with the current Git ignore behavior for these files.
350 * docs: Added property svn:ignore.
351 * po: Added property svn:ignore.
353 2010-12-01 Jia Pu <jpu@apple.com>
355 Reviewed by Darin Adler.
357 Support multiple correction candidates panel for misspelled word on Mac OS X.
358 https://bugs.webkit.org/show_bug.cgi?id=50137
359 <rdar://problem/8568059>
361 Adopted new function signature defined in base class.
363 * WebCoreSupport/EditorClientGtk.cpp:
364 (WebKit::EditorClient::getGuessesForWord):
365 * WebCoreSupport/EditorClientGtk.h:
367 2010-11-30 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
369 Reviewed by Martin Robinson.
371 [GTK] Fix wrong type in assert return value
372 https://bugs.webkit.org/show_bug.cgi?id=50208
374 Use appropriate return type in different g_return_val_if_fail(). This
375 removes some compiler warning.
377 * webkit/webkitwebdatasource.cpp:
378 (webkit_web_data_source_is_loading):
379 * webkit/webkitwebframe.cpp:
380 (webkit_web_frame_page_number_for_element_by_id):
381 (webkit_web_frame_number_of_pages):
383 2010-11-30 Mario Sanchez Prada <msanchez@igalia.com>
385 Reviewed by Chris Fleizach.
387 [GTK] Implement ROLE_COMBO_BOX
388 https://bugs.webkit.org/show_bug.cgi?id=25678
390 New test to check the implementation of the combo boxes.
393 (testWebkitAtkComboBox): New test, checking that the roles and the
394 implemented interfaces for a combo box and its descendants work.
395 (main): Added the new unit test.
397 2010-11-30 Carlos Garcia Campos <cgarcia@igalia.com>
399 Reviewed by Martin Robinson.
401 [GTK] Test fast/events/mouseover-mouseout2.html crashes
402 https://bugs.webkit.org/show_bug.cgi?id=50214
404 * WebCoreSupport/ChromeClientGtk.cpp:
405 (WebKit::ChromeClient::mouseDidMoveOverElement):
406 * webkit/webkitwebview.cpp:
407 (webkit_web_view_query_tooltip):
409 2010-11-30 Sheriff Bot <webkit.review.bot@gmail.com>
411 Unreviewed, rolling out r72764.
412 http://trac.webkit.org/changeset/72764
413 https://bugs.webkit.org/show_bug.cgi?id=50215
415 This change is causing assertion failures on the debug bots.
416 (Requested by mrobinson on #webkit).
418 * WebCoreSupport/FrameLoaderClientGtk.cpp:
419 (WebKit::notifyStatus):
423 2010-11-29 Xan Lopez <xlopez@igalia.com>
425 Reviewed by Martin Robinson.
427 * NEWS: update for 1.3.7 release.
429 2010-11-29 Carlos Garcia Campos <cgarcia@igalia.com>
431 Reviewed by Xan Lopez.
433 [Gtk] Tooltips should be fully keyboard accessible
434 https://bugs.webkit.org/show_bug.cgi?id=25525
436 Position the tooltip under the current focused element when the
437 tooltip has been triggered using the keyboard.
439 * webkit/webkitwebview.cpp:
440 (webkit_web_view_query_tooltip):
441 (webkit_web_view_show_help):
442 (webkit_web_view_class_init):
444 2010-11-29 Carlos Garcia Campos <cgarcia@igalia.com>
446 Reviewed by Xan Lopez.
448 [GTK] Tooltips not shown when scrolling
449 https://bugs.webkit.org/show_bug.cgi?id=50143
451 Convert tooltip area to window coordinates so that tooltips are
452 shown even after scrolling.
454 * WebCoreSupport/ChromeClientGtk.cpp:
455 (WebKit::ChromeClient::mouseDidMoveOverElement):
457 2010-11-26 Carlos Garcia Campos <cgarcia@igalia.com>
459 Reviewed by Xan Lopez.
461 [GTK] Inspector: add a way to inspect a WebKitDOMNode
462 https://bugs.webkit.org/show_bug.cgi?id=49903
464 * webkit/webkitwebinspector.cpp:
465 (webkit_web_inspector_inspect_node):
466 * webkit/webkitwebinspector.h:
468 2010-11-26 Mario Sanchez Prada <msanchez@igalia.com>
470 Reviewed by Xan Lopez.
472 [GTK] events missing when a document is (re)loaded
473 https://bugs.webkit.org/show_bug.cgi?id=25831
475 Emit the right signals when reloading a document.
477 * WebCoreSupport/FrameLoaderClientGtk.cpp:
478 (WebKit::notifyAccessibilityStatus): New function, to make sure
479 the signals involved in reloading a document are properly emitted.
480 (WebKit::notifyStatus): Also notify accessibility if enabled.
482 New unit test to check the signals are being actually emitted.
485 (stateChangedCb): Callback for 'state-change' signal emitted by
486 the accessible object associated to the webView.
487 (documentReloadCb): Callback for 'reload' signal.
488 (documentLoadCompleteCb): Callback for 'load-complete' signal.
489 (webviewLoadStatusChangedCb): Callback for 'notify::load-status'
490 signal, emitted by the WebKitWebView object (not the AtkObject).
491 (testWebkitAtkDocumentReloadEvents): New unit test.
492 (main): Added the new unit test.
494 2010-11-24 Xan Lopez <xlopez@igalia.com>
496 Reviewed by Martin Robinson.
498 [GTK] Make kit() methods return the proper type instead of gpointer
499 https://bugs.webkit.org/show_bug.cgi?id=50034
501 * WebCoreSupport/EditorClientGtk.cpp:
502 (WebKit::EditorClient::shouldDeleteRange): get rid of unneeded cast.
503 (WebKit::EditorClient::shouldShowDeleteInterface): ditto.
504 (WebKit::EditorClient::shouldBeginEditing): ditto.
505 (WebKit::EditorClient::shouldEndEditing): ditto.
506 (WebKit::EditorClient::shouldInsertText): ditto.
507 (WebKit::EditorClient::shouldChangeSelectedRange): ditto.
508 (WebKit::EditorClient::shouldApplyStyle): ditto.
509 (WebKit::EditorClient::shouldInsertNode): ditto.
510 * webkit/webkitprivate.cpp:
511 (WebKit::kit): ditto.
512 * webkit/webkitwebview.cpp:
513 (webkit_web_view_get_dom_document): ditto.
515 2010-11-24 Xan Lopez <xlopez@igalia.com>
517 Reviewed by Martin Robinson.
519 Fix crashes in GTK+ bots. Use kit() instead of wrapFoo, otherwise
520 the DOM objects won't be in the cache and we'll ASSERT when
523 * WebCoreSupport/EditorClientGtk.cpp:
524 (WebKit::EditorClient::shouldDeleteRange): use kit to get the
525 GObject wrapper for the DOM object.
526 (WebKit::EditorClient::shouldShowDeleteInterface): ditto.
527 (WebKit::EditorClient::shouldBeginEditing): ditto.
528 (WebKit::EditorClient::shouldEndEditing): ditto.
529 (WebKit::EditorClient::shouldInsertText): ditto.
530 (WebKit::EditorClient::shouldChangeSelectedRange): ditto.
531 (WebKit::EditorClient::shouldApplyStyle): ditto.
532 (WebKit::EditorClient::shouldInsertNode): ditto.
534 2010-11-24 Martin Robinson <mrobinson@igalia.com>
536 Reviewed by Xan Lopez.
538 [GTK] The WebKitWebView should expose a set of signals encapsulating the behavior of the EditorClient
539 https://bugs.webkit.org/show_bug.cgi?id=49143
541 Add signals that encapsulate the functionality of the Mac EditingDelegate. These signals
542 are private for now, but DRT consumes them to produce proper output for editing tests.
543 After some time, these may be part of the public API.
545 * WebCoreSupport/EditorClientGtk.cpp:
546 (WebKit::EditorClient::shouldDeleteRange): Fire the appropriate editing signal.
547 (WebKit::EditorClient::shouldShowDeleteInterface): Ditto.
548 (WebKit::EditorClient::shouldBeginEditing): Ditto.
549 (WebKit::EditorClient::shouldEndEditing): Ditto.
550 (WebKit::kit): Added helper function.
551 (WebKit::EditorClient::shouldInsertText): Fire the appropriate editing signal.
552 (WebKit::EditorClient::shouldChangeSelectedRange): Ditto.
553 (WebKit::EditorClient::shouldApplyStyle): Ditto.
554 (WebKit::EditorClient::didBeginEditing): Ditto.
555 (WebKit::EditorClient::respondToChangedContents): Ditto.
556 (WebKit::EditorClient::respondToChangedSelection): Ditto.
557 (WebKit::EditorClient::didEndEditing): Ditto.
558 (WebKit::EditorClient::shouldInsertNode): Ditto.
559 * webkit/webkitwebview.cpp:
560 (webkit_web_view_real_should_allow_editing_action): Added this default signal
561 callback which explicitly allows cancellable editing actions.
562 (webkit_web_view_class_init): Add new editing signal declarations to the view.
563 * webkit/webkitwebview.h:
564 * webkitmarshal.list: Added some new marshaling definitions.
566 2010-11-24 Sheriff Bot <webkit.review.bot@gmail.com>
568 Unreviewed, rolling out r72499.
569 http://trac.webkit.org/changeset/72499
570 https://bugs.webkit.org/show_bug.cgi?id=50022
572 This change is causing crashes on the bots. (Requested by
573 mrobinson on #webkit).
578 2010-11-23 Xan Lopez <xlopez@igalia.com>
580 Reviewed by Martin Robinson.
582 [GTK] Fix IFrame DOM bindings API
583 https://bugs.webkit.org/show_bug.cgi?id=49980
585 * tests/testdomdocument.c:
586 (test_dom_document_garbage_collection): change to use the fixed
589 2010-11-23 Carlos Garcia Campos <cgarcia@igalia.com>
591 Reviewed by Martin Robinson.
593 focus issue with links that have tooltips
594 https://bugs.webkit.org/show_bug.cgi?id=49498
596 Set the area of the widget where the tooltip should be shown when
597 a new tooltip is set. Since the widget is the same (the view), if
598 the tooltip area is not set and a new tooltip is triggered while
599 the previous one is still visible, the text of the tooltip is
600 updated but its position doesn't change.
602 * WebCoreSupport/ChromeClientGtk.cpp:
603 (WebKit::ChromeClient::mouseDidMoveOverElement):
604 * webkit/webkitprivate.h:
605 * webkit/webkitwebview.cpp:
606 (webkit_web_view_query_tooltip):
608 2010-11-21 Mario Sanchez Prada <msanchez@igalia.com>
610 Reviewed by Chris Fleizach.
612 [GTK] Implement ROLE_COMBO_BOX
613 https://bugs.webkit.org/show_bug.cgi?id=25678
615 New test to check the implementation of the combo boxes.
618 (testWebkitAtkComboBox): New test, checking that the roles and the
619 implemented interfaces for a combo box and its descendants work.
620 (main): Added the new unit test.
622 2010-11-20 Xan Lopez <xlopez@igalia.com>
624 Reviewed by Martin Robinson.
626 Remove leftover code in unit test.
628 * GNUmakefile.am: remove unneeded utils file in dependency list.
629 * tests/testdomdocument.c:
630 (main): do not change to the directory of a non existing resource
633 2010-11-20 Xan Lopez <xlopez@igalia.com>
635 Reviewed by Martin Robinson.
637 [GTK] Memory managament for DOM GObject wrappers
638 https://bugs.webkit.org/show_bug.cgi?id=40302
640 Initial attempt to have a kind of poor man's garbage collection
641 for GObject DOM objects. We tie the object's lifecycle to their
642 parent Frame and/or its document; that is, all objects will be
643 collected when their parent frame is destroyed or when that frame
644 transitions to a new document. Manual management (calling
645 g_object_unref on them) is also allowed, and is required for
646 objects that are not in the DOM tree (eg NodeLists).
648 * GNUmakefile.am: add testutils file to testdomdocument.c
649 * WebCoreSupport/FrameLoaderClientGtk.cpp:
650 (WebKit::FrameLoaderClient::setMainFrameDocumentReady): collect
651 DOM objects on document transition.
652 * tests/testdomdocument.c:
653 (dom_document_fixture_teardown): only destroy the view if it's not
654 already destroyed, since the new test detroys it on its own.
655 (test_dom_document_get_elements_by_tag_name): manually unref node list.
656 (test_dom_document_get_elements_by_class_name): ditto.
657 (test_dom_document_get_links): ditto.
658 (test_dom_document_garbage_collection): test all possible
659 scenarios for DOM object "garbage collection".
660 (main): add new test.
661 * tests/testdomnode.c:
662 (test_dom_node_hierarchy_navigation): manually unref node list.
663 (test_dom_node_insertion): ditto.
664 * webkit/webkithittestresult.cpp:
665 (webkit_hit_test_result_dispose): unref the inner node on dispose
666 now that the memory management model is clarified.
667 (webkit_hit_test_result_class_init): hook dispose.
668 * webkit/webkitwebframe.cpp:
669 (webkit_web_frame_core_frame_gone): clear DOM objects attached to this frame.
670 (webkit_web_frame_finalize): ditto.
672 2010-11-18 Xan Lopez <xlopez@igalia.com>
674 Reviewed by Martin Robinson.
676 Fix introspection build, we were missing a -I flag.
680 2010-11-18 Mario Sanchez Prada <msanchez@igalia.com>
682 Reviewed by Martin Robinson.
684 [Gtk] atk_text_get_selection returns the wrong offsets after a link
685 https://bugs.webkit.org/show_bug.cgi?id=49514
687 Updated test case to also chech this specific subcase.
689 We need to explicitly check the case of having a selection in a
690 paragraph after an embedded object (i.e. a link) to make sure the
691 right calculations are being done when the paragraph is composed
692 of more than just one text object, and the current selection is
693 made only in one of them.
696 (testWebkitAtkTextSelections): Make sure that a selection after a
697 link in a paragraph is working ok when asking for the text
698 selection from the point of view of the paragraph.
700 2010-11-17 Martin Robinson <mrobinson@igalia.com>
702 Reviewed by Gustavo Noronha Silva.
704 [GTK] Changing any GNUmakefile.am in the source tree forces a rebuld of the DOM bindings and WebKit APi
705 https://bugs.webkit.org/show_bug.cgi?id=49400
707 Add GNUmakefile.am and include all WebKit API build rules. Make webkitenum.*
708 depend on this new file, instead of the generated GNUmakefile.am.
710 * GNUmakefile.am: Copied from GNUmakefile.am.
712 2010-11-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
714 Reviewed by Martin Robinson.
716 Fix a typo that leads to emitting the wrong signal if it is done
717 by using the signals array.
719 * webkit/webkitwebview.cpp:
720 (webkit_web_view_class_init):
722 2010-11-16 Carlos Garcia Campos <cgarcia@igalia.com>
724 Reviewed by Martin Robinson.
726 [GTK] Some key-press events can't be handled by WebView
727 https://bugs.webkit.org/show_bug.cgi?id=48986
729 The problem is that "popup-menu" and "show-help" signals are
730 handled by GtkTextView, as they are added to the key bindings set
731 of every widget in gtk_widget_class_init(). For all other bindings
732 handled by GtkTextView we are stopping the signal emission in
733 their callbacks, so we only need to do the same for "popup-menu"
734 and "show-help" signals.
736 * WebCoreSupport/EditorClientGtk.cpp:
737 (WebKit::toggleOverwriteCallback):
738 (WebKit::popupMenuCallback):
739 (WebKit::showHelpCallback):
740 (WebKit::EditorClient::EditorClient):
742 2010-11-16 Carlos Garcia Campos <cgarcia@igalia.com>
744 Reviewed by Martin Robinson.
746 [GTK] Show default context menu for the currently focused element when activated with keyboard
747 https://bugs.webkit.org/show_bug.cgi?id=49376
749 * webkit/webkitwebview.cpp:
750 (webkit_web_view_popup_menu_handler):
752 2010-11-11 Joone Hur <joone@kldp.org>
754 Reviewed by Antonio Gomes.
756 [GTK][DRT] Implement LayoutTestController::nodesFromRect
757 https://bugs.webkit.org/show_bug.cgi?id=46598
759 Support nodesFromRect in DRT
761 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
762 (DumpRenderTreeSupportGtk::nodesFromRect): Added.
763 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
765 2010-11-11 Chang Shu <chang.shu@nokia.com>
767 Reviewed by Antonio Gomes.
769 [GTK] Replace "MoveForward"/"MoveBackward" with "MoveRight"/"MoveLeft"
770 to make spatial navigation work on input/textarea.
771 https://bugs.webkit.org/show_bug.cgi?id=49056
773 * WebCoreSupport/EditorClientGtk.cpp:
774 (WebKit::moveCursorCallback):
776 2010-11-08 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
778 Reviewed by Martin Robinson.
780 [GTK] Link with target name set does not work
781 https://bugs.webkit.org/show_bug.cgi?id=48865
783 When a new page is created with a name (target=myFrame), the new
784 mainFrame could not be found because they where not stored in the
785 same PageGroup. As PageGroup are not exposed externally so the
786 simpliest solution is to use a global page group name. This also fixes
787 issue with visited link coloration across pages. After this change the
788 private function webkit_web_view_set_group_name() was no longer used
789 so it was removed completly.
791 * WebCoreSupport/ChromeClientGtk.cpp:
792 (WebKit::ChromeClient::closeWindowSoon):
793 * WebCoreSupport/InspectorClientGtk.cpp:
794 (WebKit::InspectorClient::openInspectorFrontend):
795 * webkit/webkitprivate.h:
796 * webkit/webkitwebview.cpp:
797 (webkit_web_view_init):
799 2010-11-08 Alexey Proskuryakov <ap@apple.com>
801 Reviewed by Darin Adler.
803 https://bugs.webkit.org/show_bug.cgi?id=48685
804 Notify UI process about focused frame
806 Added an empty implementation of the new ChromeClient method.
808 * WebCoreSupport/ChromeClientGtk.cpp:
809 (WebKit::ChromeClient::focusedFrameChanged):
810 * WebCoreSupport/ChromeClientGtk.h:
812 2010-11-08 Martin Robinson <mrobinson@igalia.com>
814 Reviewed by Andreas Kling.
816 [GTK] Error page templates are not filled properly
817 https://bugs.webkit.org/show_bug.cgi?id=49148
819 Replace a call to makeString with String::format. This was mistakenly
820 changed to makeString in an earlier commit.
822 * WebCoreSupport/FrameLoaderClientGtk.cpp:
823 (WebKit::FrameLoaderClient::dispatchDidFailLoad):
825 2010-11-08 Xan Lopez <xlopez@igalia.com>
827 Reviewed by Martin Robinson.
829 * NEWS: update for release.
831 2010-11-08 Csaba Osztrogonac <ossy@webkit.org>
833 Unreviewed, rolling out r71466.
834 http://trac.webkit.org/changeset/71466
835 https://bugs.webkit.org/show_bug.cgi?id=48865
837 It broke layout tests on GTK bots.
839 * WebCoreSupport/ChromeClientGtk.cpp:
840 (WebKit::ChromeClient::closeWindowSoon):
841 * webkit/webkitprivate.h:
842 * webkit/webkitwebview.cpp:
843 (webkit_web_view_init):
844 (webkit_web_view_set_group_name):
846 2010-11-07 Adam Barth <abarth@webkit.org>
848 Reviewed by Eric Seidel.
850 Rename Cache to MemoryCache
851 https://bugs.webkit.org/show_bug.cgi?id=49159
853 * webkit/webkitwebview.cpp:
855 2010-11-05 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
857 Reviewed by Martin Robinson.
859 [GTK] Link with target name set does not work correctly
860 https://bugs.webkit.org/show_bug.cgi?id=48865
862 When a new page is created with a name (target=myFrame), the new
863 mainFrame could not be found because they where not stored in the
864 same PageGroup. As PageGroup are not exposed externally so the
865 simpliest solution is to use a global page group name. This also fixes
866 issue with visited link coloration across pages. After this change the
867 private function webkit_web_view_set_group_name() was no longer used
868 so it was removed completly.
870 * WebCoreSupport/ChromeClientGtk.cpp:
871 (WebKit::ChromeClient::closeWindowSoon):
872 * webkit/webkitprivate.h:
873 * webkit/webkitwebview.cpp:
874 (webkit_web_view_init):
876 2010-11-05 Chris Marrin <cmarrin@apple.com>
878 Reviewed by Simon Fraser.
880 Move resumeAnimations/suspendAnimations from Frame to AnimationController.
881 https://bugs.webkit.org/show_bug.cgi?id=49073
883 * webkit/webkitwebframe.cpp:
884 (webkit_web_frame_suspend_animations):
885 (webkit_web_frame_resume_animations):
887 2010-11-05 Chris Marrin <cmarrin@apple.com>
891 Small fix to GTK build
893 * webkit/webkitwebframe.cpp:
894 (webkit_web_frame_suspend_animations):
895 (webkit_web_frame_resume_animations):
897 2010-11-05 Chris Marrin <cmarrin@apple.com>
899 Reviewed by Simon Fraser.
901 Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
902 https://bugs.webkit.org/show_bug.cgi?id=46945
904 * webkit/webkitwebframe.cpp:
905 (webkit_web_frame_suspend_animations):
906 (webkit_web_frame_resume_animations):
908 2010-11-03 Daniel Bates <dbates@rim.com>
910 For unnamed frames, window.name returns a generated name
911 https://bugs.webkit.org/show_bug.cgi?id=6751
915 Substitute FrameTree::uniqueName() for FrameTree::name() in the GTK port.
917 * webkit/webkitwebframe.cpp:
918 (webkit_web_frame_get_name):
920 2010-11-02 Martin Robinson <mrobinson@igalia.com>
922 Reviewed by Adam Barth.
924 [Cairo] Remove PlatformRefPtrCairo
925 https://bugs.webkit.org/show_bug.cgi?id=48192
927 Replace instances of PlatformRefPtr smart pointers that wrap Cairo
930 * WebCoreSupport/DragClientGtk.cpp: Use RefPtr instead of PlatformRefPtr.
931 (WebKit::dragIconWindowDrawEventCallback):
932 * WebCoreSupport/DragClientGtk.h: Ditto.
934 2010-11-02 Daniel Bates <dbates@rim.com>
936 Reviewed by Martin Robinson.
938 Set frame name before appending it to the frame tree in the Apple Windows,
940 https://bugs.webkit.org/show_bug.cgi?id=48806
942 Make the frame creation process in the GTK-port consistent with the
943 Mac, Qt, and Haiku ports. In particular, set the name of the new
944 frame before it's appended to the frame tree.
946 At this time we cannot test this change since it is being masked by
947 HTMLFrameElementBase::setName() <http://trac.webkit.org/browser/trunk/WebCore/html/HTMLFrameElementBase.cpp?rev=70976#L160>.
948 We'll be able to test this once we fix bug #6751.
950 * WebCoreSupport/FrameLoaderClientGtk.cpp:
951 (WebKit::FrameLoaderClient::createFrame):
953 2010-11-01 Jennifer Braithwaite <jennb@google.com>
955 Reviewed by Martin Robinson.
957 GTK: Update resource tracking when moving a frame between documents
958 https://bugs.webkit.org/show_bug.cgi?id=48362
960 * WebCoreSupport/FrameLoaderClientGtk.cpp:
961 (WebKit::FrameLoaderClient::transferLoadingResourceFromPage):
962 Assign resource id to current web view and remove from former web view.
963 * webkit/webkitprivate.h:
964 * webkit/webkitwebview.cpp:
965 (webkit_web_view_remove_resource):
968 2010-11-01 Mario Sanchez Prada <msanchez@igalia.com>
970 Reviewed by Martin Robinson.
972 [GTK] Cleanup needed in testatk.c file
973 https://bugs.webkit.org/show_bug.cgi?id=48759
975 Cleanup done in testatk.c, mainly addressing the following issues:
977 - Removed any trace of extra main loops in tests, so now we just
978 spin the original main loop in all of them to get the a11y
981 - As we no longer use the extra main loops, removed the bail_out
982 function, used along with g_idle_add() to stop those extra loops.
984 - As we now spin the loop in every test, created a new function
985 waitForAccessibilityObjects() to write the loop just once.
987 - Fixed name in incorrectly named test testWekitAtkTextSelections.
989 - Alphabetically sorted the list of includes.
991 - Renamed all identifiers to camel Case notation.
993 - Declare variables when needed only (instead of declaring all of
994 them at the beginning of the function).
996 - Don't declare two variables of the same type in the same line.
998 - No more short names like 'obj', 'textObj' or 'alloc'. Use names
999 like 'object', 'textObject' and 'allocation' instead.
1001 - Fixed indentation.
1003 - Make sure all comments finish with '.'
1005 - Replace NULL's with 0's.
1008 (waitForAccessibleObjects): New, manually spins the main context
1009 to make sure accessible objects are created before continuing.
1010 (testGetTextFunction): Fixed this function to be compliant with
1011 the WebKit's coding style.
1012 (runGetTextTests): Ditto.
1013 (testWebkitAtkGetTextAtOffsetForms): Ditto.
1014 (testWebkitAtkGetTextAtOffset): Ditto.
1015 (testWebkitAtkGetTextAtOffsetNewlines): Ditto.
1016 (testWebkitAtkGetTextAtOffsetTextarea): Ditto.
1017 (testWebkitAtkGetTextAtOffsetTextInput): Ditto.
1018 (testWebkitAtkGetTextInParagraphAndBodySimple): Ditto.
1019 (testWebkitAtkGetTextInParagraphAndBodyModerate): Ditto.
1020 (testWebkitAtkGetTextInTable): Ditto.
1021 (testWebkitAtkGetHeadersInTable): Ditto.
1022 (compAtkAttribute): Ditto.
1023 (atkAttributeSetAttributeNameHasValue): Ditto.
1024 (testWebkitAtkTextAttributes): Ditto.
1025 (testWebkitAtkTextSelections): Ditto.
1026 (testWebkitAtkGetExtents): Ditto.
1027 (testWebkitAtkLayoutAndDataTables): Ditto.
1028 (testWebkitAtkLinksWithInlineImages): Ditto.
1029 (testWebkitAtkHypertextAndHyperlinks): Ditto.
1030 (testWebkitAtkListsOfItems): Ditto.
1031 (testWebkitAtkTextChangedNotifications): Ditto.
1034 2010-11-01 Brady Eidson <beidson@apple.com>
1036 Reviewed by Anders Carlsson.
1038 <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
1039 Context menu support for WebKit 2.
1041 * WebCoreSupport/ChromeClientGtk.h:
1042 (WebKit::ChromeClient::showContextMenu):
1044 2010-11-01 Martin Robinson <mrobinson@igalia.com>
1046 Reviewed by Xan Lopez.
1048 [GTK] Pasting markup into Thunderbird compose window produces no text
1049 https://bugs.webkit.org/show_bug.cgi?id=43737
1051 Added a test verifying that the meta tag prefix on markup data exists.
1053 * tests/testcopyandpaste.c:
1054 (load_status_cb): Add a check for the meta tag prefix.
1056 2010-11-01 Mario Sanchez Prada <msanchez@igalia.com>
1058 Reviewed by Martin Robinson.
1060 [Gtk] AtkHyperlink needs to be implemented
1061 https://bugs.webkit.org/show_bug.cgi?id=33785
1063 New test to ensure the AtkHypertext/AtkHyperlink stuff works.
1066 (testWebkitAtkHypertextAndHyperlinks): New test, checking both the
1067 implementation of the AtkHypertext interface, the subclass of the
1068 AtkHyperlink abstract class, and the implementation of the
1069 AtkAction interface in that subclass.
1070 (main): Added the new unit test.
1072 2010-10-30 Xan Lopez <xlopez@igalia.com>
1074 Reviewed by Martin Robinson.
1076 [GTK] Use new width for height APIs in GTK+ 3.x
1077 https://bugs.webkit.org/show_bug.cgi?id=48709
1079 Use the new width for height APIs in GTK+ 3.x, since size-request
1082 For now we just return the same value for preferred and minimum
1083 width/height, which should match the 2.x behavior. Probably we
1084 could do something smarter for the minimum values.
1086 * webkit/webkitwebview.cpp:
1087 (webkit_web_view_get_preferred_width): return our preferred width.
1088 (webkit_web_view_get_preferred_height): return our preferred height.
1089 (webkit_web_view_class_init): hook the new default handlers.
1091 2010-10-29 Daniel Bates <dbates@rim.com>
1093 No review, rolling out 70971.
1094 http://trac.webkit.org/changeset/70971
1095 https://bugs.webkit.org/show_bug.cgi?id=6751
1097 Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
1098 it caused layout test failures on all bots. In particular, the
1099 child count in a generated frame name differs after this patch. We need
1100 to look into this further.
1102 * webkit/webkitwebframe.cpp:
1103 (webkit_web_frame_get_name):
1105 2010-10-28 Antonio Gomes <agomes@rim.com>
1107 Reviewed by Ojan Vafai.
1109 Needs a "LinuxEditingBehavior", perhaps with a better name
1110 https://bugs.webkit.org/show_bug.cgi?id=36627
1112 Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WEBKIT_EDITING_BEHAVIOR_UNIX.
1114 * webkit/webkitwebsettings.cpp:
1115 (webkit_web_settings_class_init):
1116 * webkit/webkitwebsettings.h:
1118 2010-10-29 Daniel Bates <dbates@rim.com>
1120 Reviewed by Adam Barth.
1122 For unnamed frames, window.name returns a generated name
1123 https://bugs.webkit.org/show_bug.cgi?id=6751
1125 Modified GTK-port to use FrameTree::uniqueName().
1127 * webkit/webkitwebframe.cpp:
1128 (webkit_web_frame_get_name):
1130 2010-10-29 Martin Robinson <mrobinson@igalia.com>
1132 Build fix for GTK+ after BackForwardListImpl introduction.
1134 * webkit/webkitwebbackforwardlist.cpp:
1135 (webkit_web_back_forward_list_new_with_web_view):
1137 2010-10-29 Darin Adler <darin@apple.com>
1139 Reviewed by Sam Weinig.
1141 Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
1142 https://bugs.webkit.org/show_bug.cgi?id=48574
1144 * webkit/webkitprivate.h:
1145 * webkit/webkitwebbackforwardlist.cpp:
1146 (webkit_web_back_forward_list_dispose):
1147 (webkit_web_back_forward_list_new_with_web_view):
1148 (webkit_web_back_forward_list_go_forward):
1149 (webkit_web_back_forward_list_go_back):
1150 (webkit_web_back_forward_list_contains_item):
1151 (webkit_web_back_forward_list_go_to_item):
1152 (webkit_web_back_forward_list_get_forward_list_with_limit):
1153 (webkit_web_back_forward_list_get_back_list_with_limit):
1154 (webkit_web_back_forward_list_get_back_item):
1155 (webkit_web_back_forward_list_get_current_item):
1156 (webkit_web_back_forward_list_get_forward_item):
1157 (webkit_web_back_forward_list_get_nth_item):
1158 (webkit_web_back_forward_list_get_back_length):
1159 (webkit_web_back_forward_list_get_forward_length):
1160 (webkit_web_back_forward_list_get_limit):
1161 (webkit_web_back_forward_list_set_limit):
1162 (webkit_web_back_forward_list_add_item):
1163 (webkit_web_back_forward_list_clear):
1165 * webkit/webkitwebview.cpp:
1166 (webkit_web_view_set_maintains_back_forward_list):
1167 (webkit_web_view_get_back_forward_list):
1168 Use BackForwardListImpl.
1170 2010-10-29 Alexey Proskuryakov <ap@apple.com>
1172 Reviewed by Darin Adler.
1174 https://bugs.webkit.org/show_bug.cgi?id=48576
1175 Let WebKit2 client know when a frame is a frameset
1177 Added a blank implementation of the new FrameLoaderClient method.
1179 * WebCoreSupport/FrameLoaderClientGtk.h:
1180 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1181 (WebKit::FrameLoaderClient::dispatchDidBecomeFrameset):
1183 2010-10-29 Alejandro G. Castro <alex@igalia.com>
1185 Reviewed by Martin Robinson.
1187 [GTK] Add the GtkScrollablePolicy property to the webview
1188 https://bugs.webkit.org/show_bug.cgi?id=48357
1190 Added the GtkScrollablePolicy properties to the webview widget, it
1191 is now required for GtkScrollable widgets in GTK+ 3.x.
1193 * webkit/webkitprivate.h:
1194 * webkit/webkitwebview.cpp:
1195 (setHorizontalScrollPolicy): Added.
1196 (setVerticalScrollPolicy): Added.
1197 (getHorizontalScrollPolicy): Added.
1198 (getVerticalScrollPolicy): Added.
1199 (webkit_web_view_get_property):
1200 (webkit_web_view_set_property):
1201 (webkit_web_view_class_init):
1203 2010-10-28 Sergio Villar Senin <svillar@igalia.com>
1205 Reviewed by Martin Robinson.
1207 [GTK] WebKitWebFrame's load-status is not properly notified to the tests
1208 https://bugs.webkit.org/show_bug.cgi?id=48048
1210 "frame-created" signal must be issued before loading any data,
1211 that way clients can correctly capture all the loading related
1212 signals for that frame.
1214 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1215 (WebKit::FrameLoaderClient::createFrame):
1217 2010-10-27 Mario Sanchez Prada <msanchez@igalia.com>
1219 Reviewed by Martin Robinson.
1221 getTextAtOffset returns incorrect results if a link includes text and an image
1222 https://bugs.webkit.org/show_bug.cgi?id=47365
1224 New test to make sure this bug is actually fixed.
1227 (testWebkitAtkLinksWithInlineImages): New test.
1228 (main): Added new test.
1230 2010-10-26 Antonio Gomes <agomes@rim.com>
1232 Reviewed by Martin Robinson.
1234 [GTK] Implement DumpRenderTreeSupportGtk (similarly to DumpRenderTreeSupportQt idea)
1235 https://bugs.webkit.org/show_bug.cgi?id=48199
1237 Implemented an initial version of the DumpRenderTreeSupportGtk class.
1238 The main idea is that it groups together the bodies of many LayoutTestController
1239 methods, so they can directly access WebCore features. This way we eliminate the
1240 need of adding APIs to WebKitGTK just to expand its test coverage through DRT.
1242 The DumpRenderTreeSupportGtk class so far includes a getter and setter for the WebKitTabToLinksPreferenceKey
1243 property as a sample implementation. Also it makes it possible to unskip fast/events/tab-focus-anchor.html and
1244 to fix stderr messages from all 22 spatial-navigation tests in fast/events/spatial-navigation.
1246 * WebCoreSupport/ChromeClientGtk.cpp:
1247 (WebKit::ChromeClient::tabsToLinks):
1248 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: Added.
1249 (DumpRenderTreeSupportGtk::DumpRenderTreeSupportGtk):
1250 (DumpRenderTreeSupportGtk::~DumpRenderTreeSupportGtk):
1251 (DumpRenderTreeSupportGtk::setDumpRenderTreeModeEnabled):
1252 (DumpRenderTreeSupportGtk::dumpRenderTreeModeEnabled): Getter to the WebKitTabToLinksPreferenceKey property.
1253 (DumpRenderTreeSupportGtk::setLinksIncludedInFocusChain): Setter to the WebKitTabToLinksPreferenceKey property.
1254 (DumpRenderTreeSupportGtk::linksIncludedInFocusChain):
1255 * WebCoreSupport/DumpRenderTreeSupportGtk.h: Added.
1257 2010-10-26 Jenn Braithwaite <jennb@chromium.org>
1259 Reviewed by Dmitry Titov.
1261 Resource tracking failure when trying to move a frame between documents
1262 https://bugs.webkit.org/show_bug.cgi?id=44713
1264 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1265 (WebKit::FrameLoaderClient::transferLoadingResourceFromPage):
1267 * WebCoreSupport/FrameLoaderClientGtk.h:
1269 2010-10-26 Mario Sanchez Prada <msanchez@igalia.com>
1271 Reviewed by Chris Fleizach.
1273 [Gtk] Layout tables should indicate that they are not data tables via an object attribute
1274 https://bugs.webkit.org/show_bug.cgi?id=35422
1276 New unit test to check the 'layout-guess' attribute in tables.
1279 (atkAttributeSetAttributeNameHasValue): New, looks for a attribute
1280 with a specific value, by the name of attribute.
1281 (atkAttributeSetContainsAttributeName): New, just checks whether
1282 an attribute with a specified name is present in the set.
1283 (atkAttributeSetAttributeHasValue): Modified to relay on the new
1284 function atkAttributeSetAttributeNameHasValue().
1285 (testWebkitAtkLayoutAndDataTables): New test.
1286 (main): Added the new test.
1288 2010-10-26 Xan Lopez <xlopez@igalia.com>
1290 Reviewed by Martin Robinson.
1292 [GTK] Port to new GtkScrollable interface in GTK+ 3.x
1293 https://bugs.webkit.org/show_bug.cgi?id=48202
1295 Use the new GtkScrollable interface when compiling against GTK+
1298 * webkit/webkitwebview.cpp:
1299 (setHorizontalAdjustment):
1300 (setVerticalAdjustment):
1301 (getHorizontalAdjustment):
1302 (getVerticalAdjustment):
1303 (webkit_web_view_get_property):
1304 (webkit_web_view_set_property):
1305 (webkit_web_view_class_init):
1307 2010-10-22 Sam Weinig <sam@webkit.org>
1309 Reviewed by Anders Carlsson.
1311 WebKit2 needs to pass the current event modifier flags when requesting a new window
1312 https://bugs.webkit.org/show_bug.cgi?id=48140
1314 * WebCoreSupport/ChromeClientGtk.cpp:
1315 (WebKit::ChromeClient::createWindow):
1316 * WebCoreSupport/ChromeClientGtk.h:
1317 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1318 (WebKit::FrameLoaderClient::dispatchCreatePage):
1319 * WebCoreSupport/FrameLoaderClientGtk.h:
1320 Add NavigationAction parameter.
1322 2010-10-20 Philippe Normand <pnormand@igalia.com>
1324 Reviewed by Xan Lopez.
1326 [GTK] use gtk_widget_hide instead of gtk_widget_hide_all in the fullscreen video conroller
1327 https://bugs.webkit.org/show_bug.cgi?id=47972
1329 * WebCoreSupport/FullscreenVideoController.cpp:
1330 (FullscreenVideoController::hideHud):
1331 (FullscreenVideoController::exitFullscreen):
1333 2010-10-19 Joone Hur <joone@kldp.org>
1335 Reviewed by Martin Robinson.
1337 [GTK] Needs fixing mistyped comments in the API documentation
1338 https://bugs.webkit.org/show_bug.cgi?id=47656
1340 Fixed mistyped comments in the API documenentation.
1342 * webkit/webkitwebsettings.cpp: Fixed a mistyped comment in the the section block.
1343 * webkit/webkitwebwindowfeatures.cpp: Fixed a mistyped comment in the section block.
1345 2010-10-18 Xan Lopez <xlopez@igalia.com>
1347 Reviewed by Martin Robinson.
1349 * NEWS: update for 1.3.5 release.
1350 * docs/webkitgtk-sections.txt: add new APIs.
1352 2010-10-18 Pavel Feldman <pfeldman@chromium.org>
1354 Reviewed by Simon Fraser.
1356 Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
1357 https://bugs.webkit.org/show_bug.cgi?id=46224
1359 * WebCoreSupport/InspectorClientGtk.cpp:
1360 (WebKit::InspectorClient::sendMessageToFrontend):
1362 2010-10-14 Antonio Gomes <agomes@rim.com>
1364 Reviewed by Martin Robinson and Xan Lopez.
1366 [Gtk]: DRT does not support frame flattening testing
1367 https://bugs.webkit.org/show_bug.cgi?id=38650
1369 Implement enable-frame-flattening API for Gtk+.
1371 * webkit/webkitwebsettings.cpp:
1372 (webkit_web_settings_class_init):
1373 (webkit_web_settings_set_property):
1374 (webkit_web_settings_get_property):
1375 (webkit_web_settings_copy):
1376 * webkit/webkitwebview.cpp:
1377 (webkit_web_view_update_settings):
1378 (webkit_web_view_settings_notify):
1380 2010-10-15 Nikolas Zimmermann <nzimmermann@rim.com>
1382 Reviewed by Dirk Schulze.
1384 Replace some String::format() usages by StringConcatenate in WebKit
1385 https://bugs.webkit.org/show_bug.cgi?id=47714
1387 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1388 (WebKit::FrameLoaderClient::dispatchDidFailLoad):
1389 * webkit/webkitwebsettings.cpp:
1393 2010-10-14 Joone Hur <joone@kldp.org>
1395 Reviewed by Andreas Kling.
1397 [GTK] google.co.kr was missed when checking Google domains
1398 https://bugs.webkit.org/show_bug.cgi?id=47652
1400 WebKitGtk+ maintains a list of Google domains for working well with Google sites.
1401 Add google.co.kr also to the list to be checked with other Google domains.
1403 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1404 (WebKit::initializeDomainsList): Added google.co.kr.
1406 2010-10-13 Sergio Villar Senin <svillar@igalia.com>
1408 Reviewed by Martin Robinson.
1410 WebKitGtk+ to use the new API from the imported SoupURILoader code
1412 [GTK] Add HTTP caching support
1413 https://bugs.webkit.org/show_bug.cgi?id=44261
1415 ResourceHandleInternal m_msg is now called m_soupMessage.
1417 * webkit/webkitdownload.cpp:
1418 (webkit_download_new_with_handle):
1419 (webkit_download_start):
1421 2010-10-13 Xan Lopez <xlopez@igalia.com>
1423 Reviewed by Gustavo Noronha.
1425 [GTK] Remove more warnings from the g-i scanner run
1426 https://bugs.webkit.org/show_bug.cgi?id=47255
1428 Fixes almost all warnings coming from the g-i scanner.
1430 * webkit/webkitsecurityorigin.cpp: Rename parameter names in
1431 gtk-doc blurb to the actual name of the parameter.
1432 * webkit/webkitsoupauthdialog.c: ditto.
1433 (webkit_soup_auth_dialog_class_init): Write missing doc for the
1434 'current-toplevel' signal.
1435 * webkit/webkitsoupauthdialog.h: Rename signal parameter to its
1437 * webkit/webkitwebdatabase.cpp: Rename parameter names in
1438 gtk-doc blurb to the actual name of the parameter.
1439 * webkit/webkitwebinspector.cpp: ditto.
1440 (webkit_web_inspector_class_init): ditto.
1441 * webkit/webkitwebview.cpp: ditto.
1442 (webkit_web_view_class_init): ditto.
1443 * webkit/webkitwebview.h: Rename the parameter names to be in sync
1444 with the ones we use in the function definition.
1446 2010-10-12 Sheriff Bot <webkit.review.bot@gmail.com>
1448 Unreviewed, rolling out r69589.
1449 http://trac.webkit.org/changeset/69589
1450 https://bugs.webkit.org/show_bug.cgi?id=47547
1452 Wrong patch landed from a bug with two patches (Requested by
1453 mrobinson on #webkit).
1455 * webkit/webkitdownload.cpp:
1456 (webkit_download_new_with_handle):
1457 (webkit_download_start):
1459 2010-10-12 Sergio Villar Senin <svillar@igalia.com>
1461 Reviewed by Martin Robinson.
1463 [GTK] Add HTTP caching support
1464 https://bugs.webkit.org/show_bug.cgi?id=44261
1466 ResourceHandle's m_msg renamed to m_soupMsg and it's also now a PlatformRefPtr
1468 * webkit/webkitdownload.cpp:
1469 (webkit_download_new_with_handle):
1470 (webkit_download_start):
1472 2010-10-09 Carlos Garcia Campos <cgarcia@igalia.com>
1474 Reviewed by Xan Lopez.
1476 [GTK] Removed unused callback in webkitwebview
1477 https://bugs.webkit.org/show_bug.cgi?id=47092
1479 In webkit_web_view_forward_context_menu_event() a callback is
1480 connected for the destroy signal of the popup menu, however we
1481 reuse the same menu always, holding a ref to it, so it's not
1482 destroyed when withdrawn by the user.
1484 * webkit/webkitwebview.cpp:
1485 (webkit_web_view_forward_context_menu_event):
1487 2010-10-08 Martin Robinson <mrobinson@igalia.com>
1489 Reviewed by Xan Lopez.
1491 [GTK] Remove duplicate code in WebKit/gtk/WebCoreSupport/DragClientGtk.cpp
1492 https://bugs.webkit.org/show_bug.cgi?id=47367
1494 Remove as much duplicate code as possible from DragClientGtk. Most of this code
1495 is GTK2/GTK3 independent, so only the bits that aren't should be protected by
1498 * WebCoreSupport/DragClientGtk.cpp:
1499 (WebKit::dragIconWindowDrawEventCallback): Modified the name of this callback
1500 so that it is shared between build types.
1501 (WebKit::DragClient::DragClient): Updated the signal connectors to reflect the change above.
1502 (WebKit::DragClient::~DragClient): The build types share the callback name, so remove
1504 (WebKit::DragClient::drawDragIconWindow): Changed the name of this method and make it
1505 independent of the build type.
1506 * WebCoreSupport/DragClientGtk.h: Update method declaration and remove #ifdefs.
1508 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
1510 Reviewed by Xan Lopez.
1512 [GTK] Use draw instead of expose_event in WebView when building with gtk3
1513 https://bugs.webkit.org/show_bug.cgi?id=47338
1515 * webkit/webkitwebview.cpp:
1516 (webkit_web_view_expose_event):
1517 (webkit_web_view_draw):
1518 (webkit_web_view_class_init):
1520 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
1522 Reviewed by Xan Lopez.
1524 [GTK] Don't use GtkObject
1525 https://bugs.webkit.org/show_bug.cgi?id=47090
1527 GtkObject has been removed in gtk3.
1529 * WebCoreSupport/EditorClientGtk.cpp:
1530 (WebKit::EditorClient::generateEditorCommands):
1531 * WebCoreSupport/FullscreenVideoController.cpp:
1532 (FullscreenVideoController::createHud):
1534 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
1536 Reviewed by Xan Lopez.
1538 [GTK] Fix the build for GTK+ 3
1539 https://bugs.webkit.org/show_bug.cgi?id=47249
1541 Use GdkVisual instead of GdkColormap. GdkColormap has been removed
1544 * webkit/webkitwebview.cpp:
1545 (webkit_web_view_realize):
1547 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
1549 Reviewed by Xan Lopez.
1551 [GTK] Fix the build for GTK+ 3
1552 https://bugs.webkit.org/show_bug.cgi?id=47249
1554 Do not use GdkDrawable deprecated API. Some methods of GdkDrawable
1555 are deprecated in gtk2 and have been removed in gtk3. Equivalent
1556 API has been added to GdkWindow.
1558 * tests/testcopyandpaste.c:
1559 (runPasteTestCallback):
1560 * webkit/webkitwebview.cpp:
1561 (webkit_web_view_button_press_event):
1563 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
1565 Reviewed by Xan Lopez.
1567 [GTK] Use draw signal instead of expose_event in DragClientGtk when building with gtk3
1568 https://bugs.webkit.org/show_bug.cgi?id=47326
1570 * WebCoreSupport/DragClientGtk.cpp:
1571 (WebKit::dragIconWindowDrawCallback):
1572 (WebKit::DragClient::DragClient):
1573 (WebKit::DragClient::~DragClient):
1574 (WebKit::DragClient::startDrag):
1575 (WebKit::DragClient::dragIconWindowDraw):
1576 * WebCoreSupport/DragClientGtk.h:
1578 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
1580 Reviewed by Xan Lopez.
1582 [GTK] Fix the build for GTK+ 3
1583 https://bugs.webkit.org/show_bug.cgi?id=47249
1585 Don't use gtk_size_request_get_size(). It has been removed,
1586 gtk_widget_get_preferred_size() should be used instead
1588 * webkit/webkitwebview.cpp:
1589 (PopupMenuPositionFunc):
1591 2010-10-06 Sheriff Bot <webkit.review.bot@gmail.com>
1593 Unreviewed, rolling out r69201.
1594 http://trac.webkit.org/changeset/69201
1595 https://bugs.webkit.org/show_bug.cgi?id=47279
1597 This change broke the WebKitGTK+ build for GTK+ 2.0.
1598 (Requested by mrobinson on #webkit).
1600 * tests/testcopyandpaste.c:
1601 (runPasteTestCallback):
1602 * webkit/webkitwebview.cpp:
1603 (webkit_web_view_button_press_event):
1605 2010-10-06 Carlos Garcia Campos <cgarcia@igalia.com>
1607 Reviewed by Xan Lopez.
1609 Port to gtk+3 (2.91.0)
1610 https://bugs.webkit.org/show_bug.cgi?id=47249
1612 Do not use GdkDrawable deprecated API
1614 Some methods of GdkDrawable are deprecated in gtk2 and have been
1615 remmoved in gtk3. Equivalent API has been added to GdkWindow.
1617 * tests/testcopyandpaste.c:
1618 (runPasteTestCallback):
1619 * webkit/webkitwebview.cpp:
1620 (webkit_web_view_button_press_event):
1622 2010-09-28 Jenn Braithwaite <jennb@chromium.org>
1624 Reviewed by Dmitry Titov.
1626 Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
1627 https://bugs.webkit.org/show_bug.cgi?id=46663
1629 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1630 (WebKit::FrameLoaderClient::didTransferChildFrameToNewDocument):
1631 * WebCoreSupport/FrameLoaderClientGtk.h:
1633 2010-09-27 Mario Sanchez Prada <msanchez@igalia.com>
1635 Reviewed by Chris Fleizach.
1637 [Gtk] Adjust atk_text_get_text_at_offset to account for bullets/numbers in list items
1638 https://bugs.webkit.org/show_bug.cgi?id=45381
1640 Updated test to match the new exposure of list item markers.
1642 Also, added some extra assertions in that test to make sure the
1643 accessible objects associated to the items implement AtkText.
1646 (testWebkitAtkListsOfItems):
1649 2010-09-27 Philippe Normand <pnormand@igalia.com>
1651 Reviewed by Martin Robinson.
1653 [GTK] Doesn't build with gtk+ 2.14
1654 https://bugs.webkit.org/show_bug.cgi?id=46565
1656 Fixed the build for GTK+ 2.14. Don't use gdk_window_get_cursor()
1657 for that GTK+ version as I found no acceptable way to work-around
1660 * WebCoreSupport/FullscreenVideoController.cpp:
1661 (FullscreenVideoController::showHud):
1662 (FullscreenVideoController::hideHud):
1663 (FullscreenVideoController::enterFullscreen):
1665 2010-09-26 Jenn Braithwaite <jennb@chromium.org>
1667 Reviewed by Adam Barth.
1669 GTK client needs updating when live iframe element is moved
1671 https://bugs.webkit.org/show_bug.cgi?id=46300
1673 Test: fast/frames/iframe-reparenting-adopt-node.html
1675 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1676 (WebKit::FrameLoaderClient::didTransferChildFrameToNewDocument):
1677 Update the webView for the frame to match the parent frame's
1680 2010-09-24 Martin Robinson <mrobinson@igalia.com>
1682 Reviewed by Gustavo Noronha Silva.
1684 [GTK] opening local files on win32
1685 https://bugs.webkit.org/show_bug.cgi?id=31066
1687 Add tests that check the mime type returned by local files loaded via file URLs.
1689 * tests/testmimehandling.c:
1690 (testRemoteMimeType): Added.
1691 (testLocalMimeType): Added.
1692 (main): Run tests by using g_test_add_data_func with either
1693 testRemoteMimeType or testLocalMimeType.
1695 2010-09-23 Martin Robinson <mrobinson@igalia.com>
1697 Reviewed by Nate Chapin.
1699 [GTK] Some tests from r68174 fail on the GTK+ bots
1700 https://bugs.webkit.org/show_bug.cgi?id=46396
1702 Fix since version number in this new WebKitWebSettings property.
1704 * webkit/webkitwebsettings.cpp:
1705 (webkit_web_settings_class_init): Fix the since version number.
1707 2010-09-23 Nate Chapin <japhet@chromium.org>
1709 Unreviewed, build fix.
1711 Add a missing comma in webkitwebsettings.cpp.
1713 * webkit/webkitwebsettings.cpp:
1715 2010-09-23 Nate Chapin <japhet@chromium.org>
1717 Reviewed by Darin Fisher.
1719 Add hyperlink auditing settings (i.e., <a ping>).
1720 https://bugs.webkit.org/show_bug.cgi?id=30458
1722 * webkit/webkitwebsettings.cpp:
1723 (webkit_web_settings_class_init):
1724 (webkit_web_settings_set_property):
1725 (webkit_web_settings_get_property):
1726 (webkit_web_settings_copy):
1727 * webkit/webkitwebview.cpp:
1728 (webkit_web_view_update_settings):
1729 (webkit_web_view_settings_notify):
1731 2010-09-22 Mario Sanchez Prada <msanchez@igalia.com>
1733 Reviewed by Martin Robinson.
1735 [GTK] Replace instances of g_timeout_add() with g_idle_add() in testatk.c
1736 https://bugs.webkit.org/show_bug.cgi?id=46284
1738 Use g_idle_add() whenever g_timeout_add() was being used.
1740 This is desired because it's better to rely on the main loop to
1741 decide when it's a good moment to execute the task (when idle)
1742 than manually setting a timeout, which also sets a minimum amount
1743 of time needed to get the function executed.
1746 (testWekitAtkTextSelections):
1747 (testWebkitAtkGetExtents):
1748 (testWebkitAtkListsOfItems):
1751 2010-09-22 Mario Sanchez Prada <msanchez@igalia.com>
1753 Reviewed by Martin Robinson.
1755 [Gtk] object:text-changed events should be emitted for entries and password text
1756 https://bugs.webkit.org/show_bug.cgi?id=25898
1758 New unit test to make sure text-changed signals are emitted
1761 (textChangedCb): New. Signal handler for the
1762 text-changed::insert and text-changed::delete signals.
1763 (checkTextChangesAndBailOut): New. Source function to check
1764 the global result of the test and quit from the main loop.
1765 (testWebkitAtkTextChangedNotifications): New test.
1768 2010-09-22 Martin Robinson <mrobinson@igalia.com>
1770 Reviewed by Xan Lopez.
1772 Added information about drop shadow improvements to the NEWS file.
1774 * NEWS: Added information about drop shadow improvements.
1776 2010-09-21 Xan Lopez <xlopez@igalia.com>
1778 Reviewed by Martin Robinson.
1780 [GTK] Fix transfer annotations for WebKitGTK+ static API
1781 https://bugs.webkit.org/show_bug.cgi?id=46244
1783 Deal with all the warnings related to transfer issues. Mostly the
1784 problem was the transfer being missing, but there were also typos
1785 in the function name or missing ':' at the end of the function
1786 name in the gtk-doc.
1788 * webkit/webkitdownload.cpp:
1789 * webkit/webkitnetworkrequest.cpp:
1790 * webkit/webkitnetworkresponse.cpp:
1791 * webkit/webkitsecurityorigin.cpp:
1792 * webkit/webkitwebdatabase.cpp:
1793 * webkit/webkitwebdatasource.cpp:
1794 * webkit/webkitwebframe.cpp:
1795 * webkit/webkitwebhistoryitem.cpp:
1796 * webkit/webkitwebinspector.cpp:
1797 * webkit/webkitwebresource.cpp:
1798 * webkit/webkitwebsettings.cpp:
1799 * webkit/webkitwebview.cpp:
1800 (webkit_web_view_class_init):
1801 (webkit_web_view_get_main_frame):
1803 2010-09-21 Xan Lopez <xlopez@igalia.com>
1805 Reviewed by Gustavo Noronha.
1807 Update for 1.3.4 release.
1811 2010-09-17 Darin Adler <darin@apple.com>
1813 Reviewed by Sam Weinig.
1815 REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
1816 https://bugs.webkit.org/show_bug.cgi?id=42863
1818 * webkit/webkitwebview.cpp:
1819 (webkit_web_view_get_zoom_level):
1820 (webkit_web_view_apply_zoom_level):
1821 (webkit_web_view_set_full_content_zoom):
1822 Call functions on Frame instead of FrameView.
1824 2010-09-16 Martin Robinson <mrobinson@igalia.com>
1826 Reviewed by Xan Lopez.
1828 [GTK] Implement dissolveDragImageToFraction
1829 https://bugs.webkit.org/show_bug.cgi?id=45826
1831 To support full alpha in the drag icon, changed the drag icon to be a
1832 GtkWindow with an RGBA colormap. Added logic to support painting the drag
1833 image to this window during the expose event.
1835 * WebCoreSupport/DragClientGtk.cpp:
1836 (WebKit::dragIconWindowExposeEventCallback): Added.
1837 (WebKit::DragClient::DragClient): Initialize the new drag icon window.
1838 (WebKit::DragClient::~DragClient): Disconnect the expose event signal.
1839 (WebKit::DragClient::startDrag): Resize the drag icon window the appropriate size and
1840 if necessary, set its colormap.
1841 (WebKit::DragClient::dragIconWindowExposeEvent): Added.
1842 * WebCoreSupport/DragClientGtk.h: Added new member and method declarations.
1844 2010-09-14 Philippe Normand <pnormand@igalia.com>
1846 Reviewed by Eric Carlson and Martin Robinson.
1848 [GTK] eventSender.contextClick() should return the contents of the context menu
1849 https://bugs.webkit.org/show_bug.cgi?id=39102
1851 New private WebView API to retrieve the context-menu widget. This
1852 is used by DRT only.
1854 * webkit/webkitprivate.h:
1855 * webkit/webkitwebview.cpp:
1856 (webkit_web_view_get_context_menu):
1858 2010-09-16 Alejandro G. Castro <alex@igalia.com>
1860 Reviewed by Xan Lopez.
1862 GTK+ 3.x. updates, gtk_widget_size_request is deprecated and
1863 "activate-slider" style property for scrollbars is gone.
1865 * webkit/webkitwebview.cpp:
1866 (PopupMenuPositionFunc):
1868 2010-09-15 Martin Robinson <mrobinson@igalia.com>
1870 Reviewed by David Levin.
1872 [GTK] [REGRESSION] r67591 broke the testwebbackforwardlist API test and introduced a memory leak
1873 https://bugs.webkit.org/show_bug.cgi?id=45865
1875 When initializing the backForwardList private member of the WebView, do
1876 so with adoptPlatformRef to prevent a memory leak.
1878 * webkit/webkitwebview.cpp:
1879 (webkit_web_view_init): Initialize member with adoptPlatformRef.
1881 2010-09-15 Martin Robinson <mrobinson@igalia.com>
1883 Reviewed by Eric Seidel.
1885 [Gtk] Use GOwnPtr for code that needs it
1886 https://bugs.webkit.org/show_bug.cgi?id=21594
1888 Convert as reference counted private members of WebKitWebView to
1889 smart pointers as possible. This removes a lot of unecessary manual
1890 memory management. Also convert some pointer members away from pointer
1891 types, now that we are sure their destructors are called.
1893 * WebCoreSupport/ContextMenuClientGtk.cpp:
1894 (WebKit::inputMethodsMenuItem): Updated to reflect PlatformRefPtr changes.
1895 * WebCoreSupport/DragClientGtk.cpp:
1896 (WebKit::DragClient::startDrag): Ditto.
1897 * WebCoreSupport/EditorClientGtk.cpp:
1898 (WebKit::EditorClient::setInputMethodState): Ditto.
1899 (WebKit::EditorClient::respondToChangedSelection): Ditto.
1900 (WebKit::EditorClient::handleInputMethodKeydown): Ditto.
1901 (WebKit::EditorClient::handleInputMethodMousePress): Ditto.
1902 (WebKit::EditorClient::EditorClient): Ditto.
1903 (WebKit::EditorClient::~EditorClient): Ditto.
1904 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1905 (WebKit::postCommitFrameViewSetup): Ditto.
1906 * webkit/webkitprivate.h: Ditto.
1907 * webkit/webkitwebview.cpp: Ditto.
1908 (destroy_menu_cb): Ditto.
1909 (webkit_web_view_forward_context_menu_event): Ditto.
1910 (webkit_web_view_key_release_event): Ditto.
1911 (webkit_web_view_button_press_event): Ditto.
1912 (webkit_web_view_button_release_event): Ditto.
1913 (webkit_web_view_focus_in_event): Ditto.
1914 (webkit_web_view_focus_out_event): Ditto.
1915 (webkit_web_view_realize): Ditto.
1916 (webkit_web_view_set_scroll_adjustments): Ditto.
1917 (webkit_web_view_dispose): Changed all g_object_unref calls to
1918 PlatformRefPtr.clear(). Although this will also be done by the manual
1919 call to the WebKitWebViewPrivate destructor, the order that these
1920 fields are zero'd in is still very sensitive.
1921 (webkit_web_view_finalize): Updated to reflect PlatformRefPtr changes.
1922 (webViewGetDPI): Ditto.
1923 (webkit_web_view_screen_changed): Ditto.
1924 (webkit_web_view_drag_end): Ditto.
1925 (webkit_web_view_drag_data_get): Ditto.
1926 (doDragLeaveLater): Ditto.
1927 (webkit_web_view_drag_leave): Ditto.
1928 (webkit_web_view_drag_motion): Ditto.
1929 (webkit_web_view_drag_data_received): Ditto.
1930 (webkit_web_view_drag_drop): Ditto.
1931 (webkit_web_view_get_im_context): Ditto.
1932 (webkit_web_view_update_settings): Ditto.
1933 (webkit_web_view_init): Ditto.
1934 (webkit_web_view_set_settings): Ditto.
1935 (webkit_web_view_get_settings): Ditto.
1936 (webkit_web_view_get_inspector): Ditto.
1937 (webkit_web_view_set_window_features): Ditto.
1938 (webkit_web_view_get_window_features): Ditto.
1939 (webkit_web_view_get_back_forward_list): Ditto.
1940 (webkit_web_view_zoom_in): Ditto.
1941 (webkit_web_view_zoom_out): Ditto.
1942 (webkit_web_view_add_resource): Ditto.
1943 (webkit_web_view_get_resource): Ditto.
1944 (webkit_web_view_get_main_resource): Ditto.
1945 (webkit_web_view_clear_resources): Ditto.
1946 (webkit_web_view_get_subresources): Ditto.
1948 2010-09-14 Martin Robinson <mrobinson@igalia.com>
1950 Reviewed by Xan Lopez.
1952 [GTK] fast/events/keydown-numpad-keys.html produces many GLib warnings
1953 https://bugs.webkit.org/show_bug.cgi?id=45775
1955 Handle the toggle-overwrite signal on the GtkTextView used for generating editing
1956 commands. Ignore this signals, as the default handler assumes that the GtkTextView
1957 has a layout and this one does not.
1959 * WebCoreSupport/EditorClientGtk.cpp:
1960 (WebKit::toggleOverwriteCallback): Added. Cancels the default handler.
1961 (WebKit::EditorClient::EditorClient): Attach a handler for toggle-overwrite.
1963 2010-09-14 Pavel Feldman <pfeldman@chromium.org>
1965 Reviewed by Yury Semikhatsky.
1967 Web Inspector: Provide network-based load timing.
1968 Before this change, inspector used timers taken from
1969 within WebCore notifications (that are by definition
1970 synchronous and serialized). As a result, timing was
1971 affected by the routines running on the main thread
1972 (JavaScript and such).
1973 https://bugs.webkit.org/show_bug.cgi?id=45664
1975 * webkit/webkitdownload.cpp:
1976 (DownloadClient::didFinishLoading):
1978 2010-09-15 Sheriff Bot <webkit.review.bot@gmail.com>
1980 Unreviewed, rolling out r67551.
1981 http://trac.webkit.org/changeset/67551
1982 https://bugs.webkit.org/show_bug.cgi?id=45816
1984 "Plugin tests fail" (Requested by yurys on #webkit).
1986 * webkit/webkitdownload.cpp:
1987 (DownloadClient::didFinishLoading):
1989 2010-09-14 Pavel Feldman <pfeldman@chromium.org>
1991 Reviewed by Yury Semikhatsky.
1993 Web Inspector: Provide network-based load timing.
1994 Before this change, inspector used timers taken from
1995 within WebCore notifications (that are by definition
1996 synchronous and serialized). As a result, timing was
1997 affected by the routines running on the main thread
1998 (JavaScript and such).
1999 https://bugs.webkit.org/show_bug.cgi?id=45664
2001 * webkit/webkitdownload.cpp:
2002 (DownloadClient::didFinishLoading):
2004 2010-09-13 Enrica Casucci <enrica@apple.com>
2006 Reviewed by Sam Weinig.
2008 Paste should be implemented in WebCore like Copy and Cut for Mac also.
2009 https://bugs.webkit.org/show_bug.cgi?id=45494
2010 <rdar://problem/7660537>
2012 On the Mac platform, the implementation of the paste operation is all done
2013 at the WebKit level. In order to support it on WebKit2 it is necessary to
2014 refactor the code and move this functionality at the level of WebCore like
2015 we already have on Windows.
2016 The original code relies on some in AppKit functions that call back into
2017 WebKit causing problems in WebKit2. All this functionality has been moved
2018 at the level of the editor client where it can be dealt with appropriately.
2020 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2021 (WebKit::FrameLoaderClient::canShowMIMETypeAsHTML): Added stub.
2022 * WebCoreSupport/FrameLoaderClientGtk.h:
2024 2010-09-13 Mario Sanchez Prada <msanchez@igalia.com>
2026 Reviewed by Martin Robinson.
2028 [GTK] Provide unit tests for AtkText's text selection functions
2029 https://bugs.webkit.org/show_bug.cgi?id=43919
2031 New tests to check getting, setting and removing text selections
2034 (testWekitAtkTextSelections): New unit tests to check all the text
2035 selection related functions altogether through a single test
2039 Make sure that code dependant on getting information from the
2040 clipboard gets executed only when there's a GDK window associated
2041 to the webview widget, as that's not the case when executing the
2042 unit tests (the wedbview is not inside of any toplevel window) and
2043 will make the tests crash if not taken into account.
2045 * WebCoreSupport/EditorClientGtk.cpp:
2046 (WebKit::EditorClient::respondToChangedSelection):
2048 2010-09-11 Xan Lopez <xlopez@igalia.com>
2050 Reviewed by Martin Robinson.
2052 [GTK] Make introspection work with g-o-i 0.9.5
2053 https://bugs.webkit.org/show_bug.cgi?id=45590
2055 Use new type syntax and bump version number of the gir file.
2059 2010-09-10 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
2061 Reviewed by Darin Adler.
2063 Add NetworkingContext to avoid layer violations
2064 https://bugs.webkit.org/show_bug.cgi?id=42292
2066 * webkit/webkitdownload.cpp:
2067 (webkit_download_start):
2068 * webkit/webkitprivate.cpp:
2069 (currentToplevelCallback):
2071 2010-09-10 Sam Weinig <sam@webkit.org>
2075 * webkit/webkitwebview.cpp:
2076 (webkit_web_view_set_full_content_zoom):
2078 2010-09-10 Sam Weinig <sam@webkit.org>
2080 Reviewed by Darin Adler.
2082 Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
2083 Precursor to <rdar://problem/7660657>
2084 https://bugs.webkit.org/show_bug.cgi?id=45522
2086 * webkit/webkitwebview.cpp:
2087 (webkit_web_view_get_zoom_level):
2088 (webkit_web_view_apply_zoom_level):
2089 (webkit_web_view_set_full_content_zoom):
2091 2010-09-10 Mario Sanchez Prada <msanchez@igalia.com>
2093 Reviewed by Gustavo Noronha Silva.
2095 [GTK] Fix warnings because of bad assignments in testatk.c
2096 https://bugs.webkit.org/show_bug.cgi?id=45538
2098 Use AtkObject and AtkText instances properly in the code.
2101 (testWebkitAtkListsOfItems):
2103 2010-09-10 Adam Barth <abarth@webkit.org>
2105 Reviewed by Darin Fisher.
2107 Move code from WebKit-layer to DocumentLoader
2108 https://bugs.webkit.org/show_bug.cgi?id=45569
2110 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2111 (WebKit::FrameLoaderClient::committedLoad):
2113 2010-09-10 Adam Barth <abarth@webkit.org>
2115 Reviewed by Eric Seidel.
2117 Main resource bytes shouldn't bounce through FrameLoader
2118 https://bugs.webkit.org/show_bug.cgi?id=45496
2120 Now return the bytes to the DocumentLoader.
2122 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2123 (WebKit::FrameLoaderClient::committedLoad):
2125 2010-09-10 Martin Robinson <mrobinson@igalia.com>
2127 Reviewed by Xan Lopez.
2129 [GTK] Placement new / manual destructor invocation should be used on private GObject memory
2130 https://bugs.webkit.org/show_bug.cgi?id=45550
2132 GLib allocates and deallocates GObject private data structs itself. When
2133 those structs contain C++ members, their constructors and destructors are not
2134 called. This is not only dangerous, it makes RefPtr-type smart pointers much
2135 less useful. We can fix this problem by calling placement new on the private
2136 data struct during instance initialization and calling the destructor during
2139 This patch takes that approach and switches plain char* members of
2140 WebKitWebView (with manual memory allocation) to use CString.
2142 * webkit/webkitprivate.h: Switch char* members to CString.
2143 * webkit/webkitwebview.cpp:
2144 (webkit_web_view_finalize): Manually call the destructor on the private
2145 data. Remove manual deallocation of members which are now CString.
2146 (webkit_web_view_query_tooltip): Update to reflect CString change.
2147 (webkit_web_view_init): Use placement new to initialize C++ members of
2148 the private data section.
2149 (webkit_web_view_get_encoding): Update to reflect CString change.
2150 (webkit_web_view_get_custom_encoding): Ditto.
2151 (webkit_web_view_add_resource): Ditto.
2152 (webkit_web_view_get_resource): Ditto.
2153 (webkit_web_view_clear_resources): Ditto.
2154 (webkit_web_view_set_tooltip_text): Ditto.
2155 (webkit_web_view_get_icon_uri): Ditto.
2157 2010-09-10 Gustavo Noronha Silva <gns@gnome.org>
2159 Reviewed by Martin Robinson.
2161 [GTK] Google sites do not like WebKitGTK+
2162 https://bugs.webkit.org/show_bug.cgi?id=39617
2164 Special-case Google domains, and spoof User-Agent when talking to
2165 them, to stop being treated as a second-class citizen.
2167 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2168 (WebKit::initializeDomainsList):
2169 (WebKit::isGoogleDomain):
2170 (WebKit::FrameLoaderClient::userAgent): If enable-site-specific-quirks
2171 is enabled, send the standard WebKit User-Agent string, disregarding the
2172 custom one set by the browser for Google domains.
2173 * webkit/webkitprivate.h:
2174 * webkit/webkitwebsettings.cpp:
2175 (webkitPlatform): Fix style, and simplify.
2176 (webkitOSVersion): Ditto.
2177 (webkitUserAgent): Add the Version/x.y string Safari has been
2178 using since Safari 2.2.
2180 2010-09-10 Xan Lopez <xlopez@igalia.com>
2182 Reviewed by Martin Robinson.
2184 Fix compilation with GTK+ 3.x.
2186 GDK key macros were renamed from GDK_FOO to GDK_KEY_FOO, we need
2187 to include the compat header provided if we want to keep using the
2190 * WebCoreSupport/FullscreenVideoController.cpp: include GtkVersioning.h
2192 2010-09-08 Darin Adler <darin@apple.com>
2194 Reviewed by Adam Barth.
2196 Move functions from Frame to Editor as planned
2197 https://bugs.webkit.org/show_bug.cgi?id=45218
2199 * webkit/webkitwebview.cpp:
2200 (webkit_web_view_set_highlight_text_matches):
2201 (webkit_web_view_get_selected_text):
2202 (webkit_web_view_set_editable):
2203 Changed call sites to use editor().
2205 2010-09-09 Philippe Normand <pnormand@igalia.com>
2207 Reviewed by Martin Robinson.
2209 [GTK] testmimehandling falsely succeeds testing Ogg mime type
2210 https://bugs.webkit.org/show_bug.cgi?id=45349
2212 Make this actually test an ogg file request instead of pdf and
2213 changed the expected result to match libsoup content-sniffing
2214 result in the case of ogg/vorbis file.
2216 * tests/testmimehandling.c:
2217 (mime_type_policy_decision_requested_cb):
2220 2010-09-08 Mario Sanchez Prada <msanchez@igalia.com>
2222 Reviewed by Martin Robinson.
2224 [Gtk] A list item's number/bullet should not be a child of that list item
2225 https://bugs.webkit.org/show_bug.cgi?id=45190
2227 New unit test added.
2230 (testWebkitAtkListsOfItems): New test to check ordered/unordered
2231 list of items are properly exposed to AT technologies.
2234 2010-09-07 Martin Robinson <mrobinson@igalia.com>
2236 Reviewed by Xan Lopez.
2238 [GTK] Fix some feature guards
2239 https://bugs.webkit.org/show_bug.cgi?id=45302
2241 * webkit/webkitprivate.h: Add ENABLE(VIDEO) guards for video specific members.
2243 2010-09-03 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
2245 Reviewed by Darin Adler.
2247 Add NetworkingContext to avoid layer violations
2248 https://bugs.webkit.org/show_bug.cgi?id=42292
2250 Add GTK's specific implementation of FrameNetworkingContext.
2252 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2253 (WebKit::FrameLoaderClient::createNetworkingContext):
2254 * WebCoreSupport/FrameLoaderClientGtk.h:
2256 2010-09-03 Xan Lopez <xlopez@igalia.com>
2258 Reviewed by Gustavo Noronha.
2260 Dialog separators are gone in GTK+ 3.x.
2262 * webkit/webkitsoupauthdialog.c:
2265 2010-09-02 Yury Semikhatsky <yurys@chromium.org>
2267 Reviewed by Pavel Feldman.
2269 REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
2270 https://bugs.webkit.org/show_bug.cgi?id=44230
2272 * WebCoreSupport/InspectorClientGtk.cpp:
2273 (WebKit::notifyWebViewDestroyed):
2274 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
2275 (WebKit::InspectorFrontendClient::closeWindow):
2276 (WebKit::InspectorFrontendClient::disconnectFromBackend):
2277 * WebCoreSupport/InspectorClientGtk.h:
2279 2010-08-31 Dave Hyatt <hyatt@apple.com>
2281 Reviewed by Sam Weinig.
2283 https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that
2284 the former can occur in more places without having to do the latter.
2286 * webkit/webkitwebview.cpp:
2287 (webkit_web_view_expose_event):
2289 2010-08-31 Martin Robinson <mrobinson@igalia.com>
2291 Reviewed by Gustavo Noronha Silva.
2293 [GTK] Isolate all GTK+ typedefs into one file
2294 https://bugs.webkit.org/show_bug.cgi?id=44900
2296 * WebCoreSupport/EditorClientGtk.h: Remove GTK+ typedefs.
2297 * WebCoreSupport/FullscreenVideoController.h: Ditto.
2299 2010-08-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2301 Reviewed by Martin Robinson.
2303 Preparations for the 1.3.4 release.
2306 * docs/webkitgtk-docs.sgml:
2308 2010-08-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2310 Unreviewed. Minor documentation typo fix.
2312 * webkit/webkitwebview.cpp:
2314 2010-08-30 Alejandro G. Castro <alex@igalia.com>
2316 Reviewed by Martin Robinson.
2318 [Gtk] gdk_display_get_core_pointer and gdk_device_get_core_pointer
2320 https://bugs.webkit.org/show_bug.cgi?id=44787
2322 We have replaced GtkVersioning.cpp with GtkVersioning.c and
2323 created a function (getDefaultGDKPointerDevice) to get the pointer
2324 of the window with the new APIs. We added that function to DRT and
2325 copyandpaste unit test.
2327 * tests/testcopyandpaste.c:
2328 (runPasteTestCallback):
2330 2010-08-30 Sheriff Bot <webkit.review.bot@gmail.com>
2332 Unreviewed, rolling out r66198.
2333 http://trac.webkit.org/changeset/66198
2334 https://bugs.webkit.org/show_bug.cgi?id=44856
2336 It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
2338 * WebCoreSupport/InspectorClientGtk.cpp:
2339 (WebKit::notifyWebViewDestroyed):
2340 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
2341 (WebKit::InspectorFrontendClient::closeWindow):
2342 * WebCoreSupport/InspectorClientGtk.h:
2344 2010-08-27 Yury Semikhatsky <yurys@chromium.org>
2346 Reviewed by Pavel Feldman.
2348 REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
2349 https://bugs.webkit.org/show_bug.cgi?id=44230
2351 * WebCoreSupport/InspectorClientGtk.cpp:
2352 (WebKit::notifyWebViewDestroyed):
2353 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
2354 (WebKit::InspectorFrontendClient::closeWindow):
2355 (WebKit::InspectorFrontendClient::disconnectFromBackend):
2356 * WebCoreSupport/InspectorClientGtk.h:
2358 2010-08-26 Yury Semikhatsky <yurys@chromium.org>
2360 Unreviewed. Revert r66103 since Qt tests are failing.
2362 * WebCoreSupport/InspectorClientGtk.cpp:
2363 (WebKit::notifyWebViewDestroyed):
2364 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
2365 (WebKit::InspectorFrontendClient::closeWindow):
2366 * WebCoreSupport/InspectorClientGtk.h:
2368 2010-08-26 Yury Semikhatsky <yurys@chromium.org>
2370 Reviewed by Pavel Feldman.
2372 REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
2373 https://bugs.webkit.org/show_bug.cgi?id=44230
2375 * WebCoreSupport/InspectorClientGtk.cpp:
2376 (WebKit::notifyWebViewDestroyed):
2377 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
2378 (WebKit::InspectorFrontendClient::closeWindow):
2379 (WebKit::InspectorFrontendClient::disconnectFromBackend):
2380 * WebCoreSupport/InspectorClientGtk.h:
2382 2010-08-26 Gustavo Noronha Silva <gns@gnome.org>
2384 Reviewed by Martin Robinson.
2386 [GTK] WebKitGTK+ needs proper introspection annotation for most types and methods
2387 https://bugs.webkit.org/show_bug.cgi?id=44565
2389 Add documentation and introspection specific information to a few
2390 getter and setter methods.
2392 * webkit/webkitwebview.cpp:
2394 2010-08-25 Martin Robinson <mrobinson@igalia.com>
2396 Reviewed by Gustavo Noronha Silva.
2398 confirm dialog should show OK/Cancel instead of Yes/No for consistency
2399 https://bugs.webkit.org/show_bug.cgi?id=32877
2401 Change the button labels for the fallback confirmation dialog to be
2404 * webkit/webkitwebview.cpp:
2405 (webkit_web_view_script_dialog):
2407 2010-08-25 Martin Robinson <mrobinson@igalia.com>
2409 Reviewed by Gustavo Noronha Silva.
2411 Cairo and EFL port shouldn't depend on glib.
2412 https://bugs.webkit.org/show_bug.cgi?id=44354
2414 Replace occurrences of GRefPtr and adoptGRef with PlatformRefPtr and
2417 * WebCoreSupport/ChromeClientGtk.cpp:
2418 (WebKit::ChromeClient::requestGeolocationPermissionForFrame):
2419 * WebCoreSupport/DragClientGtk.cpp:
2420 (WebKit::DragClient::startDrag):
2421 * WebCoreSupport/EditorClientGtk.h:
2422 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2423 (WebKit::FrameLoaderClient::dispatchWillSendRequest):
2424 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType):
2425 (WebKit::FrameLoaderClient::createPlugin):
2426 * WebCoreSupport/FullscreenVideoController.h:
2427 * WebCoreSupport/InspectorClientGtk.cpp:
2428 (WebKit::InspectorClient::populateSetting):
2429 (WebKit::InspectorClient::storeSetting):
2430 * webkit/webkitdownload.cpp:
2431 (webkit_download_error):
2432 * webkit/webkitnetworkrequest.cpp:
2433 (webkit_network_request_new_with_core_request):
2434 * webkit/webkitnetworkresponse.cpp:
2435 (webkit_network_response_new_with_core_response):
2437 2010-08-24 Xan Lopez <xlopez@igalia.com>
2439 Reviewed by Martin Robinson.
2441 Set a device to the event struct when building with GTK+ 3.x, it's
2444 * tests/testcopyandpaste.c:
2445 (runPasteTestCallback):
2447 2010-08-24 Martin Robinson <mrobinson@igalia.com>
2451 * tests/testkeyevents.c:
2452 (key_press_event_cb):
2453 (key_release_event_cb):
2455 2010-08-24 Martin Robinson <mrobinson@igalia.com>
2457 Reviewed by Xan Lopez.
2459 [GTK] GTK3: EventSender and API tests should use gdk_event_new when synthesizing events
2460 https://bugs.webkit.org/show_bug.cgi?id=44534
2462 Fix an issue where a GdkEvent* is treated like a GdkEvent.
2464 * tests/testkeyevents.c:
2465 (key_press_event_cb):
2466 (key_release_event_cb):
2468 2010-08-24 Martin Robinson <mrobinson@igalia.com>
2470 Reviewed by Xan Lopez.
2472 [GTK] GTK3: EventSender and API tests should use gdk_event_new when synthesizing events
2473 https://bugs.webkit.org/show_bug.cgi?id=44534
2475 * tests/testcopyandpaste.c:
2476 (runPasteTestCallback): Switch to using gdk_event_new and also reference the GdkWindow.
2477 when setting it on the event. It is dereferenced by gdk_event_free(...).
2478 * tests/testhittestresult.c:
2479 (load_status_cb): Switch to using gdk_event_new.
2481 2010-08-24 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2483 Rubber-stamped by Xan Lopez.
2485 Do not initialize the GSettings object in webkit_init - the other
2486 call sites are always called in the main thread so this is
2489 * webkit/webkitprivate.cpp:
2492 2010-08-20 Martin Robinson <mrobinson@igalia.com>
2494 Reviewed by Pavel Feldman.
2496 Web Inspector: Inspector tests were disabled for GTK.
2497 https://bugs.webkit.org/show_bug.cgi?id=43977
2499 Allow setting the inspector resources path via an environment variables
2500 and add a method, inspectorFilesPath, to the WebKit InspectorClient that
2501 encapsulates this logic.
2503 * WebCoreSupport/InspectorClientGtk.cpp:
2504 (WebKit::InspectorClient::openInspectorFrontend): Use the new inspectorFilesPath method to
2505 get the path to the resource.
2506 (WebKit::InspectorClient::inspectorFilesPath): Added.
2507 (WebKit::InspectorFrontendClient::localizedStringsURL): Use inspectorFilesPath method.
2508 * WebCoreSupport/InspectorClientGtk.h: Add method and member variables for caching the result.
2510 2010-08-19 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2512 Reviewed by Kenneth Rohde Christiansen.
2514 [Gtk] Enable view mode media feature layout test
2515 https://bugs.webkit.org/show_bug.cgi?id=43278
2517 Add the view-mode property, to control the WebCore page's viewMode.
2519 * docs/webkitgtk-sections.txt:
2520 * webkit/webkitwebview.cpp:
2521 (webkit_web_view_get_property):
2522 (webkit_web_view_set_property):
2523 (webkit_web_view_class_init):
2524 (webkit_web_view_set_view_mode):
2525 (webkit_web_view_get_view_mode):
2526 * webkit/webkitwebview.h:
2528 2010-08-19 Philippe Normand <pnormand@igalia.com>
2530 Reviewed by Gustavo Noronha Silva.
2532 [GStreamer] GTK XOverlay support in GStreamerGWorld
2533 https://bugs.webkit.org/show_bug.cgi?id=39474
2535 New FullscreenVideoController object, private in the webview. It
2536 is created when the user presses the fullscreen button of the
2537 video controls. Video is displayed in fullscreen, controls are
2538 displayed when the user moves the mouse and when the video is
2539 paused. There's also basic keyboard shortcuts support: F/f to
2540 leave fullscreen, space to toggle play/pause and up/down to
2543 * WebCoreSupport/ChromeClientGtk.cpp:
2544 (WebKit::ChromeClient::supportsFullscreenForNode):
2545 (WebKit::ChromeClient::enterFullscreenForNode):
2546 (WebKit::ChromeClient::exitFullscreenForNode):
2547 * WebCoreSupport/ChromeClientGtk.h:
2548 * WebCoreSupport/FullscreenVideoController.cpp: Added.
2550 (onFullscreenGtkMotionNotifyEvent):
2551 (onFullscreenGtkActiveNotification):
2552 (onFullscreenGtkConfigureEvent):
2553 (onFullscreenGtkDestroy):
2554 (togglePlayPauseActivated):
2555 (exitFullscreenActivated):
2556 (progressBarUpdateCallback):
2557 (timeScaleButtonPressed):
2558 (timeScaleButtonReleased):
2559 (timeScaleValueChanged):
2560 (volumeValueChanged):
2561 (playerVolumeChangedCallback):
2562 (playerMuteChangedCallback):
2563 (FullscreenVideoController::FullscreenVideoController):
2564 (FullscreenVideoController::~FullscreenVideoController):
2565 (FullscreenVideoController::setMediaElement):
2566 (FullscreenVideoController::gtkConfigure):
2567 (FullscreenVideoController::showHud):
2568 (FullscreenVideoController::hideHud):
2569 (onFullscreenGtkKeyPressEvent):
2570 (FullscreenVideoController::enterFullscreen):
2571 (FullscreenVideoController::updateHudPosition):
2572 (FullscreenVideoController::exitOnUserRequest):
2573 (FullscreenVideoController::exitFullscreen):
2574 (FullscreenVideoController::canPlay):
2575 (FullscreenVideoController::play):
2576 (FullscreenVideoController::pause):
2577 (FullscreenVideoController::playStateChanged):
2578 (FullscreenVideoController::togglePlay):
2579 (FullscreenVideoController::volume):
2580 (FullscreenVideoController::muted):
2581 (FullscreenVideoController::setVolume):
2582 (FullscreenVideoController::volumeChanged):
2583 (FullscreenVideoController::muteChanged):
2584 (FullscreenVideoController::currentTime):
2585 (FullscreenVideoController::setCurrentTime):
2586 (FullscreenVideoController::duration):
2587 (FullscreenVideoController::percentLoaded):
2588 (FullscreenVideoController::beginSeek):
2589 (FullscreenVideoController::doSeek):
2590 (FullscreenVideoController::endSeek):
2592 (FullscreenVideoController::updateHudProgressBar):
2593 (FullscreenVideoController::createHud):
2594 * WebCoreSupport/FullscreenVideoController.h: Added.
2595 (FullscreenVideoController::mediaElement):
2596 * webkit/webkitprivate.cpp:
2597 (webkit_web_view_enter_fullscreen):
2598 (webkit_web_view_exit_fullscreen):
2599 * webkit/webkitprivate.h:
2601 2010-08-18 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2603 Reviewed by Martin Robinson.
2605 [GTK] WebBackForwardList's new_with_web_view should not be public
2606 https://bugs.webkit.org/show_bug.cgi?id=43802
2608 Deprecate the constructor. The introspection annotation has been
2609 fixed in a previous commit.
2611 * webkit/webkitwebbackforwardlist.cpp:
2613 2010-08-17 Ilya Tikhonovsky <loislo@chromium.org>
2615 Reviewed by Yury Semikhatsky.
2617 Web Inspector: replace hand written InspectorBackendStub.js with generated one.
2618 https://bugs.webkit.org/show_bug.cgi?id=43791
2620 * WebCoreSupport/InspectorClientGtk.cpp:
2621 (WebKit::InspectorClient::openInspectorFrontend):
2623 2010-08-18 Sheriff Bot <webkit.review.bot@gmail.com>
2625 Unreviewed, rolling out r65595.
2626 http://trac.webkit.org/changeset/65595
2627 https://bugs.webkit.org/show_bug.cgi?id=44161
2629 qt build failed (Requested by loislo on #webkit).
2631 * WebCoreSupport/InspectorClientGtk.cpp:
2632 (WebKit::InspectorClient::openInspectorFrontend):
2634 2010-08-17 Ilya Tikhonovsky <loislo@chromium.org>
2636 Reviewed by Yury Semikhatsky.
2638 Web Inspector: replace hand written InspectorBackendStub.js by generated one.
2639 https://bugs.webkit.org/show_bug.cgi?id=43791
2641 * WebCoreSupport/InspectorClientGtk.cpp:
2642 (WebKit::InspectorClient::openInspectorFrontend):
2644 2010-08-17 Xan Lopez <xlopez@igalia.com>
2646 Reviewed by Gustavo Noronha.
2648 Fix the builds when HAVE_GSETTINGS is defined.
2650 * webkit/webkitprivate.cpp:
2651 (isSchemaAvailable):
2652 (inspectorGSettings):
2654 2010-08-17 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
2656 Reviewed by Darin Adler.
2658 Add NetworkingContext to avoid layer violations
2659 https://bugs.webkit.org/show_bug.cgi?id=42292
2661 Preparation: Just add the files to the build system.
2663 * WebCoreSupport/FrameNetworkingContextGtk.h: Added.
2664 Placeholder with tentative code that might be changed when landing
2667 2010-08-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2669 Reviewed by Martin Robinson.
2671 WebBackForwardList.get_{back|forward}_list_with_limit not introspectable
2672 https://bugs.webkit.org/show_bug.cgi?id=43054
2674 Annotate WebKitWebBackForwardList and the function that is used to fetch it from
2675 the WebKitWebView. More will follow.
2677 * webkit/webkitwebbackforwardlist.cpp: Annotations, and small
2678 improvements to the docs.
2679 * webkit/webkitwebbackforwardlist.h: Couple empty lines missing.
2680 * webkit/webkitwebview.cpp:
2682 2010-08-17 Martin Robinson <mrobinson@igalia.com>
2684 Reviewed by Gustavo Noronha Silva.
2686 [GTK] Clean up WebCore/platform/graphics/gtk/ImageGtk.cpp
2687 https://bugs.webkit.org/show_bug.cgi?id=44069
2689 * WebCoreSupport/InspectorClientGtk.cpp:
2690 (WebKit::InspectorClient::openInspectorFrontend): Switched to using the new WEBKITGTK_API_VERSION_STRING define.
2691 * webkit/webkitprivate.cpp:
2692 (inspectorGSettings): Ditto.
2694 2010-08-17 Sheriff Bot <webkit.review.bot@gmail.com>
2696 Unreviewed, rolling out r65500.
2697 http://trac.webkit.org/changeset/65500
2698 https://bugs.webkit.org/show_bug.cgi?id=44108
2700 Qt bots failed to compile. (Requested by loislo on #webkit).
2702 * WebCoreSupport/InspectorClientGtk.cpp:
2703 (WebKit::InspectorClient::openInspectorFrontend):
2705 2010-08-17 Ilya Tikhonovsky <loislo@chromium.org>
2707 Reviewed by Yury Semikhatsky.
2709 Web Inspector: replace hand written InspectorBackendStub.js by generated one.
2710 https://bugs.webkit.org/show_bug.cgi?id=43791
2712 * WebCoreSupport/InspectorClientGtk.cpp:
2713 (WebKit::InspectorClient::openInspectorFrontend):
2715 2010-08-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2717 Reviewed by Martin Robinson.
2719 [GTK] GSettings support adds annoying warnings on systems with older glib versions
2720 https://bugs.webkit.org/show_bug.cgi?id=44056
2722 Use #ifdef instead of #if for HAVE_GSETTINGS to avoid warnings
2723 when it is not defined.
2725 * WebCoreSupport/InspectorClientGtk.cpp:
2726 * webkit/webkitprivate.cpp:
2728 * webkit/webkitprivate.h:
2730 2010-08-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2732 Really add a missing file. I wish I would remember running git add
2733 on them after applying a patch =(.
2735 * org.webkitgtk.gschema.xml.in: Added.
2737 2010-08-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2739 Reviewed by Martin Robinson.
2741 [GTK] Use GSettings to save/restore Web Inspector settings
2742 https://bugs.webkit.org/show_bug.cgi?id=43512
2744 Use GSettings to save/restore settings used by the Web Inspector.
2745 A few helper functions were added to have settings that use
2746 boolean values be actual booleans, and also to conform with the
2747 GSettings naming requirements for keys.
2749 * WebCoreSupport/InspectorClientGtk.cpp:
2750 (WebKit::toGSettingName):
2751 (WebKit::truthStringFromVariant):
2752 (WebKit::variantFromTruthString):
2753 (WebKit::InspectorClient::populateSetting):
2754 (WebKit::InspectorClient::storeSetting):
2755 * org.webkit.gtk.gschema.xml: Added.
2756 * webkit/webkitprivate.cpp:
2757 (inspectorGSettings):
2759 * webkit/webkitprivate.h:
2761 2010-08-11 Joone Hur <joone@kldp.org>
2763 Reviewed by Martin Robinson.
2765 [GTK] Last Hangul letter is typed again when a composition is finished with mouse press
2766 https://bugs.webkit.org/show_bug.cgi?id=40518
2768 When a mouse press fires during a IME composition, the current composition character
2769 can be entered twice at the previous editing position and a new editing position.
2770 Because the IME commit signal is emitted after the mouse press event.
2771 This patch allows to prevent the commit signal during a composition when a mouse press fires.
2773 * WebCoreSupport/EditorClientGtk.cpp:
2774 (WebKit::imContextCommitted):
2775 (WebKit::EditorClient::handleInputMethodKeydown): Allow to accept the next composition commit.
2776 (WebKit::EditorClient::handleInputMethodMousePress): Added for handling IME when a mouse press fires.
2777 (WebKit::EditorClient::EditorClient): Initialize m_preventNextCompositionCommit
2778 * WebCoreSupport/EditorClientGtk.h:
2779 (WebKit::EditorClient::preventNextCompositionCommit): Added for checking whether skipping a commit.
2780 * webkit/webkitwebview.cpp:
2781 (webkit_web_view_button_press_event): Call handleInputMethodMousePress()
2783 2010-08-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2785 Reviewed by Martin Robinson.
2787 Small improvement to the documentation of the geolocation-policy-decision-requested
2788 signal, stating more clearly what is expected from the handler.
2790 * webkit/webkitwebview.cpp:
2791 (webkit_web_view_class_init):
2793 2010-08-11 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2795 Reviewed by Martin Robinson.
2797 [GTK] Geolocation policy decision object leaking
2798 https://bugs.webkit.org/show_bug.cgi?id=43884
2800 Use GRefPtr on the policy decision object to fix the leak.
2802 * WebCoreSupport/ChromeClientGtk.cpp:
2803 (WebKit::ChromeClient::requestGeolocationPermissionForFrame):
2805 2010-08-10 Chris Marrin <cmarrin@apple.com>
2807 Reviewed by Oliver Hunt.
2809 Add suspendAnimations/resumeAnimation API to DRT
2810 https://bugs.webkit.org/show_bug.cgi?id=43733
2814 * webkit/webkitprivate.h:
2815 * webkit/webkitwebframe.cpp:
2816 (webkit_web_frame_suspend_animations):
2817 (webkit_web_frame_resume_animations):
2819 2010-08-10 Gavin Barraclough <barraclough@apple.com>
2821 Rubber stamped by Sam Weinig.
2823 Bug 43786 - Move AtomicStringHash from WebCore to WTF
2824 Also remove deprecated string headers from WebCore/platform/text.
2826 * gdom/ConvertToGCharPrivate.h:
2828 2010-08-06 Gavin Barraclough <barraclough@apple.com>
2830 Rubber stamped by Sam Weinig
2832 Bug 43594 - Add string forwards to Forward.h
2833 This allows us to remove forward declarations for these classes from
2834 WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
2836 * WebCoreSupport/InspectorClientGtk.h:
2838 2010-08-09 Martin Robinson <mrobinson@igalia.com>
2840 Reviewed by Xan Lopez.
2842 [gtk] gtk_im_context_focus_in() should only be called when an input-able element has focus
2843 https://bugs.webkit.org/show_bug.cgi?id=43602
2845 Only call gtk_im_context_focus_in() when we focus a frame which is currently in
2848 * webkit/webkitwebview.cpp:
2849 (webkit_web_view_focus_in_event): Conditionalize call to gtk_im_context_focus_in().
2851 2010-08-06 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2853 Reviewed by Xan Lopez.
2855 Use the new paths, and also fix the path for localizedStrings.
2857 * WebCoreSupport/InspectorClientGtk.cpp:
2858 (WebKit::InspectorClient::openInspectorFrontend):
2859 (WebKit::InspectorFrontendClient::localizedStringsURL):
2861 2010-08-06 Jessie Berlin <jberlin@apple.com>
2863 Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
2866 * WebCoreSupport/InspectorClientGtk.h:
2868 2010-08-05 Xan Lopez <xlopez@igalia.com>
2870 Reviewed by Gustavo Noronha.
2872 [GTK] Use correct path for Inspector data files in GTK+3.x builds
2873 https://bugs.webkit.org/show_bug.cgi?id=43445
2875 Use the right data path for inspector files when building with
2878 * WebCoreSupport/InspectorClientGtk.cpp:
2879 (WebKit::InspectorClient::openInspectorFrontend):
2881 2010-08-03 Daniel Bates <dbates@rim.com>
2883 Fix misspelled word 'teh' in the description of the XSS Auditor setting.
2885 * webkit/webkitwebsettings.cpp:
2886 (webkit_web_settings_class_init):
2888 2010-08-03 Xan Lopez <xlopez@igalia.com>
2890 Reviewed by Gustavo Noronha.
2892 [GTK] Fix DOM event dispatch
2893 https://bugs.webkit.org/show_bug.cgi?id=40847
2895 Test DOM event dispatch.
2897 * tests/testdomdomwindow.c:
2898 (load_event_callback):
2899 (test_dom_domview_signals):
2901 (load_status_callback):
2902 (test_dom_domview_dispatch_event):
2905 2010-08-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2907 Reviewed by Xan Lopez.
2909 [GTK] Does not paint the node highlight used by the inspector
2910 https://bugs.webkit.org/show_bug.cgi?id=43429
2912 Implement highlighting the nodes when using the inspector.
2914 * WebCoreSupport/InspectorClientGtk.cpp:
2915 (WebKit::InspectorClient::highlight):
2916 (WebKit::InspectorClient::hideHighlight):
2917 * webkit/webkitwebview.cpp:
2918 (webkit_web_view_expose_event):
2920 2010-08-03 Xan Lopez <xlopez@igalia.com>
2922 Reviewed by Gustavo Noronha.
2924 Update unit tests now that string parameters are 'const char*'.
2926 * tests/testdomdocument.c:
2927 (test_dom_document_title):
2928 (test_dom_document_get_elements_by_tag_name):
2929 (test_dom_document_get_elements_by_class_name):
2930 (test_dom_document_get_element_by_id):
2931 * tests/testdomnode.c:
2932 (test_dom_node_insertion):
2934 2010-08-02 Martin Robinson <mrobinson@igalia.com>
2936 Reviewed by Xan Lopez.
2938 [GTK] DRT implement execCommand()
2939 https://bugs.webkit.org/show_bug.cgi?id=35351
2941 * webkit/webkitprivate.h: Add some private methods for the DRT which enable
2942 LayoutTestController.execCommand and LayoutTestController.isCommandEnabled:
2943 webkit_web_view_execute_core_command_by_name and webkit_web_view_is_command_enabled.
2944 * webkit/webkitwebview.cpp:
2945 (webkit_web_view_execute_core_command_by_name): added.
2946 (webkit_web_view_is_command_enabled): Added.
2948 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org>
2950 Reviewed by Darin Fisher.
2952 PopupMenu refactoring in preparation to WebKit2
2953 https://bugs.webkit.org/show_bug.cgi?id=42592
2955 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
2956 instances, concrete classes that inherit from ChromeClient needed to be changed to
2957 implement the new methods.
2959 * WebCoreSupport/ChromeClientGtk.cpp:
2960 (WebKit::ChromeClient::selectItemWritingDirectionIsNatural):
2961 (WebKit::ChromeClient::createPopupMenu):
2962 (WebKit::ChromeClient::createSearchPopupMenu):
2963 * WebCoreSupport/ChromeClientGtk.h:
2965 2010-08-02 Martin Robinson <mrobinson@igalia.com>
2967 Reviewed by Xan Lopez.
2969 [GTK] Create a frame-created signal
2970 https://bugs.webkit.org/show_bug.cgi?id=43284
2972 Add a frame-created signal, which will allow developers to track
2973 the beginning of a frame lifecycle and attach signal handlers to
2976 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2977 (WebKit::FrameLoaderClient::createFrame): Emit the frame-created signal.
2978 * tests/testwebframe.c: Add a test which verifies that the correct number of
2979 frame-created signals is fired when a page with iframes loads.
2980 (createFrameSignalTestFrameCreatedCallback): Added.
2981 (createFrameSignalTestTimeout): Added.
2982 (test_webkit_web_frame_created_signal): Added.
2983 (main): Add a reference to the new test.
2984 * webkit/webkitprivate.h: De-normalize webkit_web_frame_init_with_web_view into
2985 the one place that it is used, so that the frame-created signal may be fired there.
2986 * webkit/webkitwebframe.cpp: Remove webkit_web_frame_init_with_web_view.
2987 * webkit/webkitwebview.cpp:
2988 (webkit_web_view_class_init): Add the frame-created signal declaration.
2990 2010-08-02 Mario Sanchez Prada <msanchez@igalia.com>
2992 Reviewed by Chris Fleizach.
2994 [GTK] Implement support for get_character_extents and get_range_extents
2995 https://bugs.webkit.org/show_bug.cgi?id=25677
2997 Added new unit tests to check get_character_extents and
2998 get_range_extents functions for the ATK_TEXT interface
3000 Based on a previous patch by Joanmarie Diggs.
3003 (test_webkit_atk_get_extents):
3006 2010-08-02 Jeremy Orlow <jorlow@chromium.org>
3008 Speculative revert of 64425 due to Chromium instability
3009 https://bugs.webkit.org/show_bug.cgi?id=43347
3011 * WebCoreSupport/ChromeClientGtk.cpp:
3012 * WebCoreSupport/ChromeClientGtk.h:
3014 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org>
3016 Reviewed by Darin Fisher.
3018 PopupMenu refactoring in preparation to WebKit2
3019 https://bugs.webkit.org/show_bug.cgi?id=42592
3021 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
3022 instances, concrete classes that inherit from ChromeClient needed to be changed to
3023 implement the new methods.
3025 * WebCoreSupport/ChromeClientGtk.cpp:
3026 (WebKit::ChromeClient::selectItemWritingDirectionIsNatural):
3027 (WebKit::ChromeClient::createPopupMenu):
3028 (WebKit::ChromeClient::createSearchPopupMenu):
3029 * WebCoreSupport/ChromeClientGtk.h:
3031 2010-07-31 Sheriff Bot <webkit.review.bot@gmail.com>
3033 Unreviewed, rolling out r64422.
3034 http://trac.webkit.org/changeset/64422
3035 https://bugs.webkit.org/show_bug.cgi?id=43304
3037 Build fixes are needed for Snow Leopard and Windows.
3038 (Requested by lca on #webkit).
3040 * WebCoreSupport/ChromeClientGtk.cpp:
3041 * WebCoreSupport/ChromeClientGtk.h:
3043 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org>
3045 Reviewed by Darin Fisher.
3047 PopupMenu refactoring in preparation to WebKit2
3048 https://bugs.webkit.org/show_bug.cgi?id=42592
3050 As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
3051 instances, concrete classes that inherit from ChromeClient needed to be changed to
3052 implement the new methods.
3054 * WebCoreSupport/ChromeClientGtk.cpp:
3055 (WebKit::ChromeClient::selectItemWritingDirectionIsNatural):
3056 (WebKit::ChromeClient::createPopupMenu):
3057 (WebKit::ChromeClient::createSearchPopupMenu):
3058 * WebCoreSupport/ChromeClientGtk.h:
3060 2010-07-30 Joseph Pecoraro <joepeck@webkit.org>
3062 Reviewed by David Kilzer.
3064 Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
3065 https://bugs.webkit.org/show_bug.cgi?id=40627
3067 * WebCoreSupport/ChromeClientGtk.cpp:
3068 (WebKit::ChromeClient::reachedApplicationCacheOriginQuota):
3069 * WebCoreSupport/ChromeClientGtk.h:
3070 2010-07-26 Steve Block <steveblock@google.com>
3072 Reviewed by Jeremy Orlow.
3074 Page clients should be passed to Page constructor via structure of pointers
3075 https://bugs.webkit.org/show_bug.cgi?id=42834
3077 * webkit/webkitwebview.cpp:
3078 (webkit_web_view_init):
3080 2010-07-16 Zhe Su <suzhe@chromium.org>
3082 Reviewed by Darin Adler.
3084 REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms
3085 https://bugs.webkit.org/show_bug.cgi?id=42253
3087 Dummy implementation of EditorClient::willSetInputMethodState.
3089 * WebCoreSupport/EditorClientGtk.cpp:
3090 (WebKit::EditorClient::willSetInputMethodState):
3091 * WebCoreSupport/EditorClientGtk.h:
3093 2010-07-16 Nate Chapin <japhet@chromium.org>
3095 Reviewed by Darin Fisher.
3097 Uncomment an assert that broke due to r63100.
3099 https://bugs.webkit.org/show_bug.cgi?id=42298
3101 * tests/testwebview.c:
3103 2010-07-14 Sam Weinig <sam@webkit.org>
3105 Reviewed by Darin Adler.
3107 Patch for https://bugs.webkit.org/show_bug.cgi?id=42232
3108 Make changing Cursors work in WebKit2.
3110 * WebCoreSupport/ChromeClientGtk.cpp:
3111 (WebKit::ChromeClient::setCursor):
3112 * WebCoreSupport/ChromeClientGtk.h:
3113 Change prototype to match new one.
3115 2010-07-12 Martin Robinson <mrobinson@igalia.com>
3117 Reviewed by Gustavo Noronha Silva.
3119 [GTK] r63100 broke the testwebview test
3120 https://bugs.webkit.org/show_bug.cgi?id=42114
3122 * tests/testwebview.c: Disable a failing assertion in test_webkit_web_view_adjustments
3123 until we can get to the bottom of the failure.
3125 2010-07-12 Xan Lopez <xlopez@igalia.com>
3127 Reviewed by Gustavo Noronha.
3133 2010-07-12 Xan Lopez <xlopez@igalia.com>
3135 Reviewed by Gustavo Noronha.
3137 Fix compilation with sealed GTK+.
3139 * webkit/webkitwebview.cpp:
3140 (webkit_web_view_drag_motion):
3141 (webkit_web_view_drag_data_received):
3142 (webkit_web_view_drag_drop):
3144 2010-07-11 Martin Robinson <mrobinson@igalia.com>
3146 Reviewed by Xan Lopez.
3148 [GTK] WebKitWebView should support drops
3149 https://bugs.webkit.org/show_bug.cgi?id=39843
3151 Add support for dropping content onto GTK+ WebViews.
3153 * webkit/webkitprivate.h:
3154 Add a DroppingContext struct to keep track of drop data while the drop is
3155 in progress. Have WebKitWebView keep a map of GdkDragContexts to DroppingContexts.
3156 * webkit/webkitwebview.cpp: Add necessary includes and globalPointForClientPoint helper.
3157 (webkit_web_view_popup_menu_handler): Use globalPointForClientPoint helper.
3158 (webkit_web_view_dispose): Properly clean up droppingContexts member.
3159 (webkit_web_view_finalize): Delete droppingContext member.
3160 (globalPointForClientPoint): Added.
3161 (doDragLeaveLater): Added.
3162 (webkit_web_view_drag_leave): Added.
3163 (webkit_web_view_drag_motion): Added.
3164 (webkit_web_view_drag_data_received): Added.
3165 (webkit_web_view_drag_drop): Added.
3166 (webkit_web_view_class_init): Connect new drop signal handlers to the widget definition.
3167 (webkit_web_view_init): Set up the widget as a drop destination and initialize droppingContexts.
3169 2010-07-07 Sam Weinig <sam@webkit.org>
3171 Reviewed by Anders Carlsson.
3173 Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
3174 Add basic piping for BackForwardControllerClient.
3176 * webkit/webkitwebview.cpp:
3177 (webkit_web_view_init):
3179 2010-06-19 Ilya Tikhonovsky <loislo@chromium.org>
3181 Reviewed by Yury Semikhatsky.
3183 WebInspector: js function name was fixed.
3184 dispatchMessageToFrontend -> dispatchMessageFromBackend.
3185 https://bugs.webkit.org/show_bug.cgi?id=40675
3187 * WebCoreSupport/InspectorClientGtk.cpp:
3188 (WebKit::InspectorClient::sendMessageToFrontend):
3190 2010-06-23 Martin Robinson <mrobinson@igalia.com>
3192 Reviewed by Gustavo Noronha Silva.
3194 [GTK] Separate DerivedSources per-project
3195 https://bugs.webkit.org/show_bug.cgi?id=41109
3197 Separate WebKitGTK+ DerivedSources into per-project subdirectories to prepare
3198 for properly building WebKit2.
3200 * webkitmarshal.list: Touch this file to force a rebuild of the marshaling code.
3202 2010-07-01 Xan Lopez <xlopez@igalia.com>
3204 Reviewed by Gustavo Noronha.
3206 [GTK] Stop using GdkRegion in 3.x mode
3207 https://bugs.webkit.org/show_bug.cgi?id=41463
3209 Make us compile without using GdkRegion, since it's gone from GTK+
3212 * WebCoreSupport/ChromeClientGtk.cpp:
3213 (WebKit::ChromeClient::scroll):
3214 * webkit/webkitwebview.cpp:
3215 (webkit_web_view_expose_event):
3217 2010-07-01 Martin Robinson <mrobinson@igalia.com>
3219 Reviewed by Xan Lopez.
3221 [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
3222 https://bugs.webkit.org/show_bug.cgi?id=40333
3224 Convert draggingDataObjects to a pointer. The constructor and destructor of the
3225 HashMap should be called explicitly. GObject memory allocation does not do this.
3227 * WebCoreSupport/DragClientGtk.cpp:
3228 (WebKit::DragClient::startDrag):
3229 * webkit/webkitprivate.h:
3230 * webkit/webkitwebview.cpp:
3231 (webkit_web_view_dispose):
3232 (webkit_web_view_drag_end):
3233 (webkit_web_view_drag_data_get):
3234 (webkit_web_view_init):
3236 2010-06-30 Martin Robinson <mrobinson@igalia.com>
3238 Unreviewed, rolling out r62226.
3239 http://trac.webkit.org/changeset/62226
3240 https://bugs.webkit.org/show_bug.cgi?id=40333
3242 This change caused 13 new crashers.
3244 * WebCoreSupport/DragClientGtk.cpp:
3245 (WebKit::DragClient::startDrag):
3246 * webkit/webkitprivate.h:
3247 * webkit/webkitwebview.cpp:
3248 (webkit_web_view_dispose):
3249 (webkit_web_view_drag_end):
3250 (webkit_web_view_drag_data_get):
3251 (webkit_web_view_init):
3253 2010-06-30 Martin Robinson <mrobinson@igalia.com>
3255 Reviewed by Xan Lopez.
3257 [GTK] Convert WebKitWebView's private draggingDataObjects member to a pointer
3258 https://bugs.webkit.org/show_bug.cgi?id=40333
3260 Convert draggingDataObjects to a pointer. The constructor and destructor of the
3261 HashMap should be called explicitly. GObject memory allocation does not do this.
3263 * WebCoreSupport/DragClientGtk.cpp:
3264 (WebKit::DragClient::startDrag):
3265 * webkit/webkitprivate.h:
3266 * webkit/webkitwebview.cpp:
3267 (webkit_web_view_dispose):
3268 (webkit_web_view_drag_end):
3269 (webkit_web_view_drag_data_get):
3270 (webkit_web_view_init):
3272 2010-06-30 Xan Lopez <xlopez@igalia.com>
3274 Reviewed by Gustavo Noronha.
3276 [GTK] Unit test for DOM insertion methods
3277 https://bugs.webkit.org/show_bug.cgi?id=40495
3279 Add unit test for webkit_dom_node_remove_child.
3281 * tests/testdomnode.c:
3282 (test_dom_node_insertion):
3284 2010-06-30 Xan Lopez <xlopez@igalia.com>
3286 Reviewed by Gustavo Noronha.
3288 [GTK] Unit test for DOM insertion methods
3289 https://bugs.webkit.org/show_bug.cgi?id=40495
3291 Add unit tests for node insertion and replacement methods.
3293 * tests/testdomnode.c:
3294 (test_dom_node_insertion):
3297 2010-06-30 Mario Sanchez Prada <msanchez@igalia.com>
3299 Reviewed by Xan Lopez.
3301 [GTK] Random failure on 'testdownload' unit test
3302 https://bugs.webkit.org/show_bug.cgi?id=38256
3304 Make sure the set_filename function is called after handling the
3305 'download-requested' signal for the asynchronous test. This change
3306 is needed because it could happen, with the current code, that the
3307 set_filename () function got called too early in the mainloop,
3308 therefore screwing the tests because the 'theDownload' global
3309 variable wouldn't be properly set yet.
3311 With this modification we ensure the set_filename() function gets
3312 called always after handling the download-requested signal,
3313 therefore avoiding potentialproblems.
3315 * tests/testdownload.c:
3317 (handle_download_requested_cb):
3318 (download_requested_cb):
3319 (download_requested_asynch_cb):
3320 (test_webkit_download_perform):
3322 2010-06-30 José Millán Soto <jmillan@igalia.com>
3324 Reviewed by Xan Lopez.
3326 [Gtk] Text attributes not exposed
3327 https://bugs.webkit.org/show_bug.cgi?id=25528
3329 Added new tests for accessible text attributes
3333 (compAtkAttributeName):
3334 (atkAttributeSetAttributeHasValue):
3335 (atkAttributeSetAreEqual):
3336 (testWebkitAtkTextAttributes):
3339 2010-06-28 Xan Lopez <xlopez@igalia.com>
3341 Reviewed by Gustavo Noronha.
3347 2010-06-28 Xan Lopez <xlopez@igalia.com>
3349 Reviewed by Gustavo Noronha.
3351 [GTK] Does not compile with -DGSEAL_ENABLE
3352 https://bugs.webkit.org/show_bug.cgi?id=37851
3354 Fix build with GSEAL enabled.
3356 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3357 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
3358 * webkit/webkitsoupauthdialog.c:
3361 2010-06-28 Xan Lopez <xlopez@igalia.com>
3363 Reviewed by Gustavo Noronha.
3365 [GTK] Add support for GTK+3
3366 https://bugs.webkit.org/show_bug.cgi?id=41253
3368 Adapt build system to 3.x support, allow the JSCore gir and webkit
3369 pc files to be configurable at build time for different API
3372 * JSCore-1.0.gir: Removed.
3373 * JSCore.gir.in: Added.
3374 * docs/GNUmakefile.am:
3377 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com>
3379 Reviewed by Xan Lopez.
3381 [Gtk] Implement atk_table_get_column_header
3382 https://bugs.webkit.org/show_bug.cgi?id=30896
3384 Replace g_timeout_add() with g_idle_add().
3387 (test_webkit_atk_get_text_at_offset_forms):
3388 (test_webkit_atk_get_text_at_offset):
3389 (test_webkit_atk_get_text_at_offset_newlines):
3390 (test_webkit_atk_get_text_at_offset_textarea):
3391 (test_webkit_atk_get_text_at_offset_text_input):
3392 (testWebkitAtkGetTextInParagraphAndBodySimple):
3393 (testWebkitAtkGetTextInParagraphAndBodyModerate):
3394 (testWebkitAtkGetTextInTable):
3395 (testWebkitAtkGetHeadersInTable):
3397 2010-06-25 Mario Sanchez Prada <msanchez@igalia.com>
3399 Reviewed by Xan Lopez.
3401 [Gtk] Implement atk_table_get_column_header
3402 https://bugs.webkit.org/show_bug.cgi?id=30896
3404 Added new test to check whether the implementation of
3405 get_column_headers() and get_row_headers() works ok.
3408 (testWebkitAtkGetHeadersInTable):
3411 2010-06-25 Martin Robinson <mrobinson@igalia.com>
3413 Reviewed by Xan Lopez.
3415 [GTK] Pasteboard code does not take into account the nil character when getting and setting markup/netscape-url data
3416 https://bugs.webkit.org/show_bug.cgi?id=41221
3418 Add a test for this issue which simulates a paste keyboard event into an editable
3419 body. The pasteboard should contain a markup portion containing a null terminator.
3421 * tests/testcopyandpaste.c:
3423 (test_info_destroy):
3425 (runPasteTestCallback):
3426 (window_object_cleared_callback):
3427 (pasting_test_get_data_callback):
3428 (pasting_test_clear_data_callback):
3429 (test_pasting_markup):
3432 2010-06-24 Martin Robinson <mrobinson@igalia.com>
3434 Reviewed by Xan Lopez.
3436 [GTK] Cannot change the selection via the keyboard
3437 https://bugs.webkit.org/show_bug.cgi?id=41162
3439 Fix issue where the selection could not be extended via the keyboard by
3440 adjusting the logic guarding against inserting text in non-editable nodes.
3442 * WebCoreSupport/EditorClientGtk.cpp:
3443 (WebKit::EditorClient::handleKeyboardEvent):
3444 Allow editor commands that do not insert text in non-editable nodes. This
3445 fixes keyboard selection extension in non-editable nodes. Move the existing
3446 check to after the execution of any editor commands.
3448 2010-06-15 Dumitru Daniliuc <dumi@chromium.org>
3450 Reviewed by Adam Barth.
3452 Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
3453 https://bugs.webkit.org/show_bug.cgi?id=39041
3455 * webkit/webkitwebview.cpp:
3456 (webkit_web_view_update_settings):
3457 (webkit_web_view_settings_notify):
3458 (webkit_get_cache_model):
3460 2010-06-16 Martin Robinson <mrobinson@igalia.com>
3462 Reviewed by Gustavo Noronha Silva.
3464 [GTK] Remove the abuse of GDK_CURRENT_TIME in the DRT
3465 https://bugs.webkit.org/show_bug.cgi?id=40600
3467 * WebCoreSupport/DragClientGtk.cpp:
3468 (WebKit::DragClient::startDrag): Reset the click count after a drag starts.
3469 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3470 (WebKit::postCommitFrameViewSetup): Reset the click count after a load is committed.
3471 * webkit/webkitprivate.h: Move static click counting variables to be per-view.
3472 * webkit/webkitwebview.cpp:
3473 (getEventTime): Added.
3474 (webkit_web_view_button_press_event): If the event time is zero, use the current time.
3475 (webkit_web_view_finalize): Clean up click counting member.
3476 (webkit_web_view_init): Initialize click counting member.
3478 2010-06-15 Xan Lopez <xlopez@igalia.com>
3480 Fix compilation with older GTK+.
3482 * WebCoreSupport/ChromeClientGtk.cpp:
3483 (WebKit::ChromeClient::pageRect):
3485 2010-06-15 Xan Lopez <xlopez@igalia.com>
3487 Reviewed by Gustavo Noronha.
3489 [GTK] Does not compile with -DGSEAL_ENABLE
3490 https://bugs.webkit.org/show_bug.cgi?id=37851
3492 Fix compilation with GSEAL_ENABLE.
3494 * WebCoreSupport/ChromeClientGtk.cpp:
3495 (WebKit::ChromeClient::pageRect):
3496 (WebKit::ChromeClient::contentsSizeChanged):
3497 * tests/testdomnode.c:
3498 (test_dom_node_insertion):
3499 * webkit/webkitwebview.cpp:
3500 (webkit_web_view_realize):
3501 (webkit_web_view_script_dialog):
3502 (webkit_web_view_drag_end):
3503 (webkit_web_view_init):
3505 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org>
3507 Unreviewed build fix.
3509 This is a fix for flaky inspector tests at gtk-debug bots.
3511 * WebCoreSupport/InspectorClientGtk.cpp:
3512 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
3514 2010-06-14 Ilya Tikhonovsky <loislo@chromium.org>
3516 Reviewed by Pavel Feldman.
3518 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
3519 data from inspected page to WebInspector as JSON string via http. The native
3520 serialization to JSON string is supported by InspectorValue's classes. This patch
3521 has the implementation of sendMessageToFrontend function. WebKit version of it still
3522 uses ScriptFunctionCall and will be switched to another transport a little bit later.
3523 https://bugs.webkit.org/show_bug.cgi?id=40134
3525 * WebCoreSupport/InspectorClientGtk.cpp:
3526 (WebKit::InspectorClient::releaseFrontendPage):
3527 (WebKit::InspectorClient::sendMessageToFrontend):
3528 * WebCoreSupport/InspectorClientGtk.h:
3530 2010-06-10 Eric Seidel <eric@webkit.org>
3532 Reviewed by Adam Barth.
3534 Reduce FrameView.h includes to speed up build times
3535 https://bugs.webkit.org/show_bug.cgi?id=40408
3537 * webkit/webkitwebinspector.cpp:
3538 - Include RenderLayer.h
3540 2010-06-09 Sheriff Bot <webkit.review.bot@gmail.com>
3542 Unreviewed, rolling out r60889.
3543 http://trac.webkit.org/changeset/60889
3544 https://bugs.webkit.org/show_bug.cgi?id=40365
3546 gtk bot has some kind of memory corruption (Requested by
3549 * WebCoreSupport/InspectorClientGtk.cpp:
3550 (WebKit::InspectorClient::InspectorClient):
3551 (WebKit::InspectorClient::openInspectorFrontend):
3552 (WebKit::InspectorFrontendClient::InspectorFrontendClient):
3553 (WebKit::InspectorFrontendClient::destroyInspectorWindow):
3554 * WebCoreSupport/InspectorClientGtk.h:
3556 2010-06-07 Ilya Tikhonovsky <loislo@chromium.org>
3558 Reviewed by Pavel Feldman.
3560 WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
3561 data from inspected page to WebInspector as JSON string via http. The native
3562 serialization to JSON string is supported by InspectorValue's classes. This patch
3563 has the implementation of sendMessageToFrontend function. WebKit version of it still
3564 uses ScriptFunctionCall and will be switched to another transport a little bit later.
3565 https://bugs.webkit.org/show_bug.cgi?id=40134
3567 * WebCoreSupport/InspectorClientGtk.cpp:
3568 (WebKit::InspectorClient::releaseFrontendPage):
3569 (WebKit::InspectorClient::sendMessageToFrontend):
3570 * WebCoreSupport/InspectorClientGtk.h:
3572 2010-06-08 Xan Lopez <xlopez@igalia.com>
3574 Reviewed by Gustavo Noronha.
3576 [GTK] Unit testing for WebKitDOMNode hierarchy walk
3577 https://bugs.webkit.org/show_bug.cgi?id=40171
3579 Add some DOM node unit testing.
3581 * tests/testdomnode.c: Added.
3583 (dom_node_fixture_setup):
3584 (dom_node_fixture_teardown):
3585 (test_dom_node_hierarchy_navigation):
3588 2010-06-08 Antonio Gomes <tonikitoo@webkit.org>
3590 Reviewed by Ojan Vafai and Darin Adler.
3592 Refactor platform dependent editing behavior code out of Settings
3593 https://bugs.webkit.org/show_bug.cgi?id=39854
3595 EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
3596 EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
3598 * webkit/webkitprivate.cpp:
3600 * webkit/webkitprivate.h:
3601 * webkit/webkitwebview.cpp:
3602 (webkit_web_view_update_settings):
3603 (webkit_web_view_settings_notify):
3605 2010-06-08 Xan Lopez <xlopez@igalia.com>
3607 Reviewed by Gustavo Noronha.
3609 [GTK] Add inner-node property to WebKitHitTestResult
3610 https://bugs.webkit.org/show_bug.cgi?id=40131
3612 Add a 'inner-node' property to WebKitHitTestResult, carrying the
3613 DOM node where the hit test happened.
3615 * tests/testhittestresult.c:
3617 * webkit/webkithittestresult.cpp:
3618 (webkit_hit_test_result_get_property):
3619 (webkit_hit_test_result_set_property):
3620 (webkit_hit_test_result_class_init):
3621 * webkit/webkitprivate.cpp:
3624 2010-06-07 Martin Robinson <mrobinson@igalia.com>
3626 Reviewed by Xan Lopez.
3628 [GTK] gtk_widget_get_window should replace widget->window
3629 https://bugs.webkit.org/show_bug.cgi?id=40180
3631 Replace uses of widget->window with gtk_widget_get_window.
3633 * WebCoreSupport/ChromeClientGtk.cpp:
3634 (WebKit::ChromeClient::invalidateContentsAndWindow): Replace widget->window uses.
3635 (WebKit::ChromeClient::scroll): Ditto.
3636 (WebKit::widgetScreenPosition): Ditto.
3637 * WebCoreSupport/DragClientGtk.cpp: Move gtk_widget_get_window define to GtkVersioning.h.
3638 * webkit/webkitwebview.cpp:
3639 (webkit_web_view_popup_menu_handler): Replace widget->window uses.
3640 (webkit_web_view_button_press_event): Ditto.
3642 2010-06-04 Martin Robinson <mrobinson@igalia.com>
3644 Reviewed by Xan Lopez.
3646 [GTK] Drag gesture can take mouse grab indefinitely
3647 https://bugs.webkit.org/show_bug.cgi?id=32840
3649 Initiate drag events with the current GTK+ event instead of synthesizing
3650 an event. Something about synthesized events is causing a drag freeze in
3653 * WebCoreSupport/DragClientGtk.cpp:
3654 (WebKit::DragClient::startDrag): Start the drag with the current GTK+ event.
3656 2010-06-03 Sheriff Bot <webkit.review.bot@gmail.com>
3658 Unreviewed, rolling out r60632.
3659 http://trac.webkit.org/changeset/60632
3660 https://bugs.webkit.org/show_bug.cgi?id=40143
3662 This change broke the 64-bit bots. (Requested by mrobinson on
3665 * WebCoreSupport/DragClientGtk.cpp:
3666 (WebKit::DragClient::DragClient):
3667 (WebKit::DragClient::startDrag):
3668 * WebCoreSupport/DragClientGtk.h:
3670 2010-06-03 Martin Robinson <mrobinson@igalia.com>
3672 Reviewed by Xan Lopez.
3674 [GTK] Drag gesture can take mouse grab indefinitely
3675 https://bugs.webkit.org/show_bug.cgi?id=32840
3677 Start GTK+ drags with the previous mouse button down event instead of
3678 synthesizing the event. The synthesized event was not completely valid
3679 and froze some drags indefinitely.
3681 * WebCoreSupport/DragClientGtk.cpp:
3682 (WebKit::buttonPressEvent): Added.
3683 (WebKit::DragClient::DragClient):
3684 Connect to the 'button-press-event' signal of the WebView.
3685 (WebKit::DragClient::startDrag):
3686 Instead of synthesizing a button press event use the last real one.
3687 * WebCoreSupport/DragClientGtk.h:
3688 (WebKit::DragClient::setLastButtonPressEvent): Added.
3690 2010-06-01 Xan Lopez <xlopez@igalia.com>
3692 Reviewed by Gustavo Noronha.
3694 Memory Leak: The main resource of page is not free.
3695 https://bugs.webkit.org/show_bug.cgi?id=39973
3697 Fix refcount tracking of the main resource. Patch by Genhua Liu.
3699 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3700 (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
3702 2010-06-01 Xan Lopez <xlopez@igalia.com>
3704 Reviewed by Gustavo Noronha.
3706 Fix-up for previous leak fix, the identifier was not always duped.
3708 * webkit/webkitprivate.h:
3709 * webkit/webkitwebview.cpp:
3710 (webkit_web_view_add_resource):
3712 2010-06-01 Xan Lopez <xlopez@igalia.com>
3714 Reviewed by Gustavo Noronha.
3718 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3719 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
3721 2010-06-01 Martin Robinson <mrobinson@igalia.com>
3723 Reviewed by Xan Lopez.
3725 [GTK] Double clicks cause three button press events
3726 https://bugs.webkit.org/show_bug.cgi?id=38853
3728 Handle click counting much like the Windows port. GTK+ only
3729 counts triple-clicks natively, so use GTK+ double-click settings
3730 to count clicks with even larger click counts. Also filter the
3731 extra GDK_BUTTON_PRESS before GDK_{2,3}BUTTON_PRESS events using
3734 * webkit/webkitwebview.cpp:
3735 (webkit_web_view_button_press_event): Count clicks manually. Filter extra events.
3737 2010-05-31 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3739 Reviewed by Xan Lopez.
3741 [GTK] Missing links to documentation of general functions
3742 https://bugs.webkit.org/show_bug.cgi?id=39964
3744 Add global functions section, and move those functions that are
3745 currently in WebKitWebView's source file to the bottom, along with
3748 * docs/webkitgtk-docs.sgml:
3749 * docs/webkitgtk-sections.txt:
3750 * webkit/webkitwebview.cpp:
3751 (webkit_web_view_get_dom_document):
3752 (webkit_get_default_session):
3754 2010-05-31 Martin Robinson <mrobinson@igalia.com>
3756 Reviewed by Gustavo Noronha Silva.
3758 [GTK] Text copied from a WebView cannot be pasted into gnome-terminal
3759 https://bugs.webkit.org/show_bug.cgi?id=39827
3761 Add a test to prevent regressions for this issue.
3763 * tests/testcopyandpaste.c: Added.
3765 (test_info_destroy):
3766 (copy_and_paste_fixture_setup):
3767 (copy_and_paste_fixture_teardown):
3770 (test_copy_and_paste):
3773 2010-05-27 Gustavo Noronha Silva <gns@gnome.org>
3775 Update documentation control files, and fix Since tags for 1.3.1.
3777 * docs/webkitgtk-docs.sgml:
3778 * docs/webkitgtk-sections.txt:
3779 * webkit/webkitwebbackforwardlist.cpp:
3780 * webkit/webkitwebview.cpp:
3782 2010-05-27 Xan Lopez <xlopez@igalia.com>
3784 Reviewed by Gustavo Noronha.
3786 Update for 1.3.1 release.
3790 2010-05-27 Martin Robinson <mrobinson@igalia.com>
3792 Reviewed by Xan Lopez.
3794 [GTK] Dragging onto the desktop causes a critical GLib warning
3795 https://bugs.webkit.org/show_bug.cgi?id=39718
3797 Only increment the window reference count if it is not null during drag-end
3800 * webkit/webkitwebview.cpp:
3801 (webkit_web_view_drag_end): Guard against null window values.
3803 2010-05-26 Xan Lopez <xlopez@igalia.com>
3805 Reviewed by Gustavo Noronha.
3807 [GTK] Add support for DOM events in the GObject DOM bindings
3808 https://bugs.webkit.org/show_bug.cgi?id=38844
3810 Test DOMWindow signals.
3812 * tests/testdomdomwindow.c: Added.
3814 (dom_domview_fixture_setup):
3815 (dom_domview_fixture_teardown):
3819 (load_event_callback):
3820 (test_dom_domview_signals):
3823 2010-05-24 Darin Adler <darin@apple.com>
3825 Reviewed by Eric Seidel.
3827 Move view-related functions from Frame to FrameView
3828 https://bugs.webkit.org/show_bug.cgi?id=39366
3830 * webkit/webkitwebview.cpp:
3831 (webkit_web_view_set_editable): Remove call to empty function
3832 removeEditngStyleFromBodyElement.
3833 (webkit_web_view_get_zoom_level): Call functions on FrameView.
3834 (webkit_web_view_apply_zoom_level): Ditto.
3836 2010-05-22 Martin Robinson <mrobinson@igalia.com>
3838 Reviewed by Xan Lopez.
3840 [GTK] webkit_web_view_drag_end should call EventHandler::dragSourceEndedAt
3841 https://bugs.webkit.org/show_bug.cgi?id=39465
3843 Properly call EventHandler::dragSourceEndedAt so that dragEnd events are processed in the DOM.
3844 dragSourceEndedAt is responsible for calling the dragEnd DOM event as well as cleaning up assets
3845 (such as the Clipboard) associated with the drag source.
3847 * webkit/webkitwebview.cpp:
3848 (webkit_web_view_drag_end): Remember to call dragSourceEndedAt here.
3850 2010-05-22 Martin Robinson <mrobinson@igalia.com>
3852 Reviewed by Xan Lopez.
3854 [GTK] WebKit/gtk/WebCoreSupport/DragClientGtk::startDrag should use the Clipboard::sourceOperation
3855 https://bugs.webkit.org/show_bug.cgi?id=39459
3857 * WebCoreSupport/DragClientGtk.cpp:
3858 (WebKit::DragClient::startDrag):
3859 Use Clipboard::sourceOperation instead of trying to figure out the GdkDragAction
3860 manually. The DOM may have changed the appropriate list of actions anyhow.
3862 2010-05-21 Steve Block <steveblock@google.com>
3864 Reviewed by Jeremy Orlow.
3866 Add DeviceOrientation and DeviceOrientationClient
3867 https://bugs.webkit.org/show_bug.cgi?id=39479
3869 * webkit/webkitwebview.cpp:
3870 (webkit_web_view_init):
3872 2010-05-19 Sheriff Bot <webkit.review.bot@gmail.com>
3874 Unreviewed, rolling out r59240.
3875 http://trac.webkit.org/changeset/59240
3876 https://bugs.webkit.org/show_bug.cgi?id=39377
3878 "Might cause crashes in GTK+ bots" (Requested by xan_ on
3881 * WebCoreSupport/ContextMenuClientGtk.cpp:
3882 (WebKit::inputMethodsMenuItem):
3883 * WebCoreSupport/EditorClientGtk.cpp:
3884 (WebKit::EditorClient::setInputMethodState):
3885 (WebKit::EditorClient::respondToChangedSelection):
3886 (WebKit::EditorClient::handleInputMethodKeydown):
3887 (WebKit::EditorClient::EditorClient):
3888 (WebKit::EditorClient::~EditorClient):
3889 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3890 (WebKit::postCommitFrameViewSetup):
3891 * webkit/webkitprivate.h:
3892 * webkit/webkitwebview.cpp:
3894 (webkit_web_view_forward_context_menu_event):
3895 (webkit_web_view_key_release_event):
3896 (webkit_web_view_button_release_event):
3897 (webkit_web_view_focus_in_event):
3898 (webkit_web_view_focus_out_event):
3899 (webkit_web_view_realize):
3900 (webkit_web_view_set_scroll_adjustments):
3901 (webkit_web_view_dispose):
3902 (webkit_web_view_finalize):
3904 (webkit_web_view_screen_changed):
3905 (webkit_web_view_query_tooltip):
3906 (webkit_web_view_get_im_context):
3907 (webkit_web_view_update_settings):
3908 (webkit_web_view_init):
3909 (webkit_web_view_set_settings):
3910 (webkit_web_view_get_settings):
3911 (webkit_web_view_get_inspector):
3912 (webkit_web_view_set_window_features):
3913 (webkit_web_view_get_window_features):
3914 (webkit_web_view_get_back_forward_list):
3915 (webkit_web_view_zoom_in):
3916 (webkit_web_view_zoom_out):
3917 (webkit_web_view_get_encoding):
3918 (webkit_web_view_get_custom_encoding):
3919 (webkit_web_view_add_resource):
3920 (webkit_web_view_get_resource):
3921 (webkit_web_view_get_main_resource):
3922 (webkit_web_view_clear_resources):
3923 (webkit_web_view_get_subresources):
3924 (webkit_web_view_set_tooltip_text):
3925 (webkit_web_view_get_icon_uri):
3927 2010-05-18 Martin Robinson <mrobinson@igalia.com>
3929 Reviewed by Xan Lopez.
3931 [GTK] DragClientGtk::startDrag leaks GdkEvents
3932 https://bugs.webkit.org/show_bug.cgi?id=39322
3934 * WebCoreSupport/DragClientGtk.cpp:
3935 (WebKit::DragClient::startDrag): Properly clean up allocated GdkEvent.
3937 2010-05-12 Martin Robinson <mrobinson@igalia.com>
3939 Reviewed by Xan Lopez.
3941 [Gtk] Use GOwnPtr for code that needs it
3942 https://bugs.webkit.org/show_bug.cgi?id=21594
3944 Convert many uses of raw pointers to GRefPtr and GOwnPtr in WebKitWebView.
3946 * WebCoreSupport/ContextMenuClientGtk.cpp:
3947 (WebKit::inputMethodsMenuItem):
3948 * WebCoreSupport/EditorClientGtk.cpp:
3949 (WebKit::EditorClient::setInputMethodState):
3950 (WebKit::EditorClient::respondToChangedSelection):
3951 (WebKit::EditorClient::handleInputMethodKeydown):
3952 (WebKit::EditorClient::EditorClient):
3953 (WebKit::EditorClient::~EditorClient):
3954 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3955 (WebKit::postCommitFrameViewSetup):
3956 * webkit/webkitprivate.h:
3957 * webkit/webkitwebview.cpp:
3959 (webkit_web_view_forward_context_menu_event):
3960 (webkit_web_view_key_release_event):
3961 (webkit_web_view_button_release_event):
3962 (webkit_web_view_focus_in_event):
3963 (webkit_web_view_focus_out_event):
3964 (webkit_web_view_realize):
3965 (webkit_web_view_set_scroll_adjustments):
3966 (webkit_web_view_dispose):
3967 (webkit_web_view_finalize):
3969 (webkit_web_view_screen_changed):
3970 (webkit_web_view_query_tooltip):
3971 (webkit_web_view_get_im_context):
3972 (webkit_web_view_update_settings):
3973 (webkit_web_view_init):
3974 (webkit_web_view_set_settings):
3975 (webkit_web_view_get_settings):
3976 (webkit_web_view_get_inspector):
3977 (webkit_web_view_set_window_features):
3978 (webkit_web_view_get_window_features):
3979 (webkit_web_view_get_back_forward_list):
3980 (webkit_web_view_zoom_in):
3981 (webkit_web_view_zoom_out):
3982 (webkit_web_view_get_encoding):
3983 (webkit_web_view_get_custom_encoding):
3984 (webkit_web_view_add_resource):
3985 (webkit_web_view_get_resource):
3986 (webkit_web_view_get_main_resource):
3987 (webkit_web_view_clear_resources):
3988 (webkit_web_view_get_subresources):
3989 (webkit_web_view_set_tooltip_text):
3990 (webkit_web_view_get_icon_uri):
3992 2010-05-11 Martin Robinson <mrobinson@igalia.com>
3994 Reviewed by Xan Lopez.
3996 [Gtk] Doesn't support gtk-key-themes
3997 https://bugs.webkit.org/show_bug.cgi?id=28257
3999 Add support for GTK+ key themes.
4001 * WebCoreSupport/EditorClientGtk.cpp:
4002 (WebKit::backspaceCallback): Added.
4003 (WebKit::cutClipboardCallback): Added.
4004 (WebKit::copyClipboardCallback): Added.
4005 (WebKit::pasteClipboardCallback): Added.
4006 (WebKit::selectAllCallback): Added.
4007 (WebKit::deleteFromCursorCallback): Added.
4008 (WebKit::moveCursorCallback): Added.
4009 (WebKit::EditorClient::generateEditorCommands): Added.
4010 (WebKit::EditorClient::executePendingEditorCommands): Added.
4011 (WebKit::EditorClient::handleKeyboardEvent): Derive editor commands both from internal text widget and a list of fallbacks.
4012 (WebKit::EditorClient::EditorClient): Add m_nativeWidget initializer.
4013 * WebCoreSupport/EditorClientGtk.h:
4014 (WebKit::EditorClient::addPendingEditorCommand): Add m_nativeWidget member.
4016 2010-05-06 Martin Robinson <mrobinson@webkit.org>
4018 Reviewed by Xan Lopez.
4020 Remove use of GOwnPtr to hold GObject types.
4021 https://bugs.webkit.org/show_bug.cgi?id=38669
4023 Change use of GOwnPtr to GRefPtr to types which are natively reference-counted.
4025 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4026 (WebKit::FrameLoaderClient::dispatchWillSendRequest): Change GOwnPtr to GRefPtr in some places.
4027 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType): Ditto.
4028 * webkit/webkitnetworkrequest.cpp:
4029 (webkit_network_request_new_with_core_request): Ditto.
4030 * webkit/webkitnetworkresponse.cpp:
4031 (webkit_network_response_new_with_core_response): Ditto.
4032 * webkit/webkitprivate.cpp: Remove GOwnPtr reference counting template specialization.
4033 * webkit/webkitprivate.h: Ditto.
4035 2010-05-06 Martin Robinson <mrobinson@webkit.org>
4037 Reviewed by Gustavo Noronha Silva.
4039 [GTK] Enable DOM clipboard and drag-and-drop access
4040 https://bugs.webkit.org/show_bug.cgi?id=30623
4042 Convert dragging portion of drag-and-drop to use DataObjectGtk.
4044 * WebCoreSupport/DragClientGtk.cpp:
4045 (WebKit::DragClient::willPerformDragDestinationAction): Remove the notImplemented. It is implemented, it's just a no-op.
4046 (WebKit::DragClient::startDrag): Start the drag context via the ClipboardGtk and PasteboardHelper now.
4047 * WebCoreSupport/DragClientGtk.h: Small style fix.
4048 * webkit/webkitprivate.h: Add a HashMap of contexts and DataObjects here to to represent all current drag operations.
4049 * webkit/webkitwebview.cpp:
4050 (webkit_web_view_dispose): Clear all data objects during disposal.
4051 (webkit_web_view_drag_end): When a drag is over, just remove it from the map.
4052 (webkit_web_view_drag_data_get): To get the drag data, just grab it from the DataObject.
4054 2010-05-03 Abhishek Arya <inferno@chromium.org>
4056 Reviewed by Adam Barth.
4058 Add support for controlling clipboard access from javascript.
4059 Clipboard access from javascript is disabled by default.
4060 https://bugs.webkit.org/show_bug.cgi?id=27751
4062 * webkit/webkitwebsettings.cpp:
4063 (webkit_web_settings_class_init):
4064 (webkit_web_settings_set_property):
4065 (webkit_web_settings_get_property):
4066 (webkit_web_settings_copy):
4067 * webkit/webkitwebview.cpp:
4068 (webkit_web_view_update_settings):
4069 (webkit_web_view_settings_notify):
4071 2010-05-03 Jens Alfke <snej@chromium.org>
4073 Reviewed by Darin Fisher.
4075 [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
4076 https://bugs.webkit.org/show_bug.cgi?id=38397
4078 No tests (functionality is exposed only through native WebKit API.)
4080 * WebCoreSupport/FrameLoaderClientGtk.h:
4081 (WebKit::FrameLoaderClient::dispatchWillSendSubmitEvent):
4083 2010-05-01 Xan Lopez <xlopez@igalia.com>
4085 Reviewed by Oliver Hunt.
4087 [GTK] GObject DOM bindings
4088 https://bugs.webkit.org/show_bug.cgi?id=33590
4090 Test webkit_dom_document_get_links.
4092 * tests/testdomdocument.c:
4093 (test_dom_document_get_links):
4096 2010-04-29 Xan Lopez <xlopez@igalia.com>
4098 Reviewed by Gustavo Noronha.
4100 [GTK] GObject DOM bindings
4101 https://bugs.webkit.org/show_bug.cgi?id=33590
4103 Test webkit_dom_document_get_element_by_id;
4105 * tests/testdomdocument.c:
4106 (test_dom_document_get_element_by_id):
4109 2010-04-29 Xan Lopez <xlopez@igalia.com>
4111 Reviewed by Gustavo Noronha.
4113 [GTK] GObject DOM bindings
4114 https://bugs.webkit.org/show_bug.cgi?id=33590
4116 Test webkit_dom_document_get_elements_by_class_name.
4118 * tests/testdomdocument.c:
4119 (test_dom_document_get_elements_by_class_name):
4122 2010-04-29 Xan Lopez <xlopez@igalia.com>
4124 Reviewed by Gustavo Noronha.
4126 [GTK] GObject DOM bindings
4127 https://bugs.webkit.org/show_bug.cgi?id=33590
4129 Test webkit_dom_document_get_elements_by_tag_name.
4131 * tests/testdomdocument.c:
4132 (test_dom_document_get_elements_by_tag_name):
4135 2010-04-29 Xan Lopez <xlopez@igalia.com>
4137 Reviewed by Gustavo Noronha.
4139 [GTK] GObject DOM bindings
4140 https://bugs.webkit.org/show_bug.cgi?id=33590
4142 Move WebKitDOMDocument unit tests to their own file.
4144 * tests/testdomdocument.c: Added.
4146 (dom_document_fixture_setup):
4147 (dom_document_fixture_teardown):
4148 (test_dom_document_title):
4150 * tests/testwebview.c:
4152 2010-04-29 Xan Lopez <xlopez@igalia.com>
4154 Reviewed by Gustavo Noronha.
4156 [GTK] GObject DOM bindings
4157 https://bugs.webkit.org/show_bug.cgi?id=33590
4159 Include <webkit/webkitdom.h> in the main webkit.h header.
4163 2010-04-25 Sam Weinig <sam@webkit.org>
4165 Reviewed by Maciej Stachowiak.
4167 Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
4168 Disentangle initializing the main thread from initializing threading
4170 * webkit/webkitprivate.cpp:
4171 (webkit_init): Add call to initializeMainThread.
4173 2010-04-22 Dave Moore <davemoore@chromium.org>
4175 Reviewed by Dimitri Glazkov.
4177 Added notification when the favicons for a page are changed
4179 The Document object will notify the frame loader, which will
4180 notify the client. Implementations of FrameLoaderClient will
4181 have to add one method; dispatchDidChangeIcons().
4183 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4184 (WebKit::FrameLoaderClient::dispatchDidChangeIcons):
4185 * WebCoreSupport/FrameLoaderClientGtk.h:
4187 2010-04-22 Xan Lopez <xlopez@igalia.com>
4189 Reviewed by Gustavo Noronha.
4191 [GTK] GObject DOM bindings
4192 https://bugs.webkit.org/show_bug.cgi?id=33590
4194 Add webkit_web_view_get_document to retrieve the WebKitDOMDocument
4195 from a WebKitWebView, and a very simple test for it.
4197 * tests/testwebview.c:
4198 * webkit/webkitwebview.cpp:
4199 (webkit_web_view_get_document):
4200 * webkit/webkitwebview.h:
4202 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
4204 Reviewed by Xan Lopez.
4206 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
4208 https://bugs.webkit.org/show_bug.cgi?id=34449
4210 Expand testatkroles to test ATK_ROLE_COMBO_BOX.
4212 * tests/testatkroles.c:
4213 (test_webkit_atk_get_role_combobox):
4216 2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>
4218 Reviewed by Xan Lopez.
4220 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
4222 https://bugs.webkit.org/show_bug.cgi?id=34449
4224 Expand testatkroles to test ATK_ROLE_SEPARATOR.
4226 * tests/testatkroles.c:
4227 (test_webkit_atk_get_role_separator):
4230 2010-04-22 Adam Barth <abarth@webkit.org>
4232 Unreviewed, rolling out r58069.
4233 http://trac.webkit.org/changeset/58069
4234 https://bugs.webkit.org/show_bug.cgi?id=27751
4236 Broke compile on Windows.
4238 * webkit/webkitwebsettings.cpp:
4239 (webkit_web_settings_class_init):
4240 (webkit_web_settings_set_property):
4241 (webkit_web_settings_get_property):
4242 (webkit_web_settings_copy):
4243 * webkit/webkitwebview.cpp:
4244 (webkit_web_view_update_settings):
4245 (webkit_web_view_settings_notify):
4247 2010-04-22 Abhishek Arya <inferno@chromium.org>
4249 Reviewed by Adam Barth.
4251 Add support for controlling clipboard access from javascript.
4252 Clipboard access from javascript is disabled by default.
4253 https://bugs.webkit.org/show_bug.cgi?id=27751
4255 * webkit/webkitwebsettings.cpp:
4256 (webkit_web_settings_class_init):
4257 (webkit_web_settings_set_property):
4258 (webkit_web_settings_get_property):
4259 (webkit_web_settings_copy):
4260 * webkit/webkitwebview.cpp:
4261 (webkit_web_view_update_settings):
4262 (webkit_web_view_settings_notify):
4264 2010-04-21 Jakub Wieczorek <jwieczorek@webkit.org>
4266 Reviewed by Darin Adler.
4268 List item markers are not always updated after changes in the DOM.
4269 https://bugs.webkit.org/show_bug.cgi?id=37060
4271 * webkit/webkitprivate.h:
4272 * webkit/webkitwebframe.cpp:
4273 (webkit_web_frame_marker_text_for_list_item): Add a private API to get the marker text for a list item.
4275 2010-04-21 Diego Escalante Urrelo <descalante@igalia.com>
4277 Reviewed by Xan Lopez.
4279 [Gtk] Evaluate and create tests for all the AtkRole's implemented by
4281 https://bugs.webkit.org/show_bug.cgi?id=34449
4283 Expand testatkroles to test ATK_ROLE_FORM.
4285 * tests/testatkroles.c:
4286 (test_webkit_atk_get_role_form):
4289 2010-04-20 Adam Barth <abarth@webkit.org>
4291 Reviewed by Eric Seidel.
4293 Factor DocumentWriter out of FrameLoader
4294 https://bugs.webkit.org/show_bug.cgi?id=37175
4296 Update these callsites because the method moved to DocumentWriter.
4298 * WebCoreSupport/FrameLoaderClientGtk.cpp:
4299 (WebKit::FrameLoaderClient::committedLoad):
4300 (WebKit::FrameLoaderClient::finishedLoading):
4301 * webkit/webkitwebview.cpp:
4302 (webkit_web_view_get_encoding):
4304 2010-04-20 Kent Tamura <tkent@chromium.org>
4306 Reviewed by Darin Adler.
4308 Change a parameter type of chooseIconForFiles()
4309 https://bugs.webkit.org/show_bug.cgi?id=37504
4311 * WebCoreSupport/ChromeClientGtk.cpp:
4312 (WebKit::ChromeClient::chooseIconForFiles):
4313 * WebCoreSupport/ChromeClientGtk.h:
4315 2010-04-20 Martin Robinson <mrobinson@webkit.org>
4317 Reviewed by Gustavo Noronha Silva.
4319 [GTK] Enable DOM clipboard and drag-and-drop access
4320 https://bugs.webkit.org/show_bug.cgi?id=30623
4322 Move most of the PasteboardHelper logic into WebCore. This helps
4323 prepare for WebKit2 and leads to a clearer separation of concerns
4324 between the WebKit and WebCore layers.
4326 * WebCoreSupport/EditorClientGtk.cpp: