[Qt][Wk2] Add an API test for scroll request from javascript
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2011-11-18  Dinu Jacob  <dinu.jacob@nokia.com>
2
3         [Qt][Wk2] Add an API test for scroll request from javascript
4         https://bugs.webkit.org/show_bug.cgi?id=72407
5
6         New API test added for QQuickWebView for javascript scroll request 
7         Reviewed by Simon Hausmann.
8
9         * UIProcess/API/qt/tests/html/scroll.html: Added.
10         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
11         (tst_QQuickWebView::scrollRequest):
12
13 2011-11-18 No'am Rosenthal  <noam.rosenthal@nokia.com>
14
15         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
16         https://bugs.webkit.org/show_bug.cgi?id=61694
17
18         Add an ArgumentCoder for KeyframeValueList, and modify the TimingFunction ArgumentCoder to
19         allow encoding const TimingFunctions and not just RefPtr<TimingFunction>.
20
21         Reviewed by Simon Hausmann.
22
23         * Scripts/webkit2/messages.py:
24         * Shared/WebCoreArgumentCoders.cpp:
25         (CoreIPC::::encode):
26         (CoreIPC::::decode):
27         * Shared/WebCoreArgumentCoders.h:
28
29 2011-11-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
30
31         [Qt] Guard for the viewportInteractionEngine as it doesn't always exist.
32
33         Reviewed by Antonio Gomes.
34
35         The engine is non-existent when the view is configured to use desktop
36         behavior.
37
38         * UIProcess/qt/QtWebPageProxy.cpp:
39         (QtWebPageProxy::handleWheelEvent):
40         (QtWebPageProxy::didFindZoomableArea):
41
42 2011-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
43
44         [GTK] Send DidCreateDestination to DownloadProxy when destination has been created
45         https://bugs.webkit.org/show_bug.cgi?id=72724
46
47         Reviewed by Martin Robinson.
48
49         * WebProcess/Downloads/soup/DownloadSoup.cpp:
50         (WebKit::DownloadClient::didReceiveResponse): Call
51         didCreateDestination() when destination URI has been successfully
52         created.
53
54 2011-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
55
56         [GTK] Cancel current download operation before download object is deleted
57         https://bugs.webkit.org/show_bug.cgi?id=72721
58
59         Reviewed by Martin Robinson.
60
61         It fixes a crash in the web process when a download finishes early
62         due to a failure.
63
64         * WebProcess/Downloads/soup/DownloadSoup.cpp:
65         (WebKit::Download::cancel): Delete current ResourceHandle.
66         (WebKit::Download::platformInvalidate): If there's a
67         ResourceHandle active, cancel the download operation and delete
68         the handle.
69         (WebKit::Download::platformDidFinish): Delete current ResourceHandle.
70
71 2011-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
72
73         [GTK] Downloads not started by WebView only fail for transport errors
74         https://bugs.webkit.org/show_bug.cgi?id=72718
75
76         Reviewed by Martin Robinson.
77
78         * WebProcess/Downloads/soup/DownloadSoup.cpp:
79         (WebKit::DownloadClient::didReceiveResponse): Check if the http
80         status of the response is an error code and finish the download
81         with an error in such case.
82
83 2011-11-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
84
85         [Qt] Support customizing JS alert/confirm/prompt dialogs using QML
86         https://bugs.webkit.org/show_bug.cgi?id=72319
87
88         Reviewed by Simon Hausmann.
89
90         Adds alertDialog, confirmDialog and promptDialog properties to QQuickWebView's
91         privateObject. These are QML components that are created by the webview when the
92         corresponding function is called in JS.
93
94         The dialogs are created in a context that contains a model object, similar to
95         ListView delegates. The "message" and "defaultValue" parameters are available
96         in the model object, as well as slots expected to be called by the dialog.
97
98         This commit removes the old code for supporting QWidget builtin dialogs. The code
99         wasn't working properly (closing any dialog was closing the app after QWindow
100         refactoring in Qt5).
101
102         * Target.pri:
103         * UIProcess/API/qt/qquickwebview.cpp:
104         (QQuickWebViewPrivate::runJavaScriptAlert):
105         (QQuickWebViewPrivate::runJavaScriptConfirm):
106         (QQuickWebViewPrivate::runJavaScriptPrompt):
107         (QQuickWebViewExperimental::alertDialog):
108         (QQuickWebViewExperimental::setAlertDialog):
109         (QQuickWebViewExperimental::confirmDialog):
110         (QQuickWebViewExperimental::setConfirmDialog):
111         (QQuickWebViewExperimental::promptDialog):
112         (QQuickWebViewExperimental::setPromptDialog):
113         * UIProcess/API/qt/qquickwebview_p.h:
114         * UIProcess/API/qt/qquickwebview_p_p.h:
115         * UIProcess/API/qt/tests/qmltests/WebView/tst_javaScriptDialogs.qml: Added.
116         * UIProcess/API/qt/tests/qmltests/common/alert.html: Added.
117         * UIProcess/API/qt/tests/qmltests/common/confirm.html: Added.
118         * UIProcess/API/qt/tests/qmltests/common/prompt.html: Added.
119         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
120         * UIProcess/qt/QtDialogRunner.cpp: Added.
121         (QtDialogRunner::QtDialogRunner):
122         (QtDialogRunner::~QtDialogRunner):
123         (DialogContextObject::DialogContextObject):
124         (DialogContextObject::message):
125         (DialogContextObject::defaultValue):
126         (DialogContextObject::dismiss):
127         (DialogContextObject::accept):
128         (DialogContextObject::reject):
129         (QtDialogRunner::initForAlert):
130         (QtDialogRunner::initForConfirm):
131         (QtDialogRunner::initForPrompt):
132         (QtDialogRunner::createDialog):
133         * UIProcess/qt/QtDialogRunner.h: Added.
134         (QtDialogRunner::wasAccepted):
135         (QtDialogRunner::result):
136         (QtDialogRunner::onAccepted):
137
138 2011-11-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
139
140         [Qt] Support wheel event together with resizesToContents
141
142         Reviewed by Simon Hausmann.
143
144         * UIProcess/API/qt/qquickwebpage.cpp:
145         * UIProcess/qt/QtViewportInteractionEngine.cpp:
146         (WebKit::QtViewportInteractionEngine::wheelEvent):
147         * UIProcess/qt/QtViewportInteractionEngine.h:
148         * UIProcess/qt/QtWebPageProxy.cpp:
149         (QtWebPageProxy::handleWheelEvent):
150
151 2011-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
152
153         [Qt][WK2] Layer violation: WebPopupMenuProxyQtDesktop.cpp uses files from WebKit/qt
154         https://bugs.webkit.org/show_bug.cgi?id=72696
155
156         Reviewed by Kenneth Rohde Christiansen.
157
158         Implement the WK2 desktop popup by simply subclassing QComboBox and doing the
159         same thing as QtWebComboBox from WK1 (a few lines of code).
160
161         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
162         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
163         (WebKit::WebPopupMenuProxyQtDesktop::~WebPopupMenuProxyQtDesktop):
164         (WebKit::WebPopupMenuProxyQtDesktop::showPopupMenu):
165         (WebKit::WebPopupMenuProxyQtDesktop::hidePopupMenu):
166         (WebKit::WebPopupMenuProxyQtDesktop::eventFilter):
167         (WebKit::WebPopupMenuProxyQtDesktop::setSelectedIndex):
168         (WebKit::WebPopupMenuProxyQtDesktop::populate):
169         * UIProcess/qt/WebPopupMenuProxyQtDesktop.h:
170
171 2011-11-18  Zeno Albisser  <zeno@webkit.org>
172
173         [Qt][WK2] setViewportInteractionEngine must also set the InteractionEngine for the tap recognizer.
174         https://bugs.webkit.org/show_bug.cgi?id=72717
175
176         Reviewed by Kenneth Rohde Christiansen.
177
178         * UIProcess/qt/QtTapGestureRecognizer.cpp:
179         (WebKit::QtTapGestureRecognizer::setViewportInteractionEngine):
180         * UIProcess/qt/QtTapGestureRecognizer.h:
181         * UIProcess/qt/QtWebPageProxy.cpp:
182         (QtWebPageProxy::setViewportInteractionEngine):
183         * UIProcess/qt/QtWebPageProxy.h:
184
185 2011-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
186
187         [Qt][WK2] Fix popups for select elements.
188
189         Reviewed by Tor Arne Vestbø.
190
191         * UIProcess/qt/QtWebPageProxy.cpp:
192         (QtWebPageProxy::createPopupMenuProxy): Fall back to the "desktop" implementation
193         for the moment. Better than nothing :)
194
195 2011-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
196
197         [Qt] Unreviewed debug build fix
198
199         * UIProcess/qt/QtWebPageProxy.cpp:
200         (QtWebPageProxy::QtWebPageProxy): Don't assert on a non-existant
201         variable.
202
203 2011-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
204
205         [Qt] Removal of QtViewInterface part 3
206
207         Reviewed by Kenneth Rohde Christiansen.
208
209         Move the remaining forwarded calls from ClientImpl that went through
210         ViewInterface and then PageProxy or WebView to go straight to
211         QtWebPageProxy. QtViewInterface is empty now and therefore removed.
212
213         * Target.pri:
214         * UIProcess/API/qt/qquickwebpage_p.h:
215         * UIProcess/API/qt/qquickwebpage_p_p.h:
216         * UIProcess/API/qt/qquickwebview.cpp:
217         (QQuickWebViewPrivate::initialize):
218         (QQuickWebViewPrivate::chooseFiles):
219         * UIProcess/API/qt/qquickwebview_p.h:
220         * UIProcess/API/qt/qquickwebview_p_p.h:
221         * UIProcess/qt/ClientImpl.cpp:
222         (qt_wk_runJavaScriptAlert):
223         (qt_wk_runJavaScriptConfirm):
224         (qt_wk_runJavaScriptPrompt):
225         (qt_wk_setStatusText):
226         (qt_wk_runOpenPanel):
227         (qt_wk_mouseDidMoveOverElement):
228         (setupPageUiClient):
229         * UIProcess/qt/QtViewInterface.cpp: Removed.
230         * UIProcess/qt/QtViewInterface.h: Removed.
231         * UIProcess/qt/QtWebPageProxy.cpp:
232         (QtWebPageProxy::QtWebPageProxy):
233         (QtWebPageProxy::didChangeStatusText):
234         (QtWebPageProxy::didMouseMoveOverElement):
235         (QtWebPageProxy::showContextMenu):
236         (QtWebPageProxy::hideContextMenu):
237         (QtWebPageProxy::runJavaScriptAlert):
238         (QtWebPageProxy::runJavaScriptConfirm):
239         (QtWebPageProxy::runJavaScriptPrompt):
240         (QtWebPageProxy::chooseFiles):
241         (QtWebPageProxy::createContextMenuProxy):
242         (QtWebPageProxy::didChangeLoadProgress):
243         * UIProcess/qt/QtWebPageProxy.h:
244         (QtWebPageProxy::contextMenuItemSelected):
245         * UIProcess/qt/WebContextMenuProxyQt.cpp:
246         (WebKit::WebContextMenuProxyQt::WebContextMenuProxyQt):
247         (WebKit::WebContextMenuProxyQt::create):
248         (WebKit::WebContextMenuProxyQt::hideContextMenu):
249         * UIProcess/qt/WebContextMenuProxyQt.h:
250
251 2011-11-18  Zalan Bujtas  <zbujtas@gmail.com>
252
253         [Qt][WK2] UI process segfaults, when visiblity properties are set while the WebProcess is dead.
254         https://bugs.webkit.org/show_bug.cgi?id=72699
255
256         The drawing area may be null, if the web process has crashed, but not yet recovered.
257         Always null check against drawing area.
258
259         Reviewed by Simon Hausmann.
260
261         * UIProcess/qt/QtWebPageProxy.cpp:
262         (QtWebPageProxy::setDrawingAreaSize):
263         (QtWebPageProxy::setVisibleContentRectAndScale):
264         (QtWebPageProxy::setVisibleContentRectTrajectoryVector):
265
266 2011-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
267
268         [Qt] Removal of QtViewInterface part 2
269
270         Reviewed by Kenneth Rohde Christiansen.
271
272         Move all functions that forwarded from QtWebPageProxy to QtViewInterface and then
273         to QQuickWebView straight into QtWebPageProxy.
274
275         * UIProcess/API/qt/qquickwebpage_p.h:
276         * UIProcess/API/qt/qquickwebview.cpp:
277         (QQuickWebViewPrivate::initialize):
278         * UIProcess/API/qt/qquickwebview_p_p.h:
279         * UIProcess/qt/QtViewInterface.cpp:
280         * UIProcess/qt/QtViewInterface.h:
281         * UIProcess/qt/QtWebPageProxy.cpp:
282         (QtWebPageProxy::QtWebPageProxy):
283         (QtWebPageProxy::setCursor):
284         (QtWebPageProxy::isViewWindowActive):
285         (QtWebPageProxy::isViewVisible):
286         (QtWebPageProxy::pageDidRequestScroll):
287         (QtWebPageProxy::didFinishFirstNonEmptyLayout):
288         (QtWebPageProxy::didChangeContentsSize):
289         (QtWebPageProxy::didChangeViewportProperties):
290         (QtWebPageProxy::toolTipChanged):
291         (QtWebPageProxy::didChangeUrl):
292         (QtWebPageProxy::didChangeTitle):
293         (QtWebPageProxy::loadDidBegin):
294         (QtWebPageProxy::loadDidCommit):
295         (QtWebPageProxy::loadDidSucceed):
296         (QtWebPageProxy::loadDidFail):
297         (QtWebPageProxy::didRelaunchProcess):
298         (QtWebPageProxy::processDidCrash):
299         (QtWebPageProxy::startDrag):
300         (QtWebPageProxy::didReceiveDownloadResponse):
301         * UIProcess/qt/QtWebPageProxy.h:
302
303 2011-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
304
305         [Qt] Removal of QtViewInterface part 1
306
307         Reviewed by Kenneth Rohde Christiansen.
308
309         Replace functions of QtViewInterface that forward to QQuickWebPage with direct
310         usage of QQuickWebPage. Also removed some dead code.
311
312         * UIProcess/API/qt/qquickwebpage.cpp:
313         (QQuickWebPage::sceneGraphUpdateQueue):
314         * UIProcess/API/qt/qquickwebpage_p.h:
315         * UIProcess/API/qt/qquickwebview.cpp:
316         (QQuickWebViewPrivate::initialize):
317         * UIProcess/TiledDrawingAreaProxy.h:
318         * UIProcess/qt/QtViewInterface.cpp:
319         (WebKit::QtViewInterface::QtViewInterface):
320         (WebKit::QtViewInterface::isVisible):
321         * UIProcess/qt/QtViewInterface.h:
322         * UIProcess/qt/QtWebPageProxy.cpp:
323         (QtWebPageProxy::QtWebPageProxy):
324         (QtWebPageProxy::setViewNeedsDisplay):
325         (QtWebPageProxy::viewSize):
326         (QtWebPageProxy::isViewFocused):
327         (QtWebPageProxy::isViewVisible):
328         (QtWebPageProxy::didRelaunchProcess):
329         * UIProcess/qt/QtWebPageProxy.h:
330         (QtWebPageProxy::qmlWebPage):
331         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
332
333 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
334
335         [Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
336         https://bugs.webkit.org/show_bug.cgi?id=72597
337
338         Reviewed by Kenneth Rohde Christiansen.
339
340         Stub implementation of new NetworkingContext::thirdPartyCookiePolicyPermission
341         API.
342
343         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
344         (WebCore::WebFrameNetworkingContext::thirdPartyCookiePolicyPermission):
345         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h:
346
347 2011-11-17  Martin Robinson  <mrobinson@igalia.com>
348
349         [GTK] The process freezes when you right click on windowless Flash
350         https://bugs.webkit.org/show_bug.cgi?id=69123
351
352         Reviewed by Xan Lopez.
353
354         Add a new plugin quirk for dealing with right-clicking on
355         windowless Flash on x86_64 machines. This already exists for
356         WebKit1.
357
358         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
359         (WebKit::NetscapePluginModule::determineQuirks): If the plugin is
360         Flash and we are on x86_64, then disable sending right-clicking
361         events while in windowless mode.
362         * Shared/Plugins/PluginQuirks.h: Add the new quirk.
363         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
364         (WebKit::NetscapePlugin::platformHandleMouseEvent): If the quirk
365         is active  don't send right click events.
366
367 2011-11-17  Igor Oliveira  <igor.oliveira@openbossa.org>
368
369         [WK2] Fix TransformOperation serialization
370         https://bugs.webkit.org/show_bug.cgi?id=72625
371
372         SimpleArgumentCoder can encode and decode just POD types. And according the 
373         ISO/IEC 14882, POD types does not have virtual methods, however TransformOperation
374         has pure virtual methods.
375
376         This patch fixes TransformOperation subclass serialization.
377
378         Reviewed by Noam Rosenthal.
379
380         * Shared/WebCoreArgumentCoders.cpp:
381         (CoreIPC::::encode):
382         (CoreIPC::::decode):
383         (CoreIPC::encodeOperation):
384         (CoreIPC::decodeOperation):
385         * Shared/WebCoreArgumentCoders.h:
386
387 2011-11-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
388
389         [Qt][WK2] Fix zero sized views in all QML tests
390         https://bugs.webkit.org/show_bug.cgi?id=72633
391
392         Reviewed by Noam Rosenthal.
393
394         After r100590, zero sized WebViews are no longer supported and,
395         therefore, the QML API tests need to be fixed.
396
397         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadFail.qml:
398         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgress.qml:
399         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgressSignal.qml:
400         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadZeroSizeView.qml: Removed.
401         * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml:
402         * UIProcess/API/qt/tests/qmltests/WebView/tst_properties.qml:
403         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
404
405 2011-11-17  Alexis Menard  <alexis.menard@openbossa.org>
406
407         [Qt][WK2] Don't export the private QQuickView.
408
409         Reviewed by Kenneth Rohde Christiansen.
410
411         We don't need to export that class anymore as the experimental QML plugin
412         does not expose this object anymore.
413
414         * UIProcess/API/qt/qquickwebview_p_p.h:
415
416 2011-11-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
417
418         [Qt] Expose setUseTraditionalDesktopBehaviour() in QML experimental API
419         https://bugs.webkit.org/show_bug.cgi?id=72610
420
421         Reviewed by Kenneth Rohde Christiansen.
422
423         * UIProcess/API/qt/qquickwebview_p.h:
424
425 2011-11-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
426
427         Print warning for the Qt port when a process crashes and is relaunched
428         https://bugs.webkit.org/show_bug.cgi?id=72607
429
430         Reviewed by Antonio Gomes.
431
432         Make the QtViewInterface::processDidCrash take a URL string argument,
433         for being able to say which url was the origin of the crash.
434
435         We now additionally store the load state and url at process exit. This
436         is needed for printing the warning and for further crash handling.
437
438         * UIProcess/PageClient.h:
439         * UIProcess/WebPageProxy.cpp:
440         (WebKit::WebPageProxy::processDidCrash):
441         * UIProcess/qt/QtViewInterface.cpp:
442         (WebKit::QtViewInterface::processDidCrash):
443         (WebKit::QtViewInterface::didRelaunchProcess):
444         * UIProcess/qt/QtViewInterface.h:
445         * UIProcess/qt/QtWebPageProxy.cpp:
446         (QtWebPageProxy::processDidCrash):
447         * UIProcess/qt/QtWebPageProxy.h:
448
449 2011-11-17  Alexis Menard  <alexis.menard@openbossa.org>
450
451         [Qt][WK2] Cleanup dead code in QtWebPageProxy.
452         https://bugs.webkit.org/show_bug.cgi?id=72608
453
454         Reviewed by Simon Hausmann.
455
456         Remove some dead code after we merged our views.
457         QQuickWebView is now using AC which means that this
458         path is never called now.
459
460         * UIProcess/qt/QtWebPageProxy.cpp:
461         (QtWebPageProxy::didReceiveDownloadResponse):
462         * UIProcess/qt/QtWebPageProxy.h:
463
464 2011-11-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
465
466         [Qt] Remove forwarding header for WebKit2 C API
467
468         The Qt port of WebKit does not provide a C-API for the View classes.
469
470         Reviewed by Simon Hausmann.
471
472         * UIProcess/API/C/WebKit2.h:
473         * UIProcess/API/qt/WKView.h: Removed.
474
475 2011-11-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
476
477         [Qt] Resolve import and web-process paths automatically for QML tests
478
479         Reviewed by Kenneth Rohde Christiansen.
480
481         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
482         * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp:
483         (main):
484
485 2011-11-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
486
487         [Qt] Move WebKit2 C++ APIs to private API and build QML extension plugin on top of that
488
489         A new extension object has been added to QQuickWebView (the same approach should be used
490         for other API classes that need experimental APIs). The QML extension mechanism is then
491         built on top of the experimental object.
492
493         https://bugs.webkit.org/show_bug.cgi?id=72522
494
495         Reviewed by Simon Hausmann.
496
497         * Target.pri:
498         * UIProcess/API/qt/qquickwebpage.cpp:
499         * UIProcess/API/qt/qquickwebpage.h: Removed.
500         * UIProcess/API/qt/qquickwebpage_p.h:
501         * UIProcess/API/qt/qquickwebpage_p_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qquickwebviewprivateextension_p.h.
502         * UIProcess/API/qt/qquickwebview.cpp:
503         (QQuickWebViewExperimental::QQuickWebViewExperimental):
504         (QQuickWebViewExperimental::~QQuickWebViewExperimental):
505         (QQuickWebViewExperimental::setUseTraditionalDesktopBehaviour):
506         (QQuickWebView::QQuickWebView):
507         (QQuickWebView::experimental):
508         * UIProcess/API/qt/qquickwebview.h: Removed.
509         * UIProcess/API/qt/qquickwebview_p.h:
510         * UIProcess/API/qt/qquickwebview_p_p.h: Copied from Source/WebKit2/UIProcess/API/qt/qquickwebview_p.h.
511         * UIProcess/API/qt/qquickwebviewprivateextension.cpp: Removed.
512         * UIProcess/API/qt/qwebdownloaditem.cpp:
513         * UIProcess/API/qt/qwebdownloaditem.h: Removed.
514         * UIProcess/API/qt/qwebdownloaditem_p.h:
515         * UIProcess/API/qt/qwebdownloaditem_p_p.h: Copied from Source/WebKit2/UIProcess/API/qt/qwebdownloaditem_p.h.
516         (QWebDownloadItemPrivate::didReceiveResponse):
517         * UIProcess/API/qt/qwebpreferences.cpp:
518         * UIProcess/API/qt/qwebpreferences.h: Removed.
519         * UIProcess/API/qt/qwebpreferences_p.h:
520         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
521         * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp:
522         (DesktopWebView::DesktopWebView):
523         * UIProcess/API/qt/tests/qquickwebview/qquickwebview.pro:
524         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
525         * UIProcess/qt/QtDownloadManager.cpp:
526         * UIProcess/qt/QtViewInterface.cpp:
527         * UIProcess/qt/QtWebError.h:
528         * UIProcess/qt/QtWebPageProxy.cpp:
529
530 2011-11-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
531
532         Unreviewed build fix.
533
534         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
535         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
536
537 2011-11-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
538
539         Make use-fixed-layout work reliable
540         https://bugs.webkit.org/show_bug.cgi?id=72511
541
542         Reviewed by Simon Hausmann.
543
544         The code handling use-fixed-layout wasn't 100% reliable. The code
545         was changed to make sure the value is always correct.
546
547         It also doesn't set the value by looking at the previous FrameView,
548         as that wouldn't work in cases, such as when the web process has
549         crashed.
550
551         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
552         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
553         * WebProcess/WebPage/WebPage.cpp:
554         (WebKit::WebPage::WebPage):
555         (WebKit::WebPage::setResizesToContentsUsingLayoutSize):
556         (WebKit::WebPage::setUseFixedLayout):
557         * WebProcess/WebPage/WebPage.h:
558         (WebKit::WebPage::useFixedLayout):
559
560             Store the state as m_useFixedLayout so that it can be used
561             from the WebFrameLoaderClient.
562
563 2011-11-17  Zalan Bujtas  <zbujtas@gmail.com>
564
565         [Qt][WK2] Do not apply new viewport properties until after the first visually non-empty layout.
566         https://bugs.webkit.org/show_bug.cgi?id=72508
567
568         Delay applying viewport properties on the viewport item until after the first visually non-empty
569         layout finished. It enables the viewport to be intact until the new page is ready to be rendered.
570
571         Reviewed by Kenneth Rohde Christiansen.
572
573         * UIProcess/API/qt/qquickwebview.cpp:
574         (QQuickWebViewPrivate::QQuickWebViewPrivate):
575         (QQuickWebViewPrivate::loadDidCommit):
576         (QQuickWebViewPrivate::didFinishFirstNonEmptyLayout):
577         (QQuickWebViewPrivate::didChangeContentsSize):
578         (QQuickWebViewPrivate::didChangeViewportProperties):
579         (QQuickWebViewPrivate::updateViewportSize):
580         (QQuickWebViewPrivate::computeViewportConstraints):
581         * UIProcess/API/qt/qquickwebview_p.h:
582         (PostTransitionState::isTransitioningToNewPage):
583         * UIProcess/qt/ClientImpl.cpp:
584         (qt_wk_didFirstVisuallyNonEmptyLayoutForFrame):
585         (setupPageLoaderClient):
586         * UIProcess/qt/QtViewInterface.cpp:
587         (WebKit::QtViewInterface::didFinishFirstNonEmptyLayout):
588         (WebKit::QtViewInterface::didChangeContentsSize):
589         (WebKit::QtViewInterface::didChangeViewportProperties):
590         (WebKit::QtViewInterface::startDrag):
591         * UIProcess/qt/QtViewInterface.h:
592         * UIProcess/qt/QtViewportInteractionEngine.cpp:
593         (WebKit::QtViewportInteractionEngine::reset):
594         (WebKit::QtViewportInteractionEngine::applyConstraints):
595         * UIProcess/qt/QtViewportInteractionEngine.h:
596         * UIProcess/qt/QtWebPageProxy.cpp:
597         (QtWebPageProxy::didFinishFirstNonEmptyLayout):
598         (QtWebPageProxy::didChangeContentsSize):
599         (QtWebPageProxy::didChangeViewportProperties):
600         (QtWebPageProxy::startDrag):
601         * UIProcess/qt/QtWebPageProxy.h:
602
603 2011-11-17  Eunmi Lee  <eunmi15.lee@samsung.com>
604
605         Reviewed by Martin Robinson.
606
607         [WK2] Move gtk/BackingStoreGtk.cpp to cairo/BackingStoreCairo.cpp to share with EFL port.
608         https://bugs.webkit.org/show_bug.cgi?id=62444
609
610         Rename gtk/BackingStoreGtk.cpp to cairo/BackingStoreCairo.cpp to share with EFL port.
611         The gtk/BackingStoreGtk.cpp only has cairo dependency, so it can be shared with other port
612         that uses cairo.
613
614         * GNUmakefile.am:
615         * UIProcess/BackingStore.h:
616         * UIProcess/cairo/BackingStoreCairo.cpp: Renamed from Source/WebKit2/UIProcess/gtk/BackingStoreGtk.cpp.
617         (WebKit::BackingStore::paint):
618         (WebKit::BackingStore::incorporateUpdate):
619         (WebKit::BackingStore::scroll):
620
621 2011-11-17  Nayan Kumar K  <nayankk@motorola.com>
622
623         [WebKit2][gtk] Add few more properties to WebKitSettings
624         https://bugs.webkit.org/show_bug.cgi?id=72468
625
626         Reviewed by Martin Robinson.
627
628         Add 'enable-private-browsing', 'enable-developer-extras, 'enable-resizable-text-areas'
629         and 'enable-tabs-to-links' properties to WebKitSettings.
630
631         * UIProcess/API/gtk/WebKitSettings.cpp:
632         (webKitSettingsSetProperty): Add new set functions.
633         (webKitSettingsGetProperty): Add new get functions.
634         (webkit_settings_class_init): Add new properties.
635         (webkit_settings_get_enable_private_browsing): Get 'enable-private-browsing' property.
636         (webkit_settings_set_enable_private_browsing): Set 'enable-private-browsing' property.
637         (webkit_settings_get_enable_developer_extras): Get 'enable-developer-extras' property.
638         (webkit_settings_set_enable_developer_extras): Set 'enable-developer-extras' property.
639         (webkit_settings_get_enable_resizable_text_areas): Get 'enable-resizable-text-areas' property.
640         (webkit_settings_set_enable_resizable_text_areas): Set 'enable-resizable-text-areas' property.
641         (webkit_settings_get_enable_tabs_to_links): Get 'enable-tabs-to-links' property.
642         (webkit_settings_set_enable_tabs_to_links): Set 'enable-tabs-to-links' property.
643         * UIProcess/API/gtk/WebKitSettings.h: New public APIs added.
644         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: New APIs added.
645         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
646         (testWebKitSettings): Add new tests.
647
648 2011-11-17  Carlos Garcia Campos  <cgarcia@igalia.com>
649
650         Unreviewed. Fix WebKit2 GTK+ build after r100569.
651
652         * WebProcess/Downloads/soup/DownloadSoup.cpp:
653         (WebKit::DownloadClient::didReceiveResponse):
654
655 2011-11-17  Nayan Kumar K  <nayankk@motorola.com>
656
657         [WebKit2][gtk] Fix assert while running TestWebKitSettings
658         https://bugs.webkit.org/show_bug.cgi?id=72469
659
660         Reviewed by Martin Robinson.
661
662         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
663         (testWebKitSettings): Correct the test.
664
665 2011-11-16  Carlos Garcia Campos  <cgarcia@igalia.com>
666
667         [GTK] Use a URI instead of local path to create download destination in WebKit2
668         https://bugs.webkit.org/show_bug.cgi?id=72500
669
670         Reviewed by Philippe Normand.
671
672         * WebProcess/Downloads/soup/DownloadSoup.cpp:
673         (WebKit::DownloadClient::didReceiveResponse): Use
674         g_file_new_for_uri() instad of g_file_new_for_path(). Also use
675         adoptGRef to fix a memory leak.
676
677 2011-11-16  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
678
679         [Qt] Fix build after WTR AX support
680         https://bugs.webkit.org/show_bug.cgi?id=72560
681
682         Reviewed by Geoffrey Garen.
683
684         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
685         (WKAccessibilityRootObject):
686         (WKAccessibilityFocusedObject):
687
688 2011-11-11  Adrienne Walker  <enne@google.com>
689
690         [chromium] Expose mock scrollbars to window.internals
691         https://bugs.webkit.org/show_bug.cgi?id=72195
692
693         Reviewed by James Robinson.
694
695         * win/WebKit2.def:
696         * win/WebKit2CFLite.def:
697
698 2011-11-16  Dan Bernstein  <mitz@apple.com>
699
700         WebKit2 part of <rdar://problem/10262242> Add API for paginated display
701         https://bugs.webkit.org/show_bug.cgi?id=72537
702
703         Reviewed by Anders Carlsson.
704
705         * Shared/WebPageCreationParameters.cpp:
706         (WebKit::WebPageCreationParameters::encode): Encode the pagination mode and gap between pages.
707         (WebKit::WebPageCreationParameters::decode): Decode the pagination mode and gap between pages.
708         * Shared/WebPageCreationParameters.h: Added paginationMode and gapBetweenPages members.
709         * UIProcess/API/C/WKPage.cpp:
710         (WKPageSetPaginationMode): Added this API wrapper.
711         (WKPageGetPaginationMode): Ditto.
712         (WKPageSetGapBetweenPages): Ditto.
713         (WKPageGetGapBetweenPages): Ditto.
714         (WKPageGetPageCount): Ditto.
715         * UIProcess/API/C/WKPagePrivate.h: Added an enum and a definition of WKPaginationMode and
716         accessors.
717         * UIProcess/API/mac/WKBrowsingContextController.mm:
718         (-[WKBrowsingContextController setPaginationMode:]): Added this API wrapper.
719         (-[WKBrowsingContextController paginationMode]): Ditto.
720         (-[WKBrowsingContextController setGapBetweenPages:]): Ditto.
721         (-[WKBrowsingContextController gapBetweenPages]): Ditto.
722         (-[WKBrowsingContextController pageCount]): Ditto.
723         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Added. Includes an enum and a definition
724         of WKBrowsingContextPaginationMode and property declarations.
725         * UIProcess/WebPageProxy.cpp:
726         (WebKit::WebPageProxy::WebPageProxy): Added intialization of m_paginationMode, m_gapBetweenPages,
727         and m_pageCount.
728         (WebKit::WebPageProxy::setPaginationMode): Added this accessor, which caches the value and sends
729         a message to the WebPage.
730         (WebKit::WebPageProxy::setGapBetweenPages): Ditto.
731         (WebKit::WebPageProxy::creationParameters): Set the pagination mode and gap between pages in the
732         creation parameters.
733         (WebKit::WebPageProxy::didChangePageCount): Added. Updates the cached page count.
734         * UIProcess/WebPageProxy.h:
735         (WebKit::WebPageProxy::paginationMode): Added this getter that returns a cached value.
736         (WebKit::WebPageProxy::gapBetweenPages): Ditto.
737         (WebKit::WebPageProxy::pageCount): Ditto.
738         * UIProcess/WebPageProxy.messages.in: Added DidChangedPageCount, sent when the page count changes
739         after layout.
740         * WebKit2.xcodeproj/project.pbxproj: Added WKBrowsingContextControllerPrivate.h.
741         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 
742         (WebKit::WebFrameLoaderClient::dispatchDidLayout): Added a call to WebPage::mainFrameDidLayout(),
743         allowing the page to respond to changes in the column count.
744         * WebProcess/WebPage/WebPage.cpp:
745         (WebKit::WebPage::WebPage): Added initializer for m_cachedPageCount.
746         (WebKit::WebPage::setPaginationMode): Added.
747         (WebKit::WebPage::setGapBetweenPages): Added.
748         (WebKit::WebPage::mainFrameDidLayout): Added. Sends a DidChangePageCount message to the UI process
749         if the page count has changed.
750         * WebProcess/WebPage/WebPage.h:
751         * WebProcess/WebPage/WebPage.messages.in: Added SetPaginationMode and SetGapBetweenPages messages.
752
753 2011-11-16  Chris Fleizach  <cfleizach@apple.com>
754
755         WebKitTestRunner needs to support accessibility-related DRT APIs
756         https://bugs.webkit.org/show_bug.cgi?id=42131
757
758         Allow the injected bundle to retrieve the focused and root accessibility
759         objects.
760
761         Reviewed by Beth Dakin.
762
763         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
764         (WKAccessibilityRootObject):
765         (WKAccessibilityFocusedObject):
766         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
767
768 2011-11-16  Beth Dakin  <bdakin@apple.com>
769
770         https://bugs.webkit.org/show_bug.cgi?id=72400
771         Scrollbar uiStateTransitionProgress requires tracking the mouse all the time
772         -and corresponding-
773         <rdar://problem/10409328>
774
775         Reviewed by Darin Adler.
776
777         Set up our initial tracking area based on the currently recommended scrollbar 
778         style. Track the mouse all the time if the style is legacy.
779         * UIProcess/API/mac/WKView.mm:
780         (-[WKView initWithFrame:contextRef:pageGroupRef:]):
781
782         Now that we might be getting mouseMoved events all the time even when the window 
783         is not key, make sure we opt into the new 'onlyUpdateScrollbars' mode for 
784         EventHandler::mouseMoved() when the window is not focused.
785         * WebProcess/WebPage/WebPage.cpp:
786         (WebKit::handleMouseEvent):
787         (WebKit::WebPage::mouseEvent):
788         (WebKit::WebPage::mouseEventSyncForTesting):
789
790 2011-11-16  Martin Robinson  <mrobinson@igalia.com>
791
792         [GTK][WEBKIT2] Link error running gtkdoc-scangobj
793         https://bugs.webkit.org/show_bug.cgi?id=72365
794
795         Reviewed by Xan Lopez.
796
797         * webkit2gtk.pc.in: Add a libjavascriptcore requirement to the WebKit2 pkgconfig
798         file so that the compiler links to it.
799
800 2011-11-16  Balazs Kelemen  <kbalazs@webkit.org>
801
802         [WK2][X11] Don't leak the colormap we created for the plugin
803         https://bugs.webkit.org/show_bug.cgi?id=72144
804
805         Reviewed by Xan Lopez.
806
807         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
808         (WebKit::NetscapePlugin::platformDestroy):
809
810 2011-11-16  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
811
812         [Qt] [WK2] Crash in Connection::readyReadHandler() on socket error
813         https://bugs.webkit.org/show_bug.cgi?id=72392
814
815         Reviewed by Simon Hausmann.
816
817         Add QWeakPointer to SocketNotifierResourceGuard::m_socketNotifier to track
818         deallocation of referenced object.
819
820         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
821         (CoreIPC::SocketNotifierResourceGuard::SocketNotifierResourceGuard):
822         (CoreIPC::SocketNotifierResourceGuard::~SocketNotifierResourceGuard):
823
824 2011-11-16  Zeno Albisser  <zeno@webkit.org>
825
826         [Qt][WK2][Mac] MiniBrowser cannot create socketpair.
827         https://bugs.webkit.org/show_bug.cgi?id=72389
828
829         Use SOCK_DGRAM on mac instead of SOCK_SEQPACKET.
830
831         Reviewed by Tor Arne Vestbø.
832
833         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
834
835 2011-11-15  Carlos Garcia Campos  <cgarcia@igalia.com>
836
837         [GTK] Add webkit_web_view_load_request() to WebKit2 GTK+ API
838         https://bugs.webkit.org/show_bug.cgi?id=72380
839
840         Reviewed by Martin Robinson.
841
842         It adds an initial implementation of WebKitNetworkRequest
843         class that only contains a URI for now.
844
845         * GNUmakefile.am:
846         * UIProcess/API/gtk/WebKitNetworkRequest.cpp: Added.
847         (webkitNetworkRequestFinalize):
848         (webkitNetworkRequestGetProperty):
849         (webkitNetworkRequestSetProperty):
850         (webkit_network_request_class_init):
851         (webkit_network_request_init):
852         (webkit_network_request_new):
853         (webkit_network_request_get_uri):
854         * UIProcess/API/gtk/WebKitNetworkRequest.h: Added.
855         * UIProcess/API/gtk/WebKitWebView.cpp:
856         (webkit_web_view_load_request): Use WKPageLoadURLRequest() to load
857         the given WebKitNetworkRequest.
858         * UIProcess/API/gtk/WebKitWebView.h:
859         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
860         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp:
861         (testLoadRequest):
862         (beforeAll):
863         * UIProcess/API/gtk/tests/WebViewTest.cpp:
864         (WebViewTest::loadRequest):
865         * UIProcess/API/gtk/tests/WebViewTest.h:
866         * UIProcess/API/gtk/webkit2.h:
867
868 2011-11-15  Andy Estes  <aestes@apple.com>
869
870         Consolidate the logic that creates run loop observers for flushing layer tree changes to CoreAnimation
871         https://bugs.webkit.org/show_bug.cgi?id=72106
872
873         Reviewed by Anders Carlsson.
874
875         Remove code that schedules layer flushes and use LayerFlushScheduler instead.
876
877         * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.h: Replace
878         m_flushPendingLayerChangesRunLoopObserver with m_layerFlushScheduler
879         and implement the LayerFlushSchedulerClient interface.
880         * WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:
881         (WebKit::LayerTreeHostCAMac::LayerTreeHostCAMac): Instantiate
882         m_layerFlushScheduler with the LayerTreeHost as the client.
883         (WebKit::LayerTreeHostCAMac::~LayerTreeHostCAMac):
884         (WebKit::LayerTreeHostCAMac::scheduleLayerFlush): Call LayerFlushScheduler::schedule().
885         (WebKit::LayerTreeHostCAMac::setLayerFlushSchedulingEnabled): Call
886         LayerFlushScheduler::suspend() or LayerFlushScheduler::resume().
887         (WebKit::LayerTreeHostCAMac::invalidate): Call LayerFlushScheduler::invalidate().
888         (WebKit::LayerTreeHostCAMac::flushLayers): Do the work that
889         flushPendingLayerChangesRunLoopObserverCallback() used to do.
890         (WebKit::LayerTreeHostCAMac::didPerformScheduledLayerFlush): Call LayerFlushScheduler::invalidate().
891
892 2011-11-15  Sam Weinig  <sam@webkit.org>
893
894         Add a connection client to the WKContext, to notify when new connections to the WebProcess are established
895         https://bugs.webkit.org/show_bug.cgi?id=72433
896
897         Reviewed by Anders Carlsson.
898
899         * UIProcess/API/C/WKContext.cpp:
900         (WKContextSetConnectionClient):
901         * UIProcess/API/C/WKContext.h:
902         * UIProcess/WebContext.cpp:
903         (WebKit::WebContext::initializeConnectionClient):
904         * UIProcess/WebContext.h:
905         Add connection client API.
906
907         * UIProcess/WebContextConnectionClient.cpp: Added.
908         (WebKit::WebContextConnectionClient::didCreateConnection):
909         * UIProcess/WebContextConnectionClient.h: Added.
910         Add basic implementation of the client. It is currently never triggered.
911
912 2011-11-15  Jongseok Yang  <js45.yang@samsung.com>
913
914         [SOUP][WK2] Add initial WebCookieManagerSoup.cpp for webkit2
915         https://bugs.webkit.org/show_bug.cgi?id=72235
916
917         Reviewed by Gustavo Noronha Silva.
918
919         Add WebCookieManagerSoup.cpp and implement functions for the cookie accept policy.
920         It's required when using the soup network backend.
921         Remove WebCookieManagerEfl.cpp and WebCookieManagerGtk.cpp because GTK port and
922         EFL port use soup network backend without a network backend of their own.
923
924         * GNUmakefile.am:
925         * WebProcess/Cookies/efl/WebCookieManagerEfl.cpp: Removed.
926         * WebProcess/Cookies/gtk/WebCookieManagerGtk.cpp: Removed.
927         * WebProcess/Cookies/soup/WebCookieManagerSoup.cpp: Added.
928         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
929         (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
930
931 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
932
933         Rename ReferrerPolicy to clarify its meaning
934         https://bugs.webkit.org/show_bug.cgi?id=72420
935
936         Reviewed by Nate Chapin.
937
938         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
939         (WebKit::WebContextMenuClient::searchWithGoogle):
940         * WebProcess/WebPage/WebPage.cpp:
941         (WebKit::WebPage::linkClicked):
942
943 2011-11-15  Sam Weinig  <sam@webkit.org>
944
945         Fix windows build.
946
947         * win/WebKit2Generated.make:
948
949 2011-11-15  Sam Weinig  <sam@webkit.org>
950
951         Add WebKit2 API object to represent a connection
952         https://bugs.webkit.org/show_bug.cgi?id=72421
953
954         Reviewed by Anders Carlsson.
955
956         * GNUmakefile.am:
957         * Target.pri:
958         * WebKit2.xcodeproj/project.pbxproj:
959         * win/WebKit2.vcproj:
960         Add new files.
961
962         * Shared/API/c/WKBase.h:
963         Add type.
964
965         * Shared/API/c/WKConnectionRef.cpp: Added.
966         (WKConnectionGetTypeID):
967         (WKConnectionSetConnectionClient):
968         (WKConnectionPostMessage):
969         * Shared/API/c/WKConnectionRef.h: Added.
970         Expose interface. Currently no support for synchronous messages.
971
972         * Shared/API/c/WKSharedAPICast.h:
973         Define relationship between WebConnection <-> WKConnectionRef.
974
975         * Shared/APIObject.h:
976         Add API type.
977
978         * Shared/WebConnection.cpp: Added.
979         (WebKit::WebConnection::~WebConnection):
980         (WebKit::WebConnection::initializeConnectionClient):
981         * Shared/WebConnection.h: Added.
982         (WebKit::WebConnection::type):
983         Sketch out the connection object. It is currently abstract
984         to allow different implementations for the UI and WebProcess sides
985         while retaining the same interface.
986
987         * Shared/WebConnectionClient.cpp: Added.
988         (WebKit::WebConnectionClient::didReceiveMessage):
989         (WebKit::WebConnectionClient::didClose):
990         * Shared/WebConnectionClient.h: Added.
991         Add simple client.
992
993         * UIProcess/API/C/WebKit2.h:
994         Add new file.
995
996 2011-11-15  Chris Fleizach2  <cfleizach@apple.com>
997
998         AX: WKAccessibilityWebObjectPage should not call super in accessibilityAttributeValue:
999         https://bugs.webkit.org/show_bug.cgi?id=72344
1000
1001         Reviewed by Beth Dakin.
1002
1003         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
1004         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:]):
1005
1006 2011-11-15  Anders Carlsson  <andersca@apple.com>
1007
1008         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
1009         https://bugs.webkit.org/show_bug.cgi?id=72397
1010
1011         Reviewed by Dan Bernstein.
1012
1013         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1014         (WebKit::WebChromeClient::screenToRootView):
1015         (WebKit::WebChromeClient::rootViewToScreen):
1016         * WebProcess/WebCoreSupport/WebChromeClient.h:
1017
1018 2011-11-14  Anders Carlsson  <andersca@apple.com>
1019
1020         HostWindow invalidation functions should use root view coordinates
1021         https://bugs.webkit.org/show_bug.cgi?id=72338
1022
1023         Reviewed by Dan Bernstein.
1024
1025         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1026         (WebKit::WebChromeClient::invalidateRootView):
1027         (WebKit::WebChromeClient::invalidateContentsAndRootView):
1028         * WebProcess/WebCoreSupport/WebChromeClient.h:
1029
1030 2011-11-15  Carlos Garcia Campos  <cgarcia@igalia.com>
1031
1032         [GTK] Implement download support in WebKit2
1033         https://bugs.webkit.org/show_bug.cgi?id=72258
1034
1035         Reviewed by Martin Robinson.
1036
1037         * WebProcess/Downloads/Download.h:
1038         * WebProcess/Downloads/soup/DownloadSoup.cpp:
1039         (WebKit::DownloadClient::DownloadClient):
1040         (WebKit::DownloadClient::downloadFailed):
1041         (WebKit::DownloadClient::didReceiveResponse):
1042         (WebKit::DownloadClient::didReceiveData):
1043         (WebKit::DownloadClient::didFinishLoading):
1044         (WebKit::DownloadClient::didFail):
1045         (WebKit::DownloadClient::wasBlocked):
1046         (WebKit::DownloadClient::cannotShowURL):
1047         (WebKit::Download::start):
1048         (WebKit::Download::startWithHandle):
1049         (WebKit::Download::cancel):
1050         (WebKit::Download::platformInvalidate):
1051
1052 2011-11-15  Mario Sanchez Prada  <msanchez@igalia.com>
1053
1054         [GTK][WEBKIT2] Add enable-caret-browsing property to WebKitSettings
1055         https://bugs.webkit.org/show_bug.cgi?id=72267
1056
1057         Reviewed by Martin Robinson.
1058
1059         Allow getting and setting the 'enable-caret-browsing' property
1060         through WebKitSettings.
1061
1062         * UIProcess/API/gtk/WebKitSettings.cpp:
1063         (webKitSettingsSetProperty): Added property setter.
1064         (webKitSettingsGetProperty): Added propery getter.
1065         (webkit_settings_class_init): Install property.
1066         (webkit_settings_get_enable_caret_browsing): Added.
1067         (webkit_settings_set_enable_caret_browsing): Added.
1068         * UIProcess/API/gtk/WebKitSettings.h: Expose new public APIs.
1069         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new sections for gtk-doc generation.
1070         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
1071         (testWebKitSettings): Added new API test.
1072
1073 2011-11-14  Julien Chaffraix  <jchaffraix@webkit.org>
1074
1075         Add --css-grid-layout to build-webkit and the build systems
1076         https://bugs.webkit.org/show_bug.cgi?id=72320
1077
1078         Reviewed by Ojan Vafai.
1079
1080         * Configurations/FeatureDefines.xcconfig:
1081
1082 2011-11-14  Tony Chang  <tony@chromium.org>
1083
1084         Remove the CSS3_FLEXBOX compile time flag and enable on all ports
1085         https://bugs.webkit.org/show_bug.cgi?id=72196
1086
1087         Reviewed by Ojan Vafai.
1088
1089         * Configurations/FeatureDefines.xcconfig:
1090
1091 2011-11-14  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1092
1093         Intermittent asserts in TextureMapperGL::bindSurface on MiniBrowser startup
1094         https://bugs.webkit.org/show_bug.cgi?id=72299
1095
1096         Reviewed by Noam Rosenthal.
1097
1098         Added check that clipping rect is valid.
1099         Clear GL error that might remain from QT GL operations.
1100         Added GL error assert for scissor test operations.
1101
1102         * UIProcess/API/qt/qquickwebpage.cpp:
1103         (QQuickWebPagePrivate::paintToCurrentGLContext):
1104
1105 2011-11-14  Anders Carlsson  <andersca@apple.com>
1106
1107         Only send progress notifications for the main frame
1108         https://bugs.webkit.org/show_bug.cgi?id=72302
1109
1110         Reviewed by Sam Weinig.
1111
1112         Since it's impossible in the API to tell which frame the progress notifications are for, just send them to the main frame for now.
1113
1114         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1115         (WebKit::WebFrameLoaderClient::postProgressStartedNotification):
1116         (WebKit::WebFrameLoaderClient::postProgressEstimateChangedNotification):
1117         (WebKit::WebFrameLoaderClient::postProgressFinishedNotification):
1118
1119 2011-11-14  Alexis Menard  <alexis.menard@openbossa.org>
1120
1121         [Qt][WK2] Cleanup QML tests.
1122         https://bugs.webkit.org/show_bug.cgi?id=72259
1123
1124         Reviewed by Simon Hausmann.
1125
1126         Cleanup QML tests. This patch removes the duplicates after the merge of both views.
1127         I also isolated the desktop specific bits into its own directory.
1128
1129         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_download.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_download.qml.
1130         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_linkHovered.qml.
1131         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_messaging.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_messaging.qml.
1132         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_navigationPolicyForUrl.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_navigationPolicyForUrl.qml.
1133         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgressSignal.qml: Removed.
1134         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml: Removed.
1135         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml: Removed.
1136         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_load.qml: Removed.
1137         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml: Removed.
1138         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadNegativeSizeView.qml: Removed.
1139         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgress.qml: Removed.
1140         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadFail.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml.
1141         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgress.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgress.qml.
1142         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgressSignal.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgressSignal.qml.
1143         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadZeroSizeView.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadZeroSizeView.qml.
1144         * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_preferences.qml.
1145         * UIProcess/API/qt/tests/qmltests/WebView/tst_properties.qml: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qmltests/TouchWebView/tst_properties.qml.
1146         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
1147
1148 2011-11-14  Mario Sanchez Prada  <msanchez@igalia.com>
1149
1150         Add support for the caretBrowsingEnabled preference in WebKit2
1151         https://bugs.webkit.org/show_bug.cgi?id=72266
1152
1153         Reviewed by Chris Fleizach.
1154
1155         * Shared/WebPreferencesStore.h: Add caretBrowsingEnabled getter
1156         and setter macro.
1157         * UIProcess/API/C/WKPreferences.h:
1158         * UIProcess/API/C/WKPreferences.cpp:
1159         (WKPreferencesSetCaretBrowsingEnabled): Added.
1160         (WKPreferencesGetCaretBrowsingEnabled): Added.
1161         * WebProcess/WebPage/WebPage.cpp:
1162         (WebKit::WebPage::updatePreferences): Update the
1163         caretBrowsingEnabledKey preference.
1164
1165 2011-11-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1166
1167         [Qt] Remove reference to QWebNavigationController
1168         https://bugs.webkit.org/show_bug.cgi?id=72257
1169
1170         Reviewed by Simon Hausmann.
1171
1172         QWebNavigationController was removed in r99946, this is just a leftover.
1173
1174         * UIProcess/API/qt/qquickwebview.cpp:
1175         (QQuickWebViewPrivate::QQuickWebViewPrivate):
1176         * UIProcess/API/qt/qquickwebview_p.h:
1177
1178 2011-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1179
1180         [Qt] the QQuickWebView should support double-tap to zoom
1181         https://bugs.webkit.org/show_bug.cgi?id=72030
1182
1183         Reviewed by Andreas Kling.
1184
1185         * UIProcess/qt/QtViewInterface.cpp:
1186         * UIProcess/qt/QtViewInterface.h:
1187         * UIProcess/qt/QtViewportInteractionEngine.cpp:
1188         (WebKit::QtViewportInteractionEngine::animateItemRectVisible):
1189         (WebKit::QtViewportInteractionEngine::zoomToAreaGestureEnded):
1190         (WebKit::QtViewportInteractionEngine::ensureContentWithinViewportBoundary):
1191         * UIProcess/qt/QtViewportInteractionEngine.h:
1192         * UIProcess/qt/QtWebPageProxy.cpp:
1193         (QtWebPageProxy::didFindZoomableArea):
1194
1195 2011-11-14  Zalan Bujtas  <zbujtas@gmail.com>
1196
1197         Build breaks with --no-javascript-debugger --no-inspector
1198         https://bugs.webkit.org/show_bug.cgi?id=72228
1199
1200         Reviewed by Simon Hausmann.
1201
1202         * UIProcess/WebPageProxy.cpp:
1203         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle):
1204
1205 2011-11-13  Mark Rowe  <mrowe@apple.com>
1206
1207         Fix the 32-bit build.
1208
1209         * WebProcess/mac/WebProcessMac.mm:
1210         (WebKit::initializeSandbox): Use a format specifier and cast that works on more architectures.
1211
1212 2011-11-12  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1213
1214         [Qt][Symbian] Remove support for WINSCW compiler
1215         https://bugs.webkit.org/show_bug.cgi?id=70178
1216
1217         Reviewed by Chang Shu.
1218
1219         * Shared/API/c/WKString.h:
1220
1221 2011-11-12  Dan Bernstein  <mitz@apple.com>
1222
1223         <rdar://problem/10294191> REGRESSION (WebKit2): Lookup bubble sized and positioned incorrectly (vertically off)
1224         https://bugs.webkit.org/show_bug.cgi?id=72217
1225
1226         Reviewed by Dave Hyatt.
1227
1228         * UIProcess/API/mac/PageClientImpl.mm:
1229         (WebKit::PageClientImpl::didPerformDictionaryLookup): Rather than adding the NSFont’s ascender
1230         to the top of the text rect to establish the baseline here...
1231         * WebProcess/WebPage/mac/WebPageMac.mm:
1232         (WebKit::WebPage::performDictionaryLookupForRange): ...do it here, using the WebCore::Font’s
1233         ascender, which is what’s actually used when drawing the text.
1234
1235 2011-11-11  Nayan Kumar K  <nayankk@motorola.com>
1236
1237         [GTK][WEBKIT2] Add font and charset properties to WebKitWebSettings
1238         https://bugs.webkit.org/show_bug.cgi?id=68996
1239
1240         Reviewed by Martin Robinson.
1241
1242         Provision to query and set the font related properties (such as
1243         font-family, font-size) and charset properties (such as default-
1244         charset) is added.
1245
1246         * UIProcess/API/gtk/WebKitSettings.cpp: Added font and encoding properties.
1247         (webKitSettingsSetProperty): GObject set property function.
1248         (webKitSettingsGetProperty): GObject get property function.
1249         (webkit_settings_class_init): Few more signals installed.
1250         (webkit_settings_init): Initialization of instance variables.
1251         (webkit_web_settings_get_default_font_family): Get 'default-font-family'.
1252         (webkit_web_settings_set_default_font_family): Set 'default-font-family'.
1253         (webkit_web_settings_get_monospace_font_family): Get 'monospace-font-family'.
1254         (webkit_web_settings_set_monospace_font_family): Set 'monospace-font-family'.
1255         (webkit_web_settings_get_serif_font_family): Get 'serif-font-family'.
1256         (webkit_web_settings_set_serif_font_family): Set 'serif-font-family'.
1257         (webkit_web_settings_get_sans_serif_font_family): Get 'sans-serif-font-family'.
1258         (webkit_web_settings_set_sans_serif_font_family): Get 'sans-serif-font-family'.
1259         (webkit_web_settings_get_cursive_font_family): Get 'cursive-font-family'.
1260         (webkit_web_settings_set_cursive_font_family): Set 'cursive-font-family'.
1261         (webkit_web_settings_get_fantasy_font_family): Get 'fantasy-font-family'.
1262         (webkit_web_settings_set_fantasy_font_family): Set 'fantasy-font-family'.
1263         (webkit_web_settings_get_pictograph_font_family): Get 'pictograph-font-family'.
1264         (webkit_web_settings_set_pictograph_font_family): Set 'pictograph-font-family'.
1265         (webkit_web_settings_get_default_font_size): Get 'default-font-size'.
1266         (webkit_web_settings_set_default_font_size): Set 'default-font-size'.
1267         (webkit_web_settings_get_default_monospace_font_size): Get 'default-monospace-font-size'.
1268         (webkit_web_settings_set_default_monospace_font_size): Set 'default-monospace-font-size'.
1269         (webkit_web_settings_get_minimum_font_size): Get 'minimum-font-size'.
1270         (webkit_web_settings_set_minimum_font_size): Set 'minimum-font-size'.
1271         (webkit_web_settings_get_default_charset): Get 'default-charset'.
1272         (webkit_web_settings_set_default_charset): Set 'default-charset'.
1273         * UIProcess/API/gtk/WebKitSettings.h: Add new sections for gtk-doc generation.
1274         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Expose new public APIs.
1275         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
1276         (testWebKitSettings): Add new tests.
1277
1278 2011-11-11  Shinya Kawanaka  <shinyak@google.com>
1279
1280         Implement legacy text check emulation in unified text check interface.
1281         https://bugs.webkit.org/show_bug.cgi?id=70299
1282
1283         Reviewed by Hajime Morita.
1284
1285         * win/WebKit2.def:
1286         * win/WebKit2CFLite.def:
1287
1288 2011-11-11  Alexey Proskuryakov  <ap@apple.com>
1289
1290         WebProcess should use AppSandbox style quarantine
1291         https://bugs.webkit.org/show_bug.cgi?id=72168
1292         <rdar://problem/10434292>
1293
1294         Reviewed by Darin Adler.
1295
1296         * WebProcess/mac/WebProcessMac.mm: (WebKit::initializeSandbox): Just enable it.
1297
1298 2011-11-11  Darin Adler  <darin@apple.com>
1299
1300         * WebKit2.xcodeproj/project.pbxproj: Let a newer Xcode update this file.
1301         If an older Xcode downgrades this file and we have a risk of some kind of
1302         oscillating commit situation, please contact me so I know not to do this again.
1303
1304 2011-11-11  Mark Hahnenberg  <mhahnenberg@apple.com>
1305
1306         Add jsCast to replace static_cast
1307         https://bugs.webkit.org/show_bug.cgi?id=72071
1308
1309         Reviewed by Geoffrey Garen.
1310
1311         Added new jsCast and changed all of the static_cast sites in functions that 
1312         are in the MethodTable to use jsCast instead.
1313
1314         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1315         (WebKit::JSNPObject::getCallData):
1316         (WebKit::JSNPObject::getConstructData):
1317         (WebKit::JSNPObject::getOwnPropertySlot):
1318         (WebKit::JSNPObject::getOwnPropertyDescriptor):
1319         (WebKit::JSNPObject::put):
1320         (WebKit::JSNPObject::deleteProperty):
1321         (WebKit::JSNPObject::deletePropertyByIndex):
1322         (WebKit::JSNPObject::getOwnPropertyNames):
1323
1324 2011-11-11  Timothy Hatcher  <timothy@apple.com>
1325
1326         Only use the textured window style mask when there is no override inspector page.
1327
1328         https://webkit.org/b/72142
1329
1330         Reviewed by Dan Bernstein.
1331
1332         * UIProcess/mac/WebInspectorProxyMac.mm:
1333         (WebKit::WebInspectorProxy::platformOpen): Don't set NSTexturedBackgroundWindowMask if
1334         there is an override inspector page. Make setAutorecalculatesContentBorderThickness:,
1335         setContentBorderThickness: and WKNSWindowMakeBottomCornersSquare conditional.
1336
1337 2011-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
1338
1339         [Qt] Remove dead MeeGoTouch code.
1340
1341         Reviewed by Tor Arne Vestbø.
1342
1343         * WebProcess/qt/WebProcessMainQt.cpp:
1344         (WebKit::WebProcessMainQt):
1345
1346 2011-11-11  Alexis Menard  <alexis.menard@openbossa.org>
1347
1348         [Qt] Add a way to have experimental features in WebKit2
1349         https://bugs.webkit.org/show_bug.cgi?id=67707
1350
1351         Reviewed by Kenneth Rohde Christiansen.
1352
1353         Add new QML extensions for our public view. This extension
1354         returns the private object of the view so that the user could
1355         use unstable/unreleased APIs. This requires our private class
1356         to be exported and QObject subclass.
1357
1358         * Target.pri:
1359         * UIProcess/API/qt/qquickwebview.cpp:
1360         * UIProcess/API/qt/qquickwebview_p.h:
1361         * UIProcess/API/qt/qquickwebviewprivateextension.cpp: Added.
1362         (QQuickWebViewPrivateExtension::QQuickWebViewPrivateExtension):
1363         (QQuickWebViewPrivateExtension::viewPrivate):
1364         * UIProcess/API/qt/qquickwebviewprivateextension_p.h: Added.
1365
1366 2011-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
1367
1368         [Qt][WK2] Remove QWebNavigationController
1369         https://bugs.webkit.org/show_bug.cgi?id=72113
1370
1371         Reviewed by Andreas Kling.
1372
1373         Fold the functions and properties of QWebNavigationController into
1374         QQuickWebView.
1375
1376         * Target.pri:
1377         * UIProcess/API/qt/WKView.h:
1378         * UIProcess/API/qt/qquickwebpage.cpp:
1379         (QQuickWebPagePrivate::QQuickWebPagePrivate):
1380         * UIProcess/API/qt/qquickwebpage.h:
1381         * UIProcess/API/qt/qquickwebpage_p.h:
1382         * UIProcess/API/qt/qquickwebview.cpp:
1383         (QQuickWebViewPrivate::initialize):
1384         (QQuickWebView::goBack):
1385         (QQuickWebView::goForward):
1386         (QQuickWebView::stop):
1387         (QQuickWebView::reload):
1388         (QQuickWebView::canGoBack):
1389         (QQuickWebView::canGoForward):
1390         (QQuickWebView::canStop):
1391         (QQuickWebView::canReload):
1392         (QQuickWebView::title):
1393         * UIProcess/API/qt/qquickwebview.h:
1394         * UIProcess/API/qt/qwebnavigationcontroller.cpp: Removed.
1395         * UIProcess/API/qt/qwebnavigationcontroller.h: Removed.
1396         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
1397         (tst_QQuickWebView::navigationStatusAtStartup):
1398         (LoadStartedCatcher::onLoadStarted):
1399         (tst_QQuickWebView::stopEnabledAfterLoadStarted):
1400         (tst_QQuickWebView::backAndForward):
1401         (tst_QQuickWebView::reload):
1402         (tst_QQuickWebView::stop):
1403
1404 2011-11-10  Beth Dakin  <bdakin@apple.com>
1405
1406         Once more for the QT build.
1407
1408         * UIProcess/qt/QtWebPageProxy.cpp:
1409         (QtWebPageProxy::setFindIndicator):
1410         * UIProcess/qt/QtWebPageProxy.h:
1411
1412 2011-11-10  Beth Dakin  <bdakin@apple.com>
1413
1414         More attempted build fix.
1415
1416         * UIProcess/API/efl/PageClientImpl.cpp:
1417         (WebKit::PageClientImpl::setFindIndicator):
1418         * UIProcess/API/efl/PageClientImpl.h:
1419         * UIProcess/API/gtk/PageClientImpl.cpp:
1420         (WebKit::PageClientImpl::setFindIndicator):
1421         * UIProcess/API/gtk/PageClientImpl.h:
1422
1423 2011-11-10  Anders Carlsson  <andersca@apple.com>
1424
1425         Fix 32-bit build.
1426
1427         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1428         (-[WKContentLayer drawInContext:]):
1429
1430 2011-11-10  Beth Dakin  <bdakin@apple.com>
1431
1432         Speculative build fix.
1433
1434         * UIProcess/win/WebView.cpp:
1435         (WebKit::WebView::setFindIndicator):
1436         * UIProcess/win/WebView.h:
1437
1438 2011-11-10  Beth Dakin  <bdakin@apple.com>
1439
1440         https://bugs.webkit.org/show_bug.cgi?id=66584
1441         WebKit2's find bouncy looks blurry after dragging window onto >1.0 scale factor 
1442         display
1443         -and corresponding-
1444         <rdar://problem/9987559>
1445
1446         Reviewed by Anders Carlsson.
1447
1448         The setFindIndicator message and various functions of the same name must all take 
1449         an additional parameter indicating whether or not setting the find indicator 
1450         should result in a bounce animation. This is because when the device scale factor 
1451         changes, if there is currently a find indicator, it must be re-set to a higher or 
1452         lower resolution version, but we don't want the bounce animation to happen again.
1453         * UIProcess/API/mac/FindIndicatorWindow.h:
1454         * UIProcess/API/mac/FindIndicatorWindow.mm:
1455         (WebKit::FindIndicatorWindow::setFindIndicator):
1456         * UIProcess/API/mac/PageClientImpl.h:
1457         * UIProcess/API/mac/PageClientImpl.mm:
1458         (WebKit::PageClientImpl::setFindIndicator):
1459         * UIProcess/API/mac/WKView.mm:
1460         (-[WKView _setFindIndicator:fadeOut:animate:]):
1461         * UIProcess/API/mac/WKViewInternal.h:
1462         * UIProcess/PageClient.h:
1463         * UIProcess/WebPageProxy.cpp:
1464         (WebKit::WebPageProxy::setFindIndicator):
1465         * UIProcess/WebPageProxy.h:
1466         * UIProcess/WebPageProxy.messages.in:
1467
1468         New function FindController::isShowingOverlay() is used to determine if 
1469         FindController::deviceScaleFactorDidChange() needs to be called.
1470         * WebProcess/WebPage/FindController.h:
1471         (WebKit::FindController::isShowingOverlay): 
1472
1473         FindController::deviceScaleFactorDidChange() calls updateFindIndicator to re-
1474         generate the bitmap at the appropriate scale factor, but tells it not to animate 
1475         this time.
1476         (WebKit::FindController::deviceScaleFactorDidChange):
1477
1478         updateFindIndicator() takes a new parameter indicating whether or not the 
1479         FindIndicator should animate. It defaults to true since the deviceScaleFactor 
1480         changing is the only case currently where we do not want it to animate.
1481         * WebProcess/WebPage/FindController.cpp:
1482         (WebKit::FindController::updateFindIndicator):
1483         (WebKit::FindController::hideFindIndicator):
1484
1485         Calls into FindController::deviceScaleFactorDidChange() when the scale factor has 
1486         changed and the find overlay is showing.
1487         * WebProcess/WebPage/WebPage.cpp:
1488         (WebKit::WebPage::setDeviceScaleFactor):
1489
1490 2011-11-10  Timothy Hatcher  <timothy@apple.com>
1491
1492         Make WKViews in NSPopovers render as they would in active windows.
1493
1494         The NSWindowDid{Become,Resign}KeyNotifications are not fired when NSPopovers
1495         are shown or hidden since they share key with the parent window. So WKView
1496         needs to update the active state during order on/off screen notifications.
1497
1498         https://webkit.org/b/68435
1499
1500         Reviewed by John Sullivan.
1501
1502         * UIProcess/API/mac/WKView.mm:
1503         (-[WKView _windowDidOrderOffScreen:]): Call viewStateDidChange with WebPageProxy::ViewWindowIsActive.
1504         (-[WKView _windowDidOrderOnScreen:]): Ditto.
1505
1506 2011-11-10  Anders Carlsson  <andersca@apple.com>
1507
1508         Add a simple content layer to TiledCoreAnimationDrawingArea
1509         https://bugs.webkit.org/show_bug.cgi?id=72044
1510
1511         Reviewed by Darin Adler.
1512
1513         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1514         Add a content layer member variable.
1515
1516         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1517         (-[WKContentLayer _initWithWebPage:WebKit::]):
1518         Add initializer.
1519
1520         (-[WKContentLayer drawInContext:]):
1521         Lay out and draw the web page.
1522
1523         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
1524         Add the content layer as a sublayer of the root layer.
1525
1526         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplay):
1527         (WebKit::TiledCoreAnimationDrawingArea::scroll):
1528         Tell the content layer to paint.
1529
1530         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
1531         Resize the content layer as well.
1532
1533 2011-11-10  Anders Carlsson  <andersca@apple.com>
1534
1535         The WKView layer hosting subview needs to be flipped
1536         https://bugs.webkit.org/show_bug.cgi?id=72042
1537
1538         Reviewed by Darin Adler.
1539
1540         In order to match the Core Animation layer hierarchy, the layer hosting WKView
1541         subview needs to be flipped.
1542
1543         * UIProcess/API/mac/WKView.mm:
1544         (-[WKFlippedView isFlipped]):
1545         Add a NSView subview whose sole purpose is to be flipped.
1546
1547         (-[WKView _enterAcceleratedCompositingMode:]):
1548         Create a WKFlippedView instead of a regular NSView.
1549
1550 2011-11-10  Balazs Kelemen  <kbalazs@webkit.org>
1551
1552         [Qt] X11 plugins need to be reworked for Qt5
1553         https://bugs.webkit.org/show_bug.cgi?id=70023
1554
1555         Reviewed by Simon Hausmann.
1556
1557         * Target.pri:
1558         * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp:
1559         (WebKit::PluginInfoStore::pluginsDirectories):
1560         Kill the last dependency from the WebKit1 plugin system.
1561         This is necessary because currently we don't build the WebKit1
1562         plugin code. The function is equivalent with the XP_UNIX part of
1563         PluginDatabase::defaultPluginDirectories.
1564
1565         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
1566         (WebKit::NPN_GetValue):
1567         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1568         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
1569         (WebKit::getPluginDisplay):
1570         (WebKit::x11Screen):
1571         (WebKit::displayDepth):
1572         (WebKit::rootWindowID):
1573         (WebKit::NetscapePlugin::x11HostDisplay):
1574         (WebKit::NetscapePlugin::platformPostInitialize):
1575         (WebKit::NetscapePlugin::platformDestroy):
1576         (WebKit::NetscapePlugin::platformGeometryDidChange):
1577         (WebKit::NetscapePlugin::platformPaint):
1578         (WebKit::initializeXEvent):
1579         Rework plugin initialization and drawing model.
1580
1581 2011-11-10  Martin Robinson  <mrobinson@igalia.com>
1582
1583         [GTK] [WebKit2] Fix remaining gtkdoc errors
1584         https://bugs.webkit.org/show_bug.cgi?id=71990
1585
1586         Reviewed by Philippe Normand.
1587
1588         * UIProcess/API/gtk/WebKitWebView.cpp: Update add the phrase "property" to
1589         references to properties, because the gtkdoc stylesheet does not differeniate
1590         between properties and signals. Standardize the way we talk about property
1591         notifications.
1592         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add an include to silence 
1593         warnings about GIR annotations.
1594         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add the decorators the private section.
1595
1596 2011-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1597
1598         [Qt] Clean up how singe / double taps are handled
1599         https://bugs.webkit.org/show_bug.cgi?id=72024
1600
1601         Reviewed by Simon Hausmann.
1602
1603         Move all decision making to the QtWebPageProxy.
1604
1605         * UIProcess/qt/QtTapGestureRecognizer.cpp:
1606         (WebKit::QtTapGestureRecognizer::QtTapGestureRecognizer):
1607         (WebKit::QtTapGestureRecognizer::recognize):
1608         (WebKit::QtTapGestureRecognizer::tapTimeout):
1609         * UIProcess/qt/QtTapGestureRecognizer.h:
1610         * UIProcess/qt/QtWebPageProxy.cpp:
1611         (QtWebPageProxy::QtWebPageProxy):
1612         (QtWebPageProxy::handleSingleTapEvent):
1613         (QtWebPageProxy::handleDoubleTapEvent):
1614         * UIProcess/qt/QtWebPageProxy.h:
1615
1616 2011-11-10  Simon Hausmann  <simon.hausmann@nokia.com>
1617
1618         [Qt] Clean up build system
1619
1620         Reviewed by Tor Arne Vestbø.
1621
1622         Now that we use whole-archive linking we can fold the files that contain exported
1623         symbols back into the WebKit2 static library.
1624
1625         * Target.pri: Fold in sources from WebKit2.pri.
1626         * WebKit2.pri: Removed.
1627
1628 2011-11-10  Alexis Menard  <alexis.menard@openbossa.org>
1629
1630         [Qt] Merge QTouchWebView and QDesktopWebView into one class
1631         https://bugs.webkit.org/show_bug.cgi?id=71355
1632
1633         Reviewed by Kenneth Rohde Christiansen.
1634
1635         Merge QTouchWebView and QDesktopWebView into one class called
1636         QQuickWebView and its attached page QQuickWebPage. You can switch to the
1637         traditional desktop use case with the private header. Also now on desktop
1638         platforms AC is turn on by default. I also merged our two
1639         subclasses of QtViewInterface into one as the split doesn't make
1640         that much sense anymore. In the future we want to be able to enable the
1641         traditional desktop use case depending the platform the code is running.
1642         API tests and QML tests have been updated.
1643
1644         * Target.pri:
1645         * UIProcess/API/qt/WKView.h:
1646         * UIProcess/API/qt/qbasewebview.cpp: Removed.
1647         * UIProcess/API/qt/qbasewebview_p.h: Removed.
1648         * UIProcess/API/qt/qdesktopwebview.cpp: Removed.
1649         * UIProcess/API/qt/qdesktopwebview.h: Removed.
1650         * UIProcess/API/qt/qdesktopwebview_p.h: Removed.
1651         * UIProcess/API/qt/qquickwebpage.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/qtouchwebpage.cpp.
1652         (QQuickWebPage::QQuickWebPage):
1653         (QQuickWebPage::~QQuickWebPage):
1654         (QQuickWebPage::keyPressEvent):
1655         (QQuickWebPage::keyReleaseEvent):
1656         (QQuickWebPage::inputMethodEvent):
1657         (QQuickWebPage::focusInEvent):
1658         (QQuickWebPage::focusOutEvent):
1659         (QQuickWebPage::mousePressEvent):
1660         (QQuickWebPage::mouseMoveEvent):
1661         (QQuickWebPage::mouseReleaseEvent):
1662         (QQuickWebPage::mouseDoubleClickEvent):
1663         (QQuickWebPage::wheelEvent):
1664         (QQuickWebPage::hoverEnterEvent):
1665         (QQuickWebPage::hoverMoveEvent):
1666         (QQuickWebPage::hoverLeaveEvent):
1667         (QQuickWebPage::dragMoveEvent):
1668         (QQuickWebPage::dragEnterEvent):
1669         (QQuickWebPage::dragLeaveEvent):
1670         (QQuickWebPage::dropEvent):
1671         (QQuickWebPage::geometryChanged):
1672         (QQuickWebPage::event):
1673         (QQuickWebPage::touchEvent):
1674         (QQuickWebPage::itemChange):
1675         (QQuickWebPagePrivate::QQuickWebPagePrivate):
1676         (QQuickWebPagePrivate::initializeSceneGraphConnections):
1677         (QQuickWebPagePrivate::setPageProxy):
1678         (computeEffectiveOpacity):
1679         (QQuickWebPagePrivate::paintToCurrentGLContext):
1680         (QQuickWebPagePrivate::_q_onAfterSceneRender):
1681         (QQuickWebPagePrivate::_q_onSceneGraphInitialized):
1682         * UIProcess/API/qt/qquickwebpage.h: Renamed from Source/WebKit2/UIProcess/API/qt/qtouchwebpage.h.
1683         * UIProcess/API/qt/qquickwebpage_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qtouchwebpage_p.h.
1684         * UIProcess/API/qt/qquickwebview.cpp: Added.
1685         (QQuickWebViewPrivate::QQuickWebViewPrivate):
1686         (QQuickWebViewPrivate::enableMouseEvents):
1687         (QQuickWebViewPrivate::disableMouseEvents):
1688         (QQuickWebViewPrivate::initialize):
1689         (QQuickWebViewPrivate::initializeDesktop):
1690         (QQuickWebViewPrivate::initializeTouch):
1691         (QQuickWebViewPrivate::loadDidCommit):
1692         (QQuickWebViewPrivate::contentSizeChanged):
1693         (QQuickWebViewPrivate::scrollPositionRequested):
1694         (QQuickWebViewPrivate::_q_viewportUpdated):
1695         (QQuickWebViewPrivate::_q_viewportTrajectoryVectorChanged):
1696         (QQuickWebViewPrivate::_q_onVisibleChanged):
1697         (QQuickWebViewPrivate::updateViewportSize):
1698         (QQuickWebViewPrivate::updateViewportConstraints):
1699         (QQuickWebViewPrivate::didChangeViewportProperties):
1700         (QQuickWebViewPrivate::runJavaScriptAlert):
1701         (QQuickWebViewPrivate::runJavaScriptConfirm):
1702         (QQuickWebViewPrivate::runJavaScriptPrompt):
1703         (QQuickWebViewPrivate::chooseFiles):
1704         (QQuickWebViewPrivate::_q_onOpenPanelFilesSelected):
1705         (QQuickWebViewPrivate::_q_onOpenPanelFinished):
1706         (QQuickWebViewPrivate::setUseTraditionalDesktopBehaviour):
1707         (toPolicyAction):
1708         (hasMetaMethod):
1709         (QQuickWebViewPrivate::navigationPolicyForURL):
1710         (QQuickWebViewPrivate::setPageProxy):
1711         (QQuickWebView::QQuickWebView):
1712         (QQuickWebView::~QQuickWebView):
1713         (QQuickWebView::page):
1714         (QQuickWebView::load):
1715         (QQuickWebView::postMessage):
1716         (QQuickWebView::url):
1717         (QQuickWebView::loadProgress):
1718         (QQuickWebView::title):
1719         (QQuickWebView::navigationController):
1720         (QQuickWebView::preferences):
1721         (QQuickWebView::geometryChanged):
1722         (QQuickWebView::touchEvent):
1723         (QQuickWebView::pageRef):
1724         * UIProcess/API/qt/qquickwebview.h: Renamed from Source/WebKit2/UIProcess/API/qt/qbasewebview.h.
1725         * UIProcess/API/qt/qquickwebview_p.h: Added.
1726         * UIProcess/API/qt/qtouchwebview.cpp: Removed.
1727         * UIProcess/API/qt/qtouchwebview.h: Removed.
1728         * UIProcess/API/qt/qtouchwebview_p.h: Removed.
1729         * UIProcess/API/qt/tests/commonviewtests/commonviewtests.pro: Removed.
1730         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp: Removed.
1731         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp: Removed.
1732         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h: Removed.
1733         * UIProcess/API/qt/tests/qdesktopwebview/tst_qdesktopwebview.cpp: Removed.
1734         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_download.qml:
1735         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_linkHovered.qml:
1736         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml:
1737         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgress.qml:
1738         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgressSignal.qml:
1739         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml:
1740         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_messaging.qml:
1741         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_navigationPolicyForUrl.qml:
1742         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_preferences.qml:
1743         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml:
1744         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_load.qml:
1745         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml:
1746         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadNegativeSizeView.qml:
1747         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgress.qml:
1748         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgressSignal.qml:
1749         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadZeroSizeView.qml:
1750         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_properties.qml:
1751         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
1752         * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp:
1753         (DesktopWebView::DesktopWebView):
1754         (main):
1755         * UIProcess/API/qt/tests/qquickwebview/qquickwebview.pro: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qdesktopwebview/qdesktopwebview.pro.
1756         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp: Added.
1757         (tst_QQuickWebView::tst_QQuickWebView):
1758         (tst_QQuickWebView::init):
1759         (tst_QQuickWebView::cleanup):
1760         (tst_QQuickWebView::webView):
1761         (tst_QQuickWebView::accessPage):
1762         (tst_QQuickWebView::navigationStatusAtStartup):
1763         (LoadStartedCatcher::LoadStartedCatcher):
1764         (LoadStartedCatcher::onLoadStarted):
1765         (tst_QQuickWebView::stopEnabledAfterLoadStarted):
1766         (tst_QQuickWebView::baseUrl):
1767         (tst_QQuickWebView::loadEmptyUrl):
1768         (tst_QQuickWebView::loadEmptyPageViewVisible):
1769         (tst_QQuickWebView::loadEmptyPageViewHidden):
1770         (tst_QQuickWebView::loadNonexistentFileUrl):
1771         (tst_QQuickWebView::backAndForward):
1772         (tst_QQuickWebView::reload):
1773         (tst_QQuickWebView::stop):
1774         (tst_QQuickWebView::loadProgress):
1775         (tst_QQuickWebView::show):
1776         * UIProcess/API/qt/tests/qtouchwebview/qtouchwebview.pro: Removed.
1777         * UIProcess/API/qt/tests/qtouchwebview/tst_qtouchwebview.cpp: Removed.
1778         * UIProcess/API/qt/tests/testwindow.h:
1779         * UIProcess/TiledDrawingAreaProxy.h:
1780         * UIProcess/qt/QtGestureRecognizer.cpp:
1781         (WebKit::QtGestureRecognizer::QtGestureRecognizer):
1782         (WebKit::QtGestureRecognizer::setViewportInteractionEngine):
1783         * UIProcess/qt/QtGestureRecognizer.h:
1784         * UIProcess/qt/QtPanGestureRecognizer.cpp:
1785         (WebKit::QtPanGestureRecognizer::setViewportInteractionEngine):
1786         (WebKit::QtPanGestureRecognizer::recognize):
1787         * UIProcess/qt/QtPanGestureRecognizer.h:
1788         * UIProcess/qt/QtPinchGestureRecognizer.cpp:
1789         (WebKit::QtPinchGestureRecognizer::recognize):
1790         (WebKit::QtPinchGestureRecognizer::setViewportInteractionEngine):
1791         * UIProcess/qt/QtPinchGestureRecognizer.h:
1792         * UIProcess/qt/QtTouchViewInterface.cpp: Removed.
1793         * UIProcess/qt/QtTouchViewInterface.h: Removed.
1794         * UIProcess/qt/QtViewInterface.cpp: Added.
1795         (WebKit::QtViewInterface::QtViewInterface):
1796         (WebKit::QtViewInterface::didFindZoomableArea):
1797         (WebKit::QtViewInterface::sceneGraphUpdateQueue):
1798         (WebKit::QtViewInterface::setViewNeedsDisplay):
1799         (WebKit::QtViewInterface::drawingAreaSize):
1800         (WebKit::QtViewInterface::contentSizeChanged):
1801         (WebKit::QtViewInterface::scrollPositionRequested):
1802         (WebKit::QtViewInterface::isActive):
1803         (WebKit::QtViewInterface::hasFocus):
1804         (WebKit::QtViewInterface::isVisible):
1805         (WebKit::QtViewInterface::startDrag):
1806         (WebKit::QtViewInterface::didChangeViewportProperties):
1807         (WebKit::QtViewInterface::didChangeUrl):
1808         (WebKit::QtViewInterface::didChangeTitle):
1809         (WebKit::QtViewInterface::didChangeToolTip):
1810         (WebKit::QtViewInterface::didChangeStatusText):
1811         (WebKit::QtViewInterface::didChangeCursor):
1812         (WebKit::QtViewInterface::loadDidBegin):
1813         (WebKit::QtViewInterface::loadDidCommit):
1814         (WebKit::QtViewInterface::loadDidSucceed):
1815         (WebKit::QtViewInterface::loadDidFail):
1816         (WebKit::QtViewInterface::didChangeLoadProgress):
1817         (WebKit::QtViewInterface::didMouseMoveOverElement):
1818         (WebKit::QtViewInterface::showContextMenu):
1819         (WebKit::QtViewInterface::hideContextMenu):
1820         (WebKit::QtViewInterface::runJavaScriptAlert):
1821         (WebKit::QtViewInterface::runJavaScriptConfirm):
1822         (WebKit::QtViewInterface::runJavaScriptPrompt):
1823         (WebKit::QtViewInterface::processDidCrash):
1824         (WebKit::QtViewInterface::didRelaunchProcess):
1825         (WebKit::QtViewInterface::engine):
1826         (WebKit::QtViewInterface::downloadRequested):
1827         (WebKit::QtViewInterface::chooseFiles):
1828         * UIProcess/qt/QtViewInterface.h:
1829         * UIProcess/qt/QtWebPageProxy.h:
1830         (QtWebPageProxy::setViewportInteractionEngine):
1831         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
1832         * WebKit2.pri:
1833
1834 2011-11-10  Carlos Garcia Campos  <cgarcia@igalia.com>
1835
1836         Unreviewed. Fix make distcheck build.
1837
1838         * GNUmakefile.am: Fix typos in gtk-doc files and scripts.
1839
1840 2011-11-10  Simon Hausmann  <simon.hausmann@nokia.com>
1841
1842         Unreviewed Mac build fix: Remove TapAndHold gesture type.
1843
1844         It broke the build because it's unhandled. Remove it since it's not
1845         supported at the moment anyway. (looks like an accidental addition?)
1846
1847         * Shared/WebEvent.h:
1848         * UIProcess/qt/QtTapGestureRecognizer.cpp:
1849         (WebKit::QtTapGestureRecognizer::tapAndHoldTimeout):
1850
1851 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
1852
1853         [Qt] Enable exports and constructor functions in static libs
1854
1855         Reviewed by Tor Arne Vestbø.
1856
1857         * WebProcess/WebPage/qt/WebPageQt.cpp:
1858         (WebKit::WebPage::platformInitialize): Remove unnecessary manual Qt resource
1859         initialization.
1860
1861 2011-11-10  Zeno Albisser  <zeno.albisser@nokia.com>
1862
1863         [Qt][WK2] Add Tap Gesture recognition to UIProcess
1864         https://bugs.webkit.org/show_bug.cgi?id=71841
1865
1866         Add a Tap gesture recognizer that delivers GestureSingleTap
1867         and GestureTapAndHold events through the WebPageProxy.
1868         Add a GestureTapAndHold to WebEvent.
1869         Add a DoubleTap gesture for zooming in and out.
1870
1871         This patch is based on work of Benjamin Poulain.
1872
1873         Reviewed by Kenneth Rohde Christiansen.
1874
1875         * Shared/WebEvent.h:
1876         * Target.pri:
1877         * UIProcess/qt/QtTapGestureRecognizer.cpp: Added.
1878         (WebKit::QtTapGestureRecognizer::QtTapGestureRecognizer):
1879         (WebKit::QtTapGestureRecognizer::setWebPageProxy):
1880         (WebKit::QtTapGestureRecognizer::recognize):
1881         (WebKit::QtTapGestureRecognizer::tapTimeout):
1882         (WebKit::QtTapGestureRecognizer::tapAndHoldTimeout):
1883         (WebKit::QtTapGestureRecognizer::reset):
1884         (WebKit::QtTapGestureRecognizer::timerEvent):
1885         * UIProcess/qt/QtTapGestureRecognizer.h: Added.
1886         * UIProcess/qt/QtWebPageProxy.cpp:
1887         (QtWebPageProxy::QtWebPageProxy):
1888         (QtWebPageProxy::processDidCrash):
1889         (QtWebPageProxy::doneWithTouchEvent):
1890         * UIProcess/qt/QtWebPageProxy.h:
1891
1892 2011-11-09  Shinya Kawanaka  <shinyak@google.com>
1893
1894         Internals.markerRangeForNode should be able to take markers by specifying a marker type.
1895         https://bugs.webkit.org/show_bug.cgi?id=71792
1896
1897         Reviewed by Hajime Morita.
1898
1899         * win/WebKit2.def: Exposed necessary references.
1900         * win/WebKit2CFLite.def: ditto.
1901
1902 2011-10-26  Martin Robinson  <mrobinson@igalia.com>
1903
1904         [GTK] [WebKit] Replace the gtkdoc autools magic with something more flexible
1905         https://bugs.webkit.org/show_bug.cgi?id=70877
1906
1907         Reviewed by Philippe Normand.
1908
1909         Add a script that runs gtkdoc manually instead of using the autotools
1910         magic. Remove now unused gtkdoc files.
1911
1912         * GNUmakefile.am: Remove references to removed gtkdoc files.
1913         * UIProcess/API/gtk/docs/GNUmakefile.am: Removed.
1914         * UIProcess/API/gtk/docs/build-gtkdoc: Added.
1915         * UIProcess/API/gtk/docs/gtkdoc.py: Added.
1916         * UIProcess/API/gtk/docs/version.xml.in: Removed.
1917
1918 2011-11-09  Alexey Proskuryakov  <ap@apple.com>
1919
1920         <rdar://problem/10423024> WebProcess doesn't use AuthBrokerAgent for proxy credentials
1921         https://bugs.webkit.org/show_bug.cgi?id=71964
1922
1923         Reviewed by Darin Adler.
1924
1925         * WebProcess/com.apple.WebProcess.sb: Allow mach-lookup of com.apple.cfnetwork.AuthBrokerAgent.
1926
1927 2011-11-09  Anders Carlsson  <andersca@apple.com>
1928
1929         Element::boundsInWindowSpace should be Element::boundsInRootViewSpace
1930         https://bugs.webkit.org/show_bug.cgi?id=71955
1931
1932         Reviewed by Sam Weinig.
1933
1934         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1935         (WebKit::InjectedBundleNodeHandle::elementBounds):
1936         Call Element::boundsInRootViewSpace.
1937
1938 2011-11-09  Alexis Menard  <alexis.menard@openbossa.org>
1939
1940         WebGraphicsLayer behaves wrongly when no contentsScale is set.
1941         https://bugs.webkit.org/show_bug.cgi?id=71959
1942
1943         Reviewed by Noam Rosenthal.
1944
1945         The contentsScale needs to get a default value just like
1946         TiledBackingStore in case no value is explicitely set.
1947
1948         It is covered by existing tests.
1949
1950         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
1951         (WebCore::WebGraphicsLayer::WebGraphicsLayer):
1952
1953 2011-11-09  Mark Hahnenberg  <mhahnenberg@apple.com>
1954
1955         De-virtualize JSObject::getOwnPropertyDescriptor
1956         https://bugs.webkit.org/show_bug.cgi?id=71523
1957
1958         Reviewed by Sam Weinig.
1959
1960         Added getOwnPropertyDescriptor to the MethodTable, changed all of the 
1961         virtual versions of getOwnPropertyDescriptor to static ones, and 
1962         changed all of the call sites to the corresponding lookup in the MethodTable.
1963
1964         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1965         (WebKit::JSNPObject::getOwnPropertyDescriptor):
1966         * WebProcess/Plugins/Netscape/JSNPObject.h:
1967
1968 2011-11-09  Alexandru Chiculita  <achicu@adobe.com>
1969
1970         Fixing build on MacOSX SL after 71838
1971         https://bugs.webkit.org/show_bug.cgi?id=71912
1972
1973         Reviewed by Anders Carlsson.
1974
1975         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1976         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
1977
1978 2011-11-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1979
1980         [WebKit2] Prepare viewport meta handling for desktop usage
1981         https://bugs.webkit.org/show_bug.cgi?id=71907
1982
1983         Reviewed by Simon Hausmann.
1984
1985         This is only used by Qt so far. Now we don't always layout pages
1986         without the viewport meta tag, using 980 as the layout width, but
1987         instead we use that value (it is a setting) as a minimum value, or
1988         else we use the viewport width.
1989
1990         * UIProcess/API/qt/qtouchwebview.cpp:
1991         (QTouchWebViewPrivate::updateViewportSize):
1992         (QTouchWebViewPrivate::updateViewportConstraints):
1993         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1994         (WebKit::WebChromeClient::dispatchViewportPropertiesDidChange):
1995         * WebProcess/WebPage/WebPage.cpp:
1996         (WebKit::WebPage::setViewportSize):
1997
1998 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
1999
2000         Unreviewed, rolling out r99701.
2001         http://trac.webkit.org/changeset/99701
2002
2003         Breaks Qt mac build
2004
2005         * WebProcess/WebPage/qt/WebPageQt.cpp:
2006         (initResources):
2007         (WebKit::WebPage::platformInitialize):
2008
2009 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
2010
2011         [Qt] Enable exports and constructor functions in static libs
2012
2013         Reviewed by Tor Arne Vestbø.
2014
2015         * WebProcess/WebPage/qt/WebPageQt.cpp:
2016         (WebKit::WebPage::platformInitialize): Remove unnecessary manual Qt resource
2017         initialization.
2018
2019 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
2020
2021         [Qt] Fix geolocation enabled build.
2022
2023         Reviewed by Tor Arne Vestbø.
2024
2025         * Target.pri: Add QT += location to get the right module includes.
2026         * UIProcess/qt/WebGeolocationProviderQt.cpp: Include the moc file with the right name (GeoLocation -> Geolocation)
2027         * UIProcess/qt/WebGeolocationProviderQt.h: Removed the ENABLE(GEOLOCATION) guards, otherwise moc doesn't generate
2028         code, because it can't interpret the ENABLE() macro.
2029
2030 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
2031
2032         [Qt] Build system cleanup
2033         https://bugs.webkit.org/show_bug.cgi?id=71815
2034
2035         Reviewed by Kenneth Rohde Christiansen.
2036
2037         * Target.pri: Removed duplicated sources that are compiled also into QtWebKit.so through api.pri.
2038         * UIProcess/qt/WebGeolocationProviderQt.cpp: Include the moc file here, as it should only be compiled
2039         if geolocation is enabled.
2040         * UIProcess/qt/WebGeolocationProviderQt.h: Provide ENABLE(GEOLOCATION) guards around class definition.
2041
2042 2011-11-08  Simon Hausmann  <simon.hausmann@nokia.com>
2043
2044         [Qt] Replace use of QApplication with QGuiApplication
2045         https://bugs.webkit.org/show_bug.cgi?id=71794
2046
2047         Reviewed by Andreas Kling.
2048
2049         * Platform/CoreIPC/unix/ConnectionUnix.cpp: Remove unnecessary QApplication inclusion.
2050         * Platform/qt/RunLoopQt.cpp: Replace QApplication include with QCoreApplication.
2051         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp: Ditto.
2052         * UIProcess/Launcher/qt/ThreadLauncherQt.cpp: Remove unnecessary QApplication inclusion.
2053         * UIProcess/qt/QtWebPageProxy.cpp:
2054         (QtWebPageProxy::handleMousePressEvent): Replace QApplication usage with QStyleHints.
2055         (QtWebPageProxy::handleMouseDoubleClickEvent): Ditto.
2056
2057 2011-11-07  Adam Barth  <abarth@webkit.org>
2058
2059         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
2060         https://bugs.webkit.org/show_bug.cgi?id=71755
2061
2062         Reviewed by Eric Seidel.
2063
2064         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2065         (WebKit::InjectedBundle::addOriginAccessWhitelistEntry):
2066         (WebKit::InjectedBundle::removeOriginAccessWhitelistEntry):
2067         (WebKit::InjectedBundle::resetOriginAccessWhitelists):
2068         * WebProcess/Plugins/PluginView.cpp:
2069         (WebKit::PluginView::loadURL):
2070
2071 2011-11-08  Brent Fulgham  <bfulgham@webkit.org>
2072
2073         [WinCairo] Unreviewed build fix after r99613.
2074
2075         * win/WebKit2CFLite.def: Add missing export.
2076
2077 2011-11-08  Brent Fulgham  <bfulgham@webkit.org>
2078
2079         [WinCairo] Unreviewed build fix after r98624 and r99613.
2080
2081         * win/WebKit2CFLite.def: Add missing exports.
2082
2083 2011-11-08  Beth Dakin  <bdakin@apple.com>
2084
2085         https://bugs.webkit.org/show_bug.cgi?id=71856
2086         WebKit should use new NSWindowDidChangeBackingPropertiesNotification instead of 
2087         old NSWindowDidChangeResolutionNotification
2088         -and corresponding-
2089         <rdar://problem/10317253>
2090
2091         Reviewed by Tim Hatcher.
2092
2093         * UIProcess/API/mac/WKView.mm:
2094         (-[WKView addWindowObserversForWindow:]):
2095         (-[WKView removeWindowObservers]):
2096
2097         We have to check that the backing scale factor actually changed since this 
2098         notification can also be used to signify other changes. 
2099         (-[WKView _windowDidChangeBackingProperties:]):
2100
2101 2011-11-08  Anders Carlsson  <andersca@apple.com>
2102
2103         Add a basic layer hierarchy to the Core Animation drawing area
2104         https://bugs.webkit.org/show_bug.cgi?id=71838
2105
2106         Reviewed by Sam Weinig.
2107
2108         * UIProcess/API/mac/WKView.mm:
2109         (-[WKView drawRect:]):
2110         Return early if we're using a tiled drawing area.
2111
2112         (-[WKView initWithFrame:contextRef:pageGroupRef:]):
2113         If we're using a tiled drawing area, make the WKView layer backed and set its layer
2114         to a simple CALayer with a white background and set the view's content redraw policy
2115         to never to avoid ever calling drawRect.
2116
2117         * UIProcess/DrawingAreaProxy.h:
2118         (WebKit::DrawingAreaProxy::didUpdateGeometry):
2119         * UIProcess/DrawingAreaProxy.messages.in:
2120         Add a new didUpdateGeometry message.
2121
2122         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
2123         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2124         (WebKit::TiledCoreAnimationDrawingAreaProxy::TiledCoreAnimationDrawingAreaProxy):
2125         Initialize m_isWaitingForDidUpdateGeometry.
2126
2127         (WebKit::TiledCoreAnimationDrawingAreaProxy::sizeDidChange):
2128         Send an UpdateGeometry message to the web process and wait for a reply.
2129
2130         (WebKit::TiledCoreAnimationDrawingAreaProxy::enterAcceleratedCompositingMode):
2131         Tell the web page proxy to enter accelerated compositing mode.
2132
2133         (WebKit::TiledCoreAnimationDrawingAreaProxy::exitAcceleratedCompositingMode):
2134         Assert that this function is never called.
2135
2136         (WebKit::TiledCoreAnimationDrawingAreaProxy::didUpdateGeometry):
2137         Send another UpdateGeometry message if needed.
2138
2139         (WebKit::TiledCoreAnimationDrawingAreaProxy::sendUpdateGeometry):
2140         Add helper function to actually send the UpdateGeometry message.
2141
2142         * WebProcess/WebPage/DrawingArea.h:
2143         (WebKit::DrawingArea::updateGeometry):
2144         * WebProcess/WebPage/DrawingArea.messages.in:
2145         Add UpdateGeometry message.
2146
2147         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2148         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2149         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
2150         Create a red root layer and a remote layer client that hosts it.
2151
2152         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
2153         Resize the root layer and tell the UI process that we've updated the geometry.
2154
2155 2011-11-08  Dan Bernstein  <mitz@apple.com>
2156
2157         <rdar://problem/10262225> Allow RenderView to have columns
2158         https://bugs.webkit.org/show_bug.cgi?id=71840
2159
2160         * win/WebKit2.def: Export Page::setPagination() for WebCoreTestSupport.
2161
2162 2011-11-08  Jon Lee  <jonlee@apple.com>
2163
2164         [WK2] Expose acceptMIMETypes for file inputs
2165         https://bugs.webkit.org/show_bug.cgi?id=71836
2166         <rdar://problem/10407367>
2167
2168         Reviewed by Anders Carlsson.
2169
2170         * Shared/WebOpenPanelParameters.cpp:
2171         (WebKit::WebOpenPanelParameters::acceptMIMETypes):
2172         * Shared/WebOpenPanelParameters.h:
2173         * UIProcess/API/C/WKOpenPanelParameters.cpp:
2174         (WKOpenPanelParametersCopyAcceptedMIMETypes):
2175         * UIProcess/API/C/WKOpenPanelParameters.h:
2176
2177 2011-11-08  Zan Dobersek  <zandobersek@gmail.com>
2178
2179         [WK2][GTK] The default database & local storage directory names should note they exist for Gtk port's needs
2180         https://bugs.webkit.org/show_bug.cgi?id=71837
2181
2182         Reviewed by Martin Robinson.
2183
2184         Ensure that directories for databases and local storage are in a 'webkitgtk'
2185         directory in current user's data directory, noting they originate from the Gtk port.
2186
2187         * UIProcess/gtk/WebContextGtk.cpp:
2188         (WebKit::WebContext::platformDefaultDatabaseDirectory):
2189         (WebKit::WebContext::platformDefaultLocalStorageDirectory):
2190
2191 2011-11-08  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2192
2193         [Qt] Workaround some problems in QML API tests
2194         https://bugs.webkit.org/show_bug.cgi?id=71818
2195
2196         Reviewed by Tor Arne Vestbø.
2197
2198         This commit workaround the issue of QML's QtTest crashing when we run tests after
2199         "windowShown". We delay to the next run of the mainloop. This workaround is not
2200         pretty but shouldn't affect the semantics of the tests. And we benefit more from
2201         having working tests right now.
2202
2203         This patch also improves Download to: wait for the load before emitting click, and
2204         properly identifying the "succeeded" signal of the downloadItem object.
2205
2206         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_download.qml:
2207         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_linkHovered.qml:
2208         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_navigationPolicyForUrl.qml:
2209
2210 2011-11-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2211
2212         Clean up QtViewportInteractionEngine
2213
2214         Reviewed by Simon Hausmann.
2215
2216         * UIProcess/qt/QtViewportInteractionEngine.cpp:
2217         (WebKit::QtViewportInteractionEngine::QtViewportInteractionEngine):
2218         (WebKit::QtViewportInteractionEngine::setItemRectVisible):
2219
2220             Rename the method to make it more obvious what it does. Avoid implicit
2221             conversion to/from QVariant.
2222
2223         (WebKit::QtViewportInteractionEngine::pagePositionRequest):
2224         (WebKit::QtViewportInteractionEngine::ensureContentWithinViewportBoundary):
2225         (WebKit::QtViewportInteractionEngine::itemSizeChanged):
2226
2227             Only call this method on item size changes, and not for every interaction
2228             with the viewport item. Before this change it was even being called during
2229             animations.
2230
2231         * UIProcess/qt/QtViewportInteractionEngine.h:
2232         (WebKit::QtViewportInteractionEngine::scaleAnimationValueChanged):
2233
2234             Rename to make it clean that this is called from the animator.
2235
2236 2011-11-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2237
2238         [Qt] Improve the animation time constant
2239         https://bugs.webkit.org/show_bug.cgi?id=71790
2240
2241         Reviewed by Simon Hausmann.
2242
2243         Use 250 milliseconds instead of 400, which feels a lot more natural
2244         and makes the mini browser feel more responsive.
2245
2246         * UIProcess/qt/QtViewportInteractionEngine.cpp:
2247
2248 2011-11-08  Alexis Menard  <alexis.menard@openbossa.org>
2249
2250         [Qt] Merge QtDesktopWebPageProxy and QtTouchWebPageProxy into QtWebPageProxy.
2251         https://bugs.webkit.org/show_bug.cgi?id=71355
2252
2253         Reviewed by Simon Hausmann.
2254
2255         As we try to unify our public API offer we need to merge our double
2256         WebPageProxy implementations first into a common class. That will help
2257         to merge our TouchWebView and DesktopWebView views into one class later.
2258         This commit just merge stuff around and doesn't contain any functional changes.
2259
2260         * Target.pri:
2261         * UIProcess/API/qt/qdesktopwebview.cpp:
2262         (QDesktopWebViewPrivate::init):
2263         * UIProcess/API/qt/qtouchwebpage.cpp:
2264         (QTouchWebPagePrivate::paintToCurrentGLContext):
2265         * UIProcess/API/qt/qtouchwebpage.h:
2266         * UIProcess/API/qt/qtouchwebpage_p.h:
2267         * UIProcess/API/qt/qtouchwebview.cpp:
2268         (QTouchWebViewPrivate::init):
2269         (QTouchWebViewPrivate::_q_viewportUpdated):
2270         (QTouchWebViewPrivate::_q_viewportTrajectoryVectorChanged):
2271         * UIProcess/API/qt/qtouchwebview_p.h:
2272         * UIProcess/qt/QtDesktopWebPageProxy.cpp: Removed.
2273         * UIProcess/qt/QtDesktopWebPageProxy.h: Removed.
2274         * UIProcess/qt/QtTouchWebPageProxy.cpp: Removed.
2275         * UIProcess/qt/QtTouchWebPageProxy.h: Removed.
2276         * UIProcess/qt/QtWebPageProxy.cpp:
2277         (dragOperationToDropAction):
2278         (QtWebPageProxy::QtWebPageProxy):
2279         (QtWebPageProxy::handleEvent):
2280         (QtWebPageProxy::handleMouseMoveEvent):
2281         (QtWebPageProxy::handleMousePressEvent):
2282         (QtWebPageProxy::handleMouseReleaseEvent):
2283         (QtWebPageProxy::handleMouseDoubleClickEvent):
2284         (QtWebPageProxy::handleWheelEvent):
2285         (QtWebPageProxy::handleHoverLeaveEvent):
2286         (QtWebPageProxy::handleHoverMoveEvent):
2287         (QtWebPageProxy::handleDragEnterEvent):
2288         (QtWebPageProxy::handleDragLeaveEvent):
2289         (QtWebPageProxy::handleDragMoveEvent):
2290         (QtWebPageProxy::handleDropEvent):
2291         (QtWebPageProxy::timerEvent):
2292         (QtWebPageProxy::processDidCrash):
2293         (QtWebPageProxy::didReceiveDownloadResponse):
2294         (QtWebPageProxy::paintContent):
2295         (QtWebPageProxy::createDrawingAreaProxy):
2296         (QtWebPageProxy::renderToCurrentGLContext):
2297         (QtWebPageProxy::doneWithTouchEvent):
2298         (QtWebPageProxy::setVisibleContentRectAndScale):
2299         (QtWebPageProxy::setVisibleContentRectTrajectoryVector):
2300         (QtWebPageProxy::touchEvent):
2301         (QtWebPageProxy::findZoomableAreaForPoint):
2302         * UIProcess/qt/QtWebPageProxy.h:
2303
2304 2011-11-08  Zan Dobersek  <zandobersek@gmail.com>
2305
2306         [WK2][GTK] Application cache directory is incorrectly set
2307         https://bugs.webkit.org/show_bug.cgi?id=70680
2308
2309         Reviewed by Philippe Normand.
2310
2311         Correctly set application cache directory to be in current
2312         user's default cache directory.
2313
2314         * UIProcess/gtk/WebContextGtk.cpp:
2315         (WebKit::WebContext::applicationCacheDirectory):
2316
2317 2011-11-07  Emil A Eklund  <eae@chromium.org>
2318
2319         Revert platform and scrolling to ints
2320         https://bugs.webkit.org/show_bug.cgi?id=71585
2321
2322         Reviewed by Eric Seidel.
2323
2324         Replace all uses of LayoutUnit and related types with ints in platform
2325         and scrolling code.
2326
2327         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
2328         (WebKit::BuiltInPDFView::invalidateScrollbarRect):
2329         (WebKit::BuiltInPDFView::visibleHeight):
2330         (WebKit::BuiltInPDFView::visibleWidth):
2331         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
2332
2333 2011-11-07  Adam Barth  <abarth@webkit.org>
2334
2335         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
2336         https://bugs.webkit.org/show_bug.cgi?id=71750
2337
2338         Reviewed by Eric Seidel.
2339
2340         * WebProcess/WebProcess.cpp:
2341         (WebKit::WebProcess::setDomainRelaxationForbiddenForURLScheme):
2342
2343 2011-11-07  Beth Dakin  <bdakin@apple.com>
2344
2345         https://bugs.webkit.org/show_bug.cgi?id=71490
2346         Support uiStateTransitionProgress for scrollbars
2347         -and corresponding-
2348         <rdar://problem/9849612>
2349
2350         Reviewed by Sam Weinig.
2351
2352         Scrollbar::mouseUp() now takes a PlatformMouseEvent as a parameter.
2353         * UIProcess/win/WebPopupMenuProxyWin.cpp:
2354         (WebKit::WebPopupMenuProxyWin::onLButtonUp):
2355         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
2356         (WebKit::BuiltInPDFView::handleMouseEvent):
2357
2358 2011-11-07  Alexey Proskuryakov  <ap@apple.com>
2359
2360         The Full Keyboard Access preference should be read in the UI process
2361         https://bugs.webkit.org/show_bug.cgi?id=71734
2362         <rdar://problem/9237619>
2363
2364         Reviewed by Darin Adler.
2365
2366         This is consistent with how other global preferences (like language) are handled, and lets
2367         us tighten up the sandbox a little.
2368
2369         * Shared/WebProcessCreationParameters.cpp:
2370         (WebKit::WebProcessCreationParameters::encode):
2371         (WebKit::WebProcessCreationParameters::decode):
2372         * Shared/WebProcessCreationParameters.h:
2373         Added fullKeyboardAccessEnabled, so that newly started processes have the right preference value.
2374
2375         * UIProcess/WebContext.h:
2376         * UIProcess/WebContext.cpp:
2377         (WebKit::WebContext::fullKeyboardAccessModeChanged): If preference changes while a web process
2378         is already running, tell it.
2379         (WebKit::WebContext::ensureWebProcess): Set parameters.fullKeyboardAccessEnabled from current
2380         preference.
2381
2382         * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::fullKeyboardAccessEnabled):
2383         * UIProcess/mac/WebProcessProxyMac.mm: (WebKit::WebProcessProxy::fullKeyboardAccessEnabled):
2384         * UIProcess/WebProcessProxy.h:
2385         Proxy it to Objective-C code. WebProcessProxy is as good place to have the static function
2386         as any. One day, we will make code more consistent with language and other global preferences.
2387
2388         * UIProcess/mac/WKFullKeyboardAccessWatcher.h: Copied from Source/WebKit2/WebProcess/mac/WKFullKeyboardAccessWatcher.h.
2389         * UIProcess/mac/WKFullKeyboardAccessWatcher.mm: Copied from Source/WebKit2/WebProcess/mac/WKFullKeyboardAccessWatcher.mm.
2390         * WebProcess/mac/WKFullKeyboardAccessWatcher.h: Removed.
2391         * WebProcess/mac/WKFullKeyboardAccessWatcher.mm: Removed.
2392         (-[WKFullKeyboardAccessWatcher retrieveKeyboardUIModeFromPreferences:]): Once retrieved,
2393         push the preference value.
2394
2395         * WebKit2.xcodeproj/project.pbxproj: WKFullKeyboardAccessWatcher is now in UI process.
2396
2397         * WebProcess/WebProcess.h:
2398         * WebProcess/WebProcess.cpp:
2399         (WebKit::WebProcess::WebProcess):
2400         (WebKit::WebProcess::fullKeyboardAccessModeChanged):
2401         (WebKit::WebProcess::fullKeyboardAccessEnabled):
2402         * WebProcess/mac/WebProcessMac.mm:
2403         WebCprocess now holds the preference value in a mamber value, which UI process pushes
2404         updates to.
2405
2406         * WebProcess/WebProcess.messages.in: Added a message for changes preference value.
2407
2408         * WebProcess/com.apple.WebProcess.sb: We no longer need read access to com.apple.universalaccess.plist.
2409
2410 2011-11-07  Anders Carlsson  <andersca@apple.com>
2411
2412         Add TiledCoreAnimationDrawingArea stub classes
2413         https://bugs.webkit.org/show_bug.cgi?id=71729
2414
2415         Reviewed by Sam Weinig.
2416
2417         * Shared/DrawingAreaInfo.h:
2418         * UIProcess/API/mac/WKView.mm:
2419         (-[WKView _shouldUseTiledDrawingArea]):
2420         (-[WKView WebKit::]):
2421         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h: Copied from Source/WebKit2/Shared/DrawingAreaInfo.h.
2422         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm: Copied from Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp.
2423         (WebKit::TiledCoreAnimationDrawingAreaProxy::create):
2424         (WebKit::TiledCoreAnimationDrawingAreaProxy::TiledCoreAnimationDrawingAreaProxy):
2425         (WebKit::TiledCoreAnimationDrawingAreaProxy::~TiledCoreAnimationDrawingAreaProxy):
2426         (WebKit::TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange):
2427         (WebKit::TiledCoreAnimationDrawingAreaProxy::sizeDidChange):
2428         * WebKit2.xcodeproj/project.pbxproj:
2429         * WebProcess/WebPage/DrawingArea.cpp:
2430         (WebKit::DrawingArea::create):
2431         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h: Copied from Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp.
2432         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: Copied from Source/WebKit2/WebProcess/WebPage/DrawingArea.cpp.
2433         (WebKit::TiledCoreAnimationDrawingArea::create):
2434         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
2435         (WebKit::TiledCoreAnimationDrawingArea::~TiledCoreAnimationDrawingArea):
2436         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplay):
2437         (WebKit::TiledCoreAnimationDrawingArea::scroll):
2438         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
2439         (WebKit::TiledCoreAnimationDrawingArea::scheduleCompositingLayerSync):
2440
2441 2011-11-07  Anders Carlsson  <andersca@apple.com>
2442
2443         Follow-up build fix.
2444
2445         * WebProcess/WebPage/DrawingAreaImpl.h:
2446
2447 2011-11-07  Anders Carlsson  <andersca@apple.com>
2448
2449         Remove unused DrawingArea::syncCompositingLayers
2450         https://bugs.webkit.org/show_bug.cgi?id=71717
2451
2452         Reviewed by John Sullivan.
2453
2454         * WebProcess/WebPage/DrawingArea.h:
2455         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2456         * WebProcess/WebPage/TiledDrawingArea.h:
2457
2458 2011-11-07  Anders Carlsson  <andersca@apple.com>
2459
2460         Rename NetscapePlugin::wantsWindowRelativeNPWindowCoordinates to NetscapePlugin::wantsPluginRelativeNPWindowCoordinates
2461         https://bugs.webkit.org/show_bug.cgi?id=71708
2462
2463         Reviewed by Sam Weinig.
2464
2465         The name wantsPluginRelativeNPWindowCoordinates is more clear than wantsWindowRelativeNPWindowCoordinates. Rename the functions
2466         everywhere and, since the meaning is now inverted, invert the checks and return values.
2467
2468         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2469         (WebKit::NetscapePlugin::callSetWindow):
2470         (WebKit::NetscapePlugin::geometryDidChange):
2471         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2472         * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
2473         (WebKit::NetscapePlugin::wantsPluginRelativeNPWindowCoordinates):
2474         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2475         (WebKit::NetscapePlugin::wantsPluginRelativeNPWindowCoordinates):
2476         * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
2477         (WebKit::NetscapePlugin::wantsPluginRelativeNPWindowCoordinates):
2478         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2479         (WebKit::NetscapePlugin::wantsPluginRelativeNPWindowCoordinates):
2480
2481 2011-11-07  Anders Carlsson  <andersca@apple.com>
2482
2483         NetscapePlugin::wantsWindowRelativeNPWindowCoordinates should return false on Mac
2484         https://bugs.webkit.org/show_bug.cgi?id=71707
2485
2486         Reviewed by Sam Weinig.
2487
2488         This changes the way the fake Carbon plug-in window is positioned, so that it's always the same size
2489         and location as the plug-in (relative to the screen).
2490
2491         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2492         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2493         (WebKit::NetscapePlugin::platformGeometryDidChange):
2494         Call updateFakeWindowBounds.
2495
2496         (WebKit::NetscapePlugin::updateFakeWindowBounds):
2497         Convert the plug-in position to screen coordinates and set the window bounds to be the location and
2498         size of the plug-in, where the location is relative to the screen.
2499
2500         (WebKit::NetscapePlugin::wantsWindowRelativeNPWindowCoordinates):
2501         Return false.
2502
2503         (WebKit::NetscapePlugin::windowAndViewFramesChanged):
2504         Call updateFakeWindowBounds.
2505
2506 2011-11-07  Sam Weinig  <sam@webkit.org>
2507
2508         WKPage.h should be in PrivateHeaders.
2509
2510         Rubber-stamped by Anders Carlsson.
2511
2512         * WebKit2.xcodeproj/project.pbxproj:
2513         Mark WKPage.h private.
2514
2515 2011-11-07  Anders Carlsson  <andersca@apple.com>
2516
2517         Simplify NetscapePlugin::convertPoint and make it work (in theory) with transformed plug-ins
2518         https://bugs.webkit.org/show_bug.cgi?id=71699
2519
2520         Reviewed by Sam Weinig.
2521
2522         Add a getScreenTransform function which given a coordinate space returns a transform that converts a
2523         point from that coordinate space to the screen coordinate space. We then get the source -> screen transform
2524         and the destination -> screen transform. We invert the destination -> screen transform, multiply it with the
2525         source -> screen transform and use mapPoint to get a complete affine transform from the source to the destination space
2526         and use mapPoint to map the source point and return the destination point.
2527
2528         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2529         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2530         (WebKit::NetscapePlugin::getScreenTransform):
2531         (WebKit::NetscapePlugin::convertPoint):
2532
2533         * WebProcess/Plugins/PluginView.cpp:
2534         (WebKit::PluginView::initializePlugin):
2535         Call windowAndViewFramesChanged before viewGeometryDidChange so that the window and view frames will be up to date by
2536         the time NPP_SetWindow is called in the plug-in.
2537
2538 2011-11-07  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2539
2540         [Qt] Put handling of gestures and their interaction in one place
2541         https://bugs.webkit.org/show_bug.cgi?id=71682
2542
2543         Reviewed by Simon Hausmann.
2544
2545         Before this patch, the interaction (ie. cancelling animations, events)
2546         was handled in the respective recognizers which then knew about each
2547         others.
2548
2549         * UIProcess/qt/QtGestureRecognizer.h:
2550         (WebKit::QtGestureRecognizer::isRecognized):
2551         * UIProcess/qt/QtPanGestureRecognizer.cpp:
2552         (WebKit::QtPanGestureRecognizer::recognize):
2553         * UIProcess/qt/QtPanGestureRecognizer.h:
2554         * UIProcess/qt/QtPinchGestureRecognizer.cpp:
2555         (WebKit::QtPinchGestureRecognizer::recognize):
2556         * UIProcess/qt/QtPinchGestureRecognizer.h:
2557         * UIProcess/qt/QtTouchWebPageProxy.cpp:
2558         (QtTouchWebPageProxy::QtTouchWebPageProxy):
2559         (QtTouchWebPageProxy::doneWithTouchEvent):
2560         * UIProcess/qt/QtTouchWebPageProxy.h:
2561         * UIProcess/qt/QtViewportInteractionEngine.cpp:
2562         (WebKit::QtViewportInteractionEngine::pagePositionRequest):
2563         (WebKit::QtViewportInteractionEngine::ensureContentWithinViewportBoundary):
2564         (WebKit::QtViewportInteractionEngine::scrollAnimationActive):
2565         (WebKit::QtViewportInteractionEngine::interruptScrollAnimation):
2566         (WebKit::QtViewportInteractionEngine::panGestureActive):
2567         (WebKit::QtViewportInteractionEngine::scaleAnimationActive):
2568         (WebKit::QtViewportInteractionEngine::interruptScaleAnimation):
2569         (WebKit::QtViewportInteractionEngine::pinchGestureActive):
2570         * UIProcess/qt/QtViewportInteractionEngine.h:
2571
2572 2011-11-07  Simon Hausmann  <simon.hausmann@nokia.com>
2573
2574         [Qt] Make it possible to include qdesktopwebview.h from apps
2575
2576         Reviewed by Tor Arne Vestbø.
2577
2578         * UIProcess/API/qt/qdesktopwebview.h: Don't include C API headers, forward
2579         declare the structs manually.
2580
2581 2011-11-07  Simon Hausmann  <simon.hausmann@nokia.com>
2582
2583         [Qt] Fix failing inspector tests after build system changes
2584         https://bugs.webkit.org/show_bug.cgi?id=71677
2585
2586         Reviewed by Tor Arne Vestbø.
2587
2588         Ensure symbols from the qt resource system are referenced
2589         from outside the static webcore library. One way of doing that is
2590         to initialize the resources right away, as explained in the documentation
2591         of th Qt resource system.
2592
2593         * WebProcess/WebPage/qt/WebPageQt.cpp:
2594         (initResources):
2595         (WebKit::WebPage::platformInitialize):
2596
2597 2011-11-03  Anders Carlsson  <andersca@apple.com>
2598
2599         Add NetscapePlugin::convertFromRootView
2600         https://bugs.webkit.org/show_bug.cgi?id=71526
2601
2602         Reviewed by Sam Weinig.
2603
2604         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2605         (WebKit::NetscapePlugin::convertFromRootView):
2606         New function that converts a point from root view coordinates to plug-in coordinates.
2607         Returns false if the conversion can't be done.
2608
2609         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2610         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
2611         (WebKit::fillInCocoaEventFromMouseEvent):
2612         (WebKit::initializeMouseEvent):
2613         (WebKit::NetscapePlugin::platformHandleMouseEvent):
2614         (WebKit::NetscapePlugin::platformHandleWheelEvent):
2615         (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
2616         (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
2617         Use convertFromRootView instead of subtracting m_frameRectInWindowCoordinates.location() from the
2618         event position (which is in root view coordinates).
2619
2620 2011-11-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2621
2622         [Qt] Refactor and clean up the qmake build system
2623
2624         The qmake build system has accumulated a bit of cruft and redundancy
2625         over time. There's also a fairly tight coupling between how to build
2626         the various targets, and _what_ to build, making it harder to add new
2627         rules or sources. This patch aims to elevate these issues somewhat.
2628
2629         This is a short-list of the changes:
2630
2631           * The rules for how to build targets are now mostly contained as
2632             prf-files in Tools/qmake/mkspecs/features. Using mkspecs also
2633             allows us to do pre- and post-processing of each project file,
2634             which helps to clean up the actual project files.
2635
2636           * Derived sources are no longer generated as a separate make-step
2637             but is part of each target's project file as a subdir. Makefile
2638             rules are used to ensure that we run make on the derived sources
2639             before running qmake on the actual target makefile. This makes
2640             it easier to keep a proper dependency between derived sources
2641             and the target.
2642
2643           * We use GNU make and the compiler to generate dependencies on
2644             UNIX-based systems running Qt 5. This allows us to lessen the
2645             need to run qmake, which should reduce compile time.
2646
2647           * WebKit2 is now build by default if building with Qt 5. It can
2648             be disabled by passing --no-webkit2 to build-webkit.
2649
2650         The result of these changes are hopefully a cleaner and easier
2651         build system to modify, and faster build times due to no longer
2652         running qmake on every single build. It's also a first step
2653         towards possibly generating the list of sources using another
2654         build system.
2655
2656         https://bugs.webkit.org/show_bug.cgi?id=71222
2657
2658         Reviewed by Simon Hausmann.
2659
2660         * DerivedSources.pri: Renamed from Source/WebKit2/DerivedSources.pro.
2661         * Target.pri: Copied from Source/WebKit2/WebKit2.pro.
2662         * UIProcess/API/qt/tests/tests.pri:
2663         * UIProcess/API/qt/tests/tests.pro: Removed.
2664         * WebKit2.pri:
2665         * WebKit2.pro:
2666         * WebKit2API.pri: Removed.
2667         * WebProcess.pro:
2668
2669 2011-11-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2670
2671         [Qt] Support programmatic scrolling with the QTouchWebView
2672
2673         Reviewed by Simon Hausmann.
2674
2675         As more code can be shared between the programmatic scrolling and the
2676         method for ensuring that the contents are within valid bounds, this
2677         patch includes a bit of refactoring as well.
2678
2679         * UIProcess/API/qt/qdesktopwebview_p.h:
2680         (QDesktopWebViewPrivate::scrollPositionRequested):
2681         * UIProcess/API/qt/qtouchwebview.cpp:
2682         (QTouchWebViewPrivate::scrollPositionRequested):
2683         * UIProcess/API/qt/qtouchwebview_p.h:
2684         * UIProcess/qt/QtTouchViewInterface.cpp:
2685         (WebKit::QtTouchViewInterface::scrollPositionRequested):
2686         * UIProcess/qt/QtTouchViewInterface.h:
2687         * UIProcess/qt/QtViewInterface.h:
2688         * UIProcess/qt/QtViewportInteractionEngine.cpp:
2689         (WebKit::QtViewportInteractionEngine::event):
2690         (WebKit::boundPosition):
2691         (WebKit::QtViewportInteractionEngine::pagePositionRequest):
2692         (WebKit::QtViewportInteractionEngine::computePosRangeForItemAtScale):
2693         (WebKit::QtViewportInteractionEngine::ensureContentWithinViewportBoundary):
2694         (WebKit::QtViewportInteractionEngine::setConstraints):
2695         (WebKit::QtViewportInteractionEngine::pinchGestureEnded):
2696         (WebKit::QtViewportInteractionEngine::contentViewportChanged):
2697         * UIProcess/qt/QtViewportInteractionEngine.h:
2698         * UIProcess/qt/QtWebPageProxy.cpp:
2699         (QtWebPageProxy::pageDidRequestScroll):
2700         * UIProcess/qt/QtWebPageProxy.h:
2701
2702 2011-11-03  Mark Hahnenberg  <mhahnenberg@apple.com>
2703
2704         De-virtualize JSObject::getPropertyNames
2705         https://bugs.webkit.org/show_bug.cgi?id=71306
2706
2707         Reviewed by Darin Adler.
2708
2709         Added getPropertyNames to the MethodTable, changed all the virtual 
2710         implementations of getPropertyNames to static ones, and replaced 
2711         all call sites with corresponding lookups in the MethodTable.
2712
2713         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
2714         (WebKit::NPJSObject::enumerate):
2715
2716 2011-11-03  Anders Carlsson  <andersca@apple.com>
2717
2718         Get rid of NetscapePlugin::m_clipRectInWindowCoordinates
2719         https://bugs.webkit.org/show_bug.cgi?id=71521
2720
2721         Reviewed by Dan Bernstein.
2722
2723         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2724         (WebKit::NetscapePlugin::geometryDidChange):
2725         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2726
2727 2011-11-03  Anders Carlsson  <andersca@apple.com>
2728
2729         Use convertToRootView(IntPoint()) instead of m_frameRectInWindowCoordinates.location() where possible
2730         https://bugs.webkit.org/show_bug.cgi?id=71520
2731
2732         Reviewed by Dan Bernstein.
2733
2734         * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
2735         (WebKit::NetscapePlugin::scheduleWindowedGeometryUpdate):
2736         (WebKit::NetscapePlugin::platformPaint):
2737         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2738         (WebKit::NetscapePlugin::platformHandleMouseEvent):
2739         (WebKit::NetscapePlugin::platformHandleWheelEvent):
2740         (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
2741         (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
2742
2743 2011-11-03  Anders Carlsson  <andersca@apple.com>
2744
2745         Add NetscapePlugin::convertToRootView
2746         https://bugs.webkit.org/show_bug.cgi?id=71519
2747
2748         Reviewed by Darin Adler.
2749
2750         Yet another step towards eliminating uses of m_frameRectInWindowCoordinates.
2751
2752         Also, use the "root view" terminology, since that's really what we mean here.
2753
2754         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2755         (WebKit::NetscapePlugin::callSetWindow):
2756         Use convertToRootView to get the plug-in location and clip rect in root view coordinates.
2757
2758         (WebKit::NetscapePlugin::convertToRootView):
2759         Apply the m_pluginToRootViewTransform.mapPoint transform.
2760
2761         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2762         Add convertToRootView.
2763
2764 2011-11-03  Anders Carlsson  <andersca@apple.com>
2765
2766         Move plug-in size and backing store checks to PluginProxy::updateBackingStore
2767         https://bugs.webkit.org/show_bug.cgi?id=71508
2768
2769         Reviewed by Darin Adler.
2770
2771         * WebProcess/Plugins/PluginProxy.cpp:
2772         (WebKit::PluginProxy::geometryDidChange):
2773         Remove code to send back an empty backing store if the plug-in size is empty
2774         or doesn't need a backing store. This check is now done...
2775
2776         (WebKit::PluginProxy::updateBackingStore):
2777         ...here.
2778
2779 2011-11-03  Anders Carlsson  <andersca@apple.com>
2780
2781         Get rid of PluginControllerProxy::m_frameRectInWindowCoordinates
2782         https://bugs.webkit.org/show_bug.cgi?id=71506
2783
2784         Reviewed by Darin Adler.
2785
2786         * PluginProcess/PluginControllerProxy.cpp:
2787         (WebKit::PluginControllerProxy::geometryDidChange):
2788         This no longer needs to take the frame rect in window coordinates.
2789
2790         * PluginProcess/PluginControllerProxy.h:
2791         * PluginProcess/PluginControllerProxy.messages.in:
2792         Remove frameRectInWindowCoordinates from the GeometryDidChange message.
2793
2794         * WebProcess/Plugins/PluginProxy.cpp:
2795         (WebKit::PluginProxy::geometryDidChange):
2796         Don't pass frameRectInWindowCoordinates when sending GeometryDidChange.
2797
2798 2011-11-03  Anders Carlsson  <andersca@apple.com>
2799
2800         Get rid of Plugin::wantsWindowRelativeCoordinates()
2801         https://bugs.webkit.org/show_bug.cgi?id=71504
2802
2803         Reviewed by Darin Adler.
2804
2805         Since all Plugin subclasses now return false for wantsWindowRelativeCoordinates,
2806         we can go ahead and remove it.
2807
2808         * PluginProcess/PluginControllerProxy.cpp:
2809         (WebKit::PluginControllerProxy::paint):
2810         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2811         (WebKit::NetscapePlugin::snapshot):
2812         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
2813         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
2814         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
2815         * WebProcess/Plugins/Plugin.h:
2816         * WebProcess/Plugins/PluginProxy.cpp:
2817         * WebProcess/Plugins/PluginProxy.h:
2818         * WebProcess/Plugins/PluginView.cpp:
2819         (WebKit::PluginView::paint):
2820
2821 2011-11-03  Anders Carlsson  <andersca@apple.com>
2822
2823         NetscapePlugin::wantsWindowRelativeCoordinates should return false for all ports
2824         https://bugs.webkit.org/show_bug.cgi?id=71501
2825
2826         Reviewed by Darin Adler.
2827
2828         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2829         (WebKit::NetscapePlugin::wantsWindowRelativeCoordinates):
2830         Return false.
2831
2832         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2833         (WebKit::NetscapePlugin::platformGeometryDidChange):
2834         Use m_pluginSize instead of m_frameRectInWindowCoordinates.size().
2835
2836         (WebKit::NetscapePlugin::platformPaint):
2837         No need to translate back and forth between window and plug-in relative coordinates anymore.
2838
2839 2011-11-03  Darin Adler  <darin@apple.com>
2840
2841         Change remaining callers of releaseRef to call leakRef
2842         https://bugs.webkit.org/show_bug.cgi?id=71422
2843
2844         Reviewed by Darin Fisher.
2845
2846         * Platform/mac/ModuleMac.mm:
2847         (WebKit::Module::load):
2848         * Shared/API/c/WKArray.cpp:
2849         (WKArrayCreate):
2850         * Shared/API/c/WKData.cpp:
2851         (WKDataCreate):
2852         * Shared/API/c/WKDictionary.cpp:
2853         (WKDictionaryCopyKeys):
2854         * Shared/API/c/WKGeometry.cpp:
2855         (WKPointCreate):
2856         (WKSizeCreate):
2857         (WKRectCreate):
2858         * Shared/API/c/WKMutableArray.cpp:
2859         (WKMutableArrayCreate):
2860         * Shared/API/c/WKMutableDictionary.cpp:
2861         (WKMutableDictionaryCreate):
2862         * Shared/API/c/WKNumber.cpp:
2863         (WKBooleanCreate):
2864         (WKDoubleCreate):
2865         (WKUInt64Create):
2866         * Shared/API/c/WKSharedAPICast.h:
2867         (WebKit::toCopiedAPI):
2868         (WebKit::toCopiedURLAPI):
2869         * Shared/API/c/cf/WKErrorCF.cpp:
2870         (WKErrorCreateWithCFError):
2871         * Shared/API/c/cf/WKURLRequestCF.cpp:
2872         (WKURLRequestCreateWithCFURLRequest):
2873         * Shared/API/c/cf/WKURLResponseCF.cpp:
2874         (WKURLResponseCreateWithCFURLResponse):
2875         * Shared/API/c/mac/WKURLRequestNS.mm:
2876         (WKURLRequestCreateWithNSURLRequest):
2877         * Shared/API/c/mac/WKURLResponseNS.mm:
2878         (WKURLResponseCreateWithNSURLResponse):
2879         * Shared/cf/ArgumentCodersCF.cpp:
2880         (CoreIPC::decode):
2881         * UIProcess/API/C/WKBackForwardList.cpp:
2882         (WKBackForwardListCopyBackListWithLimit):
2883         (WKBackForwardListCopyForwardListWithLimit):
2884         * UIProcess/API/C/WKContext.cpp:
2885         (WKContextCreate):
2886         (WKContextCreateWithInjectedBundlePath):
2887         * UIProcess/API/C/WKCredential.cpp:
2888         (WKCredentialCreate):
2889         (WKCredentialCreateWithCertificateInfo):
2890         * UIProcess/API/C/WKDatabaseManager.cpp:
2891         (WKDatabaseManagerGetOriginKey):
2892         (WKDatabaseManagerGetOriginQuotaKey):
2893         (WKDatabaseManagerGetOriginUsageKey):
2894         (WKDatabaseManagerGetDatabaseDetailsKey):
2895         (WKDatabaseManagerGetDatabaseDetailsNameKey):
2896         (WKDatabaseManagerGetDatabaseDetailsDisplayNameKey):
2897         (WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey):
2898         (WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey):
2899         * UIProcess/API/C/WKFrame.cpp:
2900         (WKFrameCopyChildFrames):
2901         * UIProcess/API/C/WKGeolocationPosition.cpp:
2902         (WKGeolocationPositionCreate):
2903         * UIProcess/API/C/WKGrammarDetail.cpp:
2904         (WKGrammarDetailCreate):
2905         * UIProcess/API/C/WKPage.cpp:
2906         (WKPageGetSessionHistoryURLValueType):
2907         (WKPageCopySessionState):
2908         * UIProcess/API/C/WKPreferences.cpp:
2909         (WKPreferencesCreateWithIdentifier):
2910         * UIProcess/API/C/win/WKView.cpp:
2911         (WKViewCreate):
2912         * UIProcess/win/WebUndoClient.cpp:
2913         (WebKit::WebUndoClient::registerEditCommand):
2914         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
2915         (WKBundleFrameCopyChildFrames):
2916         * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
2917         (WKBundleNodeHandleCreate):
2918         (WKBundleNodeHandleCopyDocument):
2919         (WKBundleNodeHandleCopyHTMLTableCellElementCellAbove):
2920         (WKBundleNodeHandleCopyDocumentFrame):
2921         (WKBundleNodeHandleCopyHTMLFrameElementContentFrame):
2922         (WKBundleNodeHandleCopyHTMLIFrameElementContentFrame):
2923         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2924         (WKBundlePageCopyTrackedRepaintRects):
2925         * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
2926         (WKBundleScriptWorldCreateWorld):
2927         Use leakRef.
2928
2929 2011-11-02  Darin Adler  <darin@apple.com>
2930
2931         Change remaining callers of releaseRef to call leakRef
2932         https://bugs.webkit.org/show_bug.cgi?id=71422
2933
2934         Reviewed by Darin Fisher.
2935
2936         * Platform/mac/ModuleMac.mm:
2937         (WebKit::Module::load): Use leakRef.
2938         (WebKit::Module::unload): Use leakRef, and cast to void
2939         to avoid unused return value warning.
2940
2941         * Shared/API/c/WKArray.cpp:
2942         (WKArrayCreate):
2943         * Shared/API/c/WKData.cpp:
2944         (WKDataCreate):
2945         * Shared/API/c/WKDictionary.cpp:
2946         (WKDictionaryCopyKeys):
2947         * Shared/API/c/WKGeometry.cpp:
2948         (WKPointCreate):
2949         (WKSizeCreate):
2950         (WKRectCreate):
2951         * Shared/API/c/WKMutableArray.cpp:
2952         (WKMutableArrayCreate):
2953         * Shared/API/c/WKMutableDictionary.cpp:
2954         (WKMutableDictionaryCreate):
2955         * Shared/API/c/WKNumber.cpp:
2956         (WKBooleanCreate):
2957         (WKDoubleCreate):
2958         (WKUInt64Create):
2959         * Shared/API/c/WKSharedAPICast.h:
2960         (WebKit::toCopiedAPI):
2961         (WebKit::toCopiedURLAPI):
2962         * Shared/API/c/cf/WKErrorCF.cpp:
2963         (WKErrorCreateWithCFError):
2964         * Shared/API/c/cf/WKURLRequestCF.cpp:
2965         (WKURLRequestCreateWithCFURLRequest):
2966         * Shared/API/c/cf/WKURLResponseCF.cpp:
2967         (WKURLResponseCreateWithCFURLResponse):
2968         * Shared/API/c/mac/WKURLRequestNS.mm:
2969         (WKURLRequestCreateWithNSURLRequest):
2970         * Shared/API/c/mac/WKURLResponseNS.mm:
2971         (WKURLResponseCreateWithNSURLResponse):
2972         * Shared/cf/ArgumentCodersCF.cpp:
2973         (CoreIPC::decode):
2974         * UIProcess/API/C/WKBackForwardList.cpp:
2975         (WKBackForwardListCopyBackListWithLimit):
2976         (WKBackForwardListCopyForwardListWithLimit):
2977         * UIProcess/API/C/WKContext.cpp:
2978         (WKContextCreate):
2979         (WKContextCreateWithInjectedBundlePath):
2980         * UIProcess/API/C/WKCredential.cpp:
2981         (WKCredentialCreate):
2982         (WKCredentialCreateWithCertificateInfo):
2983         * UIProcess/API/C/WKDatabaseManager.cpp:
2984         (WKDatabaseManagerGetOriginKey):
2985         (WKDatabaseManagerGetOriginQuotaKey):
2986         (WKDatabaseManagerGetOriginUsageKey):
2987         (WKDatabaseManagerGetDatabaseDetailsKey):
2988         (WKDatabaseManagerGetDatabaseDetailsNameKey):
2989         (WKDatabaseManagerGetDatabaseDetailsDisplayNameKey):
2990         (WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey):
2991         (WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey):
2992         * UIProcess/API/C/WKFrame.cpp:
2993         (WKFrameCopyChildFrames):
2994         * UIProcess/API/C/WKGeolocationPosition.cpp:
2995         (WKGeolocationPositionCreate):
2996         * UIProcess/API/C/WKGrammarDetail.cpp:
2997         (WKGrammarDetailCreate):
2998         * UIProcess/API/C/WKPage.cpp:
2999         (WKPageGetSessionHistoryURLValueType):
3000         (WKPageCopySessionState):
3001         * UIProcess/API/C/WKPreferences.cpp:
3002         (WKPreferencesCreateWithIdentifier):
3003         * UIProcess/API/C/win/WKView.cpp:
3004         (WKViewCreate):
3005         * UIProcess/win/WebUndoClient.cpp:
3006         (WebKit::WebUndoClient::registerEditCommand):
3007         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
3008         (WKBundleFrameCopyChildFrames):
3009         * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
3010         (WKBundleNodeHandleCreate):
3011         (WKBundleNodeHandleCopyDocument):
3012         (WKBundleNodeHandleCopyHTMLTableCellElementCellAbove):
3013         (WKBundleNodeHandleCopyDocumentFrame):
3014         (WKBundleNodeHandleCopyHTMLFrameElementContentFrame):
3015         (WKBundleNodeHandleCopyHTMLIFrameElementContentFrame):
3016         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3017         (WKBundlePageCopyTrackedRepaintRects):
3018         * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
3019         (WKBundleScriptWorldCreateWorld):
3020         Use leakRef.
3021
3022 2011-11-03  Anders Carlsson  <andersca@apple.com>
3023
3024         NetscapePlugin should use plug-in relative coordinates on Mac
3025         https://bugs.webkit.org/show_bug.cgi?id=71486
3026
3027         Reviewed by Adam Roben.
3028
3029         * PluginProcess/PluginControllerProxy.cpp:
3030         (WebKit::PluginControllerProxy::paint):
3031         Don't translate the graphics context when the plug-in doesn't want window relative coordinates.
3032         This also fixed a bug I introduced in my previous commit where we'd always pass the dirty rect in
3033         plug-in coordinates even if the plug-in wants window relative coordinates.
3034
3035         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3036         (WebKit::NetscapePlugin::snapshot):
3037         Don't do the whole translate dance if the plug-in doesn't want window relative coordinates.
3038
3039         (WebKit::NetscapePlugin::wantsWindowRelativeCoordinates):
3040         Return false for PLATFORM_ARCHITECTURE(MAC).
3041
3042         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
3043         (WebKit::NetscapePlugin::platformPaint):
3044         Simplify code now that we know that the we're always given plug-in relative coordinates.
3045
3046 2011-11-03  Anders Carlsson  <andersca@apple.com>
3047
3048         PluginControllerProxy's dirty rect should be in plug-in coordinates
3049         https://bugs.webkit.org/show_bug.cgi?id=71481
3050
3051         Reviewed by Sam Weinig.
3052
3053         * PluginProcess/PluginControllerProxy.cpp:
3054         (WebKit::PluginControllerProxy::paint):
3055         Convert the dirty rect to window coordinates before passing it to the plug-in.
3056
3057         (WebKit::PluginControllerProxy::invalidate):
3058         No need to convert the dirty rect to window coordinates.
3059
3060         (WebKit::PluginControllerProxy::paintEntirePlugin):
3061         Use m_pluginSize instead of m_frameRectInWindowCoordinates.isEmpty.
3062
3063 2011-11-03  Anders Carlsson  <andersca@apple.com>
3064
3065         Use the right function to determine whether NPWindow coordinates should be window relative
3066         https://bugs.webkit.org/show_bug.cgi?id=71480
3067
3068         Reviewed by Adam Roben.
3069
3070         We want to use wantsWindowRelativeNPWindowCoordinates here, and not wantsWindowRelativeCoordinates
3071         which is a temporary function that will be removed (and that returns the wrong value!)
3072
3073         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3074         (WebKit::NetscapePlugin::geometryDidChange):
3075
3076 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
3077
3078         Unreviewed build fix after r99195.
3079
3080         The right name is restrictMinimumScaleFactorToViewportSize.
3081
3082         * UIProcess/API/qt/qtouchwebview.cpp:
3083         (QTouchWebViewPrivate::updateViewportConstraints):
3084
3085 2011-11-03  Carlos Garcia Campos  <cgarcia@igalia.com>
3086
3087         [GTK] Use WEBKIT_API instead of WK_EXPORT in WebKitEnumTypes.h
3088         https://bugs.webkit.org/show_bug.cgi?id=71457
3089
3090         Reviewed by Martin Robinson.
3091
3092         * GNUmakefile.am:
3093
3094 2011-11-03  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3095
3096         [Qt] Bounce back limits are wrong in some situations
3097         https://bugs.webkit.org/show_bug.cgi?id=71471
3098
3099         Reviewed by Simon Hausmann.
3100
3101         The valid position points were in viewport coordinates, but we were
3102         requiring valid position points in content coordinates.
3103
3104         * UIProcess/qt/QtViewportInteractionEngine.cpp:
3105         (WebKit::QtViewportInteractionEngine::animateContentIntoBoundariesIfNeeded):
3106
3107 2011-11-03  Fady Samuel  <fsamuel@chromium.org>
3108
3109         Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport
3110         https://bugs.webkit.org/show_bug.cgi?id=70609
3111
3112         Reviewed by Kenneth Rohde Christiansen.
3113
3114         * UIProcess/API/qt/qtouchwebview.cpp:
3115         (QTouchWebViewPrivate::updateViewportConstraints):
3116         * WebProcess/WebPage/WebPage.cpp:
3117         (WebKit::WebPage::viewportConfigurationAsText):
3118
3119 2011-11-03  Andras Becsi  <andras.becsi@nokia.com>
3120
3121         [Qt][WK2] Fix the signal signature of the loadFailed API test.
3122
3123         Rubber-stamped by Simon Hausmann.
3124
3125         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
3126         (WebViewAbstraction::touchViewLoadFailed):
3127         (WebViewAbstraction::desktopViewLoadFailed):
3128
3129 2011-11-03  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3130
3131         [Qt] Fix an assertion under WebPage::setViewportSize.
3132         https://bugs.webkit.org/show_bug.cgi?id=71473
3133
3134         Reviewed by Simon Hausmann.
3135
3136         The web view can have an empty size and it causes the assert in computeViewportAttributes.
3137         Don't notify the web page of such a size change in this case.
3138
3139         * UIProcess/API/qt/qtouchwebview.cpp:
3140         (QTouchWebViewPrivate::updateViewportSize):
3141
3142 2011-11-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3143
3144         [WK2] State variable name refactor in WebPageProxy.cpp
3145         https://bugs.webkit.org/show_bug.cgi?id=71467
3146
3147         Reviewed by Andreas Kling.
3148
3149         Renaming m_inDecidePolicyForMIMEType to m_inDecidePolicyForResponse after
3150         https://bugs.webkit.org/show_bug.cgi?id=55827 .
3151
3152         * UIProcess/WebPageProxy.cpp:
3153         (WebKit::WebPageProxy::WebPageProxy):
3154         (WebKit::WebPageProxy::receivedPolicyDecision):
3155         (WebKit::WebPageProxy::decidePolicyForResponse):
3156         * UIProcess/WebPageProxy.h:
3157
3158 2011-11-03  Nayan Kumar K  <nayankk@motorola.com>
3159
3160         [GTK][WEBKIT2] Add support for title property in WebKitWebView.
3161         https://bugs.webkit.org/show_bug.cgi?id=68074
3162
3163         Reviewed by Philippe Normand.
3164
3165         Support for 'title' property is added in WebKitWebView.
3166         Functions to get the value of this property is provided.
3167
3168         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
3169         (didReceiveTitleForFrame): LoaderClient titleRecieve callback.
3170         (webkitWebLoaderClientAttachLoaderClientToPage): Register didReceiveTitleForFrame callback.
3171         * UIProcess/API/gtk/WebKitWebView.cpp:
3172         (webkitWebViewGetProperty): 'title' property get function.
3173         (webkit_web_view_class_init): Register new property.
3174         (webkitWebViewSetTitle): Notify WebKitWebView about title receive.
3175         (webkit_web_view_get_title): API to get main frame title.
3176         * UIProcess/API/gtk/WebKitWebView.h: webkit_web_view_get_title API expose.
3177         * UIProcess/API/gtk/WebKitWebViewPrivate.h: Added private API.
3178         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp:
3179         (testWebViewTitle): Test webkit_web_view_get_title API.
3180         (beforeAll): Add testWebViewTitle test.
3181
3182 2011-11-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3183
3184         [Qt][WK2] Download support and API in UIProcess
3185         https://bugs.webkit.org/show_bug.cgi?id=68962
3186
3187         Reviewed by Simon Hausmann.
3188
3189         We implement our WkContextDownloadClient and the needed callbacks.
3190         We also add APIs by exposing QWebDownloadItem. Objects from this type
3191         have their ownership handled by QDesktopWebView and will be created or
3192         destroyed as needed. Classes implementing ViewInterface (QDesktopWebViewPrivate
3193         and TouchViewInterface) will receive a signal (downloadRequested) with a pointer
3194         to the recently created QWebDownloadItem. With that they can connect the proper
3195         signals and slots, set the download destination path and then call start().
3196         Objects of this type will provide the progress of a download, a slot to cancel it,
3197         and signals for getting finished or failure status.
3198         QWebDownloadItem was also exposed in QML.
3199         Qt needed an asynchronous way for UIProcess to return a destination path to WebProcess,
3200         therefore the startTransfer API was added to WebKit2's Download handlers.
3201
3202         * Shared/qt/WebCoreArgumentCodersQt.cpp:
3203         (CoreIPC::::encode):
3204         (CoreIPC::::decode):
3205         Add encoding and decoding of suggestedFilename for ResourceResponse.
3206
3207         * UIProcess/API/qt/WKView.h:
3208         * UIProcess/API/qt/qbasewebview.h: Add signal downloadRequested.
3209         * UIProcess/API/qt/qdesktopwebview.cpp:
3210         (QDesktopWebViewPrivate::downloadRequested):
3211         * UIProcess/API/qt/qdesktopwebview_p.h:
3212
3213         * UIProcess/API/qt/qwebdownloaditem.cpp: Added.
3214         (QWebDownloadItemPrivate::QWebDownloadItemPrivate):
3215         (QWebDownloadItem::QWebDownloadItem):
3216         (QWebDownloadItem::~QWebDownloadItem):
3217         (QWebDownloadItem::url):
3218         (QWebDownloadItem::destinationPath):
3219         (QWebDownloadItem::setDestinationPath):
3220         (QWebDownloadItem::suggestedFilename):
3221         (QWebDownloadItem::mimeType):
3222         (QWebDownloadItem::expectedContentLength):
3223         (QWebDownloadItem::totalBytesReceived):
3224         (QWebDownloadItem::cancel):
3225         (QWebDownloadItem::start):
3226         * UIProcess/API/qt/qwebdownloaditem.h: Added.
3227         * UIProcess/API/qt/qwebdownloaditem_p.h: Added.
3228         (QWebDownloadItemPrivate::didReceiveResponse):
3229
3230         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_download.qml: Added.
3231         * UIProcess/API/qt/tests/qmltests/common/download.html: Added.
3232         * UIProcess/API/qt/tests/qmltests/common/download.zip: Added.
3233         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
3234
3235         * UIProcess/Downloads/DownloadProxy.cpp:
3236         (WebKit::DownloadProxy::startTransfer): Qt only function added.
3237         * UIProcess/Downloads/DownloadProxy.h:
3238
3239         * UIProcess/PageClient.h: Added Qt specific function to call handleDownloadRequest from QtWebPageProxy.
3240
3241         * UIProcess/WebContext.cpp:
3242         (WebKit::WebContext::download):
3243         Using WebPageProxy::handleDownloadRequest to bootstrap a download through PageClient.
3244
3245         * UIProcess/WebPageProxy.cpp:
3246         (WebKit::WebPageProxy::receivedPolicyDecision):
3247         Using handleDownloadRequest() to bootstrap a download through PageClient.
3248         (WebKit::WebPageProxy::handleDownloadRequest): Calls PageClient::handleDownloadRequest().
3249         * UIProcess/WebPageProxy.h:
3250
3251         * UIProcess/qt/QtDownloadManager.cpp: Added.
3252         (WebKit::toQtDownloadManager):
3253         (WebKit::qt_wk_didReceiveResponse):
3254         (WebKit::qt_wk_didCreateDestination):
3255         (WebKit::qt_wk_didFinishDownload):
3256         (WebKit::qt_wk_didFailDownload):
3257         (WebKit::qt_wk_didReceiveDataForDownload):
3258         (QtDownloadManager::downloadReceivedResponse): Will reach QtWebPageProxy::didReceiveDownloadResponse.
3259         (QtDownloadManager::downloadCreatedDestination):
3260         (QtDownloadManager::downloadFinished):
3261         (QtDownloadManager::downloadFailed):
3262         (QtDownloadManager::downloadDataReceived):
3263         * UIProcess/qt/QtDownloadManager.h: Added.
3264         Bootstrap our WKContextDownloadClient and set its callbacks.
3265         This entity will also handle all downloads and keep a map of them.
3266         It will be kept alive together with the WebContext as a static member
3267         of QtWebPageProxy, so we can keep it across several WebPages and, therefore,
3268         WebViews.
3269
3270         * UIProcess/qt/QtWebPageProxy.cpp:
3271         (QtWebPageProxy::defaultWKContext):
3272         (QtWebPageProxy::~QtWebPageProxy):
3273         (QtWebPageProxy::handleDownloadRequest):
3274         (QtWebPageProxy::didReceiveDownloadResponse):
3275         * UIProcess/qt/QtWebPageProxy.h:
3276         From now on it will keep a static QtDownloadManager to live together
3277         with the default WebContext. It implements PageClient::handleDownloadRequest.
3278         QtWebPageProxy::didReceiveDownloadResponse will emit the view's signal downloadRequested.
3279
3280        * UIProcess/qt/QtTouchViewInterface.h:
3281         (WebKit::QtTouchViewInterface::downloadRequested):
3282         * UIProcess/qt/QtViewInterface.h:
3283
3284         * UIProcess/qt/qweberror.cpp:
3285         (QWebError::description):
3286         * UIProcess/qt/qweberror.h:
3287         (QWebError::errorCodeAsDownloadError):
3288         Add Download error handling to QWebError and a new API
3289         to retrieve the error description from the original ResourceError.
3290         Also, it now has QWebDownloadItem::DownloadError errorCodeAsDownloadError()
3291         that returns the error code as a DownloadError.
3292
3293         * WebKit2.pro:
3294         * WebKit2API.pri:
3295
3296         * WebProcess/Downloads/Download.h:
3297         * WebProcess/Downloads/DownloadManager.cpp:
3298         (WebKit::DownloadManager::startTransfer):
3299         * WebProcess/Downloads/DownloadManager.h:
3300         Adding Qt specific startTransfer function.
3301
3302         * WebProcess/Downloads/qt/DownloadQt.cpp:
3303         (WebKit::Download::start):
3304         (WebKit::Download::startWithHandle):
3305         (WebKit::Download::didDecideDestination):
3306         (WebKit::Download::startTransfer):
3307         * WebProcess/Downloads/qt/QtFileDownloader.cpp:
3308         (WebKit::QtFileDownloader::init): start() was renamed to init().
3309         (WebKit::QtFileDownloader::determineFilename):
3310         Calling onReadyRead() here was unnecessary and it was triggering the overall
3311         download process even before DownloadManager finished startDownload(). This
3312         was leading to a DownloadManager with an empty list of downloads.
3313         (WebKit::QtFileDownloader::startTransfer): decidedDestination() became startTransfer().
3314         (WebKit::QtFileDownloader::abortDownloadWritingAndEmitError):
3315         (WebKit::QtFileDownloader::handleDownloadResponse):
3316         (WebKit::QtFileDownloader::onReadyRead):
3317         (WebKit::QtFileDownloader::onFinished):
3318         (WebKit::QtFileDownloader::cancel):
3319         * WebProcess/Downloads/qt/QtFileDownloader.h:
3320
3321         * WebProcess/WebProcess.cpp:
3322         (WebKit::WebProcess::startTransfer):
3323         * WebProcess/WebProcess.h:
3324         * WebProcess/WebProcess.messages.in:
3325         Adding Qt specific message StartTransfer and handling function.
3326
3327 2011-11-03  Nayan Kumar K  <nayankk@motorola.com>
3328
3329         Add webkit_web_view_load_html and webkit_web_view_load_plain_text APIs.
3330         https://bugs.webkit.org/show_bug.cgi?id=69249
3331
3332         Reviewed by Philippe Normand.
3333
3334         This patch adds support for 2 more load APIs, namely
3335         webkit_web_view_load_html and webkit_web_view_load_plain_text.
3336
3337         * UIProcess/API/gtk/WebKitWebView.cpp:
3338         (webkit_web_view_load_html): New API to load html string.
3339         (webkit_web_view_load_plain_text): New API to load plain text.
3340         * UIProcess/API/gtk/WebKitWebView.h: Public API addition.
3341         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp:
3342         (testLoadHtml): Test webkit_web_view_load_html API.
3343         (testLoadPlainText): Test webkit_web_view_load_plain_text API.
3344         (beforeAll): Add new tests.
3345         * UIProcess/API/gtk/tests/WebViewTest.cpp:
3346         (WebViewTest::loadHtml): Test webkit_web_view_load_html API.
3347         (WebViewTest::loadPlainText): Test webkit_web_view_load_plain_text API.
3348         * UIProcess/API/gtk/tests/WebViewTest.h:
3349
3350 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
3351
3352         [Qt][WK2] Failing assertion with desktop webview when touch mocking in MinBrowser
3353         https://bugs.webkit.org/show_bug.cgi?id=71452
3354
3355         Reviewed by Andreas Kling.
3356
3357         Don't re-implement touchEvent(), we don't intend to support touch events as we
3358         receive them from the QQuickCanvas at this point.
3359
3360         * UIProcess/API/qt/qdesktopwebview.cpp:
3361         * UIProcess/API/qt/qdesktopwebview.h:
3362
3363 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
3364
3365         [Qt] [WK2] MiniBrowser assert in QtWebProccess on startup in debug build.
3366         https://bugs.webkit.org/show_bug.cgi?id=71196
3367
3368         Reviewed by Kenneth Rohde Christiansen.
3369
3370         Ensure AC is turned off for the desktop view before we launch the process.
3371         This avoids "accidential" enterAc/exitAc calls that cause failing assertions
3372         because we don't really support AC in this setup.
3373
3374         The touch side works the same way, i.e. enable the preference before calling
3375         init().
3376
3377         * UIProcess/qt/QtDesktopWebPageProxy.cpp:
3378         (QtDesktopWebPageProxy::QtDesktopWebPageProxy):
3379
3380 2011-11-03  Balazs Kelemen  <kbalazs@webkit.org>
3381
3382         [Qt] X11 plugins need to be reworked for Qt5
3383         https://bugs.webkit.org/show_bug.cgi?id=70023
3384
3385         Reviewed by Simon Hausmann.
3386
3387         Disable X11 plugins.
3388         * config.h:
3389
3390 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
3391
3392         Unreviewed Qt build fix(es).
3393
3394         * UIProcess/qt/QtDesktopWebPageProxy.cpp:
3395         (QtDesktopWebPageProxy::handleDragMoveEvent): Adapt to dragSession API change.
3396         (QtDesktopWebPageProxy::handleDropEvent): Ditto.
3397         * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
3398         (WebKit::NetscapePlugin::wantsWindowRelativeNPWindowCoordinates): Implement here
3399         also, for plugin-disabled builds.
3400
3401 2011-11-03  ChangSeok Oh  <shivamidow@gmail.com>
3402
3403         [GTK] Fix build-break on r99143
3404         https://bugs.webkit.org/show_bug.cgi?id=71440
3405
3406         Reviewed by Philippe Normand.
3407
3408         dragOperation() should be replaced with dragSession().operation since it was removed.
3409         And didDetectXSSForFrame of WKPageLoaderClient should be relocated.
3410
3411         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
3412         (webkitWebLoaderClientAttachLoaderClientToPage):
3413         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3414         (webkitWebViewBaseDragDataReceived):
3415         (webkitWebViewBaseDragMotion):
3416
3417 2011-11-03  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
3418
3419         [Qt] Flagging usage of X11 headers under PLAT_ARCH(X11)
3420         https://bugs.webkit.org/show_bug.cgi?id=71409
3421
3422         Reviewed by Simon Hausmann.
3423
3424         Build fix for building qtwebkit with latest qt5 which has removed Qt X11 headers.
3425
3426         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
3427
3428 2011-11-03  Philippe Normand  <pnormand@igalia.com>
3429
3430         Unreviewed, GTK build fix after r99093...
3431
3432         * PluginProcess/PluginControllerProxy.h:
3433
3434 2011-11-02  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
3435
3436         [Qt] [WK] Debug build broken
3437         https://bugs.webkit.org/show_bug.cgi?id=71417
3438
3439         Add WKNumber.h for WKBooleanGetTypeID
3440         Replace WKGetTypeId with WKGetTypeID
3441         Add initialization for didDetectXSSForFrame member in WKBundlePageLoaderClient
3442         instance.
3443
3444         Reviewed by Noam Rosenthal.
3445
3446         * WebProcess/qt/QtBuiltinBundle.cpp:
3447         (WebKit::QtBuiltinBundle::handleSetNavigatorQtObjectEnabled):
3448         * WebProcess/qt/QtBuiltinBundlePage.cpp:
3449         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
3450
3451 2011-11-02  Mark Hahnenberg  <mhahnenberg@apple.com>
3452
3453         De-virtualize JSObject::getOwnPropertyNames
3454         https://bugs.webkit.org/show_bug.cgi?id=71307
3455
3456         Reviewed by Darin Adler.
3457
3458         Added getOwnPropertyNames to the MethodTable, changed all the virtual 
3459         implementations of getOwnPropertyNames to static ones, and replaced 
3460         all call sites with corresponding lookups in the MethodTable.
3461
3462         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
3463         (WebKit::JSNPObject::getOwnPropertyNames):
3464         * WebProcess/Plugins/Netscape/JSNPObject.h:
3465
3466 2011-11-02  Anders Carlsson  <andersca@apple.com>
3467
3468         Don't call NPP_SetWindow if the plug-in size or clip rect hasn't changed if the plug-in isn't using window relative coordinates
3469         https://bugs.webkit.org/show_bug.cgi?id=71418
3470
3471         Reviewed by Adam Roben.
3472
3473         This avoids calling into the plug-in when only the plug-in position relative to the window changes.
3474     
3475         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3476         (WebKit::NetscapePlugin::geometryDidChange):
3477
3478 2011-11-02  Jon Lee  <jonlee@apple.com>
3479
3480         Fix syntax error.
3481
3482         * WebProcess/WebPage/WebPage.cpp:
3483         (WebKit::WebPage::performDragControllerAction):
3484
3485 2011-11-02  Jon Lee  <jonlee@apple.com>
3486
3487         Fix build error from r99108.
3488
3489         * WebProcess/WebPage/WebPage.cpp:
3490         (WebKit::WebPage::performDragControllerAction):
3491
3492 2011-11-02  Dean Jackson  <dino@apple.com>
3493
3494         Add ENABLE_CSS_SHADERS flag
3495         https://bugs.webkit.org/show_bug.cgi?id=71394
3496
3497         Reviewed by Sam Weinig.
3498
3499         * Configurations/FeatureDefines.xcconfig:
3500
3501 2011-11-02  Anders Carlsson  <andersca@apple.com>
3502
3503         Allow the various plug-in ports to decide whether NPWindow coordinates should be window-relative
3504         https://bugs.webkit.org/show_bug.cgi?id=71415
3505
3506         Reviewed by Darin Adler.
3507
3508         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp: