Removed misplaced //fixme comment that doesn't belong there.
[WebKit-https.git] / WebKit / gtk / ChangeLog
1 2008-11-03  Cameron Zwarich  <zwarich@apple.com>
2
3         Rubber-stamped by Maciej Stachowiak.
4
5         Move more files into the runtime subdirectory of JavaScriptCore.
6
7         * webkit/webkitprivate.cpp:
8
9 2008-11-03  Alp Toker  <alp@nuanti.com>
10
11         Reviewed by Holger Freyther.
12
13         Deprecate flawed webkit_web_frame_new() function. This would never
14         have worked properly when used outside WebCore since Frame::create()
15         can only be called without an owner element once in the lifetime of a
16         Page and would result in assertions, leaks and an unusable WebView
17         instance.
18
19         Frame creation may be exposed in API some time later via the DOM
20         binding but probably not in the WebKit GTK+ core API.
21
22         * webkit/webkitwebframe.cpp:
23         * webkit/webkitwebframe.h:
24
25 2008-11-03  Alp Toker  <alp@nuanti.com>
26
27         Reviewed by Holger Freyther.
28
29         Redundant scrollbars appear in frames where they shouldn't be visible
30         eg. embedded Google adverts.
31
32         Call setCanHaveScrollbars() when necessary. The Mac and Win ports
33         already have this but it was missing in FrameLoaderClientGtk.
34
35         * WebCoreSupport/FrameLoaderClientGtk.cpp:
36         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
37
38 2008-11-03  Alp Toker  <alp@nuanti.com>
39
40         Rubber-stamped by Holger Freyther.
41
42         Sync WebKit GTK+ default UA version string to 528.5+. (We're still
43         doing this manually!)
44
45         * WebCoreSupport/FrameLoaderClientGtk.cpp:
46         (WebKit::composeUserAgent):
47
48 2008-10-31  Christian Dywan  <christian@twotoasts.de>
49
50         Reviewed by Mark Rowe.
51
52         http://bugs.webkit.org/show_bug.cgi?id=22018
53         enable-developer-extras doesn't toggle WebInspector
54
55         * webkit/webkitwebview.cpp:
56         Add missing 'if' in notification for 'enable-developer-extras'.
57
58 2008-10-30  Alp Toker  <alp@nuanti.com>
59
60         Reviewed by Dave Hyatt.
61
62         Fix GIF animations. WebCore will not update animated GIFs if
63         the WebView is marked offscreen so we need to call
64         frameView->setParentVisible() when necessary like the Mac and Win
65         ports do. Regression was introduced around r37155 during the
66         HostWindow refactor.
67
68         * WebCoreSupport/FrameLoaderClientGtk.cpp:
69         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
70
71 2008-10-30  Alp Toker  <alp@nuanti.com>
72
73         Rubber-stamped by Holger Freyther.
74
75         Fix typo in recently added web inspector signal. dettach -> detach.
76
77         * WebCoreSupport/InspectorClientGtk.cpp:
78         (WebKit::InspectorClient::detachWindow):
79         * webkit/webkitwebinspector.cpp:
80         (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init):
81
82 2008-10-30  Alp Toker  <alp@nuanti.com>
83
84         Fix version comments for the web inspector added in r37982. Available
85         since 1.0.3, not 1.0.2.
86
87         * webkit/webkitwebinspector.cpp:
88         (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init):
89         * webkit/webkitwebsettings.cpp:
90         (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
91         * webkit/webkitwebview.cpp:
92
93 2008-10-29  Gustavo Noronha Silva  <gns@gnome.org>
94
95         Reviewed and slightly changed by Holger Freyther.
96
97         Implemented a new WebKitWebInspector class to provide a GObject
98         API for the Web Inspector. Also implemented InspectorClient.
99
100         * WebCoreSupport/InspectorClientGtk.cpp:
101         (WebKit::notifyWebViewDestroyed):
102         (WebKit::InspectorClient::InspectorClient):
103         (WebKit::InspectorClient::inspectorDestroyed):
104         (WebKit::InspectorClient::webViewDestroyed):
105         (WebKit::InspectorClient::createPage):
106         (WebKit::InspectorClient::showWindow):
107         (WebKit::InspectorClient::closeWindow):
108         (WebKit::InspectorClient::attachWindow):
109         (WebKit::InspectorClient::detachWindow):
110         (WebKit::InspectorClient::inspectedURLChanged):
111         * WebCoreSupport/InspectorClientGtk.h:
112         * webkit/webkit.h:
113         * webkit/webkit-marshal.list:
114         * webkit/webkitdefines.h:
115         * webkit/webkitprivate.h:
116         * webkit/webkitwebinspector.cpp: Added.
117         (_WebKitWebInspectorPrivate::webkit_inspect_web_view_request_handled):
118         (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init):
119         (_WebKitWebInspectorPrivate::webkit_web_inspector_init):
120         (_WebKitWebInspectorPrivate::webkit_web_inspector_finalize):
121         (_WebKitWebInspectorPrivate::webkit_web_inspector_set_property):
122         (_WebKitWebInspectorPrivate::webkit_web_inspector_get_property):
123         (_WebKitWebInspectorPrivate::webkit_web_inspector_set_web_view):
124         * webkit/webkitwebinspector.h: Added.
125         * webkit/webkitwebsettings.cpp:
126         (_WebKitWebSettingsPrivate::):
127         (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
128         (_WebKitWebSettingsPrivate::webkit_web_settings_set_property):
129         (_WebKitWebSettingsPrivate::webkit_web_settings_get_property):
130         (_WebKitWebSettingsPrivate::webkit_web_settings_copy):
131         * webkit/webkitwebview.cpp:
132         * webkit/webkitwebview.h:
133
134 2008-10-27  Michael Tross  <michael@tross.org>
135
136         Reviewed by Alp Toker. Landed by Jan Alonzo.
137
138         https://bugs.webkit.org/show_bug.cgi?id=21827
139         [GTK] Fix memory leak in webkit_web_view_load_string
140
141         * webkit/webkitwebview.cpp:
142
143 2008-10-24  Sam Weinig  <sam@webkit.org>
144
145         Fix the Gtk build.
146
147         * WebCoreSupport/ChromeClientGtk.cpp:
148
149 2008-10-24  Sam Weinig  <sam@webkit.org>
150
151         Reviewed by Dan Bernstein.
152
153         Fix https://bugs.webkit.org/show_bug.cgi?id=21759
154         Layering violation: FileChooser should not depend on Document/Frame/Page
155
156         * WebCoreSupport/ChromeClientGtk.cpp:
157         (WebKit::ChromeClient::runOpenPanel):
158         * WebCoreSupport/ChromeClientGtk.h:
159
160 2008-10-24  Timothy Hatcher  <timothy@apple.com>
161
162         Stub out new InspectorClient methods.
163
164         https://bugs.webkit.org/show_bug.cgi?id=21856
165
166         Reviewed by Darin Adler.
167
168         * WebCoreSupport/InspectorClientGtk.cpp:
169         (WebKit::InspectorClient::populateSetting): Not implemented.
170         (WebKit::InspectorClient::storeSetting): Ditto.
171         (WebKit::InspectorClient::removeSetting): Ditto.
172         * WebCoreSupport/InspectorClientGtk.h:
173
174 2008-10-22  Alp Toker  <alp@nuanti.com>
175
176         Build fix for older GTK+ versions where GTK_TYPE_TARGET_LIST isn't
177         defined.
178
179         * webkit/webkitwebview.cpp:
180
181 2008-10-22  Alp Toker  <alp@nuanti.com>
182
183         Reviewed by Adam Roben.
184
185         Avoid critical warnings on older GTK+ versions (2.8) by not checking
186         for GTK+ setting properties when we know they don't exist.
187
188         * WebCoreSupport/ContextMenuClientGtk.cpp:
189         (WebKit::inputMethodsMenuItem):
190         (WebKit::unicodeMenuItem):
191
192 2008-10-20  Sam Weinig  <sam@webkit.org>
193
194         Reviewed by Anders Carlsson.
195
196         Remove FrameLoaderClient::detachedFromParent4.  It is no longer used by any port.
197
198         * WebCoreSupport/FrameLoaderClientGtk.cpp:
199         * WebCoreSupport/FrameLoaderClientGtk.h:
200
201 2008-10-20  Alp Toker  <alp@nuanti.com>
202
203         Reviewed by Dave Hyatt.
204
205         https://bugs.webkit.org/show_bug.cgi?id=21303
206         [GTK] Scrolling glitches
207
208         Implement a buffering scheme to avoid full repaints when scrolling
209         views or subframes significantly improving scrolling performance.
210
211         Improve rendering performance by coalescing large numbers of small
212         repaints.
213
214         Also fixes long-running issues with scrollbar positioning and frame
215         invalidation.
216
217         Rendering in the GTK+ port should be more similar to other ports after
218         these changes.
219
220         * WebCoreSupport/ChromeClientGtk.cpp:
221         (WebKit::ChromeClient::repaint):
222         (WebKit::ChromeClient::scroll):
223         * WebCoreSupport/FrameLoaderClientGtk.cpp:
224         (WebKit::FrameLoaderClient::forceLayout):
225         * webkit/webkitwebview.cpp:
226
227 2008-10-17  Luke Kenneth Casson Leighton  <lkcl@lkcl.net>
228
229         Reviewed by Mark Rowe. Landed by Jan Alonzo.
230
231         https://bugs.webkit.org/show_bug.cgi?id=20403
232         [Gtk] Segfault after a table with an iframe is attempted to be added twice to DOM model with javascript
233
234         * WebCoreSupport/FrameLoaderClientGtk.cpp:
235         (WebKit::FrameLoaderClient::frameLoaderDestroyed):
236         (WebKit::FrameLoaderClient::detachedFromParent4):
237
238 2008-10-06  David Hyatt  <hyatt@apple.com>
239
240         Enable viewless Mac WebKit to paint some basic pages.
241         
242         Reviewed by Sam Weinig
243
244         * WebCoreSupport/FrameLoaderClientGtk.cpp:
245         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
246         * WebCoreSupport/FrameLoaderClientGtk.h:
247
248 2008-10-03  David Hyatt  <hyatt@apple.com>
249
250         Fix Gtk bustage from use of containingWindow() over on the WebKit side.  Replace with HostWindow use.
251
252         * webkit/webkitwebview.cpp:
253
254 2008-10-03  David Hyatt  <hyatt@apple.com>
255
256         https://bugs.webkit.org/show_bug.cgi?id=21340
257         
258         Remove "containingWindow()/setContainingWindow()" from Widget.  HostWindow covers this now.
259
260         Reviewed by Dan Bernstein & Darin Adler
261         
262         * WebCoreSupport/FrameLoaderClientGtk.cpp:
263         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
264
265 2008-10-03  Alp Toker  <alp@nuanti.com>
266
267         Remove some left-over GTK+ includes. No change in functionality.
268
269         * webkit/webkitwebhistoryitem.h:
270
271 2008-10-03  Alp Toker  <alp@nuanti.com>
272
273         Build fix following r37234. Remove addToDirtyRegion from the header
274         too.
275
276         * WebCoreSupport/ChromeClientGtk.h:
277
278 2008-10-03  David Hyatt  <hyatt@apple.com>
279
280          Remove addToDirtyRegion.
281         
282         Reviewed by Oliver Hunt
283
284         * WebCoreSupport/ChromeClientGtk.cpp:
285
286 2008-10-02  David Hyatt  <hyatt@apple.com>
287
288         https://bugs.webkit.org/show_bug.cgi?id=21314
289         
290         Make scrollBackingStore cross-platform.
291
292         Reviewed by Sam Weinig
293
294         * WebCoreSupport/ChromeClientGtk.cpp:
295         (WebKit::ChromeClient::repaint):
296         (WebKit::ChromeClient::scroll):
297         * WebCoreSupport/ChromeClientGtk.h:
298
299 2008-10-01  David Hyatt  <hyatt@apple.com>
300
301         https://bugs.webkit.org/show_bug.cgi?id=21282
302         
303         Make contentsToScreen/screenToContents cross-platform.  Only implemented by Mac/Win right now.
304         
305         Reviewed by Adam Roben
306
307         * WebCoreSupport/ChromeClientGtk.cpp:
308         (WebKit::ChromeClient::windowToScreen):
309         (WebKit::ChromeClient::screenToWindow):
310         * WebCoreSupport/ChromeClientGtk.h:
311
312 2008-09-30  Dave Hyatt  <hyatt@apple.com>
313
314         http://bugs.webkit.org/show_bug.cgi?id=21250
315         
316         Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
317         repaints up through the ChromeClient.
318
319         Reviewed by Darin Adler
320
321         * WebCoreSupport/ChromeClientGtk.cpp:
322         (WebKit::ChromeClient::repaint):
323         * WebCoreSupport/ChromeClientGtk.h:
324
325 2008-09-16  Alp Toker  <alp@nuanti.com>
326
327         Suggested by Dave Hyatt.
328
329         Build fix and cleanup. Rename ScrollBar to Scrollbar.
330
331         * webkit/webkitwebview.cpp:
332
333 2008-09-13  Adrien Nader  <camaradetux@gmail.com>
334
335         Gtk build fix, not reviewed.
336
337         * webkit/webkitwebview.cpp:
338
339 2008-09-10  Alp Toker  <alp@nuanti.com>
340
341         Reviewed by Mark Rowe.
342
343         https://bugs.webkit.org/show_bug.cgi?id=17267
344         [GTK] Primary selection/clipboard support
345
346         Implement primary selection support (copying only, no paste yet).
347
348         * WebCoreSupport/EditorClientGtk.cpp:
349         (WebKit::clipboard_get_contents_cb):
350         (WebKit::clipboard_clear_contents_cb):
351         (WebKit::EditorClient::respondToChangedSelection):
352
353 2008-09-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
354
355         Reviewed by Maciej Stachowiak.
356
357         Bug 20704: Replace the KJS namespace
358         <https://bugs.webkit.org/show_bug.cgi?id=20704>
359
360         Rename the KJS namespace to JSC.
361
362         * webkit/webkitprivate.cpp:
363         (webkit_init):
364
365 2008-09-05  Gustavo Noronha Silva  <gns@gnome.org>
366
367         Reviewed by Alp Toker.
368
369         https://bugs.webkit.org/show_bug.cgi?id=18346
370         [GTK] Remove build warnings
371
372         Removed/commented code that is not (yet) used, and reordered
373         member variables initialization for FrameLoaderClient, so that the
374         compiler is happy and prints less warnings when building.
375
376         * WebCoreSupport/ContextMenuClientGtk.cpp:
377         * WebCoreSupport/FrameLoaderClientGtk.cpp:
378         (WebKit::FrameLoaderClient::FrameLoaderClient):
379
380 2008-09-03  Alp Toker  <alp@nuanti.com>
381
382         Build fix following r36073. Include config.h where necessary.
383
384         * WebCoreSupport/PasteboardHelperGtk.cpp:
385         * webkit/webkitversion.cpp:
386
387 2008-09-01  Alp Toker  <alp@nuanti.com>
388
389         Reviewed by Eric Seidel.
390
391         https://bugs.webkit.org/show_bug.cgi?id=19939
392         [GTK] webkit_web_history_item_get_title() fails with assertion
393
394         Make sure newly constructed WebHistoryItem objects wrap a WebCore
395         history item when necessary. Avoid G_PARAM_CONSTRUCT since it destroys
396         history data -- use WEBKIT_PARAM flags instead as they do the right
397         thing. This restores history functionality.
398
399         Also use CString to simplify UTF-8 string management.
400
401         * webkit/webkitwebbackforwardlist.cpp:
402         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit):
403         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit):
404         No need to initialize the vector with a size since it's cleared by the
405         callee.
406         * webkit/webkitwebhistoryitem.cpp:
407         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_finalize):
408         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init):
409         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item):
410         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new):
411         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data):
412         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title):
413         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title):
414         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title):
415         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri):
416         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri):
417
418 2008-08-27  Adrien Nader  <camaradetux@gmail.com>
419
420         Reviewed by Eric Seidel.
421
422         https://bugs.webkit.org/show_bug.cgi?id=20099
423         [GTK] SHIFT+PAGE_UP/DOWN doesn't extend selection
424
425         * WebCoreSupport/EditorClientGtk.cpp:
426         (WebKit::EditorClient::handleKeyboardEvent):
427
428 2008-08-27  Brady Eidson  <beidson@apple.com>
429
430         Reviewed by Anders
431
432         <rdar://problem/6134133> - Crash when loading large movie as a standalone document
433
434         * WebCoreSupport/FrameLoaderClientGtk.cpp:
435         (WebKit::FrameLoaderClient::pluginWillHandleLoadError): Stubbed for now
436         * WebCoreSupport/FrameLoaderClientGtk.h:
437
438 2008-08-18  Alp Toker  <alp@nuanti.com>
439
440         Reviewed by Holger Freyther.
441
442         https://bugs.webkit.org/show_bug.cgi?id=20350
443         [GTK] Get DumpRenderTree working
444
445         Add a private function to WebFrame to dump the render tree as required
446         for the DumpRenderTree testing tool.
447
448         * webkit/webkitprivate.h:
449         * webkit/webkitwebframe.cpp:
450
451 2008-08-12  Timothy Hatcher  <timothy@apple.com>
452
453         Add a stub for InspectorClient::setAttachedWindowHeight.
454
455         * WebCoreSupport/InspectorClientGtk.cpp:
456         (WebKit::InspectorClient::setAttachedWindowHeight):
457         Call notImplemented().
458         * WebCoreSupport/InspectorClientGtk.h:
459
460 2008-08-10  Alp Toker  <alp@nuanti.com>
461
462         Remove leftover qmake/GTK+ build files.
463
464         * webkit/headers.pri: Removed.
465
466 2008-08-02  Christian Dywan  <christian@twotoasts.de>
467
468         Reviewed by Eric Seidel.
469
470         Remove webkit-marshal.list, which was made obsolete in #19742
471
472         * webkit/webkit-marshal.list: Removed.
473
474 2008-08-01  Wouter Bolsterlee  <uws@xs4all.nl>
475
476         Reviewed by Eric Seidel.
477
478         https://bugs.webkit.org/show_bug.cgi?id=20035
479         [GTK] Fix return value for webkit_web_view_go_to_back_forward_item()
480
481         * webkit/webkitwebview.cpp:
482
483 2008-07-30  Marco Barisione  <marco.barisione@collabora.co.uk>
484
485         Reviewed by Holger.
486
487         http://bugs.webkit.org/show_bug.cgi?id=19742
488         [GTK] Auto generate webkitmarshal.list
489
490         Auto generate webkitmarshal.list from source files to reduce the
491         number of conflicts when merging git branches or when applying
492         patches.
493         Also rename webkit-marshal.* to webkitmarshal.* for consistency.
494
495         * webkit/webkitwebframe.cpp: Include webkitmarshal.h instead of
496          webkit-marshal.h.
497         * webkit/webkitwebview.cpp: Ditto.
498
499 2008-07-30  Gustavo Noronha Silva  <gns@gnome.org>
500
501         Reviewed by Sam.
502
503         https://bugs.webkit.org/show_bug.cgi?id=20205
504         Typo in comment for bracer ending block
505
506         * webkit/webkitprivate.cpp: Typo fix in comment for the brace
507          that ends the WebKit namespace; WebCore -> WebKit
508
509 2008-07-26  Mark Rowe  <mrowe@apple.com>
510
511         Build fix.  Changes to accommodate newly named/signatured loading methods in WebCore.
512
513         * WebCoreSupport/FrameLoaderClientGtk.cpp:
514         (WebKit::FrameLoaderClient::createFrame):
515
516 2008-07-17  Christian Dywan  <christian@twotoasts.de>
517
518         Reviewed by Holger Freyther.
519
520         https://bugs.webkit.org/show_bug.cgi?id=19813
521         [GTK] WebKit crashes on invalid settings notify callback
522
523         * webkit/webkitwebview.cpp: Disconnect in webkit_web_view_finalize
524
525 2008-07-08  Jan Michael Alonzo  <jmalonzo@webkit.org>
526
527         Reviewed by Christian Dywan.
528
529         Replace 'const' with G_CONST_RETURN macro to make it flexible to
530         disable constness
531
532         * webkit/webkitnetworkrequest.cpp:
533         * webkit/webkitnetworkrequest.h:
534         * webkit/webkitwebframe.cpp:
535         * webkit/webkitwebframe.h:
536         * webkit/webkitwebhistoryitem.cpp:
537         * webkit/webkitwebhistoryitem.h:
538
539 2008-06-18  Marco Barisione  <marco.barisione@collabora.co.uk>
540
541         Reviewed by Alp Toker.
542
543         https://bugs.webkit.org/show_bug.cgi?id=19171
544         [GTK] GTypes for enumerations
545
546         Generate GTypes for public enumerations so they can be used as
547         properties.
548
549         * GNUmakefile.am: Generate webkit-enum-types.cpp and
550         webkit-enum-types.h.
551
552 2008-06-17  Christian Dywan  <christian@twotoasts.de>
553
554         Reviewed by Alp.
555
556         [GTK] WebKitWebHistoryItem needs properties
557         https://bugs.webkit.org/show_bug.cgi?id=19558
558
559         Implement properties matching the existing accessors.
560
561         * webkit/webkitwebhistoryitem.cpp:
562         (_WebKitWebHistoryItemPrivate::):
563         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init):
564         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_property):
565         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_property):
566         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title):
567
568 2008-06-15  Darin Adler  <darin@apple.com>
569
570         - give Frame object functions shorter names: scriptProxy() -> script(),
571           selectionController() -> selection(), animationController() -> animation()
572
573         * WebCoreSupport/EditorClientGtk.cpp:
574         (WebKit::EditorClient::handleKeyboardEvent):
575         * WebCoreSupport/FrameLoaderClientGtk.cpp:
576         (WebKit::FrameLoaderClient::windowObjectCleared):
577         * webkit/webkitwebframe.cpp:
578         * webkit/webkitwebview.cpp:
579
580 2008-06-15  Darin Adler  <darin@apple.com>
581
582         - undo bogus renaming done by the script
583
584         * WebCoreSupport/ContextMenuClientGtk.cpp:
585         * webkit/webkitnetworkrequest.h:
586         * webkit/webkitwebbackforwardlist.h:
587         * webkit/webkitwebframe.h:
588         * webkit/webkitwebhistoryitem.h:
589         * webkit/webkitwebsettings.h:
590
591 2008-06-15  Darin Adler  <darin@apple.com>
592
593         - new names for a few key JavaScriptCore files
594
595         * WebCoreSupport/ContextMenuClientGtk.cpp:
596         * webkit/webkitnetworkrequest.h:
597         * webkit/webkitwebbackforwardlist.h:
598         * webkit/webkitwebframe.h:
599         * webkit/webkitwebhistoryitem.h:
600         * webkit/webkitwebsettings.h:
601
602 2008-06-15  Christian Dywan  <christian@twotoasts.de>
603
604         Reviewed by Alp Toker.
605
606         [GTK] Property setters do not call g_object_notify()
607         https://bugs.webkit.org/show_bug.cgi?id=18405
608
609         * webkit/webkitwebview.cpp:
610
611 2008-06-15  Christian Dywan  <christian@twotoasts.de>
612
613         Reviewed by Alp Toker.
614
615         Tiny documentation fix, s/capacity/limit
616
617         * webkit/webkitwebbackforwardlist.cpp:
618
619 2008-06-14  Darin Adler  <darin@apple.com>
620
621         Rubber stamped by Sam.
622
623         - new names for kjs_binding.h and kjs_proxy.h
624
625         * WebCoreSupport/FrameLoaderClientGtk.cpp:
626         * webkit/webkitwebframe.cpp:
627
628 2008-06-14  Darin Adler  <darin@apple.com>
629
630         - fix build
631
632         * webkit/webkitwebframe.cpp: Remove a bogus release() call.
633
634 2008-06-14  Darin Adler  <darin@apple.com>
635
636         Reviewed by Sam.
637
638         - more https://bugs.webkit.org/show_bug.cgi?id=17257
639           start ref counts at 1 instead of 0 for speed
640
641         * WebCoreSupport/FrameLoaderClientGtk.cpp:
642         (WebKit::FrameLoaderClient::createDocumentLoader): Use create instead of new.
643         * webkit/webkitwebframe.cpp:
644         (webkit_web_frame_new): Ditto.
645         (webkit_web_frame_init_with_web_view): Ditto.
646
647 2008-06-13  Darin Adler  <darin@apple.com>
648
649         - try to fix build
650
651         * WebCoreSupport/FrameLoaderClientGtk.h: Add missing argument.
652
653 2008-06-13  Darin Adler  <darin@apple.com>
654
655         Reviewed by John Sullivan.
656
657         - updated for addition of FormState argument to action policy functions
658
659         * WebCoreSupport/FrameLoaderClientGtk.cpp:
660         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
661         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
662
663 2008-06-10  Christian Dywan  <christian@twotoasts.de>
664
665         Reviewed by Alp Toker and Darin Adler.
666
667         https://bugs.webkit.org/show_bug.cgi?id=16676
668         Apply GTK coding style to WebKit Gtk public headers
669
670         * webkit/webkitnetworkrequest.h:
671         * webkit/webkitwebbackforwardlist.h:
672         * webkit/webkitwebframe.h:
673         * webkit/webkitwebhistoryitem.h:
674         * webkit/webkitwebsettings.h:
675         * webkit/webkitwebview.h:
676
677 2008-06-07  Jan Michael Alonzo  <jmalonzo@webkit.org>
678
679         Confirmed by Christian Dywan.
680
681         Gtk build fix for r34432
682
683         * webkit/webkitwebhistoryitem.cpp:
684         (_WebKitWebHistoryItemPrivate::webkit_history_item_add):
685         (_WebKitWebHistoryItemPrivate::webkit_history_item_remove):
686         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose):
687         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item):
688         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new):
689         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data):
690         (WebKit::core):
691
692 2008-06-07  Darin Adler  <darin@apple.com>
693
694         - try to fix build after HistoryItem changes
695
696         * webkit/webkitwebhistoryitem.cpp:
697         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new): Use HistoryItem::create.
698         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data): Ditto. I also
699         believe this fixes a memory leak in the old version.
700
701 2008-06-07  Christian Dywan  <christian@twotoasts.de>
702
703         Reviewed by Alp Toker.
704
705         https://bugs.webkit.org/show_bug.cgi?id=17324
706         Remove PLATFORM ifdefs from ContextMenu.cpp
707
708         * WebCoreSupport/ContextMenuClientGtk.cpp:
709         (WebKit::ContextMenuClient::ContextMenuClient):
710         (WebKit::ContextMenuClient::contextMenuDestroyed):
711         (WebKit::inputMethodsMenuItem):
712         (WebKit::):
713         (WebKit::insertControlCharacter):
714         (WebKit::unicodeMenuItem):
715         (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
716         * WebCoreSupport/ContextMenuClientGtk.h:
717         * webkit/webkitwebview.cpp:
718
719 2008-06-05  Alp Toker  <alp@nuanti.com>
720
721         Add 'Since' documentation for API versioning functions.
722
723         * webkit/webkitversion.cpp:
724
725 2008-06-05  Christian Dywan  <christian@twotoasts.de>
726
727         Reviewed by Alp Toker.
728
729         https://bugs.webkit.org/show_bug.cgi?id=14141
730         Please add a version to the Gtk port
731
732         * webkit/webkit.h:
733         * webkit/webkitversion.cpp: Added.
734         * webkit/webkitversion.h.in: Added.
735         * webkit/webkitwebsettings.cpp:
736         (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
737         * webkit/webkitwebview.cpp:
738
739 2008-06-01  Alp Toker  <alp@nuanti.com>
740
741         Suggested by Christian Dywan.
742
743         Use float literals for zoom values and improve documentation wording.
744
745         * webkit/webkitwebsettings.cpp:
746         (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
747         * webkit/webkitwebview.cpp:
748
749 2008-06-01  Alp Toker  <alp@nuanti.com>
750
751         Reviewed by Oliver.
752
753         Remove webkit_web_view_go_backward(),
754         webkit_web_view_can_go_backward(). These have been obsoleted by
755         the back() versions for quite a while.
756
757         * webkit/webkitwebview.cpp:
758         * webkit/webkitwebview.h:
759
760 2008-05-31  Alp Toker  <alp@nuanti.com>
761
762         Fix inconsistent zoom docs and enum name landed in r34249. Issue
763         noticed by Marco Barisione.
764
765         * webkit/webkitwebview.cpp:
766
767 2008-05-30  Carlos Martín Nieto  <carlos@cmartin.tk>
768
769         Reviewed by Alp Toker.
770
771         http://bugs.webkit.org/show_bug.cgi?id=18383
772         [GTK] The "hovering-over-link" signal arguments aren't documented.
773
774         * webkit/webkitwebview.cpp:
775
776 2008-05-29  Marco Barisione  <marco@collabora.co.uk>
777
778         Reviewed (and tweaked) by Alp Toker.
779
780         http://bugs.webkit.org/show_bug.cgi?id=18281
781         [GTK] add functions to set/get the zoom level
782
783         * webkit/webkitwebsettings.cpp:
784         (_WebKitWebSettingsPrivate::):
785         (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
786         (_WebKitWebSettingsPrivate::webkit_web_settings_set_property):
787         (_WebKitWebSettingsPrivate::webkit_web_settings_get_property):
788         * webkit/webkitwebview.cpp: Add functions to get and set the zoom
789         level.
790         * webkit/webkitwebview.h: Ditto.
791         * webkit/webkitprivate.h:
792
793 2008-05-28  Alp Toker  <alp@nuanti.com>
794
795         Reviewed by Alexey Proskuryakov.
796
797         http://bugs.webkit.org/show_bug.cgi?id=18704
798         [gtk] cannot type letters with dead keys in textarea
799
800         http://bugs.webkit.org/show_bug.cgi?id=14120
801         [GDK] Support input methods
802
803         Add support for input method composition.
804
805         Remove some old hacks so we handle input method events more
806         consistently.
807
808         * WebCoreSupport/EditorClientGtk.cpp:
809         (WebKit::imContextCommitted):
810         (WebKit::imContextPreeditChanged):
811         (WebKit::EditorClient::setInputMethodState):
812         (WebKit::EditorClient::respondToChangedSelection):
813         (WebKit::EditorClient::handleInputMethodKeydown):
814         (WebKit::EditorClient::EditorClient):
815         (WebKit::EditorClient::~EditorClient):
816         (WebKit::EditorClient::textFieldDidBeginEditing):
817         (WebKit::EditorClient::textFieldDidEndEditing):
818         (WebKit::EditorClient::textDidChangeInTextField):
819         (WebKit::EditorClient::doTextFieldCommandFromEvent):
820         * webkit/webkitwebview.cpp:
821
822 2008-05-25  Alp Toker  <alp@nuanti.com>
823
824         Reviewed by Niko.
825
826         Drop WebView focus when the widget is focused out.
827
828         * webkit/webkitwebview.cpp:
829
830 2008-05-25  Sriram Neelakandan  <sriram.neelakandan@gmail.com>
831
832         Reviewed by Alp Toker.
833
834         http://bugs.webkit.org/show_bug.cgi?id=18935
835         [Gtk] Plugin Load crashes with NP_FULL mode
836
837         Fix crash due to uninitialized variable.
838
839         * WebCoreSupport/FrameLoaderClientGtk.cpp:
840         (WebKit::FrameLoaderClient::FrameLoaderClient):
841
842 2008-05-24  Alp Toker  <alp@nuanti.com>
843
844         https://bugs.webkit.org/show_bug.cgi?id=18825
845         webkitgtk fails to build from source: "Database Tracker" has not been declared
846
847         GTK+ fix for building without database support.
848         exceededDatabaseQuota() still needs to be present, just a no-op.
849
850         * WebCoreSupport/ChromeClientGtk.cpp:
851         (WebKit::ChromeClient::exceededDatabaseQuota):
852
853 2008-05-23  Alp Toker  <alp@nuanti.com>
854
855         GTK+ fixes for building without database support.
856
857         * WebCoreSupport/ChromeClientGtk.cpp:
858
859 2008-05-19  Alp Toker  <alp@nuanti.com>
860
861         Reviewed by Anders and Beth.
862
863         http://bugs.webkit.org/show_bug.cgi?id=16495
864         [GTK] Accessibility support with ATK/AT-SPI
865
866         Initial ATK/AT-SPI accessibility support for the GTK+ port.
867
868         * webkit/webkitwebview.cpp:
869
870 2008-05-06  Christian Dywan  <christian@twotoasts.de>
871
872         Rubber stamped by Alp.
873
874         Back out 17626. It wasn't ready for commit.
875
876         * webkit/webkitprivate.h:
877         * webkit/webkitwebview.cpp:
878         * webkit/webkitwebview.h:
879
880 2008-05-01  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
881
882         Reviewed by Alp Toker.
883
884         https://bugs.webkit.org/show_bug.cgi?id=14750
885         Added support for NPAPI plugins on Gtk and Qt-x11 ports.
886
887         * WebCoreSupport/FrameLoaderClientGtk.cpp:
888         (WebKit::FrameLoaderClient::FrameLoaderClient):
889         (WebKit::FrameLoaderClient::committedLoad):
890         (WebKit::FrameLoaderClient::createPlugin):
891         (WebKit::FrameLoaderClient::redirectDataToPlugin):
892         (WebKit::FrameLoaderClient::finishedLoading):
893         (WebKit::FrameLoaderClient::setMainDocumentError):
894         * WebCoreSupport/FrameLoaderClientGtk.h:
895
896 2008-04-30  Sean Egan  <seanegan@gmail.com>
897
898         Reviewed and modified by Holger.
899
900         https://bugs.webkit.org/show_bug.cgi?id=17626
901         Support setting background color and a 16-bit alpha channel.
902
903         * webkit/webkitprivate.h:
904         * webkit/webkitwebview.cpp:
905         * webkit/webkitwebview.h:
906
907 2008-04-24  Dan Bernstein  <mitz@apple.com>
908
909         - build fix
910
911         * webkit/webkitwebview.cpp:
912
913 2008-04-24  Anders Carlsson  <andersca@apple.com>
914
915         Reviewed by Sam.
916
917         Change some String arguments to be const references instead.
918
919         * WebCoreSupport/EditorClientGtk.cpp:
920         (WebKit::EditorClient::shouldInsertText):
921         * WebCoreSupport/EditorClientGtk.h:
922
923 2008-04-23  Christian Dywan  <christian@twotoasts.de>
924
925         Reviewed by Alp Toker.
926
927         Emit a warning about an unknown setting only if it is
928         not a valid property. Otherwise applications can't
929         subclass WebKitWebSettings to add new properties.
930
931         * webkit/webkitwebview.cpp:
932
933 2008-04-20  Simon Hausmann  <hausmann@webkit.org>
934
935         Reviewed by Alp Toker.
936
937         http://bugs.webkit.org/show_bug.cgi?id=18578
938         Share the printing code between the Gtk and the Qt port
939
940         Share the printing code between the Gtk and the Qt port
941         and added printing to the Qt WebKit API.
942
943         * webkit/webkitwebframe.cpp: Removed PrintContext in favour of
944         page/Printcontext.cpp/h
945
946 2008-04-19  Alp Toker  <alp@nuanti.com>
947
948         Reviewed by Maciej.
949
950         Enable visited link tracking by default at startup.
951
952         With this patch, the GTK+ port rendering of Acid3 now matches the
953         reference page.
954
955         * webkit/webkitprivate.cpp:
956         (WebKit::core):
957         (webkit_init):
958
959 2008-04-11  Mark Rowe  <mrowe@apple.com>
960
961         Gtk build fix after r32231.
962
963         * webkit/webkitwebview.cpp: Update to use contentRenderer.
964
965 2008-04-18  Alp Toker  <alp@atoker.com>
966
967         Rubber-stamped by Holger Freyther.
968
969         http://bugs.webkit.org/show_bug.cgi?id=18218
970         [Gtk] segfault when clicking on a disabled button
971
972         Always use the main frame for mouse events (not the focused frame)
973         since it knows best how to get the event through to the right target.
974
975         This also fixes a null crasher.
976
977         * webkit/webkitwebview.cpp:
978
979 2008-04-17  Alp Toker  <alp@atoker.com>
980
981         Rubber-stamped by Holger Freyther.
982
983         Reduce hard-coded page-cache count to 3 based on research done for the
984         Mac port on value / page.
985
986         We will need to make this more dynamic or configurable at some point
987         but for now it's best to keep closer to the behaviour before page
988         caching was enabled.
989
990         Issue spotted by Mark Rowe.
991
992         * webkit/webkitprivate.cpp:
993         (webkit_init):
994
995 2008-04-17  Daniele Metilli  <daniele.metilli@gmail.com>
996
997         Reviewed by Eric.
998
999         Fixed a typo in the copyright header.
1000
1001         * webkit/webkitprivate.h:
1002
1003 2008-04-14  Holger Freyther  <zecke@selfish.org>
1004
1005         Reviewed by Alp Toker.
1006
1007         https://bugs.webkit.org/show_bug.cgi?id=18411
1008         Enable Page caching and create FrameViews on the fly
1009
1010         Create the FrameView on the fly and cache pages
1011
1012         - Keep a copy of the GtkAdjustment to be able to reuse it for the
1013           FrameViews
1014         - Do not initially create a FrameView and update the WebKit code to
1015           cope with not having a view.
1016         - Cache seven pages by default.
1017
1018         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1019         (WebKit::FrameLoaderClient::createFrame):
1020         (WebKit::FrameLoaderClient::canCachePage):
1021         (WebKit::FrameLoaderClient::savePlatformDataToCachedPage):
1022         (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage):
1023         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
1024         * webkit/webkitprivate.cpp:
1025         (webkit_init):
1026         * webkit/webkitprivate.h:
1027         * webkit/webkitwebframe.cpp:
1028         * webkit/webkitwebview.cpp:
1029
1030 2008-04-10  Mario Bensi  <mbensi@pleyo.com>
1031
1032         Reviewed by Alp Toker.
1033
1034         https://bugs.webkit.org/show_bug.cgi?id=18400
1035         Database example doesn't work on Gtk port
1036
1037         Fix quota in ChromeClient
1038
1039         * WebCoreSupport/ChromeClientGtk.cpp:
1040         (WebKit::ChromeClient::exceededDatabaseQuota):
1041
1042 2008-04-08  Adam Roben  <aroben@apple.com>
1043
1044         Move callOnMainThread to WTF
1045
1046         Reviewed by Alexey Proskuryakov.
1047
1048         * webkit/webkitprivate.cpp: Updated #include.
1049         (webkit_init): Changed to call KJS::initializeThreading.
1050
1051 2008-04-06  Luca Bruno  <lethalman88@gmail.com>
1052
1053         Reviewed by Alp Toker.
1054
1055         Fix webkit_web_view_get_transparent() return value.
1056
1057         * webkit/webkitwebview.cpp:
1058
1059 2008-03-31  Jasper Bryant-Greene  <jasper@unix.geek.nz>
1060
1061         Reviewed by Darin Adler.
1062
1063         Resolves http://bugs.webkit.org/show_bug.cgi?id=18010
1064         "WebKitNetworkRequestPrivate is defined in two places unnecessarily"
1065
1066         Removed unnecessary definition of WebKitNetworkRequestPrivate in
1067         webkitprivate.h
1068
1069         * webkit/webkitprivate.h:
1070
1071 2008-03-25  Brady Eidson  <beidson@apple.com>
1072
1073         Reviewed by Darin
1074
1075         Remove newly obsolete FrameLoaderClient methods
1076
1077         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1078         * WebCoreSupport/FrameLoaderClientGtk.h:
1079
1080 2008-03-20  Alp Toker  <alp@atoker.com>
1081
1082         GTK+ build fix. Back out r31183. This patch also introduced API style
1083         issues.
1084
1085         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1086         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1087         * webkit/headers.pri:
1088         * webkit/webkit-marshal.list:
1089         * webkit/webkitdefines.h:
1090         * webkit/webkitnavigationaction.cpp: Removed.
1091         * webkit/webkitnavigationaction.h: Removed.
1092         * webkit/webkitprivate.cpp:
1093         * webkit/webkitprivate.h:
1094         * webkit/webkitwebview.cpp:
1095         * webkit/webkitwebview.h:
1096
1097 2008-03-20  Jasper Bryant-Greene  <jasper@unix.geek.nz>
1098
1099         Reviewed and tweaked by Anders.
1100
1101         Resolves http://bugs.webkit.org/show_bug.cgi?id=16092
1102         "[GTK] Middle-mouse click should allow opening a URL in a new tab"
1103
1104         Created WebKitNavigationAction object exported through the API. The
1105         navigation-requested signal provides this object as context for the
1106         requested navigation, allowing the application to decide what to do
1107         with the navigation based on which mouse button was used, which
1108         modifier keys were held down, etc. This allows, for example, the
1109         application to open links in a new tab when either middle-click or
1110         control-click are used to initiate the navigation.
1111
1112         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1113         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1114         * webkit/headers.pri:
1115         * webkit/webkit-marshal.list:
1116         * webkit/webkitdefines.h:
1117         * webkit/webkitnavigationaction.cpp: Added.
1118         (webkit_navigation_action_finalize):
1119         (webkit_navigation_action_class_init):
1120         (webkit_navigation_action_init):
1121         (webkit_navigation_action_get_button):
1122         (webkit_navigation_action_get_modifier_flags):
1123         (webkit_navigation_action_get_navigation_type):
1124         (webkit_navigation_action_get_original_url):
1125         * webkit/webkitnavigationaction.h: Added.
1126         * webkit/webkitprivate.cpp:
1127         (WebKit::kit):
1128         * webkit/webkitprivate.h:
1129         * webkit/webkitwebview.cpp:
1130         * webkit/webkitwebview.h:
1131
1132 2008-03-18  Rodney Dawes  <dobey@wayofthemonkey.com>
1133
1134         Reviewed and landed by jhoneycutt.
1135
1136         Update to check if the MIME type is supported by a plugin.
1137
1138         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1139         (FrameLoaderClient::objectContentType):
1140
1141 2008-03-18  Rodney Dawes  <dobey@wayofthemonkey.com>
1142
1143         Reviewed by Jon Honeycutt.
1144
1145         Update setContainingWindow() calls to pass a GtkWidget.
1146
1147         * webkit/webkitwebframe.cpp:
1148         (webkit_web_frame_new):
1149         (webkit_web_frame_init_with_web_view):
1150
1151 2008-03-13  Rodney Dawes  <dobey@wayofthemonkey.com>
1152
1153         Fix GTK+ build for SharedBuffer changes.
1154
1155         * webkit/webkitwebview.cpp:
1156         (webkit_web_view_load_string):
1157
1158 2008-03-12  Tommi Komulainen  <tommi.komulainen@iki.fi>
1159
1160         Reviewed by Alp Toker.
1161
1162         http://bugs.webkit.org/show_bug.cgi?id=17799
1163         WebView signals should use more specific types
1164
1165         * webkit/webkitwebview.cpp: Use WEBKIT_TYPE_WEB_FRAME argument
1166         type in "script-alert", "script-confirm", "script-script-prompt"
1167         signals so that it gets more clearly documented rather than just
1168         plain GObject.
1169
1170 2008-03-10  Xan Lopez  <xan@gnome.org>
1171
1172         Reviewed by Alp Toker.
1173
1174         Fix "missing braces" compiler warning.
1175
1176         * webkit/webkitwebview.cpp:
1177
1178 2008-03-04  Sam Weinig  <sam@webkit.org>
1179
1180         Reviewed by Mark Rowe.
1181
1182         - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
1183           JSDOMWindow.h
1184
1185         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1186         * webkit/webkitwebframe.cpp:
1187
1188 2008-03-03  Sam Weinig  <sam@webkit.org>
1189
1190         GTK+ build fix.
1191
1192         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1193         (WebKit::FrameLoaderClient::windowObjectCleared):
1194
1195 2008-03-03  Alp Toker  <alp@atoker.com>
1196
1197         Fix the GTK+ build following breakage introduced in r30712.
1198
1199         * WebCoreSupport/EditorClientGtk.cpp:
1200         (WebKit::imContextCommitted):
1201
1202 2008-03-02  Alp Toker  <alp@atoker.com>
1203
1204         Reviewed by Mark Rowe.
1205
1206         Split the WebKit GTK+ build out of the WebCore build and change the
1207         shared object name to match the package name.
1208
1209         * webkit.pc.in:
1210
1211 2008-02-27  Adam Roben  <aroben@apple.com>
1212
1213         Attempt to fix the GTK+ build
1214
1215         * webkit/webkitwebframe.cpp:
1216
1217 2008-02-24  Darin Adler  <darin@apple.com>
1218
1219         Reviewed by Sam.
1220
1221         - remove separate client calls for "standard" and "reload' history
1222
1223         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1224         (WebKit::FrameLoaderClient::updateGlobalHistory):
1225         * WebCoreSupport/FrameLoaderClientGtk.h:
1226
1227 2008-02-23  Alexey Proskuryakov  <ap@webkit.org>
1228
1229         Build fix.
1230
1231         * webkit/webkitprivate.cpp:
1232         (webkit_init): Renamed initializeThreading to initializeThreadingAndMainThread.
1233
1234 2008-02-18  Alp Toker  <alp@atoker.com>
1235
1236         Reviewed by Mark Rowe.
1237
1238         http://bugs.webkit.org/show_bug.cgi?id=17312
1239         [GTK] Webview Transparent Background
1240
1241         Add support for WebView background transparency.
1242
1243         * webkit/webkitprivate.h:
1244         * webkit/webkitwebview.cpp:
1245         * webkit/webkitwebview.h:
1246
1247 2008-02-18  Alp Toker  <alp@atoker.com>
1248
1249         Reviewed by Mark Rowe.
1250
1251         Implement webkit_web_view_get_focused_frame()
1252
1253         Equivalent to selectedFrame in the Mac API.
1254
1255         * webkit/webkitwebview.cpp:
1256         * webkit/webkitwebview.h:
1257
1258 2008-02-17  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1259
1260         Reviewed by Mark Rowe.
1261
1262         Fix a crash introduced in changeset #29985 by moving the dereference to after
1263         the null check.
1264
1265         * webkit/webkitwebhistoryitem.cpp:
1266         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item):
1267
1268 2008-02-15  Alp Toker  <alp@atoker.com>
1269
1270         Fix the GTK+ build following breakage introduced in r30243.
1271
1272         * WebCoreSupport/ChromeClientGtk.cpp:
1273         (WebKit::ChromeClient::mouseDidMoveOverElement):
1274         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1275         (WebKit::FrameLoaderClient::objectContentType):
1276
1277 2008-02-15  Darin Adler  <darin@apple.com>
1278
1279         - another try at fixing the build
1280
1281         * webkit/webkitwebview.cpp: Added some explicit conversions to KURL.
1282
1283 2008-02-14  Darin Adler  <darin@apple.com>
1284
1285         * webkit/webkitwebframe.cpp: Removed DeprecatedString use to try to keep it building.
1286         * webkit/webkitwebview.cpp: Ditto.
1287
1288 2008-02-14  Holger Hans Peter Freyther  <zecke@selfish.org>
1289
1290         Reviewed by Alp.
1291
1292         * Make the handling of the coreFrame consistent. We construct the coreFrame
1293         at the beginning and it will live until the end. Change the g_return_(val_)if
1294         to ASSERTs as having a 0 coreFrame can never happen.
1295
1296         * webkit/webkitwebframe.cpp:
1297         (PrintContext::webkit_web_frame_print):
1298
1299 2008-02-14  Holger Hans Peter Freyther  <zecke@selfish.org>
1300
1301         Reviewed by Alp.
1302
1303         * Make sure that the WebCore::Frame is living as long as the WebKitWebFrame
1304         wrapped around it. All current calls to WebCore::Frame from within the
1305         WebKitWebFrame are safe, even in the case where the WebCore::Frame is already
1306         detached from the WebCore::Page.
1307         * For the mainFrame the WebKitWebView is holding the initial reference and
1308         will unref on destruction.
1309         * For sub-frames the FramerLoaderClientGtk.cpp will do the unrefing when the
1310         frame gets detached from the parent.
1311         * Make sure FrameLoader::detachFromParent gets called by calling FrameLoader::detachChildren
1312
1313         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1314         (WebKit::FrameLoaderClient::detachedFromParent4):
1315         * webkit/webkitprivate.cpp:
1316         (WebKit::core):
1317         * webkit/webkitprivate.h:
1318         * webkit/webkitwebframe.cpp:
1319         * webkit/webkitwebview.cpp:
1320
1321 2008-02-14  Holger Hans Peter Freyther  <zecke@selfish.org>
1322
1323         Reviewed by Alp.
1324
1325         WebCore::Frame is RefCounted, do not manually delete it!
1326
1327         * webkit/webkitwebframe.cpp:
1328
1329 2008-02-14  Holger Hans Peter Freyther  <zecke@selfish.org>
1330
1331         Reviewed by Alp.
1332
1333         * Plug a leak
1334
1335         * webkit/webkitwebframe.cpp:
1336
1337 2008-02-14  Holger Hans Peter Freyther  <zecke@selfish.org>
1338
1339         Reviewed by Alp.
1340
1341         * Update the Copyright Information
1342
1343         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1344         * webkit/webkitprivate.h:
1345         * webkit/webkitwebframe.cpp:
1346
1347 2008-02-13  Alp Toker  <alp@atoker.com>
1348
1349         Reviewed by Adam Roben.
1350
1351         Fix very small, upside down, inside out text on GTK+/DirectFB.
1352
1353         Based on an initial patch by Sriram Neelakandan <sriram.neelakandan@gmail.com>
1354
1355         Test the result of gdk_screen_get_resolution() and use a default
1356         fallback in case of failure.
1357
1358         Also remove an unhelpful runtime warning.
1359
1360         * webkit/webkitwebview.cpp:
1361
1362 2008-02-08  Pierre-Luc Beaudoin  <pierre-luc.beaudoin@collabora.co.uk>
1363
1364         Reviewed by Alp Toker.
1365
1366         http://bugs.webkit.org/show_bug.cgi?id=17009
1367         [Gtk] Webkit strips accents from some dead-key combinations
1368
1369         KeyEvents have to go through the gtk input method.
1370
1371         * WebCoreSupport/EditorClientGtk.cpp:
1372         (WebKit::imContextCommitted):
1373         (WebKit::EditorClient::doTextFieldCommandFromEvent):
1374
1375 2008-02-05  Mark Rowe  <mrowe@apple.com>
1376
1377         Reviewed by Alp Toker.
1378
1379         Fix warnings seen on the Gtk port by declaring variables and using constants of the correct types.
1380
1381         * webkit/webkitwebbackforwardlist.cpp:
1382         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_contains_item):
1383         * webkit/webkitwebhistoryitem.cpp:
1384         * webkit/webkitwebview.cpp:
1385
1386 2008-02-04  Christian Dywan  <christian@imendio.com>
1387
1388         Reviewed by Alp Toker.
1389
1390         http://bugs.webkit.org/show_bug.cgi?id=17065
1391         [GTK] Use a consistent coding style
1392
1393         * WebCoreSupport/EditorClientGtk.cpp:
1394         (WebKit::imContextCommitted):
1395         (WebKit::EditorClient::EditorClient):
1396         (WebKit::EditorClient::~EditorClient):
1397         (WebKit::EditorClient::textFieldDidEndEditing):
1398         * webkit/webkitdefines.h:
1399         * webkit/webkitnetworkrequest.cpp:
1400         (_WebKitNetworkRequestPrivate::webkit_network_request_finalize):
1401         (_WebKitNetworkRequestPrivate::webkit_network_request_class_init):
1402         (_WebKitNetworkRequestPrivate::webkit_network_request_init):
1403         (_WebKitNetworkRequestPrivate::webkit_network_request_new):
1404         (_WebKitNetworkRequestPrivate::webkit_network_request_set_uri):
1405         (_WebKitNetworkRequestPrivate::webkit_network_request_get_uri):
1406         * webkit/webkitnetworkrequest.h:
1407         * webkit/webkitprivate.cpp:
1408         (WebKit::getViewFromFrame):
1409         (WebKit::core):
1410         * webkit/webkitprivate.h:
1411         * webkit/webkitwebbackforwardlist.cpp:
1412         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_new_with_web_view):
1413         * webkit/webkitwebbackforwardlist.h:
1414         * webkit/webkitwebframe.cpp:
1415         * webkit/webkitwebframe.h:
1416         * webkit/webkitwebhistoryitem.cpp:
1417         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose):
1418         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_finalize):
1419         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item):
1420         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new):
1421         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data):
1422         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title):
1423         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title):
1424         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title):
1425         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri):
1426         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri):
1427         (WebKit::core):
1428         * webkit/webkitwebhistoryitem.h:
1429         * webkit/webkitwebsettings.h:
1430         * webkit/webkitwebview.cpp:
1431         * webkit/webkitwebview.h:
1432
1433 2008-02-04  Alp Toker  <alp@atoker.com>
1434
1435         Rubber-stamped by Mark Rowe.
1436
1437         Remove all trailing whitespace in the GTK+ port and related
1438         components.
1439
1440         * WebCoreSupport/DragClientGtk.h:
1441         * WebCoreSupport/FrameLoaderClientGtk.h:
1442         * WebCoreSupport/InspectorClientGtk.h:
1443         * WebCoreSupport/PasteboardHelperGtk.h:
1444         * webkit/webkitprivate.h:
1445         * webkit/webkitwebbackforwardlist.cpp:
1446         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_contains_item):
1447         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit):
1448         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_item):
1449         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_length):
1450         * webkit/webkitwebhistoryitem.cpp:
1451         (_WebKitWebHistoryItemPrivate::webkit_history_items):
1452         (_WebKitWebHistoryItemPrivate::webkit_history_item_add):
1453         (_WebKitWebHistoryItemPrivate::webkit_history_item_remove):
1454         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose):
1455         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data):
1456         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title):
1457         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title):
1458         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title):
1459         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri):
1460         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_last_visited_time):
1461         (WebKit::kit):
1462         * webkit/webkitwebhistoryitem.h:
1463         * webkit/webkitwebview.cpp:
1464         * webkit/webkitwebview.h:
1465
1466 2008-02-03  Christian Dywan  <christian@imendio.com>
1467
1468         Reviewed by Alp Toker.
1469
1470         http://bugs.webkit.org/show_bug.cgi?id=17046
1471         [GTK] Context menu fixes and customisation suport
1472
1473         * webkit/webkitwebview.cpp:
1474
1475 2008-01-31  Alp Toker  <alp@atoker.com>
1476
1477         Reviewed by Mark Rowe.
1478
1479         Fix the pkg-config file to follow GTK+ package naming and versioning
1480         conventions.
1481
1482         Remove unneeded dependency listings.
1483
1484         * WebKitGtk.pc.in: Removed.
1485         * webkit.pc.in: Copied from WebKit/gtk/WebKitGtk.pc.in.
1486
1487 2008-01-31  Alp Toker  <alp@atoker.com>
1488
1489         Rubber-stamped by Adam Roben.
1490
1491         http://bugs.webkit.org/show_bug.cgi?id=17006
1492         [GTK] Header path should be webkit/webkit.h
1493
1494         Move the GTK+ API sources as needed and update the build systems.
1495
1496         * WebView: Removed.
1497         * WebView/headers.pri: Removed.
1498         * WebView/webkit-marshal.list: Removed.
1499         * WebView/webkit.h: Removed.
1500         * WebView/webkitdefines.h: Removed.
1501         * WebView/webkitnetworkrequest.cpp: Removed.
1502         * WebView/webkitnetworkrequest.h: Removed.
1503         * WebView/webkitprivate.cpp: Removed.
1504         * WebView/webkitprivate.h: Removed.
1505         * WebView/webkitwebbackforwardlist.cpp: Removed.
1506         * WebView/webkitwebbackforwardlist.h: Removed.
1507         * WebView/webkitwebframe.cpp: Removed.
1508         * WebView/webkitwebframe.h: Removed.
1509         * WebView/webkitwebhistoryitem.cpp: Removed.
1510         * WebView/webkitwebhistoryitem.h: Removed.
1511         * WebView/webkitwebsettings.cpp: Removed.
1512         * WebView/webkitwebsettings.h: Removed.
1513         * WebView/webkitwebview.cpp: Removed.
1514         * WebView/webkitwebview.h: Removed.
1515         * webkit: Copied from WebKit/gtk/WebView.
1516         * webkit/webkit.h:
1517         * webkit/webkitnetworkrequest.h:
1518         * webkit/webkitprivate.h:
1519         * webkit/webkitwebbackforwardlist.h:
1520         * webkit/webkitwebframe.h:
1521         * webkit/webkitwebhistoryitem.h:
1522         * webkit/webkitwebsettings.h:
1523         * webkit/webkitwebview.h:
1524
1525 2008-01-27  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1526
1527         Reviewed by Alp Toker.
1528
1529         http://bugs.webkit.org/show_bug.cgi?id=14811
1530         [gtk] [request] add a webkit_gtk_page_go_to_history_item function
1531
1532         implement back/forward list and history item
1533
1534         * WebView/headers.pri:
1535         * WebView/webkit.h:
1536         * WebView/webkitprivate.cpp:
1537         * WebView/webkitprivate.h:
1538         * WebView/webkitwebbackforwardlist.cpp: Added.
1539         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_dispose):
1540         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_class_init):
1541         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_init):
1542         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_new_with_web_view):
1543         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_go_forward):
1544         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_go_back):
1545         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_contains_item):
1546         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_go_to_item):
1547         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_list_with_limit):
1548         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_list_with_limit):
1549         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_item):
1550         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_current_item):
1551         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_item):
1552         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_nth_item):
1553         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_back_length):
1554         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_forward_length):
1555         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_get_limit):
1556         (_WebKitWebBackForwardListPrivate::webkit_web_back_forward_list_set_limit):
1557         * WebView/webkitwebbackforwardlist.h: Added.
1558         * WebView/webkitwebhistoryitem.cpp: Added.
1559         (_WebKitWebHistoryItemPrivate::webkit_history_items):
1560         (_WebKitWebHistoryItemPrivate::webkit_history_item_add):
1561         (_WebKitWebHistoryItemPrivate::webkit_history_item_remove):
1562         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_dispose):
1563         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_finalize):
1564         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init):
1565         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_init):
1566         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_core_item):
1567         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new):
1568         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_new_with_data):
1569         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_title):
1570         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_alternate_title):
1571         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_set_alternate_title):
1572         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_uri):
1573         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_original_uri):
1574         (_WebKitWebHistoryItemPrivate::webkit_web_history_item_get_last_visited_time):
1575         (WebKit::core):
1576         (WebKit::kit):
1577         * WebView/webkitwebhistoryitem.h: Added.
1578         * WebView/webkitwebview.cpp:
1579         * WebView/webkitwebview.h:
1580
1581 2008-01-25  Ori Bernstein  <ori@eigenstate.org>
1582
1583         Reviewed by Alp Toker.
1584
1585         http://bugs.webkit.org/show_bug.cgi?id=16795
1586         WebKitGtk crashes when there is no focused Frame
1587
1588         Add a null check. focusedFrame() isn't used directly anywhere else so
1589         this is the only case that needs to be fixed.
1590
1591         * WebView/webkitwebview.cpp:
1592
1593 2008-01-22  Christian Dywan  <christian@imendio.com>
1594
1595         Reviewed by Alp Toker.
1596
1597         [GTK] API: WebKitWebSettings is not usable
1598         http://bugs.webkit.org/show_bug.cgi?id=16219
1599
1600         Implement WebKitWebSettings.
1601
1602         * WebView/headers.pri:
1603         * WebView/webkit.h:
1604         * WebView/webkitprivate.cpp:
1605         * WebView/webkitprivate.h:
1606         * WebView/webkitsettings.cpp: Removed.
1607         * WebView/webkitsettings.h: Removed.
1608         * WebView/webkitwebsettings.cpp: Added.
1609         * WebView/webkitwebsettings.h: Added.
1610         * WebView/webkitwebview.cpp:
1611         * WebView/webkitwebview.h:
1612
1613 2008-01-21  Alp Toker  <alp@atoker.com>
1614
1615         GTK+ build fix for breakage introduced in r29698.
1616
1617         * WebCoreSupport/ChromeClientGtk.h:
1618
1619 2008-01-21  Darin Adler  <darin@apple.com>
1620
1621         Reviewed by John Sullivan.
1622
1623         - updated for changes to database functions
1624
1625         * WebCoreSupport/ChromeClientGtk.cpp:
1626         (WebKit::ChromeClient::exceededDatabaseQuota):
1627         * WebCoreSupport/ChromeClientGtk.h:
1628         * WebView/webkitprivate.cpp:
1629         (webkit_init):
1630
1631 2008-01-20  Alp Toker  <alp@atoker.com>
1632
1633         Reviewed by Mark Rowe.
1634
1635         Attach the widget's style to its window and set the background to the
1636         base background to avoid black flicker when repainting. This is
1637         similar to what GtkTextView does.
1638
1639         * WebView/webkitwebview.cpp:
1640
1641 2008-01-19  Christian Dywan  <christian@imendio.com>
1642
1643         Reviewed by Alp Toker.
1644
1645         http://bugs.webkit.org/show_bug.cgi?id=16882
1646         [GTK] ChromeClientGtk is incompete
1647
1648         Implement these functions.
1649
1650         * WebCoreSupport/ChromeClientGtk.cpp:
1651         (WebKit::ChromeClient::windowRect):
1652         (WebKit::ChromeClient::pageRect):
1653         (WebKit::ChromeClient::scaleFactor):
1654         (WebKit::ChromeClient::focus):
1655         (WebKit::ChromeClient::unfocus):
1656         (WebKit::ChromeClient::canTakeFocus):
1657         (WebKit::ChromeClient::takeFocus):
1658         (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel):
1659
1660 2008-01-18  Luca Bruno  <lethalman88@gmail.com>
1661
1662         Reviewed by Alp Toker.
1663
1664         http://bugs.webkit.org/show_bug.cgi?id=16910
1665         [GTK] REGRESSION: keyboard cursor doesn't blink
1666
1667         http://bugs.webkit.org/show_bug.cgi?id=16863
1668         [GTK] REGRESSION: tab focusing doesn't work
1669
1670         * WebView/webkitwebview.cpp:
1671         (webkit_web_view_focus_in_event): Added. Set the active frame.
1672         (webkit_web_view_class_init):
1673
1674 2008-01-16  Alp Toker  <alp@atoker.com>
1675
1676         Reviewed by Mark Rowe.
1677
1678         http://bugs.webkit.org/show_bug.cgi?id=16218
1679         [GTK] API: Should this entry point be called go_back rather than go_backward?
1680
1681         Obsolete 'backward' terminology in API in favour of 'back'. Introduce
1682         step-based back/forward functions.
1683
1684         Document more functions.
1685
1686         * WebView/webkitdefines.h:
1687         * WebView/webkitwebview.cpp:
1688         * WebView/webkitwebview.h:
1689
1690 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
1691
1692         Reviewed by Sam.
1693
1694         - remove SecurityOriginData and fold its functionality into SecurityOrigin
1695
1696         * WebCoreSupport/ChromeClientGtk.cpp:
1697         (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase):
1698         (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
1699         * WebCoreSupport/ChromeClientGtk.h:
1700
1701 2008-01-09  Luca Bruno  <lethalman88@gmail.com>
1702
1703         Reviewed by Alp Toker.
1704
1705         http://bugs.webkit.org/show_bug.cgi?id=16802
1706         [GTK] Missing gtk properties
1707         
1708         Add missing properties to WebKitViewFrame and WebKitWebView.
1709         
1710         * WebView/webkitprivate.h: add some useful defines for param specs
1711         * WebView/webkitwebframe.cpp:
1712         (webkit_web_frame_get_property): added
1713         (webkit_web_frame_class_init): add name, title and uri read-only properties
1714         * WebView/webkitwebview.cpp:
1715         (webkit_web_view_get_property): add editable property read
1716         (webkit_web_view_set_property): added for editable property write
1717         (webkit_web_view_class_init): add read-write editable property
1718
1719 2008-01-03  Xan Lopez  <xan@gnome.org>
1720
1721         Reviewed by Alp Toker.
1722
1723         http://bugs.webkit.org/show_bug.cgi?id=16654
1724         [GTK] Signal "navigation-requested" does not react correctly on
1725         return TRUE from callbacks
1726         
1727         * WebView/webkitwebview.cpp: use our own accumulator for signals
1728         returning WebKitNavigationResponse. The emission will be stopped
1729         when any callback returns anything but
1730         WEBKIT_NAVIGATION_RESPONSE_ACCEPT.
1731
1732 2008-01-02  Holger Hans Peter Freyther  <zecke@selfish.org>
1733
1734         Rubber stamped by Darin Adler.
1735
1736         Coding Style fix. Do not use an else because we use a return in the
1737         if branch.
1738
1739         * WebView/webkitwebview.cpp:
1740
1741 2008-01-02  Luca Bruno  <lethalman88@gmail.com>
1742
1743         Reviewed by Alp Toker.
1744
1745         http://bugs.webkit.org/show_bug.cgi?id=16115
1746         [GTK] ContextMenu and ContextMenuItem lacks an implementation
1747
1748         Add context menu support.
1749
1750         Based on a patch by Holger Freyther.
1751
1752         * WebCoreSupport/ContextMenuClientGtk.cpp:
1753         (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
1754         * WebView/webkitprivate.h:
1755         * WebView/webkitwebview.cpp:
1756
1757 2007-12-29  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1758
1759         Reviewed by Alp Toker.
1760
1761         http://bugs.webkit.org/show_bug.cgi?id=16669
1762         autotools update and fixes
1763
1764         pkgconfig file and icon database inclusion fix
1765
1766         * WebKitGtk.pc.in: Remove ICU_FLAGS from Cflags
1767         * WebView/webkitprivate.cpp: Guard ICONDATABASE inclusions
1768
1769 2007-12-28  Christian Dywan  <christian@twotoasts.de>
1770
1771         Reviewed by Alp Toker.
1772
1773         http://bugs.webkit.org/show_bug.cgi?id=16642
1774         [GTK] webkit_web_view_has_selection returns the opposite result
1775
1776         Invert the return value.
1777
1778         * WebView/webkitwebview.cpp:
1779
1780 2007-12-26  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
1781
1782         Reviewed by Alp Toker.
1783
1784         http://bugs.webkit.org/show_bug.cgi?id=16390
1785         Use autotools or GNU make as the build system for the GTK port
1786
1787         * WebKitGtk.pc.in: Added.
1788
1789 2007-12-24  Christian Dywan  <christian@twotoasts.de>
1790
1791         Reviewed by Alp Toker.
1792
1793         http://bugs.webkit.org/attachment.cgi?id=18099
1794         There are no NULL checks for strings in public api
1795
1796         Add missing NULL checks for string parameters.
1797
1798         Provide sensible defaults when NULL is passed for the optional
1799         parameters in webkit_web_view_load_string(). UTF-8 is the default
1800         encoding used by GLib and text/html is a reasonable default content
1801         type.
1802
1803         * WebView/webkitnetworkrequest.cpp:
1804         * WebView/webkitwebview.cpp:
1805
1806 2007-12-22  Xan Lopez  <xan@gnome.org>
1807
1808         Reviewed by Alp Toker.
1809
1810         Use webView, web_view, etc for variable names instead of page, which
1811         was left over from the old API.
1812
1813         * WebCoreSupport/EditorClientGtk.cpp:
1814         (WebKit::imContextCommitted):
1815         (WebKit::EditorClient::EditorClient):
1816         (WebKit::EditorClient::~EditorClient):
1817         (WebKit::EditorClient::textFieldDidBeginEditing):
1818         (WebKit::EditorClient::textFieldDidEndEditing):
1819         * WebCoreSupport/EditorClientGtk.h:
1820         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1821         (WebKit::FrameLoaderClient::postProgressStartedNotification):
1822         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
1823         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
1824         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1825         (WebKit::FrameLoaderClient::windowObjectCleared):
1826         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
1827         (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
1828         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
1829
1830 2007-12-22  Alp Toker  <alp@atoker.com>
1831
1832         GTK+ build fix
1833
1834         GTK_TARGET_OTHER_APP is not available in older GTK+ versions. Pass
1835         empty target flags for now.
1836
1837         Check GTK+, not GLib versions, since they are different.
1838
1839         * WebView/webkitwebview.cpp:
1840
1841 2007-12-22  Luca Bruno  <lethalman88@gmail.com>
1842
1843         Reviewed by Alp Toker.
1844
1845         http://bugs.webkit.org/show_bug.cgi?id=16311
1846         [Gtk] Copy rich text to clipboard as text/plain and text/html.
1847
1848         Add copy and paste targets for WebView and implement
1849         WebCore::PasteboardHelper.
1850
1851         * WebCoreSupport/PasteboardHelperGtk.cpp: Added.
1852         (WebKit::PasteboardHelperGtk::getClipboard):
1853         (WebKit::PasteboardHelperGtk::getCopyTargetList):
1854         (WebKit::PasteboardHelperGtk::getPasteTargetList):
1855         * WebCoreSupport/PasteboardHelperGtk.h: Added.
1856         * WebView/webkitprivate.cpp:
1857         (webkit_init): set the PasteboardHelperGtk as WebCore::Pasteboard helper
1858         * WebView/webkitprivate.h:
1859         (_WebKitWebViewPrivate::copy_target_list): added
1860         (_WebKitWebViewPrivate::paste_target_list): added
1861         * WebView/webkitwebview.cpp:
1862         (webkit_web_view_get_property): added
1863         (webkit_web_view_finalize):
1864         (webkit_web_view_class_init): create properties for COPY_TARGET and PASTE_TARGET and create the copy and paste target lists
1865         (webkit_web_view_get_copy_target_list): added
1866         (webkit_web_view_get_paste_target_list): added
1867         * WebView/webkitwebview.h:
1868         (webkit_web_view_get_copy_target_list): added
1869         (webkit_web_view_get_paste_target_list): added
1870
1871 2007-12-22  Xan Lopez  <xan@gnome.org>
1872
1873         Reviewed by Alp Toker.
1874
1875         Follow up to http://bugs.webkit.org/show_bug.cgi?id=16144
1876
1877         * WebView/webkitwebview.cpp:
1878         Fix signal id arguments for g_signal_emit in
1879         clipboard functions.
1880
1881 2007-12-21  Alp Toker  <alp@atoker.com>
1882
1883         Documentation typo fix: s/wether/whether
1884
1885         * WebView/webkitwebview.cpp:
1886
1887 2007-12-21  Christian Dywan  <christian@twotoasts.de>
1888
1889         Reviewed by Alp Toker.
1890
1891         http://bugs.webkit.org/show_bug.cgi?id=16144
1892         [GTK] Clipboard/ selection handling functions
1893
1894         * WebView/webkitprivate.h:
1895         * WebView/webkitwebview.cpp:
1896         * WebView/webkitwebview.h:
1897
1898 2007-12-19  Christian Dywan  <christian@twotoasts.de> 
1899
1900         Reviewed by Alp Toker.
1901
1902         http://bugs.webkit.org/show_bug.cgi?id=16222
1903         [GTK] Implement inline search and highlighting of matching strings.
1904
1905         * WebView/webkitwebview.cpp:
1906         * WebView/webkitwebview.h:
1907
1908 2007-12-19  Alp Toker  <alp@atoker.com>
1909
1910         Reviewed by Holger Freyther.
1911
1912         Delete when Destroy functions are called to avoid leaks
1913         
1914         This matches the Mac port.
1915
1916         * WebCoreSupport/ChromeClientGtk.cpp:
1917         * WebCoreSupport/ContextMenuClientGtk.cpp:
1918         * WebCoreSupport/InspectorClientGtk.cpp:
1919
1920 2007-12-14  Juan A. Suarez Romero  <jasuarez@igalia.com>
1921
1922         Reviewed by Alp Toker.
1923
1924         http://bugs.webkit.org/show_bug.cgi?id=16042
1925         [GTK] Eliminate webkit_init()
1926
1927         Move webkit initialization to WebView class init.
1928
1929         * WebView/headers.pri:
1930         * WebView/webkit.h:
1931         * WebView/webkitglobal.cpp: Removed.
1932         * WebView/webkitglobal.h: Removed.
1933         * WebView/webkitprivate.cpp:
1934         (WebKit::webkit_init):
1935         * WebView/webkitprivate.h:
1936         * WebView/webkitwebframe.cpp:
1937         * WebView/webkitwebview.cpp:
1938
1939 2007-12-17  Luca Bruno  <lethalman88@gmail.com>
1940
1941         Reviewed by Alp Toker.
1942
1943         http://bugs.webkit.org/show_bug.cgi?id=13542
1944         gdklauncher doesnt change URL in adress GTKEntry.
1945
1946         Let DOMDocument observers do their work before emitting title-changed.
1947         The load-committed signal has been added for both the view and the frame.
1948
1949         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1950         (WebKit::FrameLoaderClient::dispatchDidReceiveTitle): emit title-changed
1951         (WebKit::FrameLoaderClient::setTitle): set private title
1952         (WebKit::FrameLoaderClient::dispatchDidCommitLoad): update the frame uri and emit load-committed
1953         * WebView/webkit-marshal.list:
1954         * WebView/webkitprivate.h:
1955         (_WebKitWebFramePrivate): rename location to uri
1956         * WebView/webkitwebframe.cpp:
1957         (webkit_web_frame_get_location): renamed to *_get_uri
1958         (webkit_web_frame_get_uri):
1959         (webkit_web_frame_real_title_changed): removed (see FrameLoaderClient::setTitle)
1960         (webkit_web_frame_class_init): pass the frame and the title in title-changed, not the uri
1961         (webkit_web_frame_finalize):
1962         * WebView/webkitwebframe.h:
1963         (_WebKitWebFrameClass): removed title_changed
1964         * WebView/webkitwebview.cpp:
1965         (webkit_web_view_class_init): pass only the title in title-changed
1966
1967 2007-12-14  Alp Toker  <alp@atoker.com>
1968
1969         Fix inconsistent indentation in the license header. Maciej was right!
1970
1971         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1972
1973 2007-12-14  Alp Toker  <alp@atoker.com>
1974
1975         Reviewed by Maciej.
1976
1977         http://bugs.webkit.org/show_bug.cgi?id=16432
1978         [GTK] Update license headers
1979
1980         Consent has been given by the authors of these files to change license
1981         to the LGPL as outlined in the bug report.
1982
1983         * WebCoreSupport/ChromeClientGtk.cpp:
1984         * WebCoreSupport/ContextMenuClientGtk.cpp:
1985         * WebCoreSupport/DragClientGtk.cpp:
1986         * WebCoreSupport/EditorClientGtk.cpp:
1987         * WebCoreSupport/FrameLoaderClientGtk.cpp:
1988         (WebKit::FrameLoaderClient::makeRepresentation):
1989         (WebKit::FrameLoaderClient::forceLayout):
1990         (WebKit::FrameLoaderClient::forceLayoutForNonHTML):
1991         (WebKit::FrameLoaderClient::setCopiesOnScroll):
1992         (WebKit::FrameLoaderClient::detachedFromParent1):
1993         (WebKit::FrameLoaderClient::detachedFromParent2):
1994         (WebKit::FrameLoaderClient::detachedFromParent3):
1995         (WebKit::FrameLoaderClient::detachedFromParent4):
1996         (WebKit::FrameLoaderClient::loadedFromCachedPage):
1997         (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
1998         (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
1999         (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect):
2000         (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect):
2001         (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage):
2002         (WebKit::FrameLoaderClient::dispatchWillClose):
2003         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
2004         (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
2005         (WebKit::FrameLoaderClient::dispatchDidFirstLayout):
2006         (WebKit::FrameLoaderClient::dispatchShow):
2007         (WebKit::FrameLoaderClient::cancelPolicyCheck):
2008         (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
2009         (WebKit::FrameLoaderClient::revertToProvisionalState):
2010         (WebKit::FrameLoaderClient::clearUnarchivingState):
2011         (WebKit::FrameLoaderClient::willChangeTitle):
2012         (WebKit::FrameLoaderClient::didChangeTitle):
2013         (WebKit::FrameLoaderClient::finalSetupForReplace):
2014         (WebKit::FrameLoaderClient::setDefersLoading):
2015         (WebKit::FrameLoaderClient::isArchiveLoadPending):
2016         (WebKit::FrameLoaderClient::cancelPendingArchiveLoad):
2017         (WebKit::FrameLoaderClient::clearArchivedResources):
2018         (WebKit::FrameLoaderClient::canHandleRequest):
2019         (WebKit::FrameLoaderClient::canShowMIMEType):
2020         (WebKit::FrameLoaderClient::representationExistsForURLScheme):
2021         (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme):
2022         (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
2023         (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
2024         (WebKit::FrameLoaderClient::dispatchDidFailLoading):
2025         (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
2026         (WebKit::FrameLoaderClient::download):
2027         (WebKit::FrameLoaderClient::cancelledError):
2028         (WebKit::FrameLoaderClient::blockedError):
2029         (WebKit::FrameLoaderClient::cannotShowURLError):
2030         (WebKit::FrameLoaderClient::interruptForPolicyChangeError):
2031         (WebKit::FrameLoaderClient::cannotShowMIMETypeError):
2032         (WebKit::FrameLoaderClient::fileDoesNotExistError):
2033         (WebKit::FrameLoaderClient::shouldFallBack):
2034         (WebKit::FrameLoaderClient::willUseArchive):
2035         (WebKit::FrameLoaderClient::canCachePage):
2036         (WebKit::FrameLoaderClient::dispatchCreatePage):
2037         (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy):
2038         (WebKit::FrameLoaderClient::setMainDocumentError):
2039         (WebKit::FrameLoaderClient::startDownload):
2040         (WebKit::FrameLoaderClient::updateGlobalHistoryForStandardLoad):
2041         (WebKit::FrameLoaderClient::updateGlobalHistoryForReload):
2042         (WebKit::FrameLoaderClient::savePlatformDataToCachedPage):
2043         (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage):
2044         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
2045         * WebCoreSupport/InspectorClientGtk.cpp:
2046         * WebView/webkitwebview.cpp:
2047
2048 2007-12-14  Darin Adler  <darin@apple.com>
2049
2050         Reviewed by Alexey.
2051
2052         * WebCoreSupport/EditorClientGtk.cpp:
2053         (WebKit::EditorClient::handleKeyboardEvent): Changed to use Editor::command
2054         instead of Editor::execCommand.
2055         * WebView/webkitwebview.cpp: Ditto.
2056
2057 2007-12-12  Brady Eidson  <beidson@apple.com>
2058
2059         Reviewed by Sam Weinig
2060
2061         As part of doing some CachedPage and client cleanup, keep GTK building
2062
2063         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2064         (WebKit::FrameLoaderClient::savePlatformDataToCachedPage):
2065         (WebKit::FrameLoaderClient::transitionToCommittedFromCachedPage):
2066         (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
2067         * WebCoreSupport/FrameLoaderClientGtk.h:
2068
2069 2007-12-12  Alp Toker  <alp@atoker.com>
2070
2071         Reviewed by Holger Freyther.
2072
2073         http://bugs.webkit.org/show_bug.cgi?id=15576
2074         [GTK] Printing support
2075
2076         Add printing support.
2077
2078         The API will be kept internal for the time being, but printing can now
2079         be triggered by Web pages or the JSC API using JavaScript.
2080
2081         The print spooler and pagination code is fairly abstract and could be
2082         shared by other ports including Win and Qt once complete. It doesn't
2083         have header/footer support yet.
2084
2085         * WebCoreSupport/ChromeClientGtk.cpp:
2086         (WebKit::ChromeClient::print):
2087         * WebView/webkitprivate.h:
2088         * WebView/webkitwebframe.cpp:
2089         (PrintContext::begin_print):
2090         (PrintContext::draw_page):
2091         (PrintContext::end_print):
2092         (PrintContext::webkit_web_frame_print):
2093
2094 2007-12-12  Sam Weinig  <sam@webkit.org>
2095
2096         Build fix.
2097
2098         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2099         (WebKit::FrameLoaderClient::didChangeTitle):
2100
2101 2007-12-12  Sam Weinig  <sam@webkit.org>
2102
2103         Build fix.
2104
2105         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2106         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2107
2108 2007-12-11  George Wright  <george.wright@collabora.co.uk>
2109
2110         Reviewed by Alp Toker.
2111
2112         http://bugs.webkit.org/show_bug.cgi?id=14120
2113         [GDK] Support input methods
2114
2115         This patch adds infrastructure for input method support.
2116
2117         It also adds Hildon features for the Maemo mobile platform sufficient
2118         to support the virtual keyboard.
2119
2120         * WebCoreSupport/EditorClientGtk.cpp:
2121         (WebKit::imContextCommitted):
2122         (WebKit::EditorClient::EditorClient):
2123         (WebKit::EditorClient::~EditorClient):
2124         (WebKit::EditorClient::textFieldDidBeginEditing):
2125         (WebKit::EditorClient::textFieldDidEndEditing):
2126         * WebCoreSupport/EditorClientGtk.h:
2127         * WebView/webkitprivate.h:
2128         * WebView/webkitwebview.cpp:
2129
2130 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
2131
2132         Reviewed by Darin Adler.
2133
2134         <rdar://problem/5535636>
2135         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
2136
2137         http://bugs.webkit.org/show_bug.cgi?id=13916
2138         JavaScript detects Tab as a character input on a textfield validation
2139
2140         * WebCoreSupport/EditorClientGtk.cpp:
2141         (WebKit::EditorClient::handleKeyboardEvent):
2142         (WebKit::EditorClient::handleInputMethodKeydown):
2143         * WebCoreSupport/EditorClientGtk.h:
2144         Updated for cross-platform changes as much as it was possible without a gtk build environment.
2145
2146 2007-12-08  Luca Bruno  <lethalman88@gmail.com>
2147
2148         Reviewed by Alp Toker.
2149
2150         http://bugs.webkit.org/show_bug.cgi?id=16346
2151         [GTK] Some webview parts must use the focused frame.
2152
2153         Also update some old code.
2154
2155         * WebView/webkitprivate.cpp:
2156         (getFrameFromView): removed
2157
2158         * WebView/webkitprivate.h:
2159         (getFrameFromView): removed
2160         
2161         * WebView/webkitwebview.cpp:
2162         (webkit_web_view_expose_event):
2163         (webkit_web_view_key_press_event): use focused frame
2164         (webkit_web_view_key_release_event): use focused frame
2165         (webkit_web_view_button_press_event):
2166         (webkit_web_view_button_release_event):
2167         (webkit_web_view_motion_event):
2168         (webkit_web_view_scroll_event):
2169         (webkit_web_view_size_allocate):
2170         (webkit_web_view_set_scroll_adjustments):
2171         (webkit_web_view_execute_script):
2172         (webkit_web_view_stop_loading):
2173         (webkit_web_view_load_string):
2174         (webkit_web_view_reload):
2175         (webkit_web_view_open):
2176         (webkit_web_view_can_go_forward):
2177         (webkit_web_view_can_go_backward):
2178         (webkit_web_view_go_forward):
2179         (webkit_web_view_go_backward):
2180
2181         * WebCoreSupport/EditorClientGtk.cpp:
2182         (WebKit::EditorClient::handleKeypress): fix for page up and page down keys for editable contents
2183
2184 2007-12-07  Luca Bruno  <lethalman88@gmail.com>
2185
2186         Reviewed by Alp Toker.
2187
2188         http://bugs.webkit.org/show_bug.cgi?id=16333
2189         [GTK] Key bindings must work with focused frames.
2190
2191         There are still more cases where getFrameFromView() is mis-used that
2192         need to be fixed, but this is a good start.
2193
2194         * WebView/webkitwebview.cpp:
2195         (webkit_web_view_real_select_all):
2196         (webkit_web_view_real_cut_clipboard):
2197         (webkit_web_view_real_copy_clipboard):
2198         (webkit_web_view_real_paste_clipboard):
2199
2200 2007-12-06  Xan Lopez  <xan@gnome.org>
2201
2202         Reviewed by Alp Toker.
2203
2204         http://bugs.webkit.org/show_bug.cgi?id=16329
2205         [GTK] Two small cleanups
2206
2207         * WebCoreSupport/ChromeClientGtk.cpp:
2208         (WebKit::ChromeClient::createWindow):
2209         (WebKit::ChromeClient::addMessageToConsole):
2210         (WebKit::ChromeClient::runJavaScriptAlert):
2211         (WebKit::ChromeClient::runJavaScriptConfirm):
2212         (WebKit::ChromeClient::runJavaScriptPrompt):
2213         (WebKit::ChromeClient::setStatusbarText):
2214         (WebKit::ChromeClient::mouseDidMoveOverElement):
2215         (WebKit::ChromeClient::setToolTip):
2216         * WebCoreSupport/ChromeClientGtk.h:
2217         * WebView/webkitprivate.cpp:
2218         (WebKit::kit):
2219         s/m_webPage/m_webView/
2220         * WebView/webkitwebview.cpp:
2221         Chain up to the parent class to activate bindings instead
2222         of doing it explicitely.
2223
2224 2007-12-06  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2225
2226         Reviewed by Alp Toker.
2227
2228         http://bugs.webkit.org/show_bug.cgi?id=16173
2229         Licensing change
2230
2231         Change license from BSD to LGPL.
2232
2233         * WebCoreSupport/ChromeClientGtk.h:
2234         * WebView/webkitdefines.h:
2235         * WebView/webkitglobal.cpp:
2236         * WebView/webkitglobal.h:
2237         * WebView/webkitnetworkrequest.cpp:
2238         * WebView/webkitnetworkrequest.h:
2239         * WebView/webkitprivate.cpp:
2240         * WebView/webkitprivate.h:
2241         * WebView/webkitsettings.cpp:
2242         * WebView/webkitsettings.h:
2243         * WebView/webkitwebframe.cpp:
2244         * WebView/webkitwebframe.h:
2245         * WebView/webkitwebview.h:
2246
2247 2007-12-05  Michael Natterer  <mitch@imendio.com>
2248
2249         Reviewed by Alp Toker.
2250
2251         * WebView/webkitwebview.cpp: split key and button event handlers
2252         into separate press and release functions.
2253
2254 2007-12-05  Luca Bruno  <lethalman88@gmail.com>
2255
2256         Reviewed by Alp Toker.
2257
2258         Handle events for Home and End keys.
2259
2260         * WebView/webkitwebview.cpp:
2261         (webkit_web_view_key_event):
2262         * WebCoreSupport/EditorClientGtk.cpp:
2263         (EditorClient::handleKeypress):
2264
2265 2007-12-05  Michael Natterer  <mitch@imendio.com>
2266
2267         Reviewed by Alp Toker.
2268
2269         * WebView/webkitwebview.cpp
2270         * WebCoreSupport/ChromeClientGtk.cpp
2271         * WebCoreSupport/FrameLoaderClientGtk.cpp: canonicalize signal names.
2272
2273 2007-12-04  Darin Adler  <darin@apple.com>
2274
2275         Reviewed by Kevin Decker.
2276
2277         * WebCoreSupport/FrameLoaderClientGtk.cpp: Removed obsolete privateBrowsingEnabled.
2278         * WebCoreSupport/FrameLoaderClientGtk.h: Ditto.
2279
2280 2007-12-04  Michael Natterer  <mitch@imendio.com>
2281
2282         Reviewed by Alp Toker.
2283
2284         * WebView/webkitwebframe.cpp: don't redeclare the marshaller
2285         prototype but simply include "webkit-marshal.h" now that its build
2286         is fixed.
2287
2288 2007-12-04  Luca Bruno  <lethalman88@gmail.com>
2289
2290         Reviewed by Alp Toker.
2291
2292         Fix a regression in key press propagation in r28386.
2293
2294         Fix indentation (was off by two spaces).
2295
2296         * WebView/webkitwebview.cpp:
2297
2298 2007-12-04  Luca Bruno  <lethalman88@gmail.com>
2299
2300         Reviewed by Alp Toker.
2301
2302         http://bugs.webkit.org/show_bug.cgi?id=15911
2303         [GTK] Use GtkBindingSet to make key bindings user-configurable
2304
2305         This patch doesn't cover the full range of bindings, only the ones
2306         that seem obviously correct and have clear public API.
2307
2308         * WebCoreSupport/EditorClientGtk.cpp:
2309         (WebKit::EditorClient::handleKeypress): do not handle clipboard operations and select-all
2310         * WebView/webkitwebview.cpp: add cut, copy, paste and select-all signals and allow binding sets (issue #15911 and #16144)
2311         * WebView/webkitwebview.h:
2312
2313 2007-12-04  Xan Lopez  <xan@gnome.org>
2314
2315         Reviewed by Alp Toker.
2316
2317         http://bugs.webkit.org/show_bug.cgi?id=15561
2318         GTK port needs DumpRenderTree implementation
2319
2320         Start work on the GTK+ DRT.
2321
2322         Add a couple of proposed new API entry points. They are currently for
2323         internal use only by DRT and not in the public headers.
2324
2325         * WebView/webkitprivate.h:
2326         * WebView/webkitwebframe.cpp:
2327
2328 2007-12-03  Dan Bernstein  <mitz@apple.com>
2329
2330         Reviewed by Dave Hyatt.
2331
2332         - fix <rdar://problem/5346452> Resize event doesn't fire on body element inside a frame
2333
2334         * WebView/webkitwebview.cpp: Remove the call to sendResizeEvent() since
2335         FrameView sends it now.
2336
2337 2007-12-03  Alp Toker  <alp@atoker.com>
2338
2339         globalObject() GTK+ build fix.
2340
2341         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2342         (WebKit::FrameLoaderClient::windowObjectCleared):
2343
2344 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
2345
2346         GTK Build fix: get globalExec from the right place.
2347
2348         * WebView/webkitwebframe.cpp:
2349
2350 2007-12-01  Alp Toker  <alp@atoker.com>
2351
2352         Reviewed by Adam Roben.
2353
2354         Wrap type definitions in webkitdefines.h with G_BEGIN_DECLS, which
2355         takes care of extern "C".
2356
2357         Introduce a webkit.h convenience header.
2358
2359         Remove another left-over from the old API.
2360
2361         * WebView/headers.pri:
2362         * WebView/webkit.h: Added.
2363         * WebView/webkitdefines.h:
2364
2365 2007-12-01  Alp Toker  <alp@atoker.com>
2366
2367         Reviewed by Adam Roben.
2368
2369         http://bugs.webkit.org/show_bug.cgi?id=15687
2370         [Gtk] Allow API clients to interact with JavaScript in web pages
2371
2372         Include the necessary JavaScriptCore headers directly in the public
2373         API headers.
2374
2375         This is the last of a series of changes needed to allow GTK+
2376         applications to access the JS API.
2377
2378         Until http://bugs.webkit.org/show_bug.cgi?id=16029 is resolved,
2379         developers will still have to include the individual JS API headers
2380         individually if they want to use it in their applications.
2381
2382         Patch also removes some old legacy use of GDK that was in
2383         WebKitWebFrame. No ABI change.
2384
2385         * WebView/webkitdefines.h:
2386         * WebView/webkitwebframe.h:
2387         * WebView/webkitwebview.h:
2388
2389 2007-11-30  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
2390
2391         Fix for GTK+ Debug build breakage introduced in r28273.
2392
2393         * WebView/webkitprivate.cpp:
2394         (WebKit::kit):
2395
2396 2007-11-30  Alp Toker  <alp@atoker.com>
2397
2398         Reviewed by Adam Roben.
2399
2400         http://bugs.webkit.org/show_bug.cgi?id=15691
2401         [GTK] Public API does not follow GTK+ conventions
2402
2403         Refactor the WebKit/GTK+ public API. Changes:
2404           WebKitPage -> WebKitWebView
2405           WebKitFrame -> WebKitWebFrame
2406
2407         Public API source and header names have been updated to mirror the API
2408         changes.
2409
2410         The API is now kept in WebKit/gtk/WebView to match other ports in the
2411         same class such as Mac and Win.
2412
2413         API/ABI-breaking change.
2414
2415         * Api: Removed.
2416         * Api/headers.pri: Removed.
2417         * Api/webkitgtk-marshal.list: Removed.
2418         * Api/webkitgtkdefines.h: Removed.
2419         * Api/webkitgtkframe.cpp: Removed.
2420         * Api/webkitgtkframe.h: Removed.
2421         * Api/webkitgtkglobal.cpp: Removed.
2422         * Api/webkitgtkglobal.h: Removed.
2423         * Api/webkitgtknetworkrequest.cpp: Removed.
2424         * Api/webkitgtknetworkrequest.h: Removed.
2425         * Api/webkitgtkpage.cpp: Removed.
2426         * Api/webkitgtkpage.h: Removed.
2427         * Api/webkitgtkprivate.cpp: Removed.
2428         * Api/webkitgtkprivate.h: Removed.
2429         * Api/webkitgtksettings.cpp: Removed.
2430         * Api/webkitgtksettings.h: Removed.
2431         * WebCoreSupport/ChromeClientGtk.cpp:
2432         (WebKit::ChromeClient::ChromeClient):
2433         (WebKit::ChromeClient::createWindow):
2434         * WebCoreSupport/ChromeClientGtk.h:
2435         (WebKit::ChromeClient::webPage):
2436         * WebCoreSupport/EditorClientGtk.cpp:
2437         (WebKit::EditorClient::isEditable):
2438         (WebKit::EditorClient::EditorClient):
2439         * WebCoreSupport/EditorClientGtk.h:
2440         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2441         (WebKit::FrameLoaderClient::FrameLoaderClient):
2442         (WebKit::FrameLoaderClient::postProgressStartedNotification):
2443         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
2444         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
2445         (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2446         (WebKit::FrameLoaderClient::createFrame):
2447         (WebKit::FrameLoaderClient::windowObjectCleared):
2448         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
2449         (WebKit::FrameLoaderClient::setTitle):
2450         * WebCoreSupport/FrameLoaderClientGtk.h:
2451         (WebKit::FrameLoaderClient::webFrame):
2452         * WebView: Added.
2453         * WebView/headers.pri: Added.
2454         * WebView/webkit-marshal.list: Added.
2455         * WebView/webkitdefines.h: Added.
2456         * WebView/webkitglobal.cpp: Added.
2457         * WebView/webkitglobal.h: Added.
2458         * WebView/webkitnetworkrequest.cpp: Added.
2459         * WebView/webkitnetworkrequest.h: Added.
2460         * WebView/webkitprivate.cpp: Added.
2461         (WebKit::apply):
2462         (WebKit::create):
2463         (WebKit::getFrameFromView):
2464         (WebKit::getViewFromFrame):
2465         (WebKit::core):
2466         (WebKit::kit):
2467         * WebView/webkitprivate.h: Added.
2468         * WebView/webkitsettings.cpp: Added.
2469         * WebView/webkitsettings.h: Added.
2470         * WebView/webkitwebframe.cpp: Added.
2471         * WebView/webkitwebframe.h: Added.
2472         * WebView/webkitwebview.cpp: Added.
2473         * WebView/webkitwebview.h: Added.
2474
2475 2007-11-28  Alp Toker  <alp@atoker.com>
2476
2477         Reviewed by Timothy Hatcher.
2478
2479         http://bugs.webkit.org/show_bug.cgi?id=16174
2480         [GTK] Use "URI" not "URL" in public API
2481
2482         Replace use of the term "URL" with "URI" in public headers,
2483         documentation and some internal code to match GLib/GTK+ convention.
2484
2485         This is now mentioned in the API guidelines:
2486           http://trac.webkit.org/projects/webkit/wiki/HackingGtk
2487
2488         API/ABI-breaking change.
2489
2490         * Api/webkitgtkframe.cpp:
2491         * Api/webkitgtknetworkrequest.cpp:
2492         * Api/webkitgtknetworkrequest.h:
2493         * Api/webkitgtkpage.cpp:
2494         * Api/webkitgtkpage.h:
2495         * Api/webkitgtkprivate.h:
2496         * Api/webkitgtksettings.h:
2497
2498 2007-11-29  Brady Eidson  <beidson@apple.com>
2499
2500         Better build fix for Gtk
2501
2502         * WebCoreSupport/ChromeClientGtk.h:
2503
2504 2007-11-29  Brady Eidson  <beidson@apple.com>
2505
2506         Keep it building with new client method
2507
2508         * WebCoreSupport/ChromeClientGtk.cpp:
2509         (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase):
2510         (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
2511         * WebCoreSupport/ChromeClientGtk.h:
2512
2513 2007-11-26  Alp Toker  <alp@atoker.com>
2514
2515         Reviewed by Adam Roben.
2516
2517         http://bugs.webkit.org/show_bug.cgi?id=16149
2518         Implement the window-object-cleared signal
2519
2520         This implementation provides the JSGlobalContextRef and JSObjectRef
2521         directly rather than using an intermediate JS wrapper object, similar
2522         to the approach taken by the Win port.
2523
2524         * Api/webkitgtk-marshal.list:
2525         * Api/webkitgtkframe.h:
2526         * Api/webkitgtkpage.cpp:
2527         * Api/webkitgtkpage.h:
2528         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2529         (WebKit::FrameLoaderClient::windowObjectCleared):
2530
2531 2007-11-24  Alp Toker  <alp@atoker.com>
2532
2533         Reviewed by Mark Rowe.
2534
2535         http://bugs.webkit.org/show_bug.cgi?id=15691
2536         [GTK] Public API does not follow GTK+ conventions
2537
2538         Public API enhancements:
2539
2540         Implement webkit_page_get_editable() and webkit_page_set_editable().
2541
2542         Implement webkit_frame_get_name().
2543
2544         Remove definitions for functions that are unusable or not implemented.
2545         This has caused much confusion for application developers.
2546
2547         Improve documentation.
2548
2549         Correct/constify some return types.
2550
2551         Add parameter checks.
2552
2553         Make the default fixed font "Courier New" to match the other Web
2554         font names.
2555
2556         * Api/webkitgtkframe.cpp:
2557         * Api/webkitgtkframe.h:
2558         * Api/webkitgtkpage.cpp:
2559         * Api/webkitgtkpage.h:
2560         * Api/webkitgtkprivate.h:
2561         * WebCoreSupport/EditorClientGtk.cpp:
2562         (WebKit::EditorClient::isEditable):
2563
2564 2007-11-24  Alp Toker  <alp@atoker.com>
2565
2566         Reviewed by Mark Rowe.
2567
2568         http://bugs.webkit.org/show_bug.cgi?id=16125
2569         [GTK] Up key doesn't work properly when content is editable
2570
2571         Add a missing 'break' to avoid falling through to the next case when
2572         handling VK_UP keystrokes. This was noticed when working on editing
2573         support in the GTK+ port.
2574
2575         I've checked the other cases for similar typos and they seem fine.
2576
2577         * WebCoreSupport/EditorClientGtk.cpp:
2578         (WebKit::EditorClient::handleKeypress):
2579
2580 2007-11-24  Xan Lopez  <xan@gnome.org>
2581
2582         Reviewed by Alp Toker.
2583
2584         http://bugs.webkit.org/show_bug.cgi?id=15745
2585         [GTK] Arrow keys do not Scroll
2586         
2587         * Api/webkitgtkpage.cpp:
2588
2589         Support Up/Down/Right/Left keys to scroll. Slight hack, see FIXME for
2590         details.
2591
2592 2007-11-24  Christian Dywan  <christian@twotoasts.de>
2593
2594         Reviewed by Alp Toker.
2595
2596         http://bugs.webkit.org/show_bug.cgi?id=15891
2597         [GTK] Javascript console and dialogs are not implemented
2598
2599         Fix call to gtk_message_dialog_new() which expects a format string.
2600
2601         * Api/webkitgtkpage.cpp:
2602
2603 2007-11-24  Christian Dywan  <christian@twotoasts.de>
2604
2605         Reviewed by Alp Toker.
2606
2607         http://bugs.webkit.org/show_bug.cgi?id=15793
2608         [GTK] Webkit doesn't show title attribute tooltip when hovering over an image
2609
2610         Implement tooltip support using the new Tooltip API.
2611
2612         Support for older versions of GTK+ is still lacking.
2613
2614         * WebCoreSupport/ChromeClientGtk.cpp:
2615         (WebKit::ChromeClient::setToolTip):
2616
2617 2007-11-22  Alp Toker  <alp@atoker.com>
2618
2619         Reviewed by Mark Rowe.
2620
2621         Implement and document several WebKitFrame functions, some of which
2622         are necessary to support DRT.
2623
2624         Correct NULL handling and improve run-time checks.
2625
2626         * Api/webkitgtkframe.cpp:
2627         * Api/webkitgtkframe.h:
2628         * Api/webkitgtkprivate.cpp:
2629
2630 2007-11-22  Alp Toker  <alp@atoker.com>
2631
2632         Whitespace fixes only.
2633
2634         * Api/webkitgtkframe.cpp:
2635         * Api/webkitgtkpage.cpp:
2636         * Api/webkitgtkpage.h:
2637         * Api/webkitgtkprivate.h:
2638         * WebCoreSupport/ChromeClientGtk.cpp:
2639         * WebCoreSupport/ContextMenuClientGtk.cpp:
2640         * WebCoreSupport/ContextMenuClientGtk.h:
2641         * WebCoreSupport/DragClientGtk.h:
2642         * WebCoreSupport/EditorClientGtk.h:
2643         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2644         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
2645         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
2646         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
2647         (WebKit::FrameLoaderClient::createFrame):
2648         (WebKit::FrameLoaderClient::createJavaAppletWidget):
2649         (WebKit::FrameLoaderClient::registerForIconNotification):
2650         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
2651         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
2652         (WebKit::FrameLoaderClient::frameLoadCompleted):
2653         (WebKit::FrameLoaderClient::saveViewStateToItem):
2654         (WebKit::FrameLoaderClient::restoreViewState):
2655         (WebKit::FrameLoaderClient::shouldGoToHistoryItem):
2656         (WebKit::FrameLoaderClient::setTitle):
2657         * WebCoreSupport/FrameLoaderClientGtk.h:
2658
2659 2007-11-22  Michael Natterer  <mitch@imendio.com>
2660
2661         Reviewed by Alp Toker.
2662
2663         http://bugs.webkit.org/show_bug.cgi?id=15984
2664         Implement "navigation-requested" signal for WebKit Gtk
2665
2666         * Api/webkitgtknetworkrequest.h: fix parent class member.
2667
2668         * Api/webkitgtknetworkrequest.cpp
2669         * Api/webkitgtkprivate.h: basic implementation featuring an
2670         "url" member and API.
2671
2672         * Api/webkitgtkdefines.h: added network request typedefs.
2673
2674         * Api/webkitgtkpage.h: fix enum name:
2675         s/WEBKIT_NAVIGATION_REQUEST_RESPONSE/WebKitNavigationRequestResponse/
2676         and sanitized enum values.
2677
2678         * Api/webkitgtkpage.cpp: made "navigation-requested" a signal.
2679
2680         * Api/webkitgtk-marshal.list: added INT:OBJECT,OBJECT
2681
2682         * WebCoreSupport/FrameLoaderClientGtk.cpp: emit the new signal in
2683         dispatchDecidePolicyForNavigationAction().
2684
2685 2007-11-18  Christian Dywan  <christian@twotoasts.de>
2686
2687         Reviewed by Alp.
2688
2689         http://bugs.webkit.org/show_bug.cgi?id=15891
2690         [GTK] Javascript console and dialogs are not implemented
2691
2692         Correct script-prompt to return NULL when cancelled.
2693
2694         Small changes to avoid compiler warnings.
2695
2696         * Api/webkitgtkpage.cpp:
2697
2698 2007-11-17  Timothy Hatcher  <timothy@apple.com>
2699
2700         Reviewed by Mark Rowe.
2701
2702         Bug 13470: i18n: The Web Inspector is not localizable
2703         http://bugs.webkit.org/show_bug.cgi?id=13470
2704
2705         * WebCoreSupport/InspectorClientGtk.cpp:
2706         (WebKit::InspectorClient::localizedStringsURL): Empty stub.
2707         * WebCoreSupport/InspectorClientGtk.h: Add localizedStringsURL.
2708
2709 2007-11-13  Mark Rowe  <mrowe@apple.com>
2710
2711         Gtk build fix. Replace incorrect use of the LOG macro with g_print.
2712
2713         * Api/webkitgtkpage.cpp:
2714
2715 2007-11-13  Christian Dywan  <christian@twotoasts.de>
2716
2717         Reviewed by Alp.
2718
2719         http://bugs.webkit.org/show_bug.cgi?id=15891
2720         [GTK] Javascript console and dialogs are not implemented
2721
2722         Implement signals for script dialogs and console messages.
2723
2724         * Api/webkitgtk-marshal.list:
2725         * Api/webkitgtkpage.cpp:
2726         * Api/webkitgtkpage.h:
2727         * WebCoreSupport/ChromeClientGtk.cpp:
2728         (WebKit::ChromeClient::addMessageToConsole):
2729         (WebKit::ChromeClient::runJavaScriptAlert):
2730         (WebKit::ChromeClient::runJavaScriptConfirm):
2731         (WebKit::ChromeClient::runJavaScriptPrompt):
2732
2733 2007-11-11  Alp Toker  <alp@atoker.com>
2734
2735         Reviewed by Anders.
2736
2737         Initialize m_userAgent.
2738
2739         Fix typos in GDK_WINDOWING conditionals.
2740
2741         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2742         (WebKit::FrameLoaderClient::FrameLoaderClient):
2743         (WebKit::agentPlatform):
2744
2745 2007-11-11  Alp Toker  <alp@atoker.com>
2746
2747         Reviewed by Mark Rowe.
2748
2749         Mention Safari in the UserAgent string to improve site compatibility.
2750
2751         Also bump the hard-coded AppleWebKit version number.
2752
2753         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2754         (WebKit::composeUserAgent):
2755
2756 2007-11-09  Xan Lopez  <xan@gnome.org>
2757
2758         Reviewed by Alp.
2759
2760         Fix http://bugs.webkit.org/show_bug.cgi?id=15926
2761         [GTK] WebKitPage map handler is redundant.
2762
2763         * Api/webkitgtkpage.cpp:
2764         The map handler for WebKitPage is redundant, GtkContainer does
2765         the same (and more correctly).
2766
2767 2007-11-08  Alp Toker  <alp@atoker.com>
2768
2769         Reviewed by Mark Rowe.
2770
2771         http://bugs.webkit.org/show_bug.cgi?id=15653
2772         [GTK] Text editor does not handle common keystrokes
2773
2774         Handle more keystrokes in EditorClientGtk. Note that this is a
2775         temporary measure pending a proper solution using GtkBindingSet (see
2776         http://bugs.webkit.org/show_bug.cgi?id=15911).
2777
2778         * WebCoreSupport/EditorClientGtk.cpp:
2779         (WebKit::EditorClient::handleKeypress):
2780
2781 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
2782
2783         Reviewed by Sam.
2784
2785         - windowObjectCleared() is no longer const.  It needs to setup the
2786         script debugger and cannot be const to do so.
2787
2788         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2789         (WebKit::FrameLoaderClient::windowObjectCleared):
2790         * WebCoreSupport/FrameLoaderClientGtk.h:
2791
2792 2007-11-06  Rodney Dawes  <dobey@wayofthemonkey.com>
2793
2794         Fix http://bugs.webkit.org/attachment.cgi?id=17043&action=view
2795         Bug 15766: [GTK] WebKit sometimes spews binary data as text/plain into iframes
2796
2797         FrameLoaderClient::objectContentType needs to check with the MIMETypeRegistry
2798         to determine whether the given MIME type is displayable as an image or non-image.
2799
2800         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2801         (FrameLoaderClient::objectContentType): Change logic to match that in
2802         the Windows and Mac ports.
2803
2804 2007-11-05  Christian Dywan  <christian@twotoasts.de>
2805
2806         Reviewed by Maciej.
2807
2808         http://bugs.webkit.org/show_bug.cgi?id=15409
2809         FrameLoaderClientGtk hardcodes data, including platform to Linux i686
2810
2811         Compute a proper user agent string.
2812
2813         Patch includes fixes by Alp.
2814
2815         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2816         (WebKit::agentPlatform):
2817         (WebKit::agentOS):
2818         (WebKit::composeUserAgent):
2819         (WebKit::FrameLoaderClient::userAgent):
2820         * WebCoreSupport/FrameLoaderClientGtk.h:
2821
2822 2007-11-05  Mark Rowe  <mrowe@apple.com>
2823
2824         Rubber-stamped by Alp Toker.
2825
2826         Remove unused m_firstData member from FrameLoaderClientGtk.
2827
2828         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2829         * WebCoreSupport/FrameLoaderClientGtk.h:
2830
2831 2007-11-05  Mark Rowe  <mrowe@apple.com>
2832
2833         Reviewed by Alp Toker.
2834
2835         Fix http://bugs.webkit.org/show_bug.cgi?id=15842
2836         Bug 15842: [Gtk] about:blank doesn't work
2837
2838         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2839         (WebKit::FrameLoaderClient::finishedLoading): Set the encoding on the frame loader to
2840         get work done that is normally done when the first bit of data is received, even in the
2841         case of a document with no data (like about:blank).
2842
2843 2007-11-03  Alp Toker  <alp@atoker.com>
2844
2845         Reviewed by Mark Rowe.
2846
2847         Restore correct double and triple click behaviour
2848
2849         We ended up ignoring GDK_2BUTTON_PRESS and GDK_3BUTTON_PRESS after
2850         recent refactoring.
2851
2852         * Api/webkitgtkpage.cpp:
2853
2854 2007-11-03  Alp Toker  <alp@atoker.com>
2855
2856         Reviewed by Mark Rowe.
2857
2858         Frame scrolling and invalidation fixes
2859
2860         Make upward scroll events have a positive delta to match other ports.
2861
2862         Fix the invalidation rect offset for frames so that scrolling works properly.
2863
2864         Avoid allocating negative sizes to widgets to avoid GTK+ warnings.
2865
2866         Allow tabbing to all widgets and links.
2867
2868         Fix event returns, improving the focus situation and correcting scroll wheel
2869         behavior.
2870
2871         * Api/webkitgtkpage.cpp:
2872         * WebCoreSupport/ChromeClientGtk.cpp:
2873
2874 2007-10-29  Alp Toker  <alp@atoker.com>
2875
2876         Reviewed by Maciej.
2877
2878         Do not allow control to reach end of non-void functions
2879
2880         * Api/webkitgtksettings.cpp:
2881
2882 2007-10-28  Lars Lindner  <lars.lindner@gmail.com>
2883
2884         Reviewed by Alp.
2885
2886         http://bugs.webkit.org/show_bug.cgi?id=15466
2887         [gtk] widget does not take focus on mouse click
2888
2889         Grab widget focus in mouse press callback.
2890
2891         * Api/webkitgtkpage.cpp:
2892
2893 2007-10-25  Alp Toker  <alp@atoker.com>
2894
2895         Reviewed by Brady.
2896
2897         http://bugs.webkit.org/show_bug.cgi?id=15686
2898         GtkLauncher aborts on launch due to uninitialized threading subsystem
2899
2900         Re-enable database support in the GTK+ port, with a fix.
2901
2902         Initialize GLib threading as early as possible.
2903
2904         * Api/webkitgtkglobal.cpp:
2905
2906 2007-10-25  Alp Toker  <alp@atoker.com>
2907
2908         Unreviewed fix to make the GTK+ port run.
2909
2910         http://bugs.webkit.org/show_bug.cgi?id=15686
2911         GtkLauncher aborts on launch due to uninitialized threading subsystem
2912
2913         http://bugs.webkit.org/show_bug.cgi?id=15688
2914         [GTK] Make it possible to disable database support
2915
2916         Make database path initialization conditional on database support
2917         being enabled.
2918
2919         * Api/webkitgtkglobal.cpp:
2920
2921 2007-10-24  Mark Rowe  <mrowe@apple.com>
2922
2923         Gtk build fix.  Track WebCore changes in r27004.
2924
2925         * Api/webkitgtkglobal.cpp:
2926
2927 2007-10-22  Alp Toker  <alp@atoker.com>
2928
2929         Reviewed by Mark Rowe.
2930
2931         http://bugs.webkit.org/show_bug.cgi?id=15611
2932         [GTK] Text selection behaviour different in Debug and Release builds
2933
2934         http://bugs.webkit.org/show_bug.cgi?id=15578
2935         [GTK] Text editor caret does not blink
2936
2937         Never allow control to reach the end of non-void functions.
2938
2939         Return more sensible values, or in some cases, nulls.
2940
2941         * Api/webkitgtksettings.cpp:
2942         * Api/webkitgtksettings.h:
2943         * WebCoreSupport/DragClientGtk.cpp:
2944         (WebKit::DragClient::actionMaskForDrag):
2945         (WebKit::DragClient::dragSourceActionMaskForPoint):
2946         (WebKit::DragClient::createDragImageForLink):
2947
2948 2007-10-20  Mark Rowe  <mrowe@apple.com>
2949
2950         Reviewed by Alp.
2951
2952         Gtk changes needed to enable HTML 5 client-side database storage.
2953
2954         * Api/webkitgtkglobal.cpp: Set a default database path based on the user data directory.
2955         This should become configurable by client applications in the future.
2956
2957 2007-10-20  Mark Rowe  <mrowe@apple.com>
2958
2959         Reviewed by Eric.
2960
2961         Don't allow control characters to be inserted into editable regions.
2962
2963         * WebCoreSupport/EditorClientGtk.cpp:
2964         (WebKit::EditorClient::handleKeypress):
2965
2966 2007-10-19  Alp Toker  <alp@atoker.com>
2967
2968         Reviewed by Oliver.
2969
2970         GTK+ build fix enabling the new local database storage feature.
2971         There is also a prospective Qt build fix.
2972
2973         * WebCoreSupport/ChromeClientGtk.cpp:
2974         (WebKit::ChromeClient::runDatabaseSizeLimitPrompt):
2975         * WebCoreSupport/ChromeClientGtk.h:
2976
2977 2007-10-14  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
2978
2979         Reviewed by Adam.
2980
2981         http://bugs.webkit.org/show_bug.cgi?id=15299
2982         Fix "hovering_over_link" signal not emitted when consecutive links
2983         are hovered.
2984
2985         * WebCoreSupport/ChromeClientGtk.cpp:
2986         (WebKit::ChromeClient::mouseDidMoveOverElement):
2987         * WebCoreSupport/ChromeClientGtk.h:
2988         - Remove m_didSendLinkSignal as it is superseded by m_hoveredLinkURL
2989
2990 2007-10-10  Alice Liu  <alice.liu@apple.com>
2991
2992         Reviewed by Geoff Garen.
2993
2994         changes to keep the build from breaking
2995
2996         * WebCoreSupport/FrameLoaderClientGtk.cpp:
2997         (WebKit::FrameLoaderClient::createFrame):
2998         * WebCoreSupport/FrameLoaderClientGtk.h:
2999
3000 2007-10-03  Alp Toker  <alp@atoker.com>
3001
3002         Reviewed by Adam.
3003
3004         http://bugs.webkit.org/show_bug.cgi?id=14726
3005         [gtk] API design. Mapping the WebView delegates to signals.
3006
3007         Change the API namespace of the Gtk+ port from 'WebKitGtk' to 'WebKit'.
3008
3009         * Api/webkitgtkdefines.h:
3010         * Api/webkitgtkframe.cpp:
3011         * Api/webkitgtkframe.h:
3012         * Api/webkitgtkglobal.cpp:
3013         * Api/webkitgtkglobal.h:
3014         * Api/webkitgtknetworkrequest.h:
3015         * Api/webkitgtkpage.cpp:
3016         * Api/webkitgtkpage.h:
3017         * Api/webkitgtkprivate.cpp:
3018         (WebKit::apply):
3019         (WebKit::create):
3020         (WebKit::getFrameFromPage):
3021         (WebKit::getPageFromFrame):
3022         (WebKit::core):
3023         (WebKit::kit):
3024         * Api/webkitgtkprivate.h:
3025         * Api/webkitgtksettings.cpp:
3026         * Api/webkitgtksettings.h:
3027         * WebCoreSupport/ChromeClientGtk.cpp:
3028         (WebKit::ChromeClient::ChromeClient):
3029         (WebKit::ChromeClient::createWindow):
3030         (WebKit::ChromeClient::addMessageToConsole):
3031         (WebKit::ChromeClient::runJavaScriptAlert):
3032         (WebKit::ChromeClient::runJavaScriptConfirm):
3033         (WebKit::ChromeClient::runJavaScriptPrompt):
3034         * WebCoreSupport/ChromeClientGtk.h:
3035         (WebKit::ChromeClient::webPage):
3036         * WebCoreSupport/EditorClientGtk.cpp:
3037         (WebKit::EditorClient::EditorClient):
3038         * WebCoreSupport/EditorClientGtk.h:
3039         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3040         (WebKit::FrameLoaderClient::FrameLoaderClient):
3041         (WebKit::FrameLoaderClient::postProgressStartedNotification):
3042         (WebKit::FrameLoaderClient::postProgressEstimateChangedNotification):
3043         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
3044         (WebKit::FrameLoaderClient::createFrame):
3045         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
3046         (WebKit::FrameLoaderClient::setTitle):
3047         * WebCoreSupport/FrameLoaderClientGtk.h:
3048         (WebKit::FrameLoaderClient::webFrame):
3049
3050 2007-10-02  Cosimo Cecchi  <cosimoc@svn.gnome.org>
3051
3052         Reviewed by Mark.
3053
3054         http://bugs.webkit.org/show_bug.cgi?id=15299
3055         Fix "hovering_over_link" signal being fired every time mouse moves.
3056
3057         * WebCoreSupport/ChromeClientGtk.cpp:
3058         (WebKit::ChromeClient::ChromeClient):
3059         (WebKit::ChromeClient::mouseDidMoveOverElement):
3060         * WebCoreSupport/ChromeClientGtk.h:
3061
3062 2007-09-21  Sean Egan  <seanegan@gmail.com>
3063
3064         Reviewed by Alp.
3065
3066         Add an "execute_script" method to programmatically call Javascript
3067         http://bugs.webkit.org/show_bug.cgi?id=15255
3068
3069         * Api/webkitgtkpage.cpp:
3070         * Api/webkitgtkpage.h:
3071
3072 2007-09-29  Lars Lindner  <lars.lindner@gmail.com>
3073
3074         Reviewed by Adam.
3075
3076         ChromeClientGtk.cpp does not implement mouseDidMoveOverElement()
3077         http://bugs.webkit.org/show_bug.cgi?id=15299
3078
3079         Implementing "hovering_over_link" signal.
3080
3081         * WebCoreSupport/ChromeClientGtk.cpp:
3082         (WebKit::ChromeClient::mouseDidMoveOverElement):
3083
3084 2007-09-26  Mark Rowe  <mrowe@apple.com>
3085
3086         Gtk build fix.
3087
3088         * WebCoreSupport/FrameLoaderClientGtk.cpp:  Check for empty URL instead of invalid URL.
3089
3090 2007-09-17  Holger Hans Peter Freyther  <zecke@selfish.org>
3091
3092         Reviewed by Adam.
3093
3094         WebKitGtkPage and WebKitGtkFrame have a dependency on each other. To
3095         allow client code to include both headers the typedef's for
3096         WebKitGtkFrame, WebKitGtkPage, WebKitGtkFrameData and WebKitGtkNetworkRequest
3097         are moved into webkitgtkdefines.h and included by both webkitgtkpage.h and
3098         webkitgtkframe.h
3099
3100         * Api/webkitgtkdefines.h:
3101         * Api/webkitgtkframe.h:
3102         * Api/webkitgtkpage.h:
3103
3104 2007-09-17  Cyril Brulebois  <cyril.brulebois@enst-bretagne.fr>
3105
3106         Reviewed by Mark, some Coding Style changes by Holger.
3107
3108         This is from http://bugs.webkit.org/show_bug.cgi?id=14812.
3109
3110         Add title and location to WebKitGtkFramePrivate, add
3111         webkit_gtk_frame_get_location to the WebKitGtkFrame API as well
3112         as a title_changed callback, implement
3113         webkit_gtk_frame_get_title and webkit_gtk_frame_get_location.
3114
3115         Initial patch by Diego Escalante Urrelo.
3116
3117         * Api/webkitgtkframe.cpp:
3118         * Api/webkitgtkframe.h:
3119         * Api/webkitgtkprivate.h:
3120
3121 2007-09-15  Holger Hans Peter Freyther  <zecke@selfish.org>
3122
3123         Reviewed by Mark.
3124
3125         Use the new WebCore::String::fromUTF8 function to convert
3126         from the Gtk+ representation of a string to WebCore::String.
3127
3128         * WebCoreSupport/ChromeClientGtk.cpp:
3129         (WebKit::ChromeClient::runJavaScriptPrompt):
3130
3131 2007-09-10  Nigel Tao  <nigeltao@gnome.org>
3132
3133         Reviewed by Mark Rowe.
3134
3135         Fix a typo where webkit_gtk_page_can_copy was declared twice,
3136         rather than webkit_gtk_page_can_paste.
3137
3138         * Api/webkitgtkpage.h:
3139
3140 2007-09-08  Brady Eidson  <beidson@apple.com>
3141
3142         Better build fix
3143
3144         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3145         (WebKit::FrameLoaderClient::registerForIconNotification):
3146         * WebCoreSupport/FrameLoaderClientGtk.h:
3147
3148 2007-09-08  Brady Eidson  <beidson@apple.com>
3149
3150         Build fix
3151
3152         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3153         (WebKit::FrameLoaderClient::registerForIconNotification):
3154         * WebCoreSupport/FrameLoaderClientGtk.h:
3155
3156 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
3157
3158         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
3159         
3160         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
3161         memory cache, or a very tiny one
3162         
3163         Keep the GTK build working with an empty stub.
3164         
3165         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3166         (WebKit::FrameLoaderClient::didPerformFirstNavigation):
3167         * WebCoreSupport/FrameLoaderClientGtk.h:
3168
3169 2007-09-01  Oliver Hunt  <oliver@apple.com>
3170
3171         Reviewed by Sam.
3172
3173         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
3174  
3175         EditorClient::setInputMethodState stub
3176
3177         * WebCoreSupport/EditorClientGtk.cpp:
3178         (WebKit::EditorClient::setInputMethodState):
3179         * WebCoreSupport/EditorClientGtk.h:
3180
3181 2007-08-18  Holger Hans Peter Freyther  <zecke@selfish.org>
3182
3183         Build fix. Add const to the first parameter of createPlugin
3184
3185         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3186
3187 2007-08-17  Anders Carlsson  <andersca@apple.com>
3188
3189         Build fix.
3190         
3191         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3192         (WebKit::FrameLoaderClient::createPlugin):
3193         * WebCoreSupport/FrameLoaderClientGtk.h:
3194
3195 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
3196
3197         Reviewed by Adam.
3198
3199         To not hit the needsLayout() assert of Frame::paint for subframes we need to
3200         make sure they are layed out. Use the newly created FrameView::layoutIfNeededRecursive
3201         method to do this.
3202
3203         * Api/webkitgtkpage.cpp:
3204
3205 2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
3206
3207         Reviewed by Adam.
3208
3209         Fix text selection by setting a DragClient when creating the Page. Now
3210         that we have a DragClient we can free the Page when WebKitGtkPage gets
3211         destructed.
3212
3213         * Api/webkitgtkpage.cpp:
3214         * WebCoreSupport/DragClientGtk.cpp: Added.
3215         (WebKit::DragClient::willPerformDragDestinationAction):
3216         (WebKit::DragClient::willPerformDragSourceAction):
3217         (WebKit::DragClient::actionMaskForDrag):
3218         (WebKit::DragClient::dragSourceActionMaskForPoint):
3219         (WebKit::DragClient::startDrag):
3220         (WebKit::DragClient::createDragImageForLink):
3221         * WebCoreSupport/DragClientGtk.h: Added.
3222
3223 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
3224
3225         Reviewed by Anders.
3226
3227         Make WebKitGtkPage a GtkContainer to avoid a size_allocate
3228         race of GtkScrollBar and GtkLayout.
3229
3230         * Api/webkitgtk-marshal.list:
3231         * Api/webkitgtkframe.cpp:
3232         * Api/webkitgtkpage.cpp:
3233         * Api/webkitgtkpage.h:
3234         * Api/webkitgtkprivate.h:
3235
3236 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
3237
3238         Reviewed by Niko.
3239
3240         Minor changes to the WebKit::EditorClient to allow removing
3241         of text from TextFields. Remove the selectWordBeforeMenuEvent method
3242         which is not used and not within WebCore::EditorClient. 
3243
3244         * WebCoreSupport/EditorClientGtk.cpp:
3245         (WebKit::EditorClient::shouldDeleteRange):
3246         (WebKit::EditorClient::shouldBeginEditing):
3247         (WebKit::EditorClient::shouldEndEditing):
3248         (WebKit::EditorClient::shouldApplyStyle):
3249         (WebKit::EditorClient::shouldInsertNode):
3250         * WebCoreSupport/EditorClientGtk.h:
3251
3252 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
3253
3254         Reviewed by Mark.
3255
3256         Rename the namespace from WebKitGtk to WebKit. Move the various *Client
3257         classes into the WebKit namespace. Change the class names to not contain Gtk.
3258         The file names have to contain the Gtk suffix to not clash with files in WebCore (e.g.
3259         bridge/EditorClient.h).
3260         
3261
3262         * Api/webkitgtkframe.cpp:
3263         * Api/webkitgtkpage.cpp:
3264         * Api/webkitgtkprivate.cpp:
3265         * Api/webkitgtkprivate.h:
3266         * ChangeLog:
3267         * WebCoreSupport/ChromeClientGtk.cpp:
3268         (WebKit::ChromeClient::ChromeClient):
3269         (WebKit::ChromeClient::chromeDestroyed):
3270         (WebKit::ChromeClient::windowRect):
3271         (WebKit::ChromeClient::setWindowRect):
3272         (WebKit::ChromeClient::pageRect):
3273         (WebKit::ChromeClient::scaleFactor):
3274         (WebKit::ChromeClient::focus):
3275         (WebKit::ChromeClient::unfocus):
3276         (WebKit::ChromeClient::createWindow):
3277         (WebKit::ChromeClient::createModalDialog):
3278         (WebKit::ChromeClient::show):
3279         (WebKit::ChromeClient::canRunModal):
3280         (WebKit::ChromeClient::runModal):
3281         (WebKit::ChromeClient::setToolbarsVisible):
3282         (WebKit::ChromeClient::toolbarsVisible):
3283         (WebKit::ChromeClient::setStatusbarVisible):
3284         (WebKit::ChromeClient::statusbarVisible):
3285         (WebKit::ChromeClient::setScrollbarsVisible):
3286         (WebKit::ChromeClient::scrollbarsVisible):
3287         (WebKit::ChromeClient::setMenubarVisible):
3288         (WebKit::ChromeClient::menubarVisible):
3289         (WebKit::ChromeClient::setResizable):
3290         (WebKit::ChromeClient::closeWindowSoon):
3291         (WebKit::ChromeClient::canTakeFocus):
3292         (WebKit::ChromeClient::takeFocus):
3293         (WebKit::ChromeClient::canRunBeforeUnloadConfirmPanel):
3294         (WebKit::ChromeClient::runBeforeUnloadConfirmPanel):
3295         (WebKit::ChromeClient::runJavaScriptAlert):
3296         (WebKit::ChromeClient::runJavaScriptConfirm):
3297         (WebKit::ChromeClient::setStatusbarText):
3298         (WebKit::ChromeClient::shouldInterruptJavaScript):
3299         (WebKit::ChromeClient::tabsToLinks):
3300         (WebKit::ChromeClient::windowResizerRect):
3301         (WebKit::ChromeClient::addToDirtyRegion):
3302         (WebKit::ChromeClient::scrollBackingStore):
3303         (WebKit::ChromeClient::updateBackingStore):
3304         (WebKit::ChromeClient::mouseDidMoveOverElement):
3305         (WebKit::ChromeClient::setToolTip):
3306         * WebCoreSupport/ChromeClientGtk.h:
3307         * WebCoreSupport/ContextMenuClientGtk.cpp:
3308         (WebKit::ContextMenuClient::contextMenuDestroyed):
3309         (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
3310         (WebKit::ContextMenuClient::contextMenuItemSelected):
3311         (WebKit::ContextMenuClient::downloadURL):
3312         (WebKit::ContextMenuClient::copyImageToClipboard):
3313         (WebKit::ContextMenuClient::searchWithGoogle):
3314         (WebKit::ContextMenuClient::lookUpInDictionary):
3315         (WebKit::ContextMenuClient::speak):
3316         * WebCoreSupport/ContextMenuClientGtk.h:
3317         * WebCoreSupport/EditorClientGtk.cpp:
3318         (WebKit::EditorClient::shouldDeleteRange):
3319         (WebKit::EditorClient::shouldShowDeleteInterface):
3320         (WebKit::EditorClient::isContinuousSpellCheckingEnabled):
3321         (WebKit::EditorClient::isGrammarCheckingEnabled):
3322         (WebKit::EditorClient::spellCheckerDocumentTag):
3323         (WebKit::EditorClient::shouldBeginEditing):
3324         (WebKit::EditorClient::shouldEndEditing):
3325         (WebKit::EditorClient::shouldInsertText):
3326         (WebKit::EditorClient::shouldChangeSelectedRange):
3327         (WebKit::EditorClient::shouldApplyStyle):
3328         (WebKit::EditorClient::shouldMoveRangeAfterDelete):
3329         (WebKit::EditorClient::didBeginEditing):
3330         (WebKit::EditorClient::respondToChangedContents):
3331         (WebKit::EditorClient::respondToChangedSelection):
3332         (WebKit::EditorClient::didEndEditing):
3333         (WebKit::EditorClient::didWriteSelectionToPasteboard):
3334         (WebKit::EditorClient::didSetSelectionTypesForPasteboard):
3335         (WebKit::EditorClient::selectWordBeforeMenuEvent):
3336         (WebKit::EditorClient::isEditable):
3337         (WebKit::EditorClient::registerCommandForUndo):
3338         (WebKit::EditorClient::registerCommandForRedo):
3339         (WebKit::EditorClient::clearUndoRedoOperations):
3340         (WebKit::EditorClient::canUndo):
3341         (WebKit::EditorClient::canRedo):
3342         (WebKit::EditorClient::undo):
3343         (WebKit::EditorClient::redo):
3344         (WebKit::EditorClient::shouldInsertNode):
3345         (WebKit::EditorClient::pageDestroyed):
3346         (WebKit::EditorClient::smartInsertDeleteEnabled):
3347         (WebKit::EditorClient::toggleContinuousSpellChecking):
3348         (WebKit::EditorClient::toggleGrammarChecking):
3349         (WebKit::EditorClient::handleInputMethodKeypress):
3350         (WebKit::EditorClient::EditorClient):
3351         (WebKit::EditorClient::textFieldDidBeginEditing):
3352         (WebKit::EditorClient::textFieldDidEndEditing):
3353         (WebKit::EditorClient::textDidChangeInTextField):
3354         (WebKit::EditorClient::doTextFieldCommandFromEvent):
3355         (WebKit::EditorClient::textWillBeDeletedInTextField):
3356         (WebKit::EditorClient::textDidChangeInTextArea):
3357         (WebKit::EditorClient::ignoreWordInSpellDocument):
3358         (WebKit::EditorClient::learnWord):
3359         (WebKit::EditorClient::checkSpellingOfString):
3360         (WebKit::EditorClient::checkGrammarOfString):
3361         (WebKit::EditorClient::updateSpellingUIWithGrammarString):
3362         (WebKit::EditorClient::updateSpellingUIWithMisspelledWord):
3363         (WebKit::EditorClient::showSpellingUI):
3364         (WebKit::EditorClient::spellingUIIsShowing):
3365         * WebCoreSupport/EditorClientGtk.h:
3366         * WebCoreSupport/FrameLoaderClientGtk.cpp:
3367         (WebKit::FrameLoaderClient::FrameLoaderClient):
3368         (WebKit::FrameLoaderClient::userAgent):
3369         (WebKit::FrameLoaderClient::createDocumentLoader):
3370         (WebKit::FrameLoaderClient::committedLoad):
3371         (WebKit::FrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
3372         (WebKit::FrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
3373         (WebKit::FrameLoaderClient::dispatchWillSendRequest):
3374         (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
3375         (WebKit::FrameLoaderClient::postProgressStartedNotification):
3376         (WebKit::FrameLoaderClient::postProgressFinishedNotification):
3377         (WebKit::FrameLoaderClient::frameLoaderDestroyed):
3378         (WebKit::FrameLoaderClient::dispatchDidReceiveResponse):
3379         (WebKit::FrameLoaderClient::createPlugin):
3380         (WebKit::FrameLoaderClient::redirectDataToPlugin):
3381         (WebKit::FrameLoaderClient::createJavaAppletWidget):
3382         (WebKit::FrameLoaderClient::overrideMediaType):
3383         (WebKit::FrameLoaderClient::windowObjectCleared):
3384         (WebKit::FrameLoaderClient::setMainFrameDocumentReady):
3385         (WebKit::FrameLoaderClient::hasWebView):
3386         (WebKit::FrameLoaderClient::hasFrameView):
3387         (WebKit::FrameLoaderClient::dispatchDidFinishLoad):
3388         (WebKit::FrameLoaderClient::frameLoadCompleted):
3389         (WebKit::FrameLoaderClient::saveViewStateToItem):
3390         (WebKit::FrameLoaderClient::restoreViewState):
3391         (WebKit::FrameLoaderClient::privateBrowsingEnabled):
3392         (WebKit::FrameLoaderClient::makeDocumentView):
3393         (WebKit::FrameLoaderClient::makeRepresentation):
3394         (WebKit::FrameLoaderClient::forceLayout):
3395         (WebKit::FrameLoaderClient::forceLayoutForNonHTML):
3396         (WebKit::FrameLoaderClient::setCopiesOnScroll):
3397         (WebKit::FrameLoaderClient::detachedFromParent1):
3398         (WebKit::FrameLoaderClient::detachedFromParent2):
3399         (WebKit::FrameLoaderClient::detachedFromParent3):
3400         (WebKit::FrameLoaderClient::detachedFromParent4):
3401         (WebKit::FrameLoaderClient::loadedFromCachedPage):
3402         (WebKit::FrameLoaderClient::dispatchDidHandleOnloadEvents):
3403         (WebKit::FrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
3404         (WebKit::FrameLoaderClient::dispatchDidCancelClientRedirect):
3405         (WebKit::FrameLoaderClient::dispatchWillPerformClientRedirect):
3406         (WebKit::FrameLoaderClient::dispatchDidChangeLocationWithinPage):
3407         (WebKit::FrameLoaderClient::dispatchWillClose):
3408         (WebKit::FrameLoaderClient::dispatchDidReceiveIcon):
3409         (WebKit::FrameLoaderClient::dispatchDidStartProvisionalLoad):
3410         (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
3411         (WebKit::FrameLoaderClient::dispatchDidCommitLoad):
3412         (WebKit::FrameLoaderClient::dispatchDidFinishDocumentLoad):
3413         (WebKit::FrameLoaderClient::dispatchDidFirstLayout):
3414         (WebKit::FrameLoaderClient::dispatchShow):
3415         (WebKit::FrameLoaderClient::cancelPolicyCheck):
3416         (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
3417         (WebKit::FrameLoaderClient::revertToProvisionalState):
3418         (WebKit::FrameLoaderClient::clearUnarchivingState):
3419         (WebKit::FrameLoaderClient::willChangeTitle):
3420         (WebKit::FrameLoaderClient::didChangeTitle):
3421         (WebKit::FrameLoaderClient::finishedLoading):
3422         (WebKit::FrameLoaderClient::finalSetupForReplace):
3423         (WebKit::FrameLoaderClient::setDefersLoading):
3424         (WebKit::FrameLoaderClient::isArchiveLoadPending):
3425         (WebKit::FrameLoaderClient::cancelPendingArchiveLoad):
3426         (WebKit::FrameLoaderClient::clearArchivedResources):
3427         (WebKit::FrameLoaderClient::canHandleRequest):
3428         (WebKit::FrameLoaderClient::canShowMIMEType):
3429         (WebKit::FrameLoaderClient::representationExistsForURLScheme):
3430         (WebKit::FrameLoaderClient::generatedMIMETypeForURLScheme):
3431         (WebKit::FrameLoaderClient::provisionalLoadStarted):
3432         (WebKit::FrameLoaderClient::didFinishLoad):
3433         (WebKit::FrameLoaderClient::setDocumentViewFromCachedPage):
3434         (WebKit::FrameLoaderClient::dispatchDidReceiveContentLength):
3435         (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
3436         (WebKit::FrameLoaderClient::dispatchDidFailLoading):
3437         (WebKit::FrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
3438         (WebKit::FrameLoaderClient::dispatchDidFailProvisionalLoad):
3439         (WebKit::FrameLoaderClient::dispatchDidFailLoad):
3440         (WebKit::FrameLoaderClient::download):
3441         (WebKit::FrameLoaderClient::cancelledError):
3442         (WebKit::FrameLoaderClient::blockedError):
3443         (WebKit::FrameLoaderClient::cannotShowURLError):
3444         (WebKit::FrameLoaderClient::interruptForPolicyChangeError):
3445         (WebKit::FrameLoaderClient::cannotShowMIMETypeError):
3446         (WebKit::FrameLoaderClient::fileDoesNotExistError):
3447         (WebKit::FrameLoaderClient::shouldFallBack):
3448         (WebKit::FrameLoaderClient::willUseArchive):
3449         (WebKit::FrameLoaderClient::saveDocumentViewToCachedPage):
3450         (WebKit::FrameLoaderClient::canCachePage):
3451         (WebKit::FrameLoaderClient::dispatchCreatePage):
3452         (WebKit::FrameLoaderClient::dispatchUnableToImplementPolicy):
3453         * WebCoreSupport/FrameLoaderClientGtk.h:
3454         * WebCoreSupport/InspectorClientGtk.cpp:
3455         (WebKit::InspectorClient::inspectorDestroyed):
3456         (WebKit::InspectorClient::createPage):
3457         (WebKit::InspectorClient::showWindow):
3458         (WebKit::InspectorClient::closeWindow):
3459         (WebKit::InspectorClient::attachWindow):
3460         (WebKit::InspectorClient::detachWindow):
3461         (WebKit::InspectorClient::highlight):
3462         (WebKit::InspectorClient::hideHighlight):
3463         * WebCoreSupport/InspectorClientGtk.h:
3464
3465 2007-08-10  Holger Hans Peter Freyther  <zecke@selfish.org>
3466
3467         Reviewed by Adam.
3468
3469         As of http://bugs.webkit.org/show_bug.cgi?id=14727 move the
3470         various *ClientGdk.{cpp,h} files from WebCore to WebKit/gtk/WebCoreSupport and
3471         rename it from Gdk to Gtk.
3472
3473         * Api/webkitgtkdefines.h:
3474         * Api/webkitgtkframe.cpp:
3475         * Api/webkitgtkframe.h:
3476         * Api/webkitgtkglobal.cpp:
3477         * Api/webkitgtkglobal.h:
3478         * Api/webkitgtknetworkrequest.cpp:
3479         * Api/webkitgtknetworkrequest.h:
3480         * Api/webkitgtkpage.cpp:
3481         * Api/webkitgtkpage.h:
3482         * Api/webkitgtkprivate.cpp:
3483         * Api/webkitgtkprivate.h:
3484         * Api/webkitgtksettings.cpp:
3485         * Api/webkitgtksettings.h:
3486         * WebCoreSupport/ChromeClientGtk.cpp: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.cpp.
3487         (WebKitGtk::ChromeClientGtk::ChromeClientGtk):
3488         (WebKitGtk::ChromeClientGtk::chromeDestroyed):
3489         (WebKitGtk::ChromeClientGtk::windowRect):
3490         (WebKitGtk::ChromeClientGtk::setWindowRect):
3491         (WebKitGtk::ChromeClientGtk::pageRect):
3492         (WebKitGtk::ChromeClientGtk::scaleFactor):
3493         (WebKitGtk::ChromeClientGtk::focus):
3494         (WebKitGtk::ChromeClientGtk::unfocus):
3495         (WebKitGtk::ChromeClientGtk::createWindow):
3496         (WebKitGtk::ChromeClientGtk::createModalDialog):
3497         (WebKitGtk::ChromeClientGtk::show):
3498         (WebKitGtk::ChromeClientGtk::canRunModal):
3499         (WebKitGtk::ChromeClientGtk::runModal):
3500         (WebKitGtk::ChromeClientGtk::setToolbarsVisible):
3501         (WebKitGtk::ChromeClientGtk::toolbarsVisible):
3502         (WebKitGtk::ChromeClientGtk::setStatusbarVisible):
3503         (WebKitGtk::ChromeClientGtk::statusbarVisible):
3504         (WebKitGtk::ChromeClientGtk::setScrollbarsVisible):
3505         (WebKitGtk::ChromeClientGtk::scrollbarsVisible):
3506         (WebKitGtk::ChromeClientGtk::setMenubarVisible):
3507         (WebKitGtk::ChromeClientGtk::menubarVisible):
3508         (WebKitGtk::ChromeClientGtk::setResizable):
3509         (WebKitGtk::ChromeClientGtk::closeWindowSoon):
3510         (WebKitGtk::ChromeClientGtk::canTakeFocus):
3511         (WebKitGtk::ChromeClientGtk::takeFocus):
3512         (WebKitGtk::ChromeClientGtk::canRunBeforeUnloadConfirmPanel):
3513         (WebKitGtk::ChromeClientGtk::runBeforeUnloadConfirmPanel):
3514         (WebKitGtk::ChromeClientGtk::addMessageToConsole):
3515         (WebKitGtk::ChromeClientGtk::runJavaScriptAlert):
3516         (WebKitGtk::ChromeClientGtk::runJavaScriptConfirm):
3517         (WebKitGtk::ChromeClientGtk::runJavaScriptPrompt):
3518         (WebKitGtk::ChromeClientGtk::setStatusbarText):
3519         (WebKitGtk::ChromeClientGtk::shouldInterruptJavaScript):
3520         (WebKitGtk::ChromeClientGtk::tabsToLinks):
3521         (WebKitGtk::ChromeClientGtk::windowResizerRect):
3522         (WebKitGtk::ChromeClientGtk::addToDirtyRegion):
3523         (WebKitGtk::ChromeClientGtk::scrollBackingStore):
3524         (WebKitGtk::ChromeClientGtk::updateBackingStore):
3525         (WebKitGtk::ChromeClientGtk::mouseDidMoveOverElement):
3526         (WebKitGtk::ChromeClientGtk::setToolTip):
3527         * WebCoreSupport/ChromeClientGtk.h: Renamed from WebKit/gtk/WebCoreSupport/ChromeClientGdk.h.
3528         (WebKitGtk::ChromeClientGtk::webPage):
3529         * WebCoreSupport/ContextMenuClientGtk.cpp: Renamed from WebCore/page/gdk/ContextMenuClientGdk.cpp.
3530         (WebCore::ContextMenuClientGtk::contextMenuDestroyed):
3531         (WebCore::ContextMenuClientGtk::getCustomMenuFromDefaultItems):
3532         (WebCore::ContextMenuClientGtk::contextMenuItemSelected):
3533         (WebCore::ContextMenuClientGtk::downloadURL):
3534         (WebCore::ContextMenuClientGtk::copyImageToClipboard):
3535         (WebCore::ContextMenuClientGtk::searchWithGoogle):
3536         (WebCore::ContextMenuClientGtk::lookUpInDictionary):
3537         (WebCore::ContextMenuClientGtk::speak):
3538         (WebCore::ContextMenuClientGtk::stopSpeaking):
3539         * WebCoreSupport/ContextMenuClientGtk.h: Renamed from WebCore/page/gdk/ContextMenuClientGdk.h.
3540         * WebCoreSupport/EditorClientGtk.cpp: Renamed from WebCore/platform/gdk/EditorClientGdk.cpp.
3541         (WebCore::EditorClientGtk::shouldDeleteRange):
3542         (WebCore::EditorClientGtk::shouldShowDeleteInterface):
3543         (WebCore::EditorClientGtk::isContinuousSpellCheckingEnabled):
3544         (WebCore::EditorClientGtk::isGrammarCheckingEnabled):
3545         (WebCore::EditorClientGtk::spellCheckerDocumentTag):
3546         (WebCore::EditorClientGtk::shouldBeginEditing):
3547         (WebCore::EditorClientGtk::shouldEndEditing):
3548         (WebCore::EditorClientGtk::shouldInsertText):
3549         (WebCore::EditorClientGtk::shouldChangeSelectedRange):
3550         (WebCore::EditorClientGtk::shouldApplyStyle):
3551         (WebCore::EditorClientGtk::shouldMoveRangeAfterDelete):
3552         (WebCore::EditorClientGtk::didBeginEditing):
3553         (WebCore::EditorClientGtk::respondToChangedContents):
3554         (WebCore::EditorClientGtk::respondToChangedSelection):
3555         (WebCore::EditorClientGtk::didEndEditing):
3556         (WebCore::EditorClientGtk::didWriteSelectionToPasteboard):
3557         (WebCore::EditorClientGtk::didSetSelectionTypesForPasteboard):
3558         (WebCore::EditorClientGtk::selectWordBeforeMenuEvent):
3559         (WebCore::EditorClientGtk::isEditable):
3560         (WebCore::EditorClientGtk::registerCommandForUndo):
3561         (WebCore::EditorClientGtk::registerCommandForRedo):
3562         (WebCore::EditorClientGtk::clearUndoRedoOperations):
3563         (WebCore::EditorClientGtk::canUndo):
3564         (WebCore::EditorClientGtk::canRedo):
3565         (WebCore::EditorClientGtk::undo):
3566         (WebCore::EditorClientGtk::redo):
3567         (WebCore::EditorClientGtk::shouldInsertNode):
3568         (WebCore::EditorClientGtk::pageDestroyed):
3569         (WebCore::EditorClientGtk::smartInsertDeleteEnabled):
3570         (WebCore::EditorClientGtk::toggleContinuousSpellChecking):
3571         (WebCore::EditorClientGtk::toggleGrammarChecking):
3572         (WebCore::EditorClientGtk::handleKeypress):
3573         (WebCore::EditorClientGtk::handleInputMethodKeypress):
3574         (WebCore::EditorClientGtk::EditorClientGtk):
3575         (WebCore::EditorClientGtk::textFieldDidBeginEditing):
3576         (WebCore::EditorClientGtk::textFieldDidEndEditing):
3577         (WebCore::EditorClientGtk::textDidChangeInTextField):
3578         (WebCore::EditorClientGtk::doTextFieldCommandFromEvent):
3579         (WebCore::EditorClientGtk::textWillBeDeletedInTextField):
3580         (WebCore::EditorClientGtk::textDidChangeInTextArea):
3581         (WebCore::EditorClientGtk::ignoreWordInSpellDocument):
3582         (WebCore::EditorClientGtk::learnWord):
3583         (WebCore::EditorClientGtk::checkSpellingOfString):
3584         (WebCore::EditorClientGtk::checkGrammarOfString):
3585         (WebCore::EditorClientGtk::updateSpellingUIWithGrammarString):
3586         (WebCore::EditorClientGtk::updateSpellingUIWithMisspelledWord):
3587         (WebCore::EditorClientGtk::showSpellingUI):
3588         (WebCore::EditorClientGtk::spellingUIIsShowing):
3589         (WebCore::EditorClientGtk::getGuessesForWord):
3590         * WebCoreSupport/EditorClientGtk.h: Renamed from WebCore/platform/gdk/EditorClientGdk.h.
3591         * WebCoreSupport/FrameLoaderClientGtk.cpp: Renamed from WebCore/loader/gdk/FrameLoaderClientGdk.cpp.
3592         (WebCore::FrameLoaderClientGtk::FrameLoaderClientGtk):
3593         (WebCore::FrameLoaderClientGtk::userAgent):
3594         (WebCore::FrameLoaderClientGtk::createDocumentLoader):
3595         (WebCore::FrameLoaderClientGtk::dispatchWillSubmitForm):
3596         (WebCore::FrameLoaderClientGtk::committedLoad):
3597         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveAuthenticationChallenge):
3598         (WebCore::FrameLoaderClientGtk::dispatchDidCancelAuthenticationChallenge):
3599         (WebCore::FrameLoaderClientGtk::dispatchWillSendRequest):
3600         (WebCore::FrameLoaderClientGtk::assignIdentifierToInitialRequest):
3601         (WebCore::FrameLoaderClientGtk::postProgressStartedNotification):
3602         (WebCore::FrameLoaderClientGtk::postProgressEstimateChangedNotification):
3603         (WebCore::FrameLoaderClientGtk::postProgressFinishedNotification):
3604         (WebCore::FrameLoaderClientGtk::frameLoaderDestroyed):
3605         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveResponse):
3606         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForMIMEType):
3607         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNewWindowAction):
3608         (WebCore::FrameLoaderClientGtk::dispatchDecidePolicyForNavigationAction):
3609         (WebCore::FrameLoaderClientGtk::createPlugin):
3610         (WebCore::FrameLoaderClientGtk::createFrame):
3611         (WebCore::FrameLoaderClientGtk::redirectDataToPlugin):
3612         (WebCore::FrameLoaderClientGtk::createJavaAppletWidget):
3613         (WebCore::FrameLoaderClientGtk::objectContentType):
3614         (WebCore::FrameLoaderClientGtk::overrideMediaType):
3615         (WebCore::FrameLoaderClientGtk::windowObjectCleared):
3616         (WebCore::FrameLoaderClientGtk::setMainFrameDocumentReady):
3617         (WebCore::FrameLoaderClientGtk::hasWebView):
3618         (WebCore::FrameLoaderClientGtk::hasFrameView):
3619         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoad):
3620         (WebCore::FrameLoaderClientGtk::frameLoadCompleted):
3621         (WebCore::FrameLoaderClientGtk::saveViewStateToItem):
3622         (WebCore::FrameLoaderClientGtk::restoreViewState):
3623         (WebCore::FrameLoaderClientGtk::shouldGoToHistoryItem):
3624         (WebCore::FrameLoaderClientGtk::privateBrowsingEnabled):
3625         (WebCore::FrameLoaderClientGtk::makeDocumentView):
3626         (WebCore::FrameLoaderClientGtk::makeRepresentation):
3627         (WebCore::FrameLoaderClientGtk::forceLayout):
3628         (WebCore::FrameLoaderClientGtk::forceLayoutForNonHTML):
3629         (WebCore::FrameLoaderClientGtk::setCopiesOnScroll):
3630         (WebCore::FrameLoaderClientGtk::detachedFromParent1):
3631         (WebCore::FrameLoaderClientGtk::detachedFromParent2):
3632         (WebCore::FrameLoaderClientGtk::detachedFromParent3):
3633         (WebCore::FrameLoaderClientGtk::detachedFromParent4):
3634         (WebCore::FrameLoaderClientGtk::loadedFromCachedPage):
3635         (WebCore::FrameLoaderClientGtk::dispatchDidHandleOnloadEvents):
3636         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveServerRedirectForProvisionalLoad):
3637         (WebCore::FrameLoaderClientGtk::dispatchDidCancelClientRedirect):
3638         (WebCore::FrameLoaderClientGtk::dispatchWillPerformClientRedirect):
3639         (WebCore::FrameLoaderClientGtk::dispatchDidChangeLocationWithinPage):
3640         (WebCore::FrameLoaderClientGtk::dispatchWillClose):
3641         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveIcon):
3642         (WebCore::FrameLoaderClientGtk::dispatchDidStartProvisionalLoad):
3643         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveTitle):
3644         (WebCore::FrameLoaderClientGtk::dispatchDidCommitLoad):
3645         (WebCore::FrameLoaderClientGtk::dispatchDidFinishDocumentLoad):
3646         (WebCore::FrameLoaderClientGtk::dispatchDidFirstLayout):
3647         (WebCore::FrameLoaderClientGtk::dispatchShow):
3648         (WebCore::FrameLoaderClientGtk::cancelPolicyCheck):
3649         (WebCore::FrameLoaderClientGtk::dispatchDidLoadMainResource):
3650         (WebCore::FrameLoaderClientGtk::revertToProvisionalState):
3651         (WebCore::FrameLoaderClientGtk::clearUnarchivingState):
3652         (WebCore::FrameLoaderClientGtk::willChangeTitle):
3653         (WebCore::FrameLoaderClientGtk::didChangeTitle):
3654         (WebCore::FrameLoaderClientGtk::finishedLoading):
3655         (WebCore::FrameLoaderClientGtk::finalSetupForReplace):
3656         (WebCore::FrameLoaderClientGtk::setDefersLoading):
3657         (WebCore::FrameLoaderClientGtk::isArchiveLoadPending):
3658         (WebCore::FrameLoaderClientGtk::cancelPendingArchiveLoad):
3659         (WebCore::FrameLoaderClientGtk::clearArchivedResources):
3660         (WebCore::FrameLoaderClientGtk::canHandleRequest):
3661         (WebCore::FrameLoaderClientGtk::canShowMIMEType):
3662         (WebCore::FrameLoaderClientGtk::representationExistsForURLScheme):
3663         (WebCore::FrameLoaderClientGtk::generatedMIMETypeForURLScheme):
3664         (WebCore::FrameLoaderClientGtk::provisionalLoadStarted):
3665         (WebCore::FrameLoaderClientGtk::didFinishLoad):
3666         (WebCore::FrameLoaderClientGtk::prepareForDataSourceReplacement):
3667         (WebCore::FrameLoaderClientGtk::setTitle):
3668         (WebCore::FrameLoaderClientGtk::setDocumentViewFromCachedPage):
3669         (WebCore::FrameLoaderClientGtk::dispatchDidReceiveContentLength):
3670         (WebCore::FrameLoaderClientGtk::dispatchDidFinishLoading):
3671         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoading):
3672         (WebCore::FrameLoaderClientGtk::dispatchDidLoadResourceFromMemoryCache):
3673         (WebCore::FrameLoaderClientGtk::dispatchDidFailProvisionalLoad):
3674         (WebCore::FrameLoaderClientGtk::dispatchDidFailLoad):
3675         (WebCore::FrameLoaderClientGtk::download):
3676         (WebCore::FrameLoaderClientGtk::cancelledError):
3677         (WebCore::FrameLoaderClientGtk::blockedError):