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