1 2011-03-31 Xan Lopez <xlopez@igalia.com>
3 Reviewed by Martin Robinson.
5 [GTK] Link explicitly with XRender on Linux/Unix
6 https://bugs.webkit.org/show_bug.cgi?id=57558
8 * GNUmakefile.am: add XRender LIBS.
10 2011-03-31 Evan Martin <evan@chromium.org>
12 Build fix from previous change.
14 * WebCoreSupport/FrameLoaderClientGtk.cpp:
15 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
17 2011-03-31 Evan Martin <evan@chromium.org>
19 Reviewed by Eric Seidel.
21 <title> should support dir attribute
22 https://bugs.webkit.org/show_bug.cgi?id=50961
24 Update to new FrameLoaderClient interface.
26 * WebCoreSupport/FrameLoaderClientGtk.cpp:
27 (WebKit::FrameLoaderClient::dispatchDidReceiveTitle):
28 (WebKit::FrameLoaderClient::setTitle):
29 * WebCoreSupport/FrameLoaderClientGtk.h:
31 2011-03-29 Philippe Normand <pnormand@igalia.com>
33 Unreviewed, disable an assert in testwebview due to
34 https://bugs.webkit.org/show_bug.cgi?id=57315
36 * tests/testwebview.c:
38 2011-03-28 Adele Peterson <adele@apple.com>
42 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
43 (DumpRenderTreeSupportGtk::webkitWebFrameSelectionHasSpellingMarker):
45 2011-03-28 Sergio Villar Senin <svillar@igalia.com>
47 Reviewed by Martin Robinson.
49 [GTK] Fullscreen tests failing after r82084
50 https://bugs.webkit.org/show_bug.cgi?id=57219
52 Added the withKeyboard parameter to supportsFullScreenForElement
53 method in ChromeClient. Fullscreen will be disabled for keyboard
56 * WebCoreSupport/ChromeClientGtk.cpp:
57 (WebKit::ChromeClient::supportsFullScreenForElement):
58 * WebCoreSupport/ChromeClientGtk.h:
60 2011-03-25 Andy Estes <aestes@apple.com>
62 Reviewed by Adele Peterson.
64 REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
65 https://bugs.webkit.org/show_bug.cgi?id=49016
67 Update objectContentType() implementation to handle the
68 shouldPreferPlugInsForImages flag.
70 * WebCoreSupport/FrameLoaderClientGtk.cpp:
71 (WebKit::FrameLoaderClient::objectContentType):
72 * WebCoreSupport/FrameLoaderClientGtk.h:
74 2011-03-25 Priit Laes <plaes@plaes.org>
76 Reviewed by Martin Robinson.
78 [GTK] [PATCH] Avoid critical warning when free-ing list of plugins
79 https://bugs.webkit.org/show_bug.cgi?id=57025
81 * webkit/webkitwebplugindatabase.cpp:
82 (webkit_web_plugin_database_plugins_list_free):
83 Use regular check and return instead of g_return_if_fail.
85 2011-03-24 Sheriff Bot <webkit.review.bot@gmail.com>
87 Unreviewed, rolling out r81916 and r81917.
88 http://trac.webkit.org/changeset/81916
89 http://trac.webkit.org/changeset/81917
90 https://bugs.webkit.org/show_bug.cgi?id=57071
92 broke a test on platforms that do not have QuickTime installed
93 (Requested by estes on #webkit).
95 * WebCoreSupport/FrameLoaderClientGtk.cpp:
96 (WebKit::FrameLoaderClient::objectContentType):
97 * WebCoreSupport/FrameLoaderClientGtk.h:
99 2011-03-24 Andy Estes <aestes@apple.com>
101 Reviewed by Darin Adler.
103 REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
104 https://bugs.webkit.org/show_bug.cgi?id=49016
106 Update objectContentType() implementation to handle the
107 shouldPreferPlugInsForImages flag.
109 * WebCoreSupport/FrameLoaderClientGtk.cpp:
110 (WebKit::FrameLoaderClient::objectContentType):
111 * WebCoreSupport/FrameLoaderClientGtk.h:
113 2011-03-23 Brady Eidson <beidson@apple.com>
115 Reviewed by Sam Weinig.
117 Change IconDatabase opening to allow for arbitrary filenames
118 https://bugs.webkit.org/show_bug.cgi?id=56977
120 * webkit/webkiticondatabase.cpp:
121 (webkit_icon_database_set_path):
123 2011-03-22 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
125 Rubber-stamped by Xan Lopez.
127 Applications that include WebKit headers fail to build when using strict warnings
128 because the signature for webkit_application_cache_get_maximum_size is missing a
129 'void' to make it explicit it takes no arguments.
131 * webkit/webkitapplicationcache.h:
133 2011-03-21 Alejandro G. Castro <alex@igalia.com>
135 Reviewed by Martin Robinson.
137 [GTK] 1.3.13 release bump
138 https://bugs.webkit.org/show_bug.cgi?id=56795
140 Version bump for 1.3.13 and updated NEWS file with release notes.
144 2011-03-21 Chang Shu <cshu@webkit.org>
146 Reviewed by Alexey Proskuryakov.
148 REGRESSION (r79953): Can't type in MS Outlook 2011
149 https://bugs.webkit.org/show_bug.cgi?id=56665
151 r79953 removed the WebView level editablity which is persistent no matter whether
152 underlying document itself is changed and editability gets lost. The resolution is to
153 set this WebView editable value to WebCore. This avoids the callback from WebCore to
154 WebKit which was the main goal in r79953 to improve performance.
156 * webkit/webkitwebview.cpp:
157 (webkit_web_view_get_editable):
158 (webkit_web_view_set_editable):
160 2011-03-21 Mario Sanchez Prada <msanchez@igalia.com>
162 Reviewed by Martin Robinson.
164 [GTK] [Stable] AtkHypertext exposes wrong offsets for links placed inside <span> nodes
165 https://bugs.webkit.org/show_bug.cgi?id=56737
168 (testWebkitAtkHypertextAndHyperlinks): Updated unit test to also
169 check offsets for hyperlinks inside <span> nodes.
171 2011-03-18 David Keijser <keijser@gmail.com> and Xan Lopez <xlopez@igalia.com>
173 Reviewed by Martin Robinson.
175 [GTK] On-demand event-listeners for DOM event signals
176 https://bugs.webkit.org/show_bug.cgi?id=49649
178 * tests/testdomdomwindow.c: update unit tests for new APIs.
179 (load_event_callback): ditto.
180 (test_dom_domview_signals): ditto.
181 (load_status_callback): ditto.
183 2011-03-17 Brady Eidson <beidson@apple.com>
185 Reviewed by Sam Weinig.
187 https://bugs.webkit.org/show_bug.cgi?id=56425
188 More groundwork for WebKit2 IconDatabase
190 Update already-used function names:
191 * webkit/webkiticondatabase.cpp:
192 (webkit_icon_database_get_icon_uri):
193 (webkit_icon_database_get_icon_pixbuf):
194 * webkit/webkitwebview.cpp:
195 (webkit_web_view_get_icon_uri):
197 2011-03-16 Joseph Pecoraro <joepeck@webkit.org>
199 Reviewed by Kenneth Rohde Christiansen.
201 Viewport no longer allows an auto value for "user-scalable"
202 https://bugs.webkit.org/show_bug.cgi?id=55416
204 Make the default value for userScalable be true.
206 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
207 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport): update test output to include userScalable.
208 * webkit/webkitviewportattributes.cpp:
209 (webkitViewportAttributesRecompute):
211 2011-03-15 Ilya Sherman <isherman@chromium.org>
213 Reviewed by Tony Chang.
215 Autofilled form elements are assigned fixed background color but not text color
216 https://bugs.webkit.org/show_bug.cgi?id=48382
218 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
219 (DumpRenderTreeSupportGtk::setAutofilled): Added.
220 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
222 2011-03-14 Ryuan Choi <ryuan.choi@samsung.com>
224 Reviewed by Martin Robinson.
226 [GTK] Possible leaks after splitting TextCheckerClientEnchant.
227 https://bugs.webkit.org/show_bug.cgi?id=55989
229 Convert gchar* to GOwnPtr<gchar> and refactor the code.
231 * WebCoreSupport/TextCheckerClientEnchant.cpp:
232 (WebKit::TextCheckerClientEnchant::checkSpellingOfString):
234 2011-03-11 Marco Peereboom <marco@peereboom.us>
236 Reviewed by Gustavo Noronha Silva.
238 Provide a knob to enable/disable DNS prefetching.
239 DNS prefetching is enabled by default.
240 https://bugs.webkit.org/show_bug.cgi?id=55973
242 * webkit/webkitwebsettings.cpp:
243 (webkit_web_settings_class_init):
244 (webkit_web_settings_set_property):
245 (webkit_web_settings_get_property):
246 (webkit_web_settings_copy):
247 * webkit/webkitwebview.cpp:
248 (webkit_web_view_update_settings):
249 (webkit_web_view_settings_notify):
251 2011-03-08 Philippe Normand <pnormand@igalia.com>
253 Reviewed by Martin Robinson.
255 [GTK] close-web-view emitted on disposed WebView
256 https://bugs.webkit.org/show_bug.cgi?id=55932
258 * WebCoreSupport/ChromeClientGtk.cpp:
259 (ChromeClient::chromeDestroyed): Remove the closeSoonTimer glib
260 source before destruction of the ChromeClient.
262 2011-03-11 Roland Steiner <rolandsteiner@chromium.org>
264 Reviewed by Ryosuke Niwa.
266 Bug 55570 - Remove dependency of dom/InputElement.cpp on html/ and wml/
267 https://bugs.webkit.org/show_bug.cgi?id=55570
269 Add a virtual function toInputElement() to Node that has a default
270 implementation of returning 0.
271 For HTMLInputElement and WMLInputElement (which derive from InputElement)
272 override this to return the object.
273 Change all calling sites of the old toInputElement to use the new member
274 function. This also allows us to save some casts.
276 No new tests (refactoring).
278 * src/WebInputElement.cpp:
279 (WebKit::toWebInputElement):
281 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
282 (DumpRenderTreeSupportGtk::setValueForUser):
284 2011-03-10 Philippe Normand <pnormand@igalia.com>
286 Reviewed by Xan Lopez.
288 [GTK] unittests/testapplicationcache crashes
289 https://bugs.webkit.org/show_bug.cgi?id=56083
291 Removed the webkit_application_cache_get_database_directory_path
292 API as the underlying ApplicationCacheStorage doesn't allow
293 setting the cache path multiple times.
295 * tests/testapplicationcache.c:
297 * webkit/webkitapplicationcache.cpp:
298 (webkit_application_cache_get_database_directory_path):
299 * webkit/webkitapplicationcache.h:
300 * webkit/webkitglobals.cpp:
303 2011-03-09 Peter Kasting <pkasting@google.com>
305 Reviewed by Mihai Parparita.
307 Unify Windows version checks.
308 https://bugs.webkit.org/show_bug.cgi?id=55979
310 * webkit/webkitwebsettings.cpp:
313 2011-03-08 Christian Dywan <christian@lanedo.com>
315 Reviewed by Martin Robinson.
317 [GTK] provide an API to control the IconDatabase
318 https://bugs.webkit.org/show_bug.cgi?id=32510
321 * WebCoreSupport/FrameLoaderClientGtk.cpp: Emit signals on
322 the icon database for new icons.
324 * webkit/webkitdefines.h:
325 * webkit/webkitglobals.cpp:
326 * webkit/webkitglobals.h: Add a function to obtain the global
328 * webkit/webkiticondatabase.cpp:
329 * webkit/webkiticondatabase.h: Implement public icon database
330 object with methods for obtaining icon URLs, pixbufs, clearing
331 waiting for new icons.
332 * webkit/webkitwebview.cpp:
333 * webkit/webkitwebview.h: Add a method to obtain an icon pixbuf
335 2011-03-08 Carlos Garcia Campos <cgarcia@igalia.com>
337 Reviewed by Martin Robinson.
339 [GTK] Add layoutTestController.setValueForUser() after r80412
340 https://bugs.webkit.org/show_bug.cgi?id=55862
342 Add setValueForUser method to DumpRenderTreeSupportGTK.
344 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
345 (DumpRenderTreeSupportGtk::setValueForUser):
346 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
348 2011-03-07 Sam Weinig <sam@webkit.org>
350 Reviewed by Anders Carlsson.
352 Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
353 https://bugs.webkit.org/show_bug.cgi?id=55827
355 Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
356 and pass the entire response, instead of just the MIMEType.
358 * WebCoreSupport/FrameLoaderClientGtk.cpp:
359 (WebKit::FrameLoaderClient::dispatchDecidePolicyForResponse):
360 * WebCoreSupport/FrameLoaderClientGtk.h:
362 2011-03-01 Martin Robinson <mrobinson@igalia.com>
364 Reviewed by Xan Lopez.
366 [GTK] Windowless plugins override the view cursor
367 https://bugs.webkit.org/show_bug.cgi?id=55531
369 * WebCoreSupport/ChromeClientGtk.cpp:
370 (WebKit::ChromeClient::setCursor): Moved the implementation of setCursor here
371 which is more fitting since it sets the cursor for the entire window.
373 2011-03-03 Brady Eidson <beidson@apple.com>
375 Reviewed by Darin Adler.
377 https://bugs.webkit.org/show_bug.cgi?id=55721
378 Global IconDatabase should be returned by reference, not as a pointer
380 * webkit/webkitglobals.cpp:
381 (closeIconDatabaseOnExit):
382 (WebKit::setIconDatabaseEnabled):
383 * webkit/webkitwebview.cpp:
384 (webkit_web_view_get_icon_uri):
386 2011-03-03 Alexey Proskuryakov <ap@apple.com>
388 Removing an include of WebCoreKeyboardUIMode.h that Ive just added. It's already included
391 * WebCoreSupport/ChromeClientGtk.h:
393 2011-03-02 Alexey Proskuryakov <ap@apple.com>
395 Reviewed by Darin Adler.
397 REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
398 https://bugs.webkit.org/show_bug.cgi?id=55633
399 <rdar://problem/8963023>
401 * WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::keyboardUIMode):
402 * WebCoreSupport/ChromeClientGtk.h:
403 Implement keyboardUIMode() instead of tabsToLinks(). No change in functionality, since
404 this platform doesn't observe or have full keyboard access state.
406 2011-03-03 Lukasz Slachciak <l.slachciak@samsung.com>
408 Reviewed by Xan Lopez.
410 [GTK] Extended application cache database API and added unit tests file.
411 https://bugs.webkit.org/show_bug.cgi?id=55335
413 * GNUmakefile.am: Add testapplicationcache.c and remove webkitapplicationcacheprivate.h.
414 * tests/testapplicationcache.c: Added.
415 (test_applicationcache_maximum_size): Tests if application cache storage is set/get correctly.
416 (test_applicationcache_database_directory_path): Tests if application cache directory path is set/get correctly.
418 * webkit/webkitapplicationcache.cpp:
419 (webkit_application_cache_get_maximum_size): New API for getting application cache maximum storage size.
420 * webkit/webkitapplicationcache.h: Declaration of API for getting/setting application cache maximum storage size.
421 * webkit/webkitapplicationcacheprivate.h: Removed.
422 2011-03-03 Peter Kasting <pkasting@google.com>
424 Reviewed by James Robinson.
426 Drop redundant "Windows; " from the Windows-specific User Agent string.
427 https://bugs.webkit.org/show_bug.cgi?id=54567
429 * webkit/webkitwebsettings.cpp:
433 2011-03-02 Martin Robinson <mrobinson@igalia.com>
435 Reviewed by Xan Lopez.
437 Do a bit of cleanup in ChromeClientGtk. Instead of always fetching the
438 WebKitWebView from the frame, simply get it from the member variable of
439 the ChromeClientGtk instance itself.
441 * WebCoreSupport/ChromeClientGtk.cpp:
442 (WebKit::ChromeClient::scrollbarsVisible):
443 (WebKit::ChromeClient::exceededDatabaseQuota):
444 (WebKit::ChromeClient::requestGeolocationPermissionForFrame):
445 (WebKit::ChromeClient::cancelGeolocationPermissionRequestForFrame):
446 (WebKit::ChromeClient::enterFullscreenForNode):
447 (WebKit::ChromeClient::exitFullscreenForNode):
449 2011-03-01 Joseph Pecoraro <joepeck@webkit.org>
451 Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
453 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
454 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport):
455 * webkit/webkitviewportattributes.cpp:
456 (webkitViewportAttributesRecompute):
458 2011-03-01 Joseph Pecoraro <joepeck@webkit.org>
460 Reviewed by Kenneth Rohde Christiansen.
462 Viewport Warning/Error Messages Are Now Inaccurate
463 https://bugs.webkit.org/show_bug.cgi?id=53707
465 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
466 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport): pass a Document into computeViewportAttributes for warnings to be reported to.
467 * webkit/webkitviewportattributes.cpp:
468 (webkitViewportAttributesRecompute): pass a Document into computeViewportAttributes for warnings to be reported to.
470 2011-03-01 Kamil Blank <k.blank@samsung.com>
472 Reviewed by Martin Robinson.
474 [GTK] Fixing headers order in webkit.h.
475 https://bugs.webkit.org/show_bug.cgi?id=55316
477 * webkit/webkit.h: Style fix.
479 2011-03-01 Joone Hur <joone.hur@collabora.co.uk>
481 Reviewed by Martin Robinson.
483 [GTK] Convert use of cairo_t to RefPtr<cairo_t> in webkitwebiew.cpp
484 https://bugs.webkit.org/show_bug.cgi?id=55437
486 * webkit/webkitwebview.cpp: Convert use of cairo_t to RefPtr<cairo_t>.
487 (webkit_web_view_expose_event):
489 2011-02-28 Chang Shu <cshu@webkit.org>
491 Reviewed by Ryosuke Niwa.
493 Remove the support of Frame::isContentEditable and its dependencies.
494 https://bugs.webkit.org/show_bug.cgi?id=54292
496 Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
498 * WebCoreSupport/EditorClientGtk.cpp:
499 * WebCoreSupport/EditorClientGtk.h:
500 * webkit/webkitwebview.cpp:
501 (webkit_web_view_init):
502 (webkit_web_view_get_editable):
503 (webkit_web_view_set_editable):
504 * webkit/webkitwebviewprivate.h:
506 2011-02-26 Lukasz Slachciak <l.slachciak@samsung.com>
508 Reviewed by Xan Lopez.
510 [GTK] Implemented API to set/get web application cache directory path database.
512 * GNUmakefile.am: Add webkitapplicationcache.h file.
513 * webkit/webkit.h: Add webkitapplicationcache.h file.
514 * webkit/webkitapplicationcache.cpp: definition of API setting and getting
515 web application cache directory path database.
516 (webkit_application_cache_get_database_directory_path):
517 (webkit_application_cache_set_database_directory_path):
518 * webkit/webkitapplicationcache.h: Added new API file for setting and getting
519 web application cache directory path database.
520 * webkit/webkitglobals.cpp:
521 (webkitInit): use webkit_application_cache_set_database_directory_path
522 to set default web application cache directory path database.
524 2011-02-26 Vsevolod Vlasov <vsevik@chromium.org>
526 Reviewed by Pavel Feldman.
528 DumpRenderTree should reset frame opener between tests.
529 https://bugs.webkit.org/show_bug.cgi?id=54874
531 Added clearOpener method to DumpRenderTreeSupportGTK.
533 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
534 (DumpRenderTreeSupportGtk::clearOpener):
535 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
537 2011-02-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
539 Reviewed by Andreas Kling.
541 Make it possible to test the targetdensity-dpi support
542 https://bugs.webkit.org/show_bug.cgi?id=55142
544 Test the viewport meta tag feature targetdensity-dpi by
545 adding extra arguments to dumpConfigurationForViewport
547 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
548 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport):
549 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
551 2011-02-26 Sheriff Bot <webkit.review.bot@gmail.com>
553 Unreviewed, rolling out r79764.
554 http://trac.webkit.org/changeset/79764
555 https://bugs.webkit.org/show_bug.cgi?id=55295
557 "broke Chromium builds" (Requested by rniwa on #webkit).
559 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
560 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
562 2011-02-26 Vsevolod Vlasov <vsevik@chromium.org>
564 Reviewed by Pavel Feldman.
566 DumpRenderTree should reset frame opener between tests.
567 https://bugs.webkit.org/show_bug.cgi?id=54874
569 Added clearOpener method to DumpRenderTreeSupportGTK.
571 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
572 (DumpRenderTreeSupportGtk::clearOpener):
573 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
575 2011-02-24 Peter Kasting <pkasting@google.com>
577 Reviewed by Eric Seidel.
579 Drop the "U; " encryption level from the User Agent string.
580 https://bugs.webkit.org/show_bug.cgi?id=54566
582 * webkit/webkitwebsettings.cpp:
585 2011-02-24 Andrew Wilson <atwilson@chromium.org>
587 Unreviewed, rolling out r79570.
588 http://trac.webkit.org/changeset/79570
589 https://bugs.webkit.org/show_bug.cgi?id=54874
591 Breaks chromium build because glue/mocks/mock_web_frame.h/cc
594 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
595 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
597 2011-02-24 Vsevolod Vlasov <vsevik@chromium.org>
599 Reviewed by Alexey Proskuryakov.
601 DumpRenderTree should reset frame opener between tests.
602 https://bugs.webkit.org/show_bug.cgi?id=54874
604 Added clearOpener method to DumpRenderTreeSupportGTK.
606 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
607 (DumpRenderTreeSupportGtk::clearOpener):
608 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
610 2011-02-22 Laszlo Gombos <laszlo.1.gombos@nokia.com>
612 Reviewed by Alexey Proskuryakov.
614 Drop the language tag part from the User Agent string
615 https://bugs.webkit.org/show_bug.cgi?id=54560
617 * webkit/webkitwebsettings.cpp:
620 2011-02-22 Martin Robinson <mrobinson@igalia.com>
622 Reviewed by Xan Lopez.
624 [GTK] position:fixed elements flicker while scrolling after r74196
625 https://bugs.webkit.org/show_bug.cgi?id=54981
627 * WebCoreSupport/ChromeClientGtk.cpp:
628 (WebKit::ChromeClient::ChromeClient): Initialize the new m_pendingScrollInvalidations
630 (WebKit::ChromeClient::invalidateWindow): If this is an immediate invalidation and we
631 having pending scrolling invalidations, instruct GDK to process updates now.
632 (WebKit::ChromeClient::scroll): Remove the call to gdk_window_process_updates. Set
633 m_pendingScrollInvalidations to true to force it to happen in invalidateWindow instead.
634 * WebCoreSupport/ChromeClientGtk.h: Add new boolean member.
636 2011-02-02 Martin Robinson <mrobinson@igalia.com>
638 Reviewed by Xan Lopez.
640 [GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
641 https://bugs.webkit.org/show_bug.cgi?id=53603
643 Add setSelectTrailingWhitespaceEnabled and selectTrailingWhitespaceEnabled which allow
644 setting and querying the selectTrailingWhitespaceEnabled setting. EditorClient just
645 listens to this value during DRT runs. Perhaps later we can expose this to the public
648 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
649 (DumpRenderTreeSupportGtk::setSelectTrailingWhitespaceEnabled): Added
650 (DumpRenderTreeSupportGtk::selectTrailingWhitespaceEnabled): Added
651 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
652 * WebCoreSupport/EditorClientGtk.cpp:
653 (WebKit::EditorClient::isSelectTrailingWhitespaceEnabled): Ask DRTSupportGtk
654 for the appropriate return value.
656 2011-02-21 Alejandro G. Castro <alex@igalia.com>
658 Reviewed by Xan Lopez.
660 [GTK] [REGRESSION] After r79130, spell tests did not work
661 https://bugs.webkit.org/show_bug.cgi?id=54860
663 * WebCoreSupport/TextCheckerClientEnchant.cpp:
664 (WebKit::TextCheckerClientEnchant::checkSpellingOfString): Avoided
665 freeing the default PangoLanguage.
666 * webkit/webkitwebview.cpp:
667 (webkit_web_view_update_settings): Initialized list of dictionaries.
669 2011-02-17 Ryosuke Niwa <rniwa@webkit.org>
671 Reviewed by Kent Tamura.
673 Rename Position::node() to Position::deprecatedNode()
674 https://bugs.webkit.org/show_bug.cgi?id=54622
676 Done the rename. All calls to node() are replaced by calls to deprecatedNode().
678 * webkit/webkitwebview.cpp:
679 (webkit_web_view_popup_menu_handler):
681 2011-02-19 Ryuan Choi <ryuan.choi@samsung.com>
683 Reviewed by Martin Robinson.
685 [GTK] Remove mandatory Enchant dependency
686 https://bugs.webkit.org/show_bug.cgi?id=51587
688 Extract TextCheckerClientEnchant From EditorClientGtk and remove
689 enchant dependency from other files.
692 * WebCoreSupport/EditorClientGtk.cpp:
693 (WebKit::EditorClient::EditorClient):
694 * WebCoreSupport/EditorClientGtk.h:
695 (WebKit::EditorClient::textChecker):
696 * WebCoreSupport/TextCheckerClientEnchant.cpp: Added.
697 (WebKit::TextCheckerClientEnchant::TextCheckerClientEnchant):
698 (WebKit::TextCheckerClientEnchant::~TextCheckerClientEnchant):
699 (WebKit::TextCheckerClientEnchant::ignoreWordInSpellDocument):
700 (WebKit::TextCheckerClientEnchant::learnWord):
701 (WebKit::TextCheckerClientEnchant::checkSpellingOfString):
702 (WebKit::TextCheckerClientEnchant::getAutoCorrectSuggestionForMisspelledWord):
703 (WebKit::TextCheckerClientEnchant::checkGrammarOfString):
704 (WebKit::TextCheckerClientEnchant::getGuessesForWord):
705 (WebKit::getAvailableDictionariesCallback):
706 (WebKit::TextCheckerClientEnchant::updateSpellCheckingLanguage):
707 (WebKit::TextCheckerClientEnchant::freeSpellCheckingLanguage):
708 * WebCoreSupport/TextCheckerClientEnchant.h: Added.
709 (WebKit::TextCheckerClientEnchant::requestCheckingOfString):
710 * webkit/webkitwebsettings.cpp:
711 (webkit_web_settings_finalize):
712 (webkit_web_settings_set_property):
713 * webkit/webkitwebview.cpp:
714 (webkit_web_view_settings_notify):
716 2011-02-19 Charlie Reis <creis@chromium.org>
718 Reviewed by Mihai Parparita.
720 Ensure loading has stopped in HistoryController::goToItem
721 https://bugs.webkit.org/show_bug.cgi?id=54517
723 Add a FrameLoaderClient callback for whether to stop loading before goToItem.
725 Test: http/tests/navigation/forward-to-fragment-fires-onload.html
727 * WebCoreSupport/FrameLoaderClientGtk.cpp:
728 (WebKit::FrameLoaderClientGtk::shouldStopLoadingForHistoryItem): Added.
729 * WebCoreSupport/FrameLoaderClientGtk.h:
731 2011-02-18 Mario Sanchez Prada <msanchez@igalia.com>
733 Reviewed by Martin Robinson.
735 [Gtk] atk_text_get_selection/atk_text_set_selection fails for list items
736 https://bugs.webkit.org/show_bug.cgi?id=53453
738 Update unit test to check the fix for this bug.
741 (testWebkitAtkTextSelections): Check that functions from AtkText
742 interface to set and get text selections work with list items.
744 2011-02-17 Robert Ancell <rober.ancell@gmail.com>
746 Reviewed by Martin Robinson.
748 [PATCH] GTK documentation fails to build due to changed paths
749 https://bugs.webkit.org/show_bug.cgi?id=54600
751 * docs/GNUmakefile.am: Update the paths that have now moved the Source
754 2011-02-16 Joone Hur <joone.hur@collabora.co.uk>
756 Reviewed by Xan Lopez.
758 [GTK] Match more various WebKit API enum values with WebCore enum values
759 https://bugs.webkit.org/show_bug.cgi?id=54352
761 AssertMatchingEnums.cpp was added to assert that various WebKit API enum values
762 continue matching WebCore defined enum values in the following changeset.
763 http://trac.webkit.org/changeset/77868
764 However, there are already enum values that have been asserted in other files,
765 so these assert macros defined need to be moved to AssertMatchingEnum.cpp.
767 * WebCoreSupport/AssertMatchingEnums.cpp: Add more enum values to be asserted.
768 * webkit/webkitwebnavigationaction.cpp:
769 (webkit_web_navigation_action_class_init): Move the assert macros of
770 WEBKIT_WEB_NAVIGATION_REASON_* to AssertMatchingEnums.cpp.
771 * webkit/webkitwebsettings.cpp:
772 (webkit_web_settings_class_init): Move the assert macros of WEBKIT_EDITING_BEHAVIOR_*
773 to AssertMatchingEnums.cpp.
775 2011-02-16 Mario Sanchez Prada <msanchez@igalia.com>
777 Reviewed by Martin Robinson.
779 [GTK] events missing when a document is (re)loaded
780 https://bugs.webkit.org/show_bug.cgi?id=25831
782 Emit the right signals when reloading a document.
784 * WebCoreSupport/FrameLoaderClientGtk.cpp:
785 (WebKit::notifyAccessibilityStatus): New function, to make sure
786 the signals involved in reloading a document are properly emitted.
787 (WebKit::notifyStatus): Also notify accessibility if enabled.
789 2011-02-15 Kenneth Russell <kbr@google.com>
791 Reviewed by Darin Fisher.
793 Allow controlling minimum DOMTimer interval on a per-page basis
794 https://bugs.webkit.org/show_bug.cgi?id=54312
796 Added needed methods to implement LayoutTestController's new
797 setMinimumTimerInterval method.
799 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
800 (DumpRenderTreeSupportGtk::defaultMinimumTimerInterval):
801 (DumpRenderTreeSupportGtk::setMinimumTimerInterval):
802 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
804 2011-02-15 Christian Dywan <christian@lanedo.com>
806 Rubber-stamped by Gustavo Noronha Silva.
808 * webkit/webkitwebsettings.cpp: Correct a typo, it is
809 acces*s*ibility with two s.
811 2011-01-26 MORITA Hajime <morrita@google.com>
813 Reviewed by Ryosuke Niwa.
815 Refactoring: Extract TextCheckerClient from EditorClient
816 https://bugs.webkit.org/show_bug.cgi?id=53213
818 * WebCoreSupport/EditorClientGtk.h:
819 (WebKit::EditorClient::textChecker):
821 2011-02-07 Ryosuke Niwa <rniwa@webkit.org>
823 Reviewed by Adam Barth.
825 Add EditorClient callbacks to override isDOMPasteAllowed and javaScriptCanAccessClipboard
826 https://bugs.webkit.org/show_bug.cgi?id=52417
828 Added two callback functions, canCopyCut and canPaste to EditorClient. They are currently
831 * WebCoreSupport/EditorClientGtk.cpp:
832 (WebKit::EditorClient::canCopyCut): Added.
833 (WebKit::EditorClient::canPaste): Added.
834 * WebCoreSupport/EditorClientGtk.h:
836 2011-02-14 Alejandro G. Castro <alex@igalia.com>
838 Reviewed by Xan Lopez.
840 [GTK] testwebdatasource test fails in the bots
841 https://bugs.webkit.org/show_bug.cgi?id=54414
843 Changed the uri we check, added www to avoid the rewrite that we
844 get when we as the uri to the request in case it finishes.
846 * tests/testwebdatasource.c:
847 (notify_load_status_cb):
849 2011-02-11 Sheriff Bot <webkit.review.bot@gmail.com>
851 Unreviewed, rolling out r78331.
852 http://trac.webkit.org/changeset/78331
853 https://bugs.webkit.org/show_bug.cgi?id=54295
855 This patch broke 11 tests in GTK bots (Requested by svillar on
858 * WebCoreSupport/FrameLoaderClientGtk.cpp:
859 (WebKit::notifyStatus):
861 2011-02-10 Nate Chapin <japhet@chromium.org>
863 Reviewed by Adam Barth.
865 Update calls to DocumentWriter.
866 https://bugs.webkit.org/show_bug.cgi?id=50489
868 * WebCoreSupport/FrameLoaderClientGtk.cpp:
869 (WebKit::FrameLoaderClient::FrameLoaderClient):
870 (WebKit::FrameLoaderClient::didRunInsecureContent):
871 (WebKit::FrameLoaderClient::dispatchDidLoadMainResource):
872 (WebKit::FrameLoaderClient::finishedLoading):
873 * WebCoreSupport/FrameLoaderClientGtk.h:
874 * webkit/webkitwebview.cpp:
875 (webkit_web_view_get_encoding):
877 2011-02-11 Mario Sanchez Prada <msanchez@igalia.com>
879 Reviewed by Xan Lopez.
881 [GTK] events missing when a document is (re)loaded
882 https://bugs.webkit.org/show_bug.cgi?id=25831
884 Emit the right signals when reloading a document.
886 * WebCoreSupport/FrameLoaderClientGtk.cpp:
887 (WebKit::notifyAccessibilityStatus): New function, to make sure
888 the signals involved in reloading a document are properly emitted.
889 (WebKit::notifyStatus): Also notify accessibility if enabled.
891 2011-02-08 Martin Robinson <mrobinson@igalia.com>
893 Reviewed by Xan Lopez.
895 [GTK] DRT needs an implementation of LayoutTestController.setIconDatabaseEnabled
896 https://bugs.webkit.org/show_bug.cgi?id=54033
898 Add a DumpRenderTreeSupportGtk method for turning the icon database on and off.
899 This is a likely candidate for a new API point.
901 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
902 (DumpRenderTreeSupportGtk::setIconDatabaseEnabled): Added.
903 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
904 * webkit/webkitglobals.cpp:
905 (webkitInit): Call setIconDatabaseEnabled(true) on startup, instead
906 of initializing the database manually.
907 (WebKit::setIconDatabaseEnabled): Added.
908 * webkit/webkitglobalsprivate.h: Added declarations.
910 2011-02-08 Adam Barth <abarth@webkit.org>
912 Reviewed by Eric Seidel.
914 Remove orphan code from old parser
915 https://bugs.webkit.org/show_bug.cgi?id=53984
917 * WebCoreSupport/ChromeClientGtk.h:
919 2011-02-02 Ilya Tikhonovsky <loislo@chromium.org>
921 Reviewed by Yury Semikhatsky.
923 Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
925 https://bugs.webkit.org/show_bug.cgi?id=53169
927 Minor change enforced by major changes in WebCore/inspector/InspectorController.
929 * WebCoreSupport/InspectorClientGtk.cpp:
930 * webkit/webkitwebinspector.cpp:
931 (webkit_web_inspector_get_property):
933 2011-02-08 Carlos Garcia Campos <cgarcia@igalia.com>
935 Reviewed by Martin Robinson.
937 [GTK] DRT's TextInputController is unimplemented on GTK
938 https://bugs.webkit.org/show_bug.cgi?id=52997
940 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
941 (DumpRenderTreeSupportGtk::setComposition):
942 (DumpRenderTreeSupportGtk::confirmComposition):
943 (DumpRenderTreeSupportGtk::firstRectForCharacterRange):
944 (DumpRenderTreeSupportGtk::selectedRange): New methods needed by
946 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
948 2011-02-07 Enrica Casucci <enrica@apple.com>
950 Reviewed Adam Roben and Darin Adler.
952 WebKit2: drag and drop support on Windows.
953 https://bugs.webkit.org/show_bug.cgi?id=52775
955 Removed createDragImageForLink from DragClient.
957 * WebCoreSupport/DragClientGtk.cpp:
958 * WebCoreSupport/DragClientGtk.h:
960 2011-02-07 Joone Hur <joone.hur@collabora.co.uk>
962 Reviewed by Martin Robinson.
964 [Gtk] Implement layoutTestController.findString
965 https://bugs.webkit.org/show_bug.cgi?id=50237
967 * GNUmakefile.am: Add AssertMatchingEnums.cpp.
968 * WebCoreSupport/AssertMatchingEnums.cpp: Add this file to assert that various
969 WebKit API enum values continue matching WebCore defined enum values.
970 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
971 (DumpRenderTreeSupportGtk::findString):
972 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
974 2011-02-07 Martin Robinson <mrobinson@igalia.com>
976 Reviewed by Daniel Bates.
978 [GTK] fast/history/history-subframe-with-name.html fails with GTK DRT
979 https://bugs.webkit.org/show_bug.cgi?id=44784
981 Call FrameLoader::loadURLIntoChildFrame on the parent frame's loader, not the child's.
983 * WebCoreSupport/FrameLoaderClientGtk.cpp:
984 (WebKit::FrameLoaderClient::createFrame): Fix the call to FrameLoader::loadURLIntoChildFrame.
986 2011-02-07 Mario Sanchez Prada <msanchez@igalia.com>
988 Reviewed by Xan Lopez.
990 [Gtk] atk_text_get_caret_offset fails for list items
991 https://bugs.webkit.org/show_bug.cgi?id=53436
993 Update unit test to check the fix for this bug.
996 (testWebkitAtkCaretOffsets): Check that the caret offset returned
997 match the value previously set.
999 2011-02-04 Joone Hur <joone.hur@collabora.co.uk>
1001 Unreviewed, Fix compilation warning.
1003 Constructor initialization list should follow the declaration order.
1005 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1006 (WebKit::FrameLoaderClient::FrameLoaderClient): m_hasRepresentation is moved to
1007 the last position in the initialization list.
1009 2011-02-04 Martin Robinson <mrobinson@igalia.com>
1011 Reviewed by Xan Lopez.
1013 [GTK] WebKitWebFrame can return a stale frame name when calling webkit_web_frame_get_name
1014 https://bugs.webkit.org/show_bug.cgi?id=53797
1016 When the frame name changes between different calls to webkit_web_frame_get_name
1017 on the same frame, return the new frame name instead of the one valid during the
1020 * webkit/webkitwebframe.cpp:
1021 (webkit_web_frame_init): Initialize the frame name to 0.
1022 (webkit_web_frame_get_name): Check the current frame name first before
1023 returning the cached value.
1025 2011-02-04 Martin Robinson <mrobinson@igalia.com>
1027 Reviewed by Gustavo Noronha Silva.
1029 [GTK] fast/events/pagehide-timeout.html fails
1030 https://bugs.webkit.org/show_bug.cgi?id=53771
1032 Add the document browser cache model. This model is optimized for viewing
1033 a series of local files, while the document viewer is optimized for only
1034 viewing one local file. Improve the documentation on the mapping of these
1035 enum values to actual cache settings.
1037 * webkit/webkitglobals.cpp:
1038 (webkit_set_cache_model): Add support for the document browser cache model and
1039 improve comments in this section better explaining where the magic numbers come from.
1040 * webkit/webkitglobals.h: Added an enum value for the document browser cache model.
1042 2011-02-03 Yury Semikhatsky <yurys@chromium.org>
1044 Reviewed by Pavel Feldman.
1046 Web Inspector: remove settings related methods from InspectorClient
1047 https://bugs.webkit.org/show_bug.cgi?id=53686
1049 * WebCoreSupport/InspectorClientGtk.cpp:
1050 (WebKit::InspectorFrontendClient::InspectorFrontendClient):
1051 * WebCoreSupport/InspectorClientGtk.h:
1053 2011-02-03 Adam Langley <agl@chromium.org>
1055 Reviewed by Adam Barth.
1057 Plumb mixed script URL to FrameLoaderClient
1058 https://bugs.webkit.org/show_bug.cgi?id=52384
1060 Regressions covered by http/tests/security/mixedContent/*
1062 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1063 (WebKit::FrameLoaderClient::didRunInsecureContent):
1064 * WebCoreSupport/FrameLoaderClientGtk.h:
1066 2011-02-03 Joone Hur <joone.hur@collabora.co.uk>
1068 Reviewed by Martin Robinson.
1070 [Gtk] No need to set text encoding in the provisional phase
1071 https://bugs.webkit.org/show_bug.cgi?id=53487
1073 According to changeset 67253, setEncoding could be called multiple times from
1074 committedLoad, finishedLoading, dispatchDidFailLoading, and setMainDocumentError
1075 in FrameLoaderClient. To fix this, the relevant code was removed from
1076 FrameLoaderClient and moved to DocumentLoader::commitData. However, that
1077 code was not removed from FrameLoaderClient::finishedLoading in WebKitGtk+.
1079 Due to this reason, after loading a html document, other ports initialize the
1080 text encoding from FrameLoaderClient::finishedLoading, but WebKitGtk+ sets
1081 the same encoding again, even tries to set encoding in the provisional phase.
1082 This causes unnecessary encoding setting.
1084 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1085 (WebKit::FrameLoaderClient::FrameLoaderClient): Set m_hasRepresentation to false.
1086 (WebKit::FrameLoaderClient::makeRepresentation): Set m_hasRepresentation to true.
1087 (WebKit::FrameLoaderClient::revertToProvisionalState): Set m_hasRepresentation to true.
1088 (WebKit::FrameLoaderClient::finishedLoading): Skip the encoding setting when
1089 m_hasRepresentation is false.
1090 * WebCoreSupport/FrameLoaderClientGtk.h: Added m_hasRepresentation.
1092 2011-02-02 Alejandro G. Castro <alex@igalia.com>
1094 Reviewed by Martin Robinson.
1096 Update the NEWS file in preparation for the 1.3.11 release.
1098 * NEWS: Update the NEWS.
1100 2011-02-02 Dan Winship <danw@gnome.org>
1102 Reviewed by Martin Robinson.
1104 [GTK] drop soup cache stuff, which has been moved to libsoup
1105 https://bugs.webkit.org/show_bug.cgi?id=50747
1107 * GNUmakefile.am: Remove old cache files.
1109 2011-02-02 David Hyatt <hyatt@apple.com>
1111 Reviewed by Darin Adler.
1113 Removal of right()/bottom(), converting to maxX()/maxY().
1115 * webkit/webkitwebview.cpp:
1116 (webkit_web_view_popup_menu_handler):
1118 2011-02-01 Mario Sanchez Prada <msanchez@igalia.com>
1120 Reviewed by Martin Robinson.
1122 [Gtk] atk_text_set_caret_offset fails for list items
1123 https://bugs.webkit.org/show_bug.cgi?id=53388
1125 Update unit test to check the fix for this bug.
1128 (testWebkitAtkCaretOffsets): Ensure setting the caret in a list
1129 item through the AtkText interface is possible.
1131 2011-02-01 Mario Sanchez Prada <msanchez@igalia.com>
1133 Reviewed by Martin Robinson.
1135 [GTK] character range extents is off when the end of a wrapped line is included
1136 https://bugs.webkit.org/show_bug.cgi?id=53323
1138 Update unit test to check the fix for this bug.
1141 (testWebkitAtkGetExtents): Check that the extent for a full line
1142 are the same height than for a partial section of the same line.
1144 2011-02-01 Mario Sanchez Prada <msanchez@igalia.com>
1146 Reviewed by Martin Robinson.
1148 [GTK] Caret Offset is one off at the end of wrapped lines
1149 https://bugs.webkit.org/show_bug.cgi?id=53300
1151 Update unit test to check the fix for this bug.
1154 (testWebkitAtkCaretOffsetsAndExtranousWhiteSpaces): Set and get
1155 the caret offset at the edge of the line.
1157 2011-01-31 Mario Sanchez Prada <msanchez@igalia.com>
1159 Reviewed by Martin Robinson.
1161 [Gtk] atk_text_set_caret_offset returns True even when it is unsuccessful
1162 https://bugs.webkit.org/show_bug.cgi?id=53389
1164 New unit test to check the fix for this bug.
1167 (testWebkitAtkCaretOffsets): New.
1168 (main): Add new test.
1170 2011-01-29 Dan Winship <danw@gnome.org>
1172 Reviewed by Xan Lopez.
1174 [GTK] Remove HAVE_LIBSOUP_2_29_90 and HAVE_GSETTINGS conditionals;
1175 we depend on glib 2.27.4 and libsoup 2.33.1 now.
1176 https://bugs.webkit.org/show_bug.cgi?id=50675
1179 * WebCoreSupport/InspectorClientGtk.cpp:
1180 (WebKit::InspectorClient::storeSetting):
1181 * webkit/webkitprivate.cpp:
1182 (inspectorGSettings):
1183 * webkit/webkitprivate.h:
1185 2011-01-28 Dan Bernstein <mitz@apple.com>
1187 Reviewed by Sam Weinig.
1189 <select> can't display right-to-left (rtl) languages
1190 https://bugs.webkit.org/show_bug.cgi?id=19785
1192 * WebCoreSupport/ChromeClientGtk.cpp:
1193 (WebKit::ChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added.
1194 * WebCoreSupport/ChromeClientGtk.h:
1196 2011-01-28 Alejandro G. Castro <alex@igalia.com>
1198 Reviewed by Xan Lopez.
1200 [GTK] Fix compilation warning
1201 https://bugs.webkit.org/show_bug.cgi?id=53292
1203 * webkit/webkitwebframe.cpp:
1204 (draw_page_callback): Cast the pageCount from size_t to int, it
1205 should be safe considering page_nr is the number of pages,
1208 2011-01-27 Nate Chapin <japhet@chromium.org>
1210 Reviewed by Adam Barth.
1212 Use Document::url() instead of FrameLoader::url().
1213 https://bugs.webkit.org/show_bug.cgi?id=41165
1215 * webkit/webkitwebview.cpp:
1216 (webkit_web_view_get_icon_uri):
1218 2011-01-27 Mario Sanchez Prada <msanchez@igalia.com>
1220 Reviewed by Martin Robinson.
1222 [GTK] Space characters in source document interfere with reported caret offset
1223 https://bugs.webkit.org/show_bug.cgi?id=53033
1225 New unit test to check the fix for this bug.
1228 (testWebkitAtkCaretOffsetsAndExtranousWhiteSpaces): New.
1229 (main): Add new unit test.
1231 2011-01-26 Mario Sanchez Prada <msanchez@igalia.com>
1233 Reviewed by Martin Robinson.
1235 [GTK] Reliable crash with getTextAtOffset()
1236 https://bugs.webkit.org/show_bug.cgi?id=53131
1238 New unit test to check the fix for this bug.
1241 (testWebkitAtkGetTextAtOffsetWithSpecialCharacters): New.
1242 (main): Add new unit test.
1244 2011-01-21 Carlos Garcia Campos <cgarcia@igalia.com>
1246 Reviewed by Martin Robinson.
1248 [GTK] Show caps lock indicator in password fields
1249 https://bugs.webkit.org/show_bug.cgi?id=52878
1251 Test: manual-tests/password-caps-lock.html
1253 * webkit/webkitwebview.cpp:
1254 (webkit_web_view_key_release_event): Call
1255 capsLockStateMayHaveChanged() when caps lock key is pressed.
1257 2011-01-19 Joone Hur <joone.hur@collabora.co.uk>
1259 Reviewed by Andreas Kling.
1261 [GTK] No need to invalidate empty areas in ChromeClient::invalidateContentsAndWindow
1262 https://bugs.webkit.org/show_bug.cgi?id=52702
1264 Don't call gdk_window_invalidate_rect if an updated rectangle is empty.
1266 * WebCoreSupport/ChromeClientGtk.cpp:
1267 (WebKit::ChromeClient::invalidateContentsAndWindow):
1269 2011-01-17 Philippe Normand <pnormand@igalia.com>
1271 Unreviewed, build fix for 2 GTK tests html file paths.
1273 * tests/testmimehandling.c:
1275 * tests/testwebview.c:
1277 2011-01-16 Adam Barth <abarth@webkit.org>
1279 Rubber-stamped by Eric Seidel.
1281 Move WebKit into Source
1282 https://bugs.webkit.org/show_bug.cgi?id=52530
1286 2011-01-14 Yuzo Fujishima <yuzo@google.com>
1288 Reviewed by Antti Koivisto.
1290 Rename cache() to memoryCache()
1291 https://bugs.webkit.org/show_bug.cgi?id=52433
1293 * webkit/webkitglobals.cpp:
1294 (webkit_set_cache_model):
1296 2011-01-14 Pavel Feldman <pfeldman@chromium.org>
1298 Not reviewed: gtk build fix (2).
1300 * webkit/webkitwebview.cpp:
1302 2011-01-14 Pavel Feldman <pfeldman@chromium.org>
1304 Not reviewed: gtk build fix.
1306 * webkit/webkitwebinspector.cpp:
1308 2011-01-13 Alejandro G. Castro <alex@igalia.com>
1310 Reviewed by Martin Robinson.
1312 [gtk] Zero-sized font does not yet work
1313 https://bugs.webkit.org/show_bug.cgi?id=49793
1315 Allow 0 as a minimum-font-size value for the settings.
1317 * webkit/webkitwebsettings.cpp:
1318 (webkit_web_settings_class_init):
1320 2011-01-12 Philippe Normand <pnormand@igalia.com>
1322 Unreviewed build fix for 32-bits Release. Include GRefPtrGtk.h so
1323 the GdkCursor templates are found and used at runtime.
1325 * WebCoreSupport/FullscreenVideoController.cpp:
1327 2011-01-11 Carlos Garcia Campos <cgarcia@igalia.com>
1329 Reviewed by Martin Robinson.
1331 [GTK] GRefPtr should not be used with Gtk widgets
1332 https://bugs.webkit.org/show_bug.cgi?id=51241
1334 GRefPtr breaks the widget life-cycle, the main problem is
1335 that GRefPtr calls g_object_unref() when it's destroyed,
1336 which is undesirable for widgets. In gtk+ widgets are created with
1337 a floating reference and when added to a container, the container
1338 takes the ownership of the widget consuming the floating
1339 reference. So you don't usually need to call g_object_ref/unref on
1340 widgets (only for some operations like reparent a widget) and
1341 toplevel widgets are destroyed with gtk_widget_destroy().
1343 * WebCoreSupport/DragClientGtk.cpp:
1344 (WebKit::DragClient::DragClient):
1345 (WebKit::DragClient::~DragClient):
1346 (WebKit::DragClient::startDrag):
1347 * WebCoreSupport/DragClientGtk.h:
1348 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1349 (WebKit::postCommitFrameViewSetup):
1350 * webkit/webkitwebview.cpp:
1351 (webkit_web_view_dispose):
1352 * webkit/webkitwebviewprivate.h:
1354 2011-01-10 Martin Robinson <mrobinson@igalia.com>
1356 Reviewed by Xan Lopez.
1358 Update the NEWS file in preparation for the 1.3.10 release.
1360 * NEWS: Update the NEWS.
1362 2011-01-10 Martin Robinson <mrobinson@igalia.com>
1364 Reviewed by Xan Lopez.
1366 [GTK] Remove use of deprecated GTK+ methods before the 1.3.10 release
1367 https://bugs.webkit.org/show_bug.cgi?id=52173
1369 * WebCoreSupport/FullscreenVideoController.cpp:
1370 (FullscreenVideoController::enterFullscreen): Use a GRefPtr here to avoid having to
1371 call either g_object_unref or gdk_cursor_unref.
1372 * webkit/webkitwebview.cpp: Guard use of deprecated methods.
1373 (webkit_web_view_realize): Ditto.
1374 (webkit_web_view_drag_end): Ditto.
1376 2011-01-10 Alejandro G. Castro <alex@igalia.com>
1378 Reviewed by Xan Lopez.
1380 [GTK] Fix gtk2 compilation for master
1381 https://bugs.webkit.org/show_bug.cgi?id=51885
1383 * webkit/webkitsoupauthdialog.c:
1384 (show_auth_dialog): Removed the call to
1385 gtk_dialog_set_has_separator API to remove a warning.
1387 2011-01-10 Xan Lopez <xlopez@igalia.com>
1389 Reviewed by Martin Robinson.
1391 [GTK] Create intermediate libWebCore library
1392 https://bugs.webkit.org/show_bug.cgi?id=52116
1394 * GNUmakefile.am: add libWebCore.la to LIBADD and remove webcore
1395 sources from the libwebkit library SOURCES.
1397 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
1399 Reviewed by Darin Fisher.
1401 https://bugs.webkit.org/show_bug.cgi?id=41441
1402 createWindow method should only do window-creating without URL navigation
1404 * WebCoreSupport/ChromeClientGtk.cpp:
1405 (WebKit::ChromeClient::createWindow):
1407 2011-01-08 Martin Robinson <mrobinson@igalia.com>
1409 GTK+ build fix. Adding missing headers to the source list, fixing make dist.
1411 * GNUmakefile.am: Fix make dist.
1413 2011-01-07 Adam Barth <abarth@webkit.org>
1415 Rubber-stamped by Eric Seidel.
1417 Move WebCore to Source
1418 https://bugs.webkit.org/show_bug.cgi?id=52050
1422 2011-01-07 Mario Sanchez Prada <msanchez@igalia.com>
1424 Reviewed by Chris Fleizach.
1426 GTK: AX: atk tests need to be updated after recent changes
1427 https://bugs.webkit.org/show_bug.cgi?id=51932
1429 Fix gtk_widget_get_accessible() in WebKitWebView to keep returning
1430 the AtkObject of role ATK_ROLE_DOCUMENT_FRAME.
1432 With the change to support WK2 accessibility, the root object of
1433 the AX hierarchy is different from what GTK expects as the current
1434 hirarchy right now includes a new accessible object as the parent
1435 of the accessible web area (AXScrollView).
1437 * webkit/webkitwebview.cpp:
1438 (webkit_web_view_get_accessible): Return the first child of the
1439 wrapper associated to the root accessible object in the document,
1440 to keep everything in the GTK port working as it used to be.
1442 Re-enable skipped ATK unit tests now they are passing again.
1445 (main): Re-enable skipped tests.
1446 * tests/testatkroles.c:
1449 2011-01-06 Martin Robinson <mrobinson@igalia.com>
1451 Reviewed by Xan Lopez.
1453 GTK: AX: atk tests need to be updated after recent changes
1454 https://bugs.webkit.org/show_bug.cgi?id=51932
1456 Skip ATK unit tests until we can look into what is causing these failures.
1459 (main): Skip all tests.
1460 * tests/testatkroles.c:
1463 2011-01-06 Martin Robinson <mrobinson@igalia.com>
1465 Reviewed by Xan Lopez.
1467 Include a new header in the static headers list. This is necessary
1468 so that "make install" installs the header.
1470 * GNUmakefile.am: Include webkitglobals.h in the header list.
1472 2011-01-05 Martin Robinson <mrobinson@igalia.com>
1474 Reviewed by Gustavo Noronha.
1476 Build fix for GTK+ 3.x. Remove the call to gtk_range_set_update_policy.
1477 GTK+ 3.x has removed this method and the default in GTK+ 2.x is continuous,
1478 so this call is unnecessary.
1480 * WebCoreSupport/FullscreenVideoController.cpp:
1481 (FullscreenVideoController::createHud): Remove call to gtk_range_set_update_policy().
1483 2011-01-04 Chris Fleizach <cfleizach@apple.com>
1485 Reviewed by Martin Robinson.
1487 GTK: AX: DRT needs to use correct root object method.
1488 https://bugs.webkit.org/show_bug.cgi?id=51911
1490 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
1491 (DumpRenderTreeSupportGtk::getRootAccessibleElement):
1492 (DumpRenderTreeSupportGtk::getFocusedAccessibleElement):
1493 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
1495 2011-01-04 Chris Fleizach <cfleizach@apple.com>
1497 Reviewed by Sam Weinig.
1499 WK2: Support Accessibility
1500 https://bugs.webkit.org/show_bug.cgi?id=51859
1502 Use rootObject() method to get top of ax tree.
1504 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
1505 (DumpRenderTreeSupportGtk::getFocusedAccessibleElement):
1506 * webkit/webkitwebview.cpp:
1507 (webkit_web_view_get_accessible):
1509 2011-01-03 Martin Robinson <mrobinson@igalia.com>
1511 Reviewed by Darin Adler.
1513 Remove the last non-GObject usage of PlatformRefPtr and move the code to GRefPtr
1514 https://bugs.webkit.org/show_bug.cgi?id=51846
1516 Changed all references to PlatformRefPtr in GTK+ code to GRefPtr.
1518 2011-01-03 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1520 Reviewed by Martin Robinson.
1522 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
1523 https://bugs.webkit.org/show_bug.cgi?id=50698
1525 Final patch, removing webkitprivate.{cpp,h}, and adding a
1526 webkitglobals module to hold non-object-specific functions and
1527 definitions that do not make sense on their own.
1530 * WebCoreSupport/ChromeClientGtk.cpp:
1531 (WebKit::ChromeClient::createWindow):
1532 * WebCoreSupport/ContextMenuClientGtk.cpp:
1533 * WebCoreSupport/DocumentLoaderGtk.cpp:
1534 (WebKit::DocumentLoader::attachToFrame):
1535 * WebCoreSupport/DragClientGtk.cpp:
1536 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
1537 * WebCoreSupport/EditorClientGtk.cpp:
1538 (WebKit::EditorClient::ignoreWordInSpellDocument):
1539 (WebKit::EditorClient::learnWord):
1540 (WebKit::EditorClient::checkSpellingOfString):
1541 (WebKit::EditorClient::getGuessesForWord):
1542 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1543 (WebKit::FrameLoaderClient::createDocumentLoader):
1544 * WebCoreSupport/InspectorClientGtk.cpp:
1546 * webkit/webkitapplicationcache.cpp:
1547 (webkit_application_cache_set_maximum_size):
1548 * webkit/webkitdownload.cpp:
1549 (webkit_download_class_init):
1550 * webkit/webkitgeolocationpolicydecision.cpp:
1551 * webkit/webkitglobals.cpp: Added.
1552 (webkit_get_default_session):
1553 (webkit_set_cache_model):
1554 (webkit_get_cache_model):
1555 (webkit_get_web_plugin_database):
1556 (currentToplevelCallback):
1557 (closeIconDatabaseOnExit):
1559 (WebKit::pasteboardHelperInstance):
1560 * webkit/webkitglobals.h: Added.
1561 * webkit/webkitglobalsprivate.h: Copied from WebKit/gtk/webkit/webkitwebsettingsprivate.h.
1562 * webkit/webkithittestresult.cpp:
1563 (webkit_hit_test_result_class_init):
1564 * webkit/webkitnetworkrequest.cpp:
1565 (webkit_network_request_class_init):
1566 * webkit/webkitnetworkresponse.cpp:
1567 (webkit_network_response_class_init):
1568 * webkit/webkitprivate.cpp: Removed.
1569 * webkit/webkitprivate.h: Removed.
1570 * webkit/webkitsecurityorigin.cpp:
1571 * webkit/webkitviewportattributes.cpp:
1572 * webkit/webkitwebbackforwardlist.cpp:
1573 (webkit_web_back_forward_list_class_init):
1574 * webkit/webkitwebdatabase.cpp:
1575 * webkit/webkitwebdatasource.cpp:
1576 (webkit_web_data_source_class_init):
1577 (webkit_web_data_source_new_with_request):
1579 * webkit/webkitwebframe.cpp:
1580 (webkit_web_frame_class_init):
1581 * webkit/webkitwebframeprivate.h:
1582 * webkit/webkitwebhistoryitem.cpp:
1583 (webkit_web_history_item_class_init):
1584 * webkit/webkitwebinspector.cpp:
1585 * webkit/webkitwebnavigationaction.cpp:
1586 * webkit/webkitwebplugin.cpp:
1587 (webkit_web_plugin_class_init):
1588 * webkit/webkitwebplugindatabase.cpp:
1589 (webkit_web_plugin_database_class_init):
1590 * webkit/webkitwebpluginprivate.h:
1591 * webkit/webkitwebpolicydecision.cpp:
1592 * webkit/webkitwebresource.cpp:
1593 * webkit/webkitwebsettings.cpp:
1594 (webkit_web_settings_class_init):
1595 (webkitWebViewGetEnchantDicts):
1597 * webkit/webkitwebsettingsprivate.h:
1598 * webkit/webkitwebview.cpp:
1599 (webkit_web_view_class_init):
1600 (webkit_web_view_update_settings):
1601 (webkit_web_view_settings_notify):
1602 * webkit/webkitwebview.h:
1603 * webkit/webkitwebwindowfeatures.cpp:
1604 (webkit_web_window_features_class_init):
1607 2011-01-02 Xan Lopez <xlopez@igalia.com>
1611 * GNUmakefile.am: tests do actually include JSC.
1613 2011-01-02 Xan Lopez <xlopez@igalia.com>
1617 * GNUmakefile.am: remove individual -I$(srcdir)/Source when we'll
1618 already get them from javascriptcore_cppflags, and add it for the
1619 introspection build (which is not tested in the bots).
1621 2011-01-02 Adam Barth <abarth@webkit.org>
1623 Speculative build fix for GTK. Add Source to the include paths.
1627 2011-01-01 Adam Barth <abarth@webkit.org>
1629 Reviewed by Eric Seidel.
1631 Move JavaScriptCore to Source
1632 https://bugs.webkit.org/show_bug.cgi?id=51604
1635 * docs/GNUmakefile.am:
1636 - Point to JavaScriptCore in its new location.
1638 2010-12-29 Martin Robinson <mrobinson@igalia.com>
1642 * webkit/webkitwebinspector.cpp: Add missing DumpRenderTreeSupportGtk include.
1644 2010-12-29 Martin Robinson <mrobinson@igalia.com>
1646 [GTK] GSettings warning is concealing real warnings on the build bots
1647 https://bugs.webkit.org/show_bug.cgi?id=51691
1649 Reviewed by Xan Lopez.
1651 Do not print the GSettings warning message when running in DumpRenderTree.
1653 * webkit/webkitwebinspector.cpp:
1654 (inspectorGSettings): Do not print the GSettings warning if we are running
1655 in DumpRenderTree. This should clean up the test results page a great deal.
1657 2010-12-28 Martin Robinson <mrobinson@igalia.com>
1659 Reviewed by Xan Lopez.
1661 [GTK] Closing a window during an onload event can trigger serious GLib warnings
1662 https://bugs.webkit.org/show_bug.cgi?id=51686
1664 Don't emit the close-web-view signal immediately during execution of closeWindowSoon.
1665 The signal handler may choose to destroy the web view while handling that signal,
1666 which may remove the last reference to the web view. FrameLoaderClient depends on the
1667 view still existing though. Instead, let the caller finish executing and emit the signal
1668 after a 0 length timeout. This matches the behavior on the Windows and Mac ports.
1670 * WebCoreSupport/ChromeClientGtk.cpp:
1671 (WebKit::ChromeClient::ChromeClient): Initialize the timer id.
1672 (WebKit::emitCloseWebViewSignalLater): Callback for the timer.
1673 (WebKit::ChromeClient::closeWindowSoon): Do the actual signal invocation after
1674 the caller finishes its tasks.
1675 * WebCoreSupport/ChromeClientGtk.h: Add a new member for the timer id. We
1676 can use this to prevent emitting the close-web-view signal twice.
1678 2010-12-28 Martin Robinson <mrobinson@igalia.com>
1680 Reviewed by Eric Seidel.
1682 [GTK] Clean up usage of NULL in webkitwebframe.cpp
1683 https://bugs.webkit.org/show_bug.cgi?id=51685
1685 Replace occurrences of NULL with 0, in webkitwebframe.cpp. Not all
1686 uses of NULL have been changed, as certain GLib functions require
1687 an explicit NULL as a sentinel.
1689 * webkit/webkitwebframe.cpp:
1690 (webkit_web_frame_get_data_source_from_core_loader):
1691 (webkit_web_frame_class_init):
1692 (webkit_web_frame_new):
1693 (webkit_web_frame_get_title):
1694 (webkit_web_frame_get_uri):
1695 (webkit_web_frame_get_web_view):
1696 (webkit_web_frame_get_name):
1697 (webkit_web_frame_get_parent):
1698 (webkit_web_frame_load_string):
1699 (webkit_web_frame_load_alternate_string):
1700 (webkit_web_frame_find_frame):
1701 (webkit_web_frame_get_global_context):
1702 (webkit_web_frame_get_data_source):
1703 (webkit_web_frame_get_provisional_data_source):
1704 (webkit_web_frame_print_full):
1705 (webkit_web_frame_get_security_origin):
1706 (webkit_web_frame_get_network_response):
1708 2010-12-27 Martin Robinson <mrobinson@igalia.com>
1710 Reviewed by Ryosuke Niwa.
1712 [GTK] EditorClient::generateEditorCommands queues up "null string" commands
1713 https://bugs.webkit.org/show_bug.cgi?id=51569
1715 Prevent adding "null string" editor commands by first checking whether or not
1716 the command string is null in generateEditorCommands before appending it to the
1717 list of pending editor command strings.
1719 * WebCoreSupport/EditorClientGtk.cpp:
1720 (WebKit::EditorClient::generateEditorCommands): Check for the null string (no
1721 command for this key combination) before appending a command string to the list of
1722 pending editor commands.
1723 (WebKit::EditorClient::executePendingEditorCommands): Add an ASSERT which detects
1724 null command strings.
1726 2010-12-27 Xan Lopez <xlopez@igalia.com>
1728 Reviewed by Martin Robinson.
1730 Remove unneeded includes from our headers.
1732 * WebCoreSupport/PasteboardHelperGtk.h: ditto.
1733 * webkit/webkitprivate.h: ditto.
1734 * webkit/webkitsoupauthdialog.h: ditto.
1736 2010-12-21 Philippe Normand <pnormand@igalia.com>
1738 Reviewed by Eric Seidel.
1740 [GTK] minimal build with --database fails
1741 https://bugs.webkit.org/show_bug.cgi?id=51394
1743 * webkit/webkitprivate.cpp:
1744 (webkit_init): Use cacheStorage() only if the
1745 OFFLINE_WEB_APPLICATIONS feature is enabled.
1747 2010-12-22 Sam Weinig <sam@webkit.org>
1749 Reviewed by Darin Adler.
1751 WebKit2 needs to mirror the frame tree in the UIProcess
1752 https://bugs.webkit.org/show_bug.cgi?id=51546
1754 - Add client functions to notify that a frame has been added or
1755 removed from the page cache.
1757 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1758 (WebKit::FrameLoaderClient::didSaveToPageCache):
1759 (WebKit::FrameLoaderClient::didRestoreFromPageCache):
1760 * WebCoreSupport/FrameLoaderClientGtk.h:
1762 2010-12-22 Xan Lopez <xlopez@igalia.com>
1764 Reviewed by Gustavo Noronha.
1766 * NEWS: update for 1.3.9 release.
1768 2010-12-20 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
1770 Reviewed by Xan Lopez.
1772 Add WebPlugin, WebPluginDatabase, and ViewportAttributes to the
1773 documentation control files, in preparation for 1.3.8. Also take
1774 the opportunity to add descriptions to WebPlugin and
1777 * docs/GNUmakefile.am:
1778 * docs/webkitgtk-docs.sgml:
1779 * docs/webkitgtk-sections.txt:
1780 * webkit/webkitwebplugin.cpp:
1781 * webkit/webkitwebplugindatabase.cpp:
1783 2010-12-20 Xan Lopez <xlopez@igalia.com>
1785 Reviewed by Gustavo Noronha.
1787 * GNUmakefile.am: add missing files.
1788 * NEWS: update for 1.3.8 release.
1790 2010-12-18 Antonio Gomes <agomes@rim.com>
1792 Reviewed by Xan Lopez.
1794 [GTK+] Simplify spatial navigation handling in EditorClientGtk.cpp
1795 https://bugs.webkit.org/show_bug.cgi?id=51302
1798 1) The editor command for LEFT arrow key press without modifier
1799 from MoveBackward to MoveLeft;
1800 2) And similarly changes the editor command for RIGHT arrow key
1801 press without modifier from MoveForward to MoveRight.
1803 It has no implications since SelectionController::modifyMovingRight()
1804 handles "MoveRight" equaly to how SelectionController::modifyMovingForward()
1805 handles "MoveForward" when granularity is 'CharacterGranularity'. The former
1806 falls back to the later in the case of other editor commands.
1808 Analogously, the same applies to how SelectionController::modifyMovingLeft() and
1809 SelectionController::modifyMovingForward() handle "MoveLeft" and "MoveBackward"
1810 editor commands, respectively.
1812 With this change we can remove the spatial navigation hack from moveCursorCallback(),
1813 in EditorClientGtk.cpp.
1815 * WebCoreSupport/EditorClientGtk.cpp:
1816 (WebKit::moveCursorCallback):
1818 2010-12-16 Carlos Garcia Campos <cgarcia@igalia.com>
1820 Reviewed by Martin Robinson.
1822 [Gtk] scrolling artifacts
1823 https://bugs.webkit.org/show_bug.cgi?id=45029
1825 Call gdk_window_process_updates() right after moving the window
1828 * WebCoreSupport/ChromeClientGtk.cpp:
1829 (WebKit::ChromeClient::scroll):
1831 2010-12-15 Sheriff Bot <webkit.review.bot@gmail.com>
1833 Unreviewed, rolling out r74117.
1834 http://trac.webkit.org/changeset/74117
1835 https://bugs.webkit.org/show_bug.cgi?id=51113
1837 This broke the GTK1 build. (Requested by mrobinson on
1842 2010-12-15 Amruth Raj <amruthraj@motorola.com> and Ravi Phaneendra Kasibhatla <ravi.kasibhatla@motorola.com>
1844 Reviewed by Martin Robinson.
1846 Changes to enable building WebKit2 for Gtk port.
1847 (https://bugs.webkit.org/show_bug.cgi?id=37369)
1849 * GNUmakefile.am: Added WebCore/bindings/gobject to webkitgtk_sources & webkitgtk_cppflags.
1850 They should get compiled only when WebKit/gtk/GNUmakefile.am is getting included but not
1851 with WebKit2/GNUmakefile.am inclusion.
1853 2010-12-14 Carlos Garcia Campos <cgarcia@igalia.com>
1855 Reviewed by Martin Robinson.
1857 [GTK] Simplify context-menu handling code
1858 https://bugs.webkit.org/show_bug.cgi?id=49658
1860 Use gtk_container_foreach() so that we only iterate the list of
1861 children once and we avoid creating/destroying the list. It also
1862 connects the activate signal for submenu items.
1864 * webkit/webkitwebview.cpp:
1865 (contextMenuConnectActivate):
1866 (webkit_web_view_forward_context_menu_event):
1868 2010-12-14 Carlos Garcia Campos <cgarcia@igalia.com>
1870 Reviewed by Xan Lopez.
1872 [GTK] Fix several issues in r73858
1873 https://bugs.webkit.org/show_bug.cgi?id=51032
1875 - It uses both glib private data and it allocates its own private
1877 - It calls parent's dispose method from finalize.
1878 - webkit_web_plugin_get_mimetypes() uses a wrong annotation for the
1879 returned value, it should be transfer none rather than transfer
1881 - Since the mime type list is internal and we return the list and not a
1882 copy, it should never be freed by the caller, so
1883 webkit_web_plugin_mime_type_list_free() should be removed from the
1885 - Mime types list is used uninitialized.
1886 - Mention in the docs that list returned by
1887 webkit_web_plugin_database_get_plugins() must be freed with
1888 webkit_web_plugin_database_plugins_list_free().
1890 * webkit/webkitwebplugin.cpp:
1891 (webkit_web_plugin_finalize):
1892 (webkit_web_plugin_class_init):
1893 (webkit_web_plugin_init):
1894 * webkit/webkitwebplugin.h:
1895 * webkit/webkitwebplugindatabase.cpp:
1897 2010-12-14 Diego Escalante Urrelo <descalante@igalia.com>
1899 Reviewed by Xan Lopez.
1901 [gtk] misnamed gtk-doc strings for webkit_web_view_can_{c|c|p}_clipboard
1902 https://bugs.webkit.org/show_bug.cgi?id=50571
1904 * webkit/webkitwebview.cpp:
1906 2010-12-13 Xan Lopez <xlopez@igalia.com>
1908 Reviewed by Martin Robinson.
1910 [GTK] Add API to enable/disable plugins at runtime
1911 https://bugs.webkit.org/show_bug.cgi?id=50891
1913 * tests/testwebplugindatabase.c:
1914 (test_webkit_web_plugin_database_get_plugins): test that disabling
1916 * webkit/webkitwebplugin.cpp:
1917 (webkit_web_plugin_get_property): hook 'enabled' property.
1918 (webkit_web_plugin_set_property): ditto.
1919 (webkit_web_plugin_class_init): define 'enabled' property.
1920 (webkit_web_plugin_set_enabled): setter for the property.
1921 (webkit_web_plugin_get_enabled): getter for the property.
1922 * webkit/webkitwebplugin.h: add the APIs to the header.
1924 2010-12-13 Carlos Garcia Campos <cgarcia@igalia.com>
1926 Reviewed by Xan Lopez.
1928 [GTK] Do not use GET_PRIVATE macros
1929 https://bugs.webkit.org/show_bug.cgi?id=50915
1931 GET_PRIVATE macros are slow and should only be used in the object
1934 * WebCoreSupport/ContextMenuClientGtk.cpp:
1935 (WebKit::inputMethodsMenuItem):
1936 * WebCoreSupport/FrameLoaderClientGtk.cpp:
1937 (WebKit::FrameLoaderClient::postProgressFinishedNotification):
1938 (WebKit::FrameLoaderClient::setTitle):
1939 (WebKit::FrameLoaderClient::dispatchCreatePage):
1940 (WebKit::postCommitFrameViewSetup):
1941 * webkit/webkitdownload.cpp:
1942 (webkit_download_init):
1943 * webkit/webkitgeolocationpolicydecision.cpp:
1944 (webkit_geolocation_policy_decision_init):
1945 * webkit/webkithittestresult.cpp:
1946 (webkit_hit_test_result_init):
1947 * webkit/webkitnetworkrequest.cpp:
1948 (webkit_network_request_init):
1949 * webkit/webkitsecurityorigin.cpp:
1950 (webkit_security_origin_init):
1951 * webkit/webkitsecurityoriginprivate.h:
1952 * webkit/webkitviewportattributes.cpp:
1953 (webkit_viewport_attributes_init):
1954 * webkit/webkitwebbackforwardlist.cpp:
1955 (webkit_web_back_forward_list_init):
1956 * webkit/webkitwebdatabase.cpp:
1957 (webkit_web_database_init):
1958 * webkit/webkitwebdatasource.cpp:
1959 (webkit_web_data_source_init):
1960 * webkit/webkitwebframe.cpp:
1961 (webkit_web_frame_init):
1962 (webkit_web_frame_new):
1963 * webkit/webkitwebframeprivate.h:
1964 * webkit/webkitwebhistoryitem.cpp:
1965 (webkit_web_history_item_init):
1966 * webkit/webkitwebinspector.cpp:
1967 (webkit_web_inspector_init):
1968 * webkit/webkitwebnavigationaction.cpp:
1969 (webkit_web_navigation_action_init):
1970 * webkit/webkitwebplugin.cpp:
1971 (webkit_web_plugin_init):
1972 * webkit/webkitwebplugindatabase.cpp:
1973 (webkit_web_plugin_database_init):
1974 * webkit/webkitwebplugindatabaseprivate.h:
1975 * webkit/webkitwebpluginprivate.h:
1976 * webkit/webkitwebpolicydecision.cpp:
1977 (webkit_web_policy_decision_init):
1978 * webkit/webkitwebresource.cpp:
1979 (webkit_web_resource_init):
1980 * webkit/webkitwebresourceprivate.h:
1981 * webkit/webkitwebsettings.cpp:
1982 (webkit_web_settings_init):
1983 * webkit/webkitwebview.cpp:
1984 (PopupMenuPositionFunc):
1985 (webkit_web_view_forward_context_menu_event):
1986 (webkit_web_view_drag_end):
1987 (webkit_web_view_drag_data_get):
1988 (webkit_web_view_query_tooltip):
1989 (webkit_web_view_init):
1990 * webkit/webkitwebwindowfeatures.cpp:
1991 (webkit_web_window_features_init):
1993 2010-10-28 MORITA Hajime <morrita@google.com>
1995 Reviewed by Ojan Vafai.
1997 spellcheck does not check pasted text
1998 https://bugs.webkit.org/show_bug.cgi?id=40092
2000 Added a stub implememntation.
2002 * WebCoreSupport/EditorClientGtk.h:
2003 (WebKit::EditorClient::requestCheckingOfString):
2005 2010-12-12 Xan Lopez <xlopez@igalia.com>
2007 Rubber-stamped by Martin Robinson.
2009 * webkit/webkitwebplugin.h: add a note about the extension list
2010 being a NULL-terminated array.
2012 2010-12-12 Xan Lopez <xlopez@igalia.com>
2014 Rubber-stamped by Gustavo Noronha.
2016 Stop checking for glib >= 2.16, we have dependend on a newer
2017 version for a long time now.
2019 * tests/testatk.c: Stop checking for glib >= 2.16.
2020 * tests/testatkroles.c: ditto.
2021 * tests/testdomdocument.c: ditto.
2022 * tests/testdomdomwindow.c: ditto.
2023 * tests/testdomnode.c: ditto.
2024 * tests/testglobals.c: ditto.
2025 * tests/testhttpbackend.c: ditto.
2026 * tests/testloading.c: ditto.
2027 * tests/testmimehandling.c: ditto.
2028 * tests/testnetworkrequest.c: ditto.
2029 * tests/testnetworkresponse.c: ditto.
2030 * tests/testwebbackforwardlist.c: ditto.
2031 * tests/testwebdatasource.c: ditto.
2032 * tests/testwebframe.c: ditto.
2033 * tests/testwebhistoryitem.c: ditto.
2034 * tests/testwebresource.c: ditto.
2035 * tests/testwebsettings.c: ditto.
2036 * tests/testwebview.c: ditto.
2037 * tests/testwindow.c: ditto.
2039 2010-12-11 Xan Lopez <xlopez@igalia.com>
2041 Reviewed by Martin Robinson.
2043 [GTK] Add APIs for plugin management
2044 https://bugs.webkit.org/show_bug.cgi?id=50827
2046 Add WebKitWebPluginDatabase and WebKitWebPlugin classes for basic
2047 plugin management at the client level. For now they provide
2048 "read-only" access to the plugin list.
2050 * GNUmakefile.am: add new files to the build.
2051 * tests/testwebplugindatabase.c: Test that the database contains
2052 the test plugin, which should always be loaded.
2053 * webkit/webkit.h: add new headers.
2054 * webkit/webkitdefines.h: add new defines.
2055 * webkit/webkitwebplugin.cpp: An new class representing a plugin object.
2056 * webkit/webkitwebplugin.h: ditto.
2057 * webkit/webkitwebplugindatabase.cpp: A new class that contains the list of active plugins.
2058 * webkit/webkitwebplugindatabase.h: ditto.
2059 * webkit/webkitwebplugindatabaseprivate.h: Private header.
2060 * webkit/webkitwebpluginprivate.h: Private header.
2061 * webkit/webkitwebview.cpp:
2062 (webkit_get_web_plugin_database): returns the WebKitWebPluginDatabase for this session.
2063 * webkit/webkitwebview.h: add method to header.
2065 2010-12-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2067 Reviewed by Martin Robinson.
2069 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
2070 https://bugs.webkit.org/show_bug.cgi?id=50698
2072 Split private bits of several objects to their own private
2073 headers, and to their implementation files.
2076 * WebCoreSupport/ChromeClientGtk.cpp:
2077 * WebCoreSupport/EditorClientGtk.cpp:
2078 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2079 (WebKit::FrameLoaderClient::dispatchWillSendRequest):
2080 * webkit/webkitdownload.cpp:
2081 (webkit_download_set_response):
2082 * webkit/webkitdownloadprivate.h: Added.
2083 * webkit/webkithittestresult.cpp:
2085 * webkit/webkithittestresultprivate.h: Added.
2086 * webkit/webkitnetworkresponse.cpp:
2089 * webkit/webkitnetworkresponseprivate.h: Added.
2090 * webkit/webkitprivate.cpp:
2091 * webkit/webkitprivate.h:
2092 * webkit/webkitsecurityorigin.cpp:
2093 (webkit_security_origin_get_web_database):
2096 * webkit/webkitsecurityoriginprivate.h: Added.
2097 * webkit/webkitviewportattributes.cpp:
2098 * webkit/webkitviewportattributesprivate.h: Added.
2099 * webkit/webkitwebbackforwardlist.cpp:
2100 * webkit/webkitwebbackforwardlistprivate.h: Added.
2101 * webkit/webkitwebdatabase.cpp:
2102 * webkit/webkitwebframe.cpp:
2103 (webkit_web_frame_get_network_response):
2104 * webkit/webkitwebhistoryitem.cpp:
2105 * webkit/webkitwebhistoryitemprivate.h: Added.
2106 * webkit/webkitwebnavigationaction.cpp:
2109 * webkit/webkitwebnavigationactionprivate.h: Added.
2110 * webkit/webkitwebpolicydecision.cpp:
2111 * webkit/webkitwebpolicydecisionprivate.h: Added.
2112 * webkit/webkitwebresource.cpp:
2113 * webkit/webkitwebresourceprivate.h: Added.
2114 * webkit/webkitwebsettings.cpp:
2115 * webkit/webkitwebsettingsprivate.h: Added.
2116 * webkit/webkitwebview.cpp:
2118 2010-12-10 Alejandro G. Castro <alex@igalia.com>
2120 Unreviewed, fixed small typo in the name of a function.
2122 * webkit/webkitwebsettings.cpp:
2123 (getAvailableDictionariesCallback):
2124 (webkit_web_settings_set_property):
2126 2010-12-09 Alejandro G. Castro <alex@igalia.com>
2128 Reviewed by Martin Robinson.
2130 [GTK] Add hasSpellingMarker support to the DRT
2131 https://bugs.webkit.org/show_bug.cgi?id=50739
2133 Added a new private API function to support the spelling marker
2136 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2137 (DumpRenderTreeSupportGtk::webkitWebFrameSelectionHasSpellingMarker):
2138 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2140 2010-12-10 Alejandro G. Castro <alex@igalia.com>
2142 Reviewed by Martin Robinson.
2144 [GTK] Choose a dictionary in case there is no one defined or the
2145 env LANG does not propose one
2146 https://bugs.webkit.org/show_bug.cgi?id=50738
2148 In case no dict is set and we can not find one using the
2149 environment just get the first dictionary installed in the list.
2151 * webkit/webkitwebsettings.cpp:
2152 (getAvilableDictionariesCallback):
2153 (webkit_web_settings_set_property):
2155 2010-12-10 Martin Robinson <mrobinson@igalia.com>
2157 Reviewed by Gustavo Noronha Silva.
2159 Remove unnecessary variable names from DumpRenderTreeSupportGtk
2160 https://bugs.webkit.org/show_bug.cgi?id=50815
2162 There were some unnecessary variable names in DumpRenderTreeSupportGtk,
2165 * WebCoreSupport/DumpRenderTreeSupportGtk.h: Do it.
2167 2010-12-10 Joone Hur <joone@kldp.org>
2169 Reviewed by Xan Lopez.
2171 [GTK] Unskipping some test cases in /userscripts dependent on addUserStyleSheet
2172 https://bugs.webkit.org/show_bug.cgi?id=50808
2174 Unskipping the following test cases:
2175 userscripts/mixed-case-stylesheet.html
2176 userscripts/simple-stylesheet.html
2177 userscripts/user-style-all-frames.html
2179 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2180 (DumpRenderTreeSupportGtk::addUserStyleSheet): Added "bool allFrames" parameter.
2181 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2183 2010-12-10 Joone Hur <joone@kldp.org>
2185 Reviewed by Eric Seidel.
2187 [GTK] Add DRT support for pageProperty, isPageBoxVisible, pageSizeAndMarginsInPixels, and addUserStyleSheet
2188 https://bugs.webkit.org/show_bug.cgi?id=50783
2190 This patch allows to unskip the following test cases:
2191 printing/page-rule-selection.html
2192 printing/page-format-data.html
2194 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2195 (DumpRenderTreeSupportGtk::pageProperty): Added.
2196 (DumpRenderTreeSupportGtk::isPageBoxVisible): Ditto.
2197 (DumpRenderTreeSupportGtk::pageSizeAndMarginsInPixels): Ditto.
2198 (DumpRenderTreeSupportGtk::addUserStyleSheet): Ditto.
2199 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2201 2010-12-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2203 Reviewed by Martin Robinson.
2205 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
2206 https://bugs.webkit.org/show_bug.cgi?id=50698
2208 Split private bits of WebKitWebInspector to its own private
2209 header, and to its implementation file.
2211 * WebCoreSupport/InspectorClientGtk.cpp:
2212 * webkit/webkitprivate.cpp:
2213 * webkit/webkitprivate.h:
2214 * webkit/webkitwebinspector.cpp:
2215 (isSchemaAvailable):
2216 (inspectorGSettings):
2217 * webkit/webkitwebinspectorprivate.h: Added.
2218 * webkit/webkitwebview.cpp:
2220 2010-12-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2222 Reviewed by Martin Robinson.
2224 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
2225 https://bugs.webkit.org/show_bug.cgi?id=50698
2227 Split private bits of WebKitNetworkRequest to its own private
2228 header, and to its implementation file. Also take the opportunity
2229 to use PlatformRefPtr for NetworkRequest where it makes sense, and
2230 make the creation less verbose by adding kitNew.
2232 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2233 (WebKit::FrameLoaderClient::dispatchWillSendRequest):
2234 (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType):
2235 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2236 (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2237 (WebKit::FrameLoaderClient::download):
2238 (WebKit::FrameLoaderClient::startDownload):
2239 * webkit/webkitdownload.cpp:
2240 * webkit/webkitnetworkrequest.cpp:
2243 * webkit/webkitnetworkrequestprivate.h: Added.
2244 * webkit/webkitprivate.cpp:
2245 * webkit/webkitprivate.h:
2246 * webkit/webkitwebdatasource.cpp:
2247 (webkit_web_data_source_get_initial_request):
2248 (webkit_web_data_source_get_request):
2249 * webkit/webkitwebframe.cpp:
2251 2010-12-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2253 Reviewed by Martin Robinson.
2255 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
2256 https://bugs.webkit.org/show_bug.cgi?id=50698
2258 Split private bits of WebKitWebFrame to its own private header, and
2259 to its implementation file.
2262 * WebCoreSupport/ChromeClientGtk.cpp:
2263 * WebCoreSupport/DragClientGtk.cpp:
2264 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2265 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2266 * webkit/webkitprivate.cpp:
2267 * webkit/webkitprivate.h:
2268 * webkit/webkitwebdatasource.cpp:
2269 * webkit/webkitwebframe.cpp:
2270 (WebKit::getViewFromFrame):
2273 * webkit/webkitwebframeprivate.h: Added.
2274 * webkit/webkitwebpolicydecision.cpp:
2275 * webkit/webkitwebview.cpp:
2277 2010-12-09 Antonio Gomes <agomes@rim.com>
2279 Reviewed by Martin Robinson.
2281 [Gtk] Populate DumpRenderTreeSupportGtk (part IV)
2282 https://bugs.webkit.org/show_bug.cgi?id=48429
2284 Moved also webkit_worker_thread_count() to DumpRenderTreeSupportGtk,
2285 since it was only used by DRT for now.
2287 Since this method was the only one in webkitworker.cpp, the file was
2291 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2292 (DumpRenderTreeSupportGtk::workerThreadCount):
2293 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2294 * webkit/webkitprivate.h:
2295 * webkit/webkitworkers.cpp: Removed.
2297 2010-12-06 Philippe Normand <pnormand@igalia.com>
2299 Reviewed by Martin Robinson.
2301 [GTK] Support the Mozilla-style Fullscreen Javascript API
2302 https://bugs.webkit.org/show_bug.cgi?id=50572
2304 Fullscreen API support. It is controlled at runtime using a new
2305 setting called enable-fullscreen, set to FALSE by default.
2307 * WebCoreSupport/ChromeClientGtk.cpp:
2308 (WebKit::ChromeClient::supportsFullScreenForElement):
2309 (WebKit::ChromeClient::enterFullScreenForElement):
2310 (WebKit::ChromeClient::exitFullScreenForElement):
2311 * WebCoreSupport/ChromeClientGtk.h:
2312 * webkit/webkitwebsettings.cpp:
2313 (webkit_web_settings_class_init):
2314 (webkit_web_settings_set_property):
2315 (webkit_web_settings_get_property):
2316 (webkit_web_settings_copy):
2317 * webkit/webkitwebview.cpp:
2318 (webkit_web_view_update_settings):
2320 2010-12-09 Joone Hur <joone@kldp.org>
2322 Reviewed by Martin Robinson.
2324 [GTK] Support for viewport meta tag
2325 https://bugs.webkit.org/show_bug.cgi?id=45443
2327 This patch adds a new gobject to offer the viewport properties to user agents.
2328 It is WebKitViewportAttributes that contains the viewport size, initial scale with limits,
2329 and information about whether a user is able to scale the contents in the viewport.
2331 This feature was introduced by Safari on the iPhone. For more information on
2332 the viewport properties, refer to the Safari reference library at
2333 http://developer.apple.com/safari/library/documentation/appleapplications/reference/safarihtmlref/articles/metatags.html
2335 * GNUmakefile.am: Added webkitviewportattributes.h webkitviewportattributes.cpp.
2336 * WebCoreSupport/ChromeClientGtk.cpp:
2337 (WebKit::ChromeClient::dispatchViewportDataDidChange): Added this callback to know whether the viewport arguments is available.
2338 * WebCoreSupport/ChromeClientGtk.h:
2339 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2340 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport): Added this function to compute the viewport attributes with the given availableWidth and availableHeight.
2341 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2342 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2343 (WebKit::postCommitFrameViewSetup): Invalidate the viewport attributes.
2345 * webkit/webkitdefines.h:
2346 * webkit/webkitprivate.h: Added webkitViewportAttributesRecompute as a private function.
2347 * webkit/webkitviewportattributes.cpp: Added.
2348 (webkit_viewport_attributes_class_init):
2349 (webkit_viewport_attributes_init):
2350 (webkit_viewport_attributes_get_property):
2351 (webkit_viewport_attributes_set_property):
2352 (webkitViewportAttributesRecompute): Recompute the optimal viewport attributes and emit the viewport-attributes-changed signal.
2353 (webkit_viewport_attributes_recompute): a public API for calling webkitViewportAttributesRecompute.
2354 * webkit/webkitviewportattributes.h: Added.
2355 * webkit/webkitwebview.cpp:
2356 (webkit_web_view_get_property): Added PROP_VIEWPORT_ATTRIBUTES.
2357 (webkit_web_view_dispose): Deallocate the WebKitViewportAttributes instance.
2358 (webkit_web_view_class_init): Added the viewport-attributes-recompute-requested and viewport-attributes-changed signals.
2359 (webkit_web_view_init): Set the WebKitViewportAttributes instance.
2360 (webkit_web_view_get_viewport_attributes): Added a getter to obtain the WebKitViewportAttributes instance held by the given WebKitWebView.
2361 * webkit/webkitwebview.h:
2362 * webkit/webkitwebviewprivate.h: Added WebKitViewportAttributes as a private variable.
2364 2010-12-09 Xan Lopez <xlopez@igalia.com>
2366 Reviewed by Martin Robinson.
2368 Fix 'make install' woes with some versions of automake.
2370 * GNUmakefile.am: use $(top_builddir) instead of $(builddir),
2371 since we actually want a valid path for the file regardless of the
2372 place from where the script is called.
2374 2010-12-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2376 Build fix. Take webView{Enter,Exit}Fullscreen back out of the
2377 WebKit namespace, and remove a function signature that got in by
2378 mistake because of a bad merge.
2380 * webkit/webkitprivate.h:
2381 * webkit/webkitwebview.cpp:
2385 2010-12-08 Brian Weinstein <bweinstein@apple.com>
2387 Reviewed by John Sullivan.
2389 Layering Violation in ContextMenu - member variable of type HitTestResult
2390 https://bugs.webkit.org/show_bug.cgi?id=50586
2392 Update users of ContextMenu and ContextMenuController to match where the new functions
2395 * WebCoreSupport/ContextMenuClientGtk.cpp:
2396 (WebKit::ContextMenuClient::getCustomMenuFromDefaultItems):
2398 2010-12-08 Martin Robinson <mrobinson@igalia.com>
2400 Reviewed by John Sullivan.
2402 [GTK] Layering violation in ContextMenuGtk.cpp
2403 https://bugs.webkit.org/show_bug.cgi?id=50676
2405 ContextMenuGtk accesses the page's ContextMenuController, which is a layering
2406 violation. This was fixed for Mac with change r73469. We make a similar fix here
2407 by moving the "activated" signal connection to the WebKit layer.
2409 * webkit/webkitwebview.cpp:
2410 (popupMenuItemActivated): Have ContextMenuController handle this signal.
2411 (webkit_web_view_forward_context_menu_event): For all items in the untouched
2412 context menu, connect their "activated" signal to the new popupMenuItemActivated
2415 2010-12-08 Antonio Gomes <agomes@rim.com>
2417 Reviewed by Martin Robinson.
2419 [Gtk] Populate DumpRenderTreeSupportGtk (part III)
2420 https://bugs.webkit.org/show_bug.cgi?id=48429
2422 Adjusted some call sites of previously internal API declared
2423 webkitprivate.h that have moved to DumpRenderTreeSupportGtk.
2425 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2426 (DumpRenderTreeSupportGtk::gcCollectJavascriptObjects):
2427 (DumpRenderTreeSupportGtk::gcCollectJavascriptObjectsOnAlternateThread):
2428 (DumpRenderTreeSupportGtk::gcCountJavascriptObjects):
2429 (DumpRenderTreeSupportGtk::layoutFrame):
2430 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2431 * webkit/webkitprivate.h:
2432 * webkit/webkitwebframe.cpp:
2434 2010-12-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2436 Reviewed by Martin Robinson.
2438 [GTK] Split webkitprivate.{cpp,h} in more manageable chunks
2439 https://bugs.webkit.org/show_bug.cgi?id=50698
2441 Split private bits of WebKitWebView to its own private header, and
2442 to its implementation file. Take the opportunity to fix includes
2443 sorting to comply with the style guide.
2445 * WebCoreSupport/ChromeClientGtk.cpp:
2446 (WebKit::ChromeClient::enterFullscreenForNode):
2447 (WebKit::ChromeClient::exitFullscreenForNode):
2448 * WebCoreSupport/ContextMenuClientGtk.cpp:
2449 * WebCoreSupport/DragClientGtk.cpp:
2450 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2451 * WebCoreSupport/EditorClientGtk.cpp:
2452 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2453 * WebCoreSupport/InspectorClientGtk.cpp:
2454 * WebCoreSupport/PasteboardHelperGtk.cpp:
2455 * webkit/webkitprivate.cpp:
2457 * webkit/webkitprivate.h:
2458 * webkit/webkitwebbackforwardlist.cpp:
2459 * webkit/webkitwebdatasource.cpp:
2460 * webkit/webkitwebframe.cpp:
2461 * webkit/webkitwebview.cpp:
2464 (WebKit::webViewEnterFullscreen):
2465 (WebKit::webViewExitFullscreen):
2466 * webkit/webkitwebviewprivate.h: Added.
2468 2010-12-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2470 Reviewed by Xan Lopez.
2472 The storage for the subresources is a GHashTable which does not
2473 guarantee order, so we need to make our checking more resilient.
2475 * tests/testwebresource.c:
2476 (test_web_resource_sub_resource_loading):
2478 2010-12-08 Alejandro G. Castro <alex@igalia.com>
2480 Reviewed by Gustavo Noronha Silva.
2482 Fix assertion in the API test, we are requesting the favicon and
2483 the subresource so we have to make sure we are assigning just the
2486 * tests/testwebresource.c:
2487 (resource_request_starting_sub_cb):
2489 2010-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2491 Reviewed by Martin Robinson.
2493 [GTK] clears the subresources prematurely
2494 https://bugs.webkit.org/show_bug.cgi?id=50634
2496 Make adding the main resource explicit, and only clear
2497 subresources when the new load is committed, avoid clearing them
2500 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2501 (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
2502 (WebKit::FrameLoaderClient::provisionalLoadStarted):
2503 (WebKit::FrameLoaderClient::prepareForDataSourceReplacement):
2504 (WebKit::postCommitFrameViewSetup):
2505 * tests/testwebdatasource.c:
2506 (notify_load_status_lifetime_cb):
2507 (test_webkit_web_data_source_lifetime):
2509 * webkit/webkitprivate.h:
2510 * webkit/webkitwebview.cpp:
2511 (webkit_web_view_add_main_resource):
2512 (webkit_web_view_add_resource):
2513 (webkit_web_view_clear_resources):
2515 2010-12-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
2517 Reviewed by Xan Lopez.
2519 [GTK] testwebdatasource - unreachable test is broken
2520 https://bugs.webkit.org/show_bug.cgi?id=50629
2522 Fix, and disable testwebdatasource's unreachable test (it is not
2523 passing now that it actually tests what it should). This also
2524 fixes the wait timer to actually work as expected.
2526 * tests/testwebdatasource.c:
2527 (notify_load_status_unreachable_cb):
2528 (notify_load_status_cb):
2529 (test_webkit_web_data_source):
2531 2010-12-07 Martin Robinson <mrobinson@igalia.com>
2533 Unreviewed, rolling out r73392.
2534 http://trac.webkit.org/changeset/73392
2535 https://bugs.webkit.org/show_bug.cgi?id=50489
2537 This commit caused crashes on the GTK+ bots
2539 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2540 (WebKit::FrameLoaderClient::finishedLoading):
2541 * webkit/webkitwebview.cpp:
2542 (webkit_web_view_get_encoding):
2544 2010-12-06 Nate Chapin <japhet@chromium.org>
2546 Reviewed by Adam Barth.
2548 Update calls to DocumentWriter.
2549 https://bugs.webkit.org/show_bug.cgi?id=50489
2551 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2552 (WebKit::FrameLoaderClient::finishedLoading):
2553 * webkit/webkitwebview.cpp:
2554 (webkit_web_view_get_encoding):
2556 2010-12-06 Martin Robinson <mrobinson@igalia.com>
2558 Reviewed by Xan Lopez.
2560 [GTK] Build is broken after r73353
2561 https://bugs.webkit.org/show_bug.cgi?id=50568
2563 Fix the gtk-doc build by making all members of the cache model
2564 enum public. gtk-doc does not support making only some enum
2565 members private. We should also expose it so that users querying
2566 the cache model do not get mysterious, undocumented results.
2568 * webkit/webkitwebview.h: Fix gtk-doc for the cache model enum.
2570 2010-12-06 Derek Weitzel <djw8605@gmail.com>
2572 Reviewed by Martin Robinson.
2574 [GTK] API Documentation referencing depreciated GTK_WIDGET_TOPLEVEL
2575 https://bugs.webkit.org/show_bug.cgi?id=50512
2577 Fixed reference to depreciated GTK_WIDGET_TOPLEVEL.
2579 * webkit/webkitwebview.cpp:
2581 2010-12-06 Joone Hur <joone@kldp.org>
2583 Reviewed by Xan Lopez.
2585 [GTK] The webkit cache model needs to be set when WebFrameLoaderClient::didPerformFirstNavigation() is called
2586 https://bugs.webkit.org/show_bug.cgi?id=50430
2588 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2589 (WebKit::FrameLoaderClient::didPerformFirstNavigation): Set the webview cache model.
2590 * webkit/webkitprivate.cpp:
2591 (webkit_init): Removed the code of setting the webview cache model.
2593 2010-12-04 Antonio Gomes <agomes@rim.com>
2595 Reviewed by Martin Robinson.
2597 [Gtk] Populate DumpRenderTreeSupportGtk (Part II)
2598 https://bugs.webkit.org/show_bug.cgi?id=48429
2600 Moved more private method declared with WEBKIT_API to
2601 DumpRenderTreeSupportGtk, since they were only being used by DRT.
2603 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2604 (DumpRenderTreeSupportGtk::executeCoreCommandByName):
2605 (DumpRenderTreeSupportGtk::isCommandEnabled):
2606 (DumpRenderTreeSupportGtk::whiteListAccessFromOrigin):
2607 (DumpRenderTreeSupportGtk::resetOriginAccessWhiteLists):
2608 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2609 * webkit/webkitprivate.cpp:
2610 * webkit/webkitprivate.h:
2611 * webkit/webkitwebview.cpp:
2613 2010-11-08 Antonio Gomes <agomes@rim.com>
2615 Reviewed by Martin Robinson.
2617 [Gtk] Populate DumpRenderTreeSupportGtk
2618 https://bugs.webkit.org/show_bug.cgi?id=48429
2620 Moved most of the webkit_web_frame* methods defined as private APIs in webkitprivate.h
2621 to DumpRenderTreeSupportGtk, as static class methods. These methods had
2622 not gone throught the formal API review process and were only being used by DRT for now.
2624 The essence of each original method name were kept. For example
2625 webkit_web_frame_get_children(...) was renamed to DumpRenderTreeSupportGtk::getFrameChildren(...),
2628 Also some of the method bodies were changed to return non-glib types (gchar* -> CString).
2630 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
2631 (DumpRenderTreeSupportGtk::getFrameChildren):
2632 (DumpRenderTreeSupportGtk::getInnerText):
2633 (DumpRenderTreeSupportGtk::dumpRenderTree):
2634 (DumpRenderTreeSupportGtk::counterValueForElementById):
2635 (DumpRenderTreeSupportGtk::pageNumberForElementById):
2636 (DumpRenderTreeSupportGtk::numberOfPagesForFrame):
2637 (DumpRenderTreeSupportGtk::getPendingUnloadEventCount):
2638 (DumpRenderTreeSupportGtk::pauseAnimation):
2639 (DumpRenderTreeSupportGtk::pauseTransition):
2640 (DumpRenderTreeSupportGtk::pauseSvgAnimation):
2641 (DumpRenderTreeSupportGtk::markerTextForListItem):
2642 (DumpRenderTreeSupportGtk::numberOfActiveAnimations):
2643 (DumpRenderTreeSupportGtk::suspendAnimations):
2644 (DumpRenderTreeSupportGtk::resumeAnimations):
2645 (DumpRenderTreeSupportGtk::clearMainFrameName):
2646 (DumpRenderTreeSupportGtk::getFocusedAccessibleElement):
2647 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2648 * webkit/webkitprivate.h:
2649 * webkit/webkitwebframe.cpp:
2651 2010-12-02 Martin Robinson <mrobinson@igalia.com>
2653 Reviewed by Xan Lopez.
2655 [GTK] DumpRenderTree has two copies of JavaScriptCore
2656 https://bugs.webkit.org/show_bug.cgi?id=49877
2658 Keep WebKit/WebCore symbols hidden.
2660 * GNUmakefile.am: Move the symbol visibility rules here, because
2661 now JSC symbols are visible, but WebCore/WebKit symbols are hidden.
2663 2010-12-02 Daniel Bates <dbates@rim.com>
2665 Ignore WebKit/gtk/docs/GNUmakefile.in and WebKit/gtk/po/*.pot so that
2666 these files do not appear in an svn stat. This change makes SVN
2667 consistent with the current Git ignore behavior for these files.
2669 * docs: Added property svn:ignore.
2670 * po: Added property svn:ignore.
2672 2010-12-01 Jia Pu <jpu@apple.com>
2674 Reviewed by Darin Adler.
2676 Support multiple correction candidates panel for misspelled word on Mac OS X.
2677 https://bugs.webkit.org/show_bug.cgi?id=50137
2678 <rdar://problem/8568059>
2680 Adopted new function signature defined in base class.
2682 * WebCoreSupport/EditorClientGtk.cpp:
2683 (WebKit::EditorClient::getGuessesForWord):
2684 * WebCoreSupport/EditorClientGtk.h:
2686 2010-11-30 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
2688 Reviewed by Martin Robinson.
2690 [GTK] Fix wrong type in assert return value
2691 https://bugs.webkit.org/show_bug.cgi?id=50208
2693 Use appropriate return type in different g_return_val_if_fail(). This
2694 removes some compiler warning.
2696 * webkit/webkitwebdatasource.cpp:
2697 (webkit_web_data_source_is_loading):
2698 * webkit/webkitwebframe.cpp:
2699 (webkit_web_frame_page_number_for_element_by_id):
2700 (webkit_web_frame_number_of_pages):
2702 2010-11-30 Mario Sanchez Prada <msanchez@igalia.com>
2704 Reviewed by Chris Fleizach.
2706 [GTK] Implement ROLE_COMBO_BOX
2707 https://bugs.webkit.org/show_bug.cgi?id=25678
2709 New test to check the implementation of the combo boxes.
2712 (testWebkitAtkComboBox): New test, checking that the roles and the
2713 implemented interfaces for a combo box and its descendants work.
2714 (main): Added the new unit test.
2716 2010-11-30 Carlos Garcia Campos <cgarcia@igalia.com>
2718 Reviewed by Martin Robinson.
2720 [GTK] Test fast/events/mouseover-mouseout2.html crashes
2721 https://bugs.webkit.org/show_bug.cgi?id=50214
2723 * WebCoreSupport/ChromeClientGtk.cpp:
2724 (WebKit::ChromeClient::mouseDidMoveOverElement):
2725 * webkit/webkitwebview.cpp:
2726 (webkit_web_view_query_tooltip):
2728 2010-11-30 Sheriff Bot <webkit.review.bot@gmail.com>
2730 Unreviewed, rolling out r72764.
2731 http://trac.webkit.org/changeset/72764
2732 https://bugs.webkit.org/show_bug.cgi?id=50215
2734 This change is causing assertion failures on the debug bots.
2735 (Requested by mrobinson on #webkit).
2737 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2738 (WebKit::notifyStatus):
2742 2010-11-29 Xan Lopez <xlopez@igalia.com>
2744 Reviewed by Martin Robinson.
2746 * NEWS: update for 1.3.7 release.
2748 2010-11-29 Carlos Garcia Campos <cgarcia@igalia.com>
2750 Reviewed by Xan Lopez.
2752 [Gtk] Tooltips should be fully keyboard accessible
2753 https://bugs.webkit.org/show_bug.cgi?id=25525
2755 Position the tooltip under the current focused element when the
2756 tooltip has been triggered using the keyboard.
2758 * webkit/webkitwebview.cpp:
2759 (webkit_web_view_query_tooltip):
2760 (webkit_web_view_show_help):
2761 (webkit_web_view_class_init):
2763 2010-11-29 Carlos Garcia Campos <cgarcia@igalia.com>
2765 Reviewed by Xan Lopez.
2767 [GTK] Tooltips not shown when scrolling
2768 https://bugs.webkit.org/show_bug.cgi?id=50143
2770 Convert tooltip area to window coordinates so that tooltips are
2771 shown even after scrolling.
2773 * WebCoreSupport/ChromeClientGtk.cpp:
2774 (WebKit::ChromeClient::mouseDidMoveOverElement):
2776 2010-11-26 Carlos Garcia Campos <cgarcia@igalia.com>
2778 Reviewed by Xan Lopez.
2780 [GTK] Inspector: add a way to inspect a WebKitDOMNode
2781 https://bugs.webkit.org/show_bug.cgi?id=49903
2783 * webkit/webkitwebinspector.cpp:
2784 (webkit_web_inspector_inspect_node):
2785 * webkit/webkitwebinspector.h:
2787 2010-11-26 Mario Sanchez Prada <msanchez@igalia.com>
2789 Reviewed by Xan Lopez.
2791 [GTK] events missing when a document is (re)loaded
2792 https://bugs.webkit.org/show_bug.cgi?id=25831
2794 Emit the right signals when reloading a document.
2796 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2797 (WebKit::notifyAccessibilityStatus): New function, to make sure
2798 the signals involved in reloading a document are properly emitted.
2799 (WebKit::notifyStatus): Also notify accessibility if enabled.
2801 New unit test to check the signals are being actually emitted.
2804 (stateChangedCb): Callback for 'state-change' signal emitted by
2805 the accessible object associated to the webView.
2806 (documentReloadCb): Callback for 'reload' signal.
2807 (documentLoadCompleteCb): Callback for 'load-complete' signal.
2808 (webviewLoadStatusChangedCb): Callback for 'notify::load-status'
2809 signal, emitted by the WebKitWebView object (not the AtkObject).
2810 (testWebkitAtkDocumentReloadEvents): New unit test.
2811 (main): Added the new unit test.
2813 2010-11-24 Xan Lopez <xlopez@igalia.com>
2815 Reviewed by Martin Robinson.
2817 [GTK] Make kit() methods return the proper type instead of gpointer
2818 https://bugs.webkit.org/show_bug.cgi?id=50034
2820 * WebCoreSupport/EditorClientGtk.cpp:
2821 (WebKit::EditorClient::shouldDeleteRange): get rid of unneeded cast.
2822 (WebKit::EditorClient::shouldShowDeleteInterface): ditto.
2823 (WebKit::EditorClient::shouldBeginEditing): ditto.
2824 (WebKit::EditorClient::shouldEndEditing): ditto.
2825 (WebKit::EditorClient::shouldInsertText): ditto.
2826 (WebKit::EditorClient::shouldChangeSelectedRange): ditto.
2827 (WebKit::EditorClient::shouldApplyStyle): ditto.
2828 (WebKit::EditorClient::shouldInsertNode): ditto.
2829 * webkit/webkitprivate.cpp:
2830 (WebKit::kit): ditto.
2831 * webkit/webkitwebview.cpp:
2832 (webkit_web_view_get_dom_document): ditto.
2834 2010-11-24 Xan Lopez <xlopez@igalia.com>
2836 Reviewed by Martin Robinson.
2838 Fix crashes in GTK+ bots. Use kit() instead of wrapFoo, otherwise
2839 the DOM objects won't be in the cache and we'll ASSERT when
2842 * WebCoreSupport/EditorClientGtk.cpp:
2843 (WebKit::EditorClient::shouldDeleteRange): use kit to get the
2844 GObject wrapper for the DOM object.
2845 (WebKit::EditorClient::shouldShowDeleteInterface): ditto.
2846 (WebKit::EditorClient::shouldBeginEditing): ditto.
2847 (WebKit::EditorClient::shouldEndEditing): ditto.
2848 (WebKit::EditorClient::shouldInsertText): ditto.
2849 (WebKit::EditorClient::shouldChangeSelectedRange): ditto.
2850 (WebKit::EditorClient::shouldApplyStyle): ditto.
2851 (WebKit::EditorClient::shouldInsertNode): ditto.
2853 2010-11-24 Martin Robinson <mrobinson@igalia.com>
2855 Reviewed by Xan Lopez.
2857 [GTK] The WebKitWebView should expose a set of signals encapsulating the behavior of the EditorClient
2858 https://bugs.webkit.org/show_bug.cgi?id=49143
2860 Add signals that encapsulate the functionality of the Mac EditingDelegate. These signals
2861 are private for now, but DRT consumes them to produce proper output for editing tests.
2862 After some time, these may be part of the public API.
2864 * WebCoreSupport/EditorClientGtk.cpp:
2865 (WebKit::EditorClient::shouldDeleteRange): Fire the appropriate editing signal.
2866 (WebKit::EditorClient::shouldShowDeleteInterface): Ditto.
2867 (WebKit::EditorClient::shouldBeginEditing): Ditto.
2868 (WebKit::EditorClient::shouldEndEditing): Ditto.
2869 (WebKit::kit): Added helper function.
2870 (WebKit::EditorClient::shouldInsertText): Fire the appropriate editing signal.
2871 (WebKit::EditorClient::shouldChangeSelectedRange): Ditto.
2872 (WebKit::EditorClient::shouldApplyStyle): Ditto.
2873 (WebKit::EditorClient::didBeginEditing): Ditto.
2874 (WebKit::EditorClient::respondToChangedContents): Ditto.
2875 (WebKit::EditorClient::respondToChangedSelection): Ditto.
2876 (WebKit::EditorClient::didEndEditing): Ditto.
2877 (WebKit::EditorClient::shouldInsertNode): Ditto.
2878 * webkit/webkitwebview.cpp:
2879 (webkit_web_view_real_should_allow_editing_action): Added this default signal
2880 callback which explicitly allows cancellable editing actions.
2881 (webkit_web_view_class_init): Add new editing signal declarations to the view.
2882 * webkit/webkitwebview.h:
2883 * webkitmarshal.list: Added some new marshaling definitions.
2885 2010-11-24 Sheriff Bot <webkit.review.bot@gmail.com>
2887 Unreviewed, rolling out r72499.
2888 http://trac.webkit.org/changeset/72499
2889 https://bugs.webkit.org/show_bug.cgi?id=50022
2891 This change is causing crashes on the bots. (Requested by
2892 mrobinson on #webkit).
2897 2010-11-23 Xan Lopez <xlopez@igalia.com>
2899 Reviewed by Martin Robinson.
2901 [GTK] Fix IFrame DOM bindings API
2902 https://bugs.webkit.org/show_bug.cgi?id=49980
2904 * tests/testdomdocument.c:
2905 (test_dom_document_garbage_collection): change to use the fixed
2908 2010-11-23 Carlos Garcia Campos <cgarcia@igalia.com>
2910 Reviewed by Martin Robinson.
2912 focus issue with links that have tooltips
2913 https://bugs.webkit.org/show_bug.cgi?id=49498
2915 Set the area of the widget where the tooltip should be shown when
2916 a new tooltip is set. Since the widget is the same (the view), if
2917 the tooltip area is not set and a new tooltip is triggered while
2918 the previous one is still visible, the text of the tooltip is
2919 updated but its position doesn't change.
2921 * WebCoreSupport/ChromeClientGtk.cpp:
2922 (WebKit::ChromeClient::mouseDidMoveOverElement):
2923 * webkit/webkitprivate.h:
2924 * webkit/webkitwebview.cpp:
2925 (webkit_web_view_query_tooltip):
2927 2010-11-21 Mario Sanchez Prada <msanchez@igalia.com>
2929 Reviewed by Chris Fleizach.
2931 [GTK] Implement ROLE_COMBO_BOX
2932 https://bugs.webkit.org/show_bug.cgi?id=25678
2934 New test to check the implementation of the combo boxes.
2937 (testWebkitAtkComboBox): New test, checking that the roles and the
2938 implemented interfaces for a combo box and its descendants work.
2939 (main): Added the new unit test.
2941 2010-11-20 Xan Lopez <xlopez@igalia.com>
2943 Reviewed by Martin Robinson.
2945 Remove leftover code in unit test.
2947 * GNUmakefile.am: remove unneeded utils file in dependency list.
2948 * tests/testdomdocument.c:
2949 (main): do not change to the directory of a non existing resource
2952 2010-11-20 Xan Lopez <xlopez@igalia.com>
2954 Reviewed by Martin Robinson.
2956 [GTK] Memory managament for DOM GObject wrappers
2957 https://bugs.webkit.org/show_bug.cgi?id=40302
2959 Initial attempt to have a kind of poor man's garbage collection
2960 for GObject DOM objects. We tie the object's lifecycle to their
2961 parent Frame and/or its document; that is, all objects will be
2962 collected when their parent frame is destroyed or when that frame
2963 transitions to a new document. Manual management (calling
2964 g_object_unref on them) is also allowed, and is required for
2965 objects that are not in the DOM tree (eg NodeLists).
2967 * GNUmakefile.am: add testutils file to testdomdocument.c
2968 * WebCoreSupport/FrameLoaderClientGtk.cpp:
2969 (WebKit::FrameLoaderClient::setMainFrameDocumentReady): collect
2970 DOM objects on document transition.
2971 * tests/testdomdocument.c:
2972 (dom_document_fixture_teardown): only destroy the view if it's not
2973 already destroyed, since the new test detroys it on its own.
2974 (test_dom_document_get_elements_by_tag_name): manually unref node list.
2975 (test_dom_document_get_elements_by_class_name): ditto.
2976 (test_dom_document_get_links): ditto.
2977 (test_dom_document_garbage_collection): test all possible
2978 scenarios for DOM object "garbage collection".
2979 (main): add new test.
2980 * tests/testdomnode.c:
2981 (test_dom_node_hierarchy_navigation): manually unref node list.
2982 (test_dom_node_insertion): ditto.
2983 * webkit/webkithittestresult.cpp:
2984 (webkit_hit_test_result_dispose): unref the inner node on dispose
2985 now that the memory management model is clarified.
2986 (webkit_hit_test_result_class_init): hook dispose.
2987 * webkit/webkitwebframe.cpp:
2988 (webkit_web_frame_core_frame_gone): clear DOM objects attached to this frame.
2989 (webkit_web_frame_finalize): ditto.
2991 2010-11-18 Xan Lopez <xlopez@igalia.com>
2993 Reviewed by Martin Robinson.
2995 Fix introspection build, we were missing a -I flag.
2999 2010-11-18 Mario Sanchez Prada <msanchez@igalia.com>
3001 Reviewed by Martin Robinson.
3003 [Gtk] atk_text_get_selection returns the wrong offsets after a link
3004 https://bugs.webkit.org/show_bug.cgi?id=49514
3006 Updated test case to also chech this specific subcase.
3008 We need to explicitly check the case of having a selection in a
3009 paragraph after an embedded object (i.e. a link) to make sure the
3010 right calculations are being done when the paragraph is composed
3011 of more than just one text object, and the current selection is
3012 made only in one of them.
3015 (testWebkitAtkTextSelections): Make sure that a selection after a
3016 link in a paragraph is working ok when asking for the text
3017 selection from the point of view of the paragraph.
3019 2010-11-17 Martin Robinson <mrobinson@igalia.com>
3021 Reviewed by Gustavo Noronha Silva.
3023 [GTK] Changing any GNUmakefile.am in the source tree forces a rebuld of the DOM bindings and WebKit APi
3024 https://bugs.webkit.org/show_bug.cgi?id=49400
3026 Add GNUmakefile.am and include all WebKit API build rules. Make webkitenum.*
3027 depend on this new file, instead of the generated GNUmakefile.am.
3029 * GNUmakefile.am: Copied from GNUmakefile.am.
3031 2010-11-17 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3033 Reviewed by Martin Robinson.
3035 Fix a typo that leads to emitting the wrong signal if it is done
3036 by using the signals array.
3038 * webkit/webkitwebview.cpp:
3039 (webkit_web_view_class_init):
3041 2010-11-16 Carlos Garcia Campos <cgarcia@igalia.com>
3043 Reviewed by Martin Robinson.
3045 [GTK] Some key-press events can't be handled by WebView
3046 https://bugs.webkit.org/show_bug.cgi?id=48986
3048 The problem is that "popup-menu" and "show-help" signals are
3049 handled by GtkTextView, as they are added to the key bindings set
3050 of every widget in gtk_widget_class_init(). For all other bindings
3051 handled by GtkTextView we are stopping the signal emission in
3052 their callbacks, so we only need to do the same for "popup-menu"
3053 and "show-help" signals.
3055 * WebCoreSupport/EditorClientGtk.cpp:
3056 (WebKit::toggleOverwriteCallback):
3057 (WebKit::popupMenuCallback):
3058 (WebKit::showHelpCallback):
3059 (WebKit::EditorClient::EditorClient):
3061 2010-11-16 Carlos Garcia Campos <cgarcia@igalia.com>
3063 Reviewed by Martin Robinson.
3065 [GTK] Show default context menu for the currently focused element when activated with keyboard
3066 https://bugs.webkit.org/show_bug.cgi?id=49376
3068 * webkit/webkitwebview.cpp:
3069 (webkit_web_view_popup_menu_handler):
3071 2010-11-11 Joone Hur <joone@kldp.org>
3073 Reviewed by Antonio Gomes.
3075 [GTK][DRT] Implement LayoutTestController::nodesFromRect
3076 https://bugs.webkit.org/show_bug.cgi?id=46598
3078 Support nodesFromRect in DRT
3080 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
3081 (DumpRenderTreeSupportGtk::nodesFromRect): Added.
3082 * WebCoreSupport/DumpRenderTreeSupportGtk.h:
3084 2010-11-11 Chang Shu <chang.shu@nokia.com>
3086 Reviewed by Antonio Gomes.
3088 [GTK] Replace "MoveForward"/"MoveBackward" with "MoveRight"/"MoveLeft"
3089 to make spatial navigation work on input/textarea.
3090 https://bugs.webkit.org/show_bug.cgi?id=49056
3092 * WebCoreSupport/EditorClientGtk.cpp:
3093 (WebKit::moveCursorCallback):
3095 2010-11-08 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
3097 Reviewed by Martin Robinson.
3099 [GTK] Link with target name set does not work
3100 https://bugs.webkit.org/show_bug.cgi?id=48865
3102 When a new page is created with a name (target=myFrame), the new
3103 mainFrame could not be found because they where not stored in the
3104 same PageGroup. As PageGroup are not exposed externally so the
3105 simpliest solution is to use a global page group name. This also fixes
3106 issue with visited link coloration across pages. After this change the
3107 private function webkit_web_view_set_group_name() was no longer used
3108 so it was removed completly.
3110 * WebCoreSupport/ChromeClientGtk.cpp:
3111 (WebKit::ChromeClient::closeWindowSoon):
3112 * WebCoreSupport/InspectorClientGtk.cpp:
3113 (WebKit::InspectorClient::openInspectorFrontend):
3114 * webkit/webkitprivate.h:
3115 * webkit/webkitwebview.cpp:
3116 (webkit_web_view_init):
3118 2010-11-08 Alexey Proskuryakov <ap@apple.com>
3120 Reviewed by Darin Adler.
3122 https://bugs.webkit.org/show_bug.cgi?id=48685
3123 Notify UI process about focused frame
3125 Added an empty implementation of the new ChromeClient method.
3127 * WebCoreSupport/ChromeClientGtk.cpp:
3128 (WebKit::ChromeClient::focusedFrameChanged):
3129 * WebCoreSupport/ChromeClientGtk.h:
3131 2010-11-08 Martin Robinson <mrobinson@igalia.com>
3133 Reviewed by Andreas Kling.
3135 [GTK] Error page templates are not filled properly
3136 https://bugs.webkit.org/show_bug.cgi?id=49148
3138 Replace a call to makeString with String::format. This was mistakenly
3139 changed to makeString in an earlier commit.
3141 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3142 (WebKit::FrameLoaderClient::dispatchDidFailLoad):
3144 2010-11-08 Xan Lopez <xlopez@igalia.com>
3146 Reviewed by Martin Robinson.
3148 * NEWS: update for release.
3150 2010-11-08 Csaba Osztrogonac <ossy@webkit.org>
3152 Unreviewed, rolling out r71466.
3153 http://trac.webkit.org/changeset/71466
3154 https://bugs.webkit.org/show_bug.cgi?id=48865
3156 It broke layout tests on GTK bots.
3158 * WebCoreSupport/ChromeClientGtk.cpp:
3159 (WebKit::ChromeClient::closeWindowSoon):
3160 * webkit/webkitprivate.h:
3161 * webkit/webkitwebview.cpp:
3162 (webkit_web_view_init):
3163 (webkit_web_view_set_group_name):
3165 2010-11-07 Adam Barth <abarth@webkit.org>
3167 Reviewed by Eric Seidel.
3169 Rename Cache to MemoryCache
3170 https://bugs.webkit.org/show_bug.cgi?id=49159
3172 * webkit/webkitwebview.cpp:
3174 2010-11-05 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
3176 Reviewed by Martin Robinson.
3178 [GTK] Link with target name set does not work correctly
3179 https://bugs.webkit.org/show_bug.cgi?id=48865
3181 When a new page is created with a name (target=myFrame), the new
3182 mainFrame could not be found because they where not stored in the
3183 same PageGroup. As PageGroup are not exposed externally so the
3184 simpliest solution is to use a global page group name. This also fixes
3185 issue with visited link coloration across pages. After this change the
3186 private function webkit_web_view_set_group_name() was no longer used
3187 so it was removed completly.
3189 * WebCoreSupport/ChromeClientGtk.cpp:
3190 (WebKit::ChromeClient::closeWindowSoon):
3191 * webkit/webkitprivate.h:
3192 * webkit/webkitwebview.cpp:
3193 (webkit_web_view_init):
3195 2010-11-05 Chris Marrin <cmarrin@apple.com>
3197 Reviewed by Simon Fraser.
3199 Move resumeAnimations/suspendAnimations from Frame to AnimationController.
3200 https://bugs.webkit.org/show_bug.cgi?id=49073
3202 * webkit/webkitwebframe.cpp:
3203 (webkit_web_frame_suspend_animations):
3204 (webkit_web_frame_resume_animations):
3206 2010-11-05 Chris Marrin <cmarrin@apple.com>
3210 Small fix to GTK build
3212 * webkit/webkitwebframe.cpp:
3213 (webkit_web_frame_suspend_animations):
3214 (webkit_web_frame_resume_animations):
3216 2010-11-05 Chris Marrin <cmarrin@apple.com>
3218 Reviewed by Simon Fraser.
3220 Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
3221 https://bugs.webkit.org/show_bug.cgi?id=46945
3223 * webkit/webkitwebframe.cpp:
3224 (webkit_web_frame_suspend_animations):
3225 (webkit_web_frame_resume_animations):
3227 2010-11-03 Daniel Bates <dbates@rim.com>
3229 For unnamed frames, window.name returns a generated name
3230 https://bugs.webkit.org/show_bug.cgi?id=6751
3234 Substitute FrameTree::uniqueName() for FrameTree::name() in the GTK port.
3236 * webkit/webkitwebframe.cpp:
3237 (webkit_web_frame_get_name):
3239 2010-11-02 Martin Robinson <mrobinson@igalia.com>
3241 Reviewed by Adam Barth.
3243 [Cairo] Remove PlatformRefPtrCairo
3244 https://bugs.webkit.org/show_bug.cgi?id=48192
3246 Replace instances of PlatformRefPtr smart pointers that wrap Cairo
3249 * WebCoreSupport/DragClientGtk.cpp: Use RefPtr instead of PlatformRefPtr.
3250 (WebKit::dragIconWindowDrawEventCallback):
3251 * WebCoreSupport/DragClientGtk.h: Ditto.
3253 2010-11-02 Daniel Bates <dbates@rim.com>
3255 Reviewed by Martin Robinson.
3257 Set frame name before appending it to the frame tree in the Apple Windows,
3259 https://bugs.webkit.org/show_bug.cgi?id=48806
3261 Make the frame creation process in the GTK-port consistent with the
3262 Mac, Qt, and Haiku ports. In particular, set the name of the new
3263 frame before it's appended to the frame tree.
3265 At this time we cannot test this change since it is being masked by
3266 HTMLFrameElementBase::setName() <http://trac.webkit.org/browser/trunk/WebCore/html/HTMLFrameElementBase.cpp?rev=70976#L160>.
3267 We'll be able to test this once we fix bug #6751.
3269 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3270 (WebKit::FrameLoaderClient::createFrame):
3272 2010-11-01 Jennifer Braithwaite <jennb@google.com>
3274 Reviewed by Martin Robinson.
3276 GTK: Update resource tracking when moving a frame between documents
3277 https://bugs.webkit.org/show_bug.cgi?id=48362
3279 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3280 (WebKit::FrameLoaderClient::transferLoadingResourceFromPage):
3281 Assign resource id to current web view and remove from former web view.
3282 * webkit/webkitprivate.h:
3283 * webkit/webkitwebview.cpp:
3284 (webkit_web_view_remove_resource):
3287 2010-11-01 Mario Sanchez Prada <msanchez@igalia.com>
3289 Reviewed by Martin Robinson.
3291 [GTK] Cleanup needed in testatk.c file
3292 https://bugs.webkit.org/show_bug.cgi?id=48759
3294 Cleanup done in testatk.c, mainly addressing the following issues:
3296 - Removed any trace of extra main loops in tests, so now we just
3297 spin the original main loop in all of them to get the a11y
3300 - As we no longer use the extra main loops, removed the bail_out
3301 function, used along with g_idle_add() to stop those extra loops.
3303 - As we now spin the loop in every test, created a new function
3304 waitForAccessibilityObjects() to write the loop just once.
3306 - Fixed name in incorrectly named test testWekitAtkTextSelections.
3308 - Alphabetically sorted the list of includes.
3310 - Renamed all identifiers to camel Case notation.
3312 - Declare variables when needed only (instead of declaring all of
3313 them at the beginning of the function).
3315 - Don't declare two variables of the same type in the same line.
3317 - No more short names like 'obj', 'textObj' or 'alloc'. Use names
3318 like 'object', 'textObject' and 'allocation' instead.
3320 - Fixed indentation.
3322 - Make sure all comments finish with '.'
3324 - Replace NULL's with 0's.
3327 (waitForAccessibleObjects): New, manually spins the main context
3328 to make sure accessible objects are created before continuing.
3329 (testGetTextFunction): Fixed this function to be compliant with
3330 the WebKit's coding style.
3331 (runGetTextTests): Ditto.
3332 (testWebkitAtkGetTextAtOffsetForms): Ditto.
3333 (testWebkitAtkGetTextAtOffset): Ditto.
3334 (testWebkitAtkGetTextAtOffsetNewlines): Ditto.
3335 (testWebkitAtkGetTextAtOffsetTextarea): Ditto.
3336 (testWebkitAtkGetTextAtOffsetTextInput): Ditto.
3337 (testWebkitAtkGetTextInParagraphAndBodySimple): Ditto.
3338 (testWebkitAtkGetTextInParagraphAndBodyModerate): Ditto.
3339 (testWebkitAtkGetTextInTable): Ditto.
3340 (testWebkitAtkGetHeadersInTable): Ditto.
3341 (compAtkAttribute): Ditto.
3342 (atkAttributeSetAttributeNameHasValue): Ditto.
3343 (testWebkitAtkTextAttributes): Ditto.
3344 (testWebkitAtkTextSelections): Ditto.
3345 (testWebkitAtkGetExtents): Ditto.
3346 (testWebkitAtkLayoutAndDataTables): Ditto.
3347 (testWebkitAtkLinksWithInlineImages): Ditto.
3348 (testWebkitAtkHypertextAndHyperlinks): Ditto.
3349 (testWebkitAtkListsOfItems): Ditto.
3350 (testWebkitAtkTextChangedNotifications): Ditto.
3353 2010-11-01 Brady Eidson <beidson@apple.com>
3355 Reviewed by Anders Carlsson.
3357 <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
3358 Context menu support for WebKit 2.
3360 * WebCoreSupport/ChromeClientGtk.h:
3361 (WebKit::ChromeClient::showContextMenu):
3363 2010-11-01 Martin Robinson <mrobinson@igalia.com>
3365 Reviewed by Xan Lopez.
3367 [GTK] Pasting markup into Thunderbird compose window produces no text
3368 https://bugs.webkit.org/show_bug.cgi?id=43737
3370 Added a test verifying that the meta tag prefix on markup data exists.
3372 * tests/testcopyandpaste.c:
3373 (load_status_cb): Add a check for the meta tag prefix.
3375 2010-11-01 Mario Sanchez Prada <msanchez@igalia.com>
3377 Reviewed by Martin Robinson.
3379 [Gtk] AtkHyperlink needs to be implemented
3380 https://bugs.webkit.org/show_bug.cgi?id=33785
3382 New test to ensure the AtkHypertext/AtkHyperlink stuff works.
3385 (testWebkitAtkHypertextAndHyperlinks): New test, checking both the
3386 implementation of the AtkHypertext interface, the subclass of the
3387 AtkHyperlink abstract class, and the implementation of the
3388 AtkAction interface in that subclass.
3389 (main): Added the new unit test.
3391 2010-10-30 Xan Lopez <xlopez@igalia.com>
3393 Reviewed by Martin Robinson.
3395 [GTK] Use new width for height APIs in GTK+ 3.x
3396 https://bugs.webkit.org/show_bug.cgi?id=48709
3398 Use the new width for height APIs in GTK+ 3.x, since size-request
3401 For now we just return the same value for preferred and minimum
3402 width/height, which should match the 2.x behavior. Probably we
3403 could do something smarter for the minimum values.
3405 * webkit/webkitwebview.cpp:
3406 (webkit_web_view_get_preferred_width): return our preferred width.
3407 (webkit_web_view_get_preferred_height): return our preferred height.
3408 (webkit_web_view_class_init): hook the new default handlers.
3410 2010-10-29 Daniel Bates <dbates@rim.com>
3412 No review, rolling out 70971.
3413 http://trac.webkit.org/changeset/70971
3414 https://bugs.webkit.org/show_bug.cgi?id=6751
3416 Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
3417 it caused layout test failures on all bots. In particular, the
3418 child count in a generated frame name differs after this patch. We need
3419 to look into this further.
3421 * webkit/webkitwebframe.cpp:
3422 (webkit_web_frame_get_name):
3424 2010-10-28 Antonio Gomes <agomes@rim.com>
3426 Reviewed by Ojan Vafai.
3428 Needs a "LinuxEditingBehavior", perhaps with a better name
3429 https://bugs.webkit.org/show_bug.cgi?id=36627
3431 Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WEBKIT_EDITING_BEHAVIOR_UNIX.
3433 * webkit/webkitwebsettings.cpp:
3434 (webkit_web_settings_class_init):
3435 * webkit/webkitwebsettings.h:
3437 2010-10-29 Daniel Bates <dbates@rim.com>
3439 Reviewed by Adam Barth.
3441 For unnamed frames, window.name returns a generated name
3442 https://bugs.webkit.org/show_bug.cgi?id=6751
3444 Modified GTK-port to use FrameTree::uniqueName().
3446 * webkit/webkitwebframe.cpp:
3447 (webkit_web_frame_get_name):
3449 2010-10-29 Martin Robinson <mrobinson@igalia.com>
3451 Build fix for GTK+ after BackForwardListImpl introduction.
3453 * webkit/webkitwebbackforwardlist.cpp:
3454 (webkit_web_back_forward_list_new_with_web_view):
3456 2010-10-29 Darin Adler <darin@apple.com>
3458 Reviewed by Sam Weinig.
3460 Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
3461 https://bugs.webkit.org/show_bug.cgi?id=48574
3463 * webkit/webkitprivate.h:
3464 * webkit/webkitwebbackforwardlist.cpp:
3465 (webkit_web_back_forward_list_dispose):
3466 (webkit_web_back_forward_list_new_with_web_view):
3467 (webkit_web_back_forward_list_go_forward):
3468 (webkit_web_back_forward_list_go_back):
3469 (webkit_web_back_forward_list_contains_item):
3470 (webkit_web_back_forward_list_go_to_item):
3471 (webkit_web_back_forward_list_get_forward_list_with_limit):
3472 (webkit_web_back_forward_list_get_back_list_with_limit):
3473 (webkit_web_back_forward_list_get_back_item):
3474 (webkit_web_back_forward_list_get_current_item):
3475 (webkit_web_back_forward_list_get_forward_item):
3476 (webkit_web_back_forward_list_get_nth_item):
3477 (webkit_web_back_forward_list_get_back_length):
3478 (webkit_web_back_forward_list_get_forward_length):
3479 (webkit_web_back_forward_list_get_limit):
3480 (webkit_web_back_forward_list_set_limit):
3481 (webkit_web_back_forward_list_add_item):
3482 (webkit_web_back_forward_list_clear):
3484 * webkit/webkitwebview.cpp:
3485 (webkit_web_view_set_maintains_back_forward_list):
3486 (webkit_web_view_get_back_forward_list):
3487 Use BackForwardListImpl.
3489 2010-10-29 Alexey Proskuryakov <ap@apple.com>
3491 Reviewed by Darin Adler.
3493 https://bugs.webkit.org/show_bug.cgi?id=48576
3494 Let WebKit2 client know when a frame is a frameset
3496 Added a blank implementation of the new FrameLoaderClient method.
3498 * WebCoreSupport/FrameLoaderClientGtk.h:
3499 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3500 (WebKit::FrameLoaderClient::dispatchDidBecomeFrameset):
3502 2010-10-29 Alejandro G. Castro <alex@igalia.com>
3504 Reviewed by Martin Robinson.
3506 [GTK] Add the GtkScrollablePolicy property to the webview
3507 https://bugs.webkit.org/show_bug.cgi?id=48357
3509 Added the GtkScrollablePolicy properties to the webview widget, it
3510 is now required for GtkScrollable widgets in GTK+ 3.x.
3512 * webkit/webkitprivate.h:
3513 * webkit/webkitwebview.cpp:
3514 (setHorizontalScrollPolicy): Added.
3515 (setVerticalScrollPolicy): Added.
3516 (getHorizontalScrollPolicy): Added.
3517 (getVerticalScrollPolicy): Added.
3518 (webkit_web_view_get_property):
3519 (webkit_web_view_set_property):
3520 (webkit_web_view_class_init):
3522 2010-10-28 Sergio Villar Senin <svillar@igalia.com>
3524 Reviewed by Martin Robinson.
3526 [GTK] WebKitWebFrame's load-status is not properly notified to the tests
3527 https://bugs.webkit.org/show_bug.cgi?id=48048
3529 "frame-created" signal must be issued before loading any data,
3530 that way clients can correctly capture all the loading related
3531 signals for that frame.
3533 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3534 (WebKit::FrameLoaderClient::createFrame):
3536 2010-10-27 Mario Sanchez Prada <msanchez@igalia.com>
3538 Reviewed by Martin Robinson.
3540 getTextAtOffset returns incorrect results if a link includes text and an image
3541 https://bugs.webkit.org/show_bug.cgi?id=47365
3543 New test to make sure this bug is actually fixed.
3546 (testWebkitAtkLinksWithInlineImages): New test.
3547 (main): Added new test.
3549 2010-10-26 Antonio Gomes <agomes@rim.com>
3551 Reviewed by Martin Robinson.
3553 [GTK] Implement DumpRenderTreeSupportGtk (similarly to DumpRenderTreeSupportQt idea)
3554 https://bugs.webkit.org/show_bug.cgi?id=48199
3556 Implemented an initial version of the DumpRenderTreeSupportGtk class.
3557 The main idea is that it groups together the bodies of many LayoutTestController
3558 methods, so they can directly access WebCore features. This way we eliminate the
3559 need of adding APIs to WebKitGTK just to expand its test coverage through DRT.
3561 The DumpRenderTreeSupportGtk class so far includes a getter and setter for the WebKitTabToLinksPreferenceKey
3562 property as a sample implementation. Also it makes it possible to unskip fast/events/tab-focus-anchor.html and
3563 to fix stderr messages from all 22 spatial-navigation tests in fast/events/spatial-navigation.
3565 * WebCoreSupport/ChromeClientGtk.cpp:
3566 (WebKit::ChromeClient::tabsToLinks):
3567 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: Added.
3568 (DumpRenderTreeSupportGtk::DumpRenderTreeSupportGtk):
3569 (DumpRenderTreeSupportGtk::~DumpRenderTreeSupportGtk):
3570 (DumpRenderTreeSupportGtk::setDumpRenderTreeModeEnabled):
3571 (DumpRenderTreeSupportGtk::dumpRenderTreeModeEnabled): Getter to the WebKitTabToLinksPreferenceKey property.
3572 (DumpRenderTreeSupportGtk::setLinksIncludedInFocusChain): Setter to the WebKitTabToLinksPreferenceKey property.
3573 (DumpRenderTreeSupportGtk::linksIncludedInFocusChain):
3574 * WebCoreSupport/DumpRenderTreeSupportGtk.h: Added.
3576 2010-10-26 Jenn Braithwaite <jennb@chromium.org>
3578 Reviewed by Dmitry Titov.
3580 Resource tracking failure when trying to move a frame between documents
3581 https://bugs.webkit.org/show_bug.cgi?id=44713
3583 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3584 (WebKit::FrameLoaderClient::transferLoadingResourceFromPage):
3586 * WebCoreSupport/FrameLoaderClientGtk.h:
3588 2010-10-26 Mario Sanchez Prada <msanchez@igalia.com>
3590 Reviewed by Chris Fleizach.
3592 [Gtk] Layout tables should indicate that they are not data tables via an object attribute
3593 https://bugs.webkit.org/show_bug.cgi?id=35422
3595 New unit test to check the 'layout-guess' attribute in tables.
3598 (atkAttributeSetAttributeNameHasValue): New, looks for a attribute
3599 with a specific value, by the name of attribute.
3600 (atkAttributeSetContainsAttributeName): New, just checks whether
3601 an attribute with a specified name is present in the set.
3602 (atkAttributeSetAttributeHasValue): Modified to relay on the new
3603 function atkAttributeSetAttributeNameHasValue().
3604 (testWebkitAtkLayoutAndDataTables): New test.
3605 (main): Added the new test.
3607 2010-10-26 Xan Lopez <xlopez@igalia.com>
3609 Reviewed by Martin Robinson.
3611 [GTK] Port to new GtkScrollable interface in GTK+ 3.x
3612 https://bugs.webkit.org/show_bug.cgi?id=48202
3614 Use the new GtkScrollable interface when compiling against GTK+
3617 * webkit/webkitwebview.cpp:
3618 (setHorizontalAdjustment):
3619 (setVerticalAdjustment):
3620 (getHorizontalAdjustment):
3621 (getVerticalAdjustment):
3622 (webkit_web_view_get_property):
3623 (webkit_web_view_set_property):
3624 (webkit_web_view_class_init):
3626 2010-10-22 Sam Weinig <sam@webkit.org>
3628 Reviewed by Anders Carlsson.
3630 WebKit2 needs to pass the current event modifier flags when requesting a new window
3631 https://bugs.webkit.org/show_bug.cgi?id=48140
3633 * WebCoreSupport/ChromeClientGtk.cpp:
3634 (WebKit::ChromeClient::createWindow):
3635 * WebCoreSupport/ChromeClientGtk.h:
3636 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3637 (WebKit::FrameLoaderClient::dispatchCreatePage):
3638 * WebCoreSupport/FrameLoaderClientGtk.h:
3639 Add NavigationAction parameter.
3641 2010-10-20 Philippe Normand <pnormand@igalia.com>
3643 Reviewed by Xan Lopez.
3645 [GTK] use gtk_widget_hide instead of gtk_widget_hide_all in the fullscreen video conroller
3646 https://bugs.webkit.org/show_bug.cgi?id=47972
3648 * WebCoreSupport/FullscreenVideoController.cpp:
3649 (FullscreenVideoController::hideHud):
3650 (FullscreenVideoController::exitFullscreen):
3652 2010-10-19 Joone Hur <joone@kldp.org>
3654 Reviewed by Martin Robinson.
3656 [GTK] Needs fixing mistyped comments in the API documentation
3657 https://bugs.webkit.org/show_bug.cgi?id=47656
3659 Fixed mistyped comments in the API documenentation.
3661 * webkit/webkitwebsettings.cpp: Fixed a mistyped comment in the the section block.
3662 * webkit/webkitwebwindowfeatures.cpp: Fixed a mistyped comment in the section block.
3664 2010-10-18 Xan Lopez <xlopez@igalia.com>
3666 Reviewed by Martin Robinson.
3668 * NEWS: update for 1.3.5 release.
3669 * docs/webkitgtk-sections.txt: add new APIs.
3671 2010-10-18 Pavel Feldman <pfeldman@chromium.org>
3673 Reviewed by Simon Fraser.
3675 Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
3676 https://bugs.webkit.org/show_bug.cgi?id=46224
3678 * WebCoreSupport/InspectorClientGtk.cpp:
3679 (WebKit::InspectorClient::sendMessageToFrontend):
3681 2010-10-14 Antonio Gomes <agomes@rim.com>
3683 Reviewed by Martin Robinson and Xan Lopez.
3685 [Gtk]: DRT does not support frame flattening testing
3686 https://bugs.webkit.org/show_bug.cgi?id=38650
3688 Implement enable-frame-flattening API for Gtk+.
3690 * webkit/webkitwebsettings.cpp:
3691 (webkit_web_settings_class_init):
3692 (webkit_web_settings_set_property):
3693 (webkit_web_settings_get_property):
3694 (webkit_web_settings_copy):
3695 * webkit/webkitwebview.cpp:
3696 (webkit_web_view_update_settings):
3697 (webkit_web_view_settings_notify):
3699 2010-10-15 Nikolas Zimmermann <nzimmermann@rim.com>
3701 Reviewed by Dirk Schulze.
3703 Replace some String::format() usages by StringConcatenate in WebKit
3704 https://bugs.webkit.org/show_bug.cgi?id=47714
3706 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3707 (WebKit::FrameLoaderClient::dispatchDidFailLoad):
3708 * webkit/webkitwebsettings.cpp:
3712 2010-10-14 Joone Hur <joone@kldp.org>
3714 Reviewed by Andreas Kling.
3716 [GTK] google.co.kr was missed when checking Google domains
3717 https://bugs.webkit.org/show_bug.cgi?id=47652
3719 WebKitGtk+ maintains a list of Google domains for working well with Google sites.
3720 Add google.co.kr also to the list to be checked with other Google domains.
3722 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3723 (WebKit::initializeDomainsList): Added google.co.kr.
3725 2010-10-13 Sergio Villar Senin <svillar@igalia.com>
3727 Reviewed by Martin Robinson.
3729 WebKitGtk+ to use the new API from the imported SoupURILoader code
3731 [GTK] Add HTTP caching support
3732 https://bugs.webkit.org/show_bug.cgi?id=44261
3734 ResourceHandleInternal m_msg is now called m_soupMessage.
3736 * webkit/webkitdownload.cpp:
3737 (webkit_download_new_with_handle):
3738 (webkit_download_start):
3740 2010-10-13 Xan Lopez <xlopez@igalia.com>
3742 Reviewed by Gustavo Noronha.
3744 [GTK] Remove more warnings from the g-i scanner run
3745 https://bugs.webkit.org/show_bug.cgi?id=47255
3747 Fixes almost all warnings coming from the g-i scanner.
3749 * webkit/webkitsecurityorigin.cpp: Rename parameter names in
3750 gtk-doc blurb to the actual name of the parameter.
3751 * webkit/webkitsoupauthdialog.c: ditto.
3752 (webkit_soup_auth_dialog_class_init): Write missing doc for the
3753 'current-toplevel' signal.
3754 * webkit/webkitsoupauthdialog.h: Rename signal parameter to its
3756 * webkit/webkitwebdatabase.cpp: Rename parameter names in
3757 gtk-doc blurb to the actual name of the parameter.
3758 * webkit/webkitwebinspector.cpp: ditto.
3759 (webkit_web_inspector_class_init): ditto.
3760 * webkit/webkitwebview.cpp: ditto.
3761 (webkit_web_view_class_init): ditto.
3762 * webkit/webkitwebview.h: Rename the parameter names to be in sync
3763 with the ones we use in the function definition.
3765 2010-10-12 Sheriff Bot <webkit.review.bot@gmail.com>
3767 Unreviewed, rolling out r69589.
3768 http://trac.webkit.org/changeset/69589
3769 https://bugs.webkit.org/show_bug.cgi?id=47547
3771 Wrong patch landed from a bug with two patches (Requested by
3772 mrobinson on #webkit).
3774 * webkit/webkitdownload.cpp:
3775 (webkit_download_new_with_handle):
3776 (webkit_download_start):
3778 2010-10-12 Sergio Villar Senin <svillar@igalia.com>
3780 Reviewed by Martin Robinson.
3782 [GTK] Add HTTP caching support
3783 https://bugs.webkit.org/show_bug.cgi?id=44261
3785 ResourceHandle's m_msg renamed to m_soupMsg and it's also now a PlatformRefPtr
3787 * webkit/webkitdownload.cpp:
3788 (webkit_download_new_with_handle):
3789 (webkit_download_start):
3791 2010-10-09 Carlos Garcia Campos <cgarcia@igalia.com>
3793 Reviewed by Xan Lopez.
3795 [GTK] Removed unused callback in webkitwebview
3796 https://bugs.webkit.org/show_bug.cgi?id=47092
3798 In webkit_web_view_forward_context_menu_event() a callback is
3799 connected for the destroy signal of the popup menu, however we
3800 reuse the same menu always, holding a ref to it, so it's not
3801 destroyed when withdrawn by the user.
3803 * webkit/webkitwebview.cpp:
3804 (webkit_web_view_forward_context_menu_event):
3806 2010-10-08 Martin Robinson <mrobinson@igalia.com>
3808 Reviewed by Xan Lopez.
3810 [GTK] Remove duplicate code in WebKit/gtk/WebCoreSupport/DragClientGtk.cpp
3811 https://bugs.webkit.org/show_bug.cgi?id=47367
3813 Remove as much duplicate code as possible from DragClientGtk. Most of this code
3814 is GTK2/GTK3 independent, so only the bits that aren't should be protected by
3817 * WebCoreSupport/DragClientGtk.cpp:
3818 (WebKit::dragIconWindowDrawEventCallback): Modified the name of this callback
3819 so that it is shared between build types.
3820 (WebKit::DragClient::DragClient): Updated the signal connectors to reflect the change above.
3821 (WebKit::DragClient::~DragClient): The build types share the callback name, so remove
3823 (WebKit::DragClient::drawDragIconWindow): Changed the name of this method and make it
3824 independent of the build type.
3825 * WebCoreSupport/DragClientGtk.h: Update method declaration and remove #ifdefs.
3827 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
3829 Reviewed by Xan Lopez.
3831 [GTK] Use draw instead of expose_event in WebView when building with gtk3
3832 https://bugs.webkit.org/show_bug.cgi?id=47338
3834 * webkit/webkitwebview.cpp:
3835 (webkit_web_view_expose_event):
3836 (webkit_web_view_draw):
3837 (webkit_web_view_class_init):
3839 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
3841 Reviewed by Xan Lopez.
3843 [GTK] Don't use GtkObject
3844 https://bugs.webkit.org/show_bug.cgi?id=47090
3846 GtkObject has been removed in gtk3.
3848 * WebCoreSupport/EditorClientGtk.cpp:
3849 (WebKit::EditorClient::generateEditorCommands):
3850 * WebCoreSupport/FullscreenVideoController.cpp:
3851 (FullscreenVideoController::createHud):
3853 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
3855 Reviewed by Xan Lopez.
3857 [GTK] Fix the build for GTK+ 3
3858 https://bugs.webkit.org/show_bug.cgi?id=47249
3860 Use GdkVisual instead of GdkColormap. GdkColormap has been removed
3863 * webkit/webkitwebview.cpp:
3864 (webkit_web_view_realize):
3866 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
3868 Reviewed by Xan Lopez.
3870 [GTK] Fix the build for GTK+ 3
3871 https://bugs.webkit.org/show_bug.cgi?id=47249
3873 Do not use GdkDrawable deprecated API. Some methods of GdkDrawable
3874 are deprecated in gtk2 and have been removed in gtk3. Equivalent
3875 API has been added to GdkWindow.
3877 * tests/testcopyandpaste.c:
3878 (runPasteTestCallback):
3879 * webkit/webkitwebview.cpp:
3880 (webkit_web_view_button_press_event):
3882 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
3884 Reviewed by Xan Lopez.
3886 [GTK] Use draw signal instead of expose_event in DragClientGtk when building with gtk3
3887 https://bugs.webkit.org/show_bug.cgi?id=47326
3889 * WebCoreSupport/DragClientGtk.cpp:
3890 (WebKit::dragIconWindowDrawCallback):
3891 (WebKit::DragClient::DragClient):
3892 (WebKit::DragClient::~DragClient):
3893 (WebKit::DragClient::startDrag):
3894 (WebKit::DragClient::dragIconWindowDraw):
3895 * WebCoreSupport/DragClientGtk.h:
3897 2010-10-07 Carlos Garcia Campos <cgarcia@igalia.com>
3899 Reviewed by Xan Lopez.
3901 [GTK] Fix the build for GTK+ 3
3902 https://bugs.webkit.org/show_bug.cgi?id=47249
3904 Don't use gtk_size_request_get_size(). It has been removed,
3905 gtk_widget_get_preferred_size() should be used instead
3907 * webkit/webkitwebview.cpp:
3908 (PopupMenuPositionFunc):
3910 2010-10-06 Sheriff Bot <webkit.review.bot@gmail.com>
3912 Unreviewed, rolling out r69201.
3913 http://trac.webkit.org/changeset/69201
3914 https://bugs.webkit.org/show_bug.cgi?id=47279
3916 This change broke the WebKitGTK+ build for GTK+ 2.0.
3917 (Requested by mrobinson on #webkit).
3919 * tests/testcopyandpaste.c:
3920 (runPasteTestCallback):
3921 * webkit/webkitwebview.cpp:
3922 (webkit_web_view_button_press_event):
3924 2010-10-06 Carlos Garcia Campos <cgarcia@igalia.com>
3926 Reviewed by Xan Lopez.
3928 Port to gtk+3 (2.91.0)
3929 https://bugs.webkit.org/show_bug.cgi?id=47249
3931 Do not use GdkDrawable deprecated API
3933 Some methods of GdkDrawable are deprecated in gtk2 and have been
3934 remmoved in gtk3. Equivalent API has been added to GdkWindow.
3936 * tests/testcopyandpaste.c:
3937 (runPasteTestCallback):
3938 * webkit/webkitwebview.cpp:
3939 (webkit_web_view_button_press_event):
3941 2010-09-28 Jenn Braithwaite <jennb@chromium.org>
3943 Reviewed by Dmitry Titov.
3945 Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
3946 https://bugs.webkit.org/show_bug.cgi?id=46663
3948 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3949 (WebKit::FrameLoaderClient::didTransferChildFrameToNewDocument):
3950 * WebCoreSupport/FrameLoaderClientGtk.h:
3952 2010-09-27 Mario Sanchez Prada <msanchez@igalia.com>
3954 Reviewed by Chris Fleizach.
3956 [Gtk] Adjust atk_text_get_text_at_offset to account for bullets/numbers in list items
3957 https://bugs.webkit.org/show_bug.cgi?id=45381
3959 Updated test to match the new exposure of list item markers.
3961 Also, added some extra assertions in that test to make sure the
3962 accessible objects associated to the items implement AtkText.
3965 (testWebkitAtkListsOfItems):
3968 2010-09-27 Philippe Normand <pnormand@igalia.com>
3970 Reviewed by Martin Robinson.
3972 [GTK] Doesn't build with gtk+ 2.14
3973 https://bugs.webkit.org/show_bug.cgi?id=46565
3975 Fixed the build for GTK+ 2.14. Don't use gdk_window_get_cursor()
3976 for that GTK+ version as I found no acceptable way to work-around
3979 * WebCoreSupport/FullscreenVideoController.cpp:
3980 (FullscreenVideoController::showHud):
3981 (FullscreenVideoController::hideHud):
3982 (FullscreenVideoController::enterFullscreen):
3984 2010-09-26 Jenn Braithwaite <jennb@chromium.org>
3986 Reviewed by Adam Barth.
3988 GTK client needs updating when live iframe element is moved
3990 https://bugs.webkit.org/show_bug.cgi?id=46300
3992 Test: fast/frames/iframe-reparenting-adopt-node.html
3994 * WebCoreSupport/FrameLoaderClientGtk.cpp:
3995 (WebKit::FrameLoaderClient::didTransferChildFrameToNewDocument):
3996 Update the webView for the frame to match the parent frame's
3999 2010-09-24 Martin Robinson <mrobinson@igalia.com>
4001 Reviewed by Gustavo Noronha Silva.
4003 [GTK] opening local files on win32
4004 https://bugs.webkit.org/show_bug.cgi?id=31066
4006 Add tests that check the mime type returned by local files loaded via file URLs.
4008 * tests/testmimehandling.c:
4009 (testRemoteMimeType): Added.
4010 (testLocalMimeType): Added.
4011 (main): Run tests by using g_test_add_data_func with either
4012 testRemoteMimeType or testLocalMimeType.
4014 2010-09-23 Martin Robinson <mrobinson@igalia.com>
4016 Reviewed by Nate Chapin.
4018 [GTK] Some tests from r68174 fail on the GTK+ bots
4019 https://bugs.webkit.org/show_bug.cgi?id=46396
4021 Fix since version number in this new WebKitWebSettings property.
4023 * webkit/webkitwebsettings.cpp:
4024 (webkit_web_settings_class_init): Fix the since version number.
4026 2010-09-23 Nate Chapin <japhet@chromium.org>
4028 Unreviewed, build fix.
4030 Add a missing comma in webkitwebsettings.cpp.
4032 * webkit/webkitwebsettings.cpp:
4034 2010-09-23 Nate Chapin <japhet@chromium.org>
4036 Reviewed by Darin Fisher.
4038 Add hyperlink auditing settings (i.e., <a ping>).
4039 https://bugs.webkit.org/show_bug.cgi?id=30458
4041 * webkit/webkitwebsettings.cpp:
4042 (webkit_web_settings_class_init):
4043 (webkit_web_settings_set_property):
4044 (webkit_web_settings_get_property):
4045 (webkit_web_settings_copy):
4046 * webkit/webkitwebview.cpp:
4047 (webkit_web_view_update_settings):
4048 (webkit_web_view_settings_notify):
4050 2010-09-22 Mario Sanchez Prada <msanchez@igalia.com>
4052 Reviewed by Martin Robinson.
4054 [GTK] Replace instances of g_timeout_add() with g_idle_add() in testatk.c
4055 https://bugs.webkit.org/show_bug.cgi?id=46284
4057 Use g_idle_add() whenever g_timeout_add() was being used.
4059 This is desired because it's better to rely on the main loop to
4060 decide when it's a good moment to execute the task (when idle)
4061 than manually setting a timeout, which also sets a minimum amount
4062 of time needed to get the function executed.
4065 (testWekitAtkTextSelections):
4066 (testWebkitAtkGetExtents):
4067 (testWebkitAtkListsOfItems):
4070 2010-09-22 Mario Sanchez Prada <msanchez@igalia.com>
4072 Reviewed by Martin Robinson.
4074 [Gtk] object:text-changed events should be emitted for entries and password text
4075 https://bugs.webkit.org/show_bug.cgi?id=25898
4077 New unit test to make sure text-changed signals are emitted
4080 (textChangedCb): New. Signal handler for the
4081 text-changed::insert and text-changed::delete signals.
4082 (checkTextChangesAndBailOut): New. Source function to check
4083 the global result of the test and quit from the main loop.
4084 (testWebkitAtkTextChangedNotifications): New test.
4087 2010-09-22 Martin Robinson <mrobinson@igalia.com>
4089 Reviewed by Xan Lopez.
4091 Added information about drop shadow improvements to the NEWS file.
4093 * NEWS: Added information about drop shadow improvements.
4095 2010-09-21 Xan Lopez <xlopez@igalia.com>
4097 Reviewed by Martin Robinson.
4099 [GTK] Fix transfer annotations for WebKitGTK+ static API
4100 https://bugs.webkit.org/show_bug.cgi?id=46244
4102 Deal with all the warnings related to transfer issues. Mostly the
4103 problem was the transfer being missing, but there were also typos
4104 in the function name or missing ':' at the end of the function
4105 name in the gtk-doc.
4107 * webkit/webkitdownload.cpp:
4108 * webkit/webkitnetworkrequest.cpp:
4109 * webkit/webkitnetworkresponse.cpp:
4110 * webkit/webkitsecurityorigin.cpp:
4111 * webkit/webkitwebdatabase.cpp:
4112 * webkit/webkitwebdatasource.cpp:
4113 * webkit/webkitwebframe.cpp:
4114 * webkit/webkitwebhistoryitem.cpp:
4115 * webkit/webkitwebinspector.cpp:
4116 * webkit/webkitwebresource.cpp:
4117 * webkit/webkitwebsettings.cpp:
4118 * webkit/webkitwebview.cpp:
4119 (webkit_web_view_class_init):
4120 (webkit_web_view_get_main_frame):
4122 2010-09-21 Xan Lopez <xlopez@igalia.com>
4124 Reviewed by Gustavo Noronha.
4126 Update for 1.3.4 release.
4130 2010-09-17 Darin Adler <darin@apple.com>
4132 Reviewed by Sam Weinig.
4134 REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
4135 https://bugs.webkit.org/show_bug.cgi?id=42863
4137 * webkit/webkitwebview.cpp:
4138 (webkit_web_view_get_zoom_level):
4139 (webkit_web_view_apply_zoom_level):
4140 (webkit_web_view_set_full_content_zoom):
4141 Call functions on Frame instead of FrameView.
4143 2010-09-16 Martin Robinson <mrobinson@igalia.com>
4145 Reviewed by Xan Lopez.
4147 [GTK] Implement dissolveDragImageToFraction
4148 https://bugs.webkit.org/show_bug.cgi?id=45826
4150 To support full alpha in the drag icon, changed the drag icon to be a
4151 GtkWindow with an RGBA colormap. Added logic to support painting the drag
4152 image to this window during the expose event.
4154 * WebCoreSupport/DragClientGtk.cpp:
4155 (WebKit::dragIconWindowExposeEventCallback): Added.
4156 (WebKit::DragClient::DragClient): Initialize the new drag icon window.
4157 (WebKit::DragClient::~DragClient): Disconnect the expose event signal.
4158 (WebKit::DragClient::startDrag): Resize the drag icon window the appropriate size and
4159 if necessary, set its colormap.
4160 (WebKit::DragClient::dragIconWindowExposeEvent): Added.
4161 * WebCoreSupport/DragClientGtk.h: Added new member and method declarations.
4163 2010-09-14 Philippe Normand <pnormand@igalia.com>
4165 Reviewed by Eric Carlson and Martin Robinson.
4167 [GTK] eventSender.contextClick() should return the contents of the context menu
4168 https://bugs.webkit.org/show_bug.cgi?id=39102
4170 New private WebView API to retrieve the context-menu widget. This
4171 is used by DRT only.
4173 * webkit/webkitprivate.h:
4174 * webkit/webkitwebview.cpp:
4175 (webkit_web_view_get_context_menu):
4177 2010-09-16 Alejandro G. Castro <alex@igalia.com>
4179 Reviewed by Xan Lopez.
4181 GTK+ 3.x. updates, gtk_widget_size_request is deprecated and
4182 "activate-slider" style property for scrollbars is gone.
4184 * webkit/webkitwebview.cpp:
4185 (PopupMenuPositionFunc):
4187 2010-09-15 Martin Robinson <mrobinson@igalia.com>
4189 Reviewed by David Levin.
4191 [GTK] [REGRESSION] r67591 broke the testwebbackforwardlist&nbs