Attempt to fix the Lion build.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-10-05  Anders Carlsson  <andersca@apple.com>
2
3         Attempt to fix the Lion build.
4         
5         * Configurations/WebKit2.xcconfig:
6         Try unexporting one of the weak symbols for now. If this succeeds, I'll add the rest.
7
8 2013-10-04  Anders Carlsson  <andersca@apple.com>
9
10         FramePolicyFunction should be an std::function
11         https://bugs.webkit.org/show_bug.cgi?id=122362
12
13         Reviewed by Darin Adler.
14
15         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
16         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
17         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
18         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
19         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
20         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
21         * WebProcess/WebPage/WebFrame.cpp:
22         (WebKit::WebFrame::didReceivePolicyDecision):
23
24 2013-10-04  Ryuan Choi  <ryuan.choi@samsung.com>
25
26         Unreviewed EFL build fix after r156924
27
28         * UIProcess/efl/WebPageProxyEfl.cpp:
29         (WebKit::WebPageProxy::platformInitialize):
30
31 2013-10-04  Sam Weinig  <sam@webkit.org>
32
33         Unify rubber-band control
34         https://bugs.webkit.org/show_bug.cgi?id=122341
35
36         Reviewed by Tim Horton.
37
38         - Consolidates the two ways we were passing state about whether
39           to rubber-band on a particular edge down to one.
40         - Adds SPI to control whether you can rubber band on the left
41           or right edge.
42         - Add a linked-on-or-after check to control whether we use the
43           legacy implicit rubber band control based on back/forward.
44
45         * UIProcess/API/C/WKPage.cpp:
46         (WKPageRubberBandsAtLeft):
47         (WKPageSetRubberBandsAtLeft):
48         (WKPageRubberBandsAtRight):
49         (WKPageSetRubberBandsAtRight):
50         (WKPageRubberBandsAtBottom):
51         (WKPageSetRubberBandsAtBottom):
52         * UIProcess/API/C/WKPage.h:
53         * UIProcess/WebPageProxy.cpp:
54         (WebKit::WebPageProxy::WebPageProxy):
55         (WebKit::WebPageProxy::sendWheelEvent):
56         (WebKit::WebPageProxy::rubberBandsAtLeft):
57         (WebKit::WebPageProxy::setRubberBandsAtLeft):
58         (WebKit::WebPageProxy::rubberBandsAtRight):
59         (WebKit::WebPageProxy::setRubberBandsAtRight):
60         (WebKit::WebPageProxy::rubberBandsAtTop):
61         (WebKit::WebPageProxy::setRubberBandsAtTop):
62         (WebKit::WebPageProxy::rubberBandsAtBottom):
63         (WebKit::WebPageProxy::setRubberBandsAtBottom):
64         * UIProcess/WebPageProxy.h:
65         * UIProcess/mac/WebPageProxyMac.mm:
66         (WebKit::shouldUseLegacyImplicitRubberBandControl):
67         (WebKit::WebPageProxy::platformInitialize):
68         * WebProcess/WebPage/EventDispatcher.cpp:
69         (WebKit::EventDispatcher::wheelEvent):
70         * WebProcess/WebPage/EventDispatcher.h:
71         * WebProcess/WebPage/EventDispatcher.messages.in:
72         * WebProcess/WebPage/WebPage.cpp:
73         * WebProcess/WebPage/WebPage.h:
74         * WebProcess/WebPage/WebPage.messages.in:
75
76 2013-10-04  Lorenzo Tilve  <ltilve@igalia.com>
77
78         [GTK] Enable text edition UndoOperations support in WebKit2
79         https://bugs.webkit.org/show_bug.cgi?id=122305
80
81         Reviewed by Carlos Garcia Campos.
82
83         Replaced the notImplemented() function calls for
84         the corresponding implementation of the edit operations
85         provided by the DefaultUndoController class.
86
87         * GNUmakefile.list.am:
88         * UIProcess/API/gtk/PageClientImpl.cpp:
89         (WebKit::PageClientImpl::registerEditCommand):
90         (WebKit::PageClientImpl::clearAllEditCommands):
91         (WebKit::PageClientImpl::canUndoRedo):
92         (WebKit::PageClientImpl::executeUndoRedo):
93         * UIProcess/API/gtk/PageClientImpl.h:
94
95 2013-10-04  Sergio Correia  <sergio.correia@openbossa.org>
96
97         Remove Qt leftovers from WebKit2
98         https://bugs.webkit.org/show_bug.cgi?id=122317
99
100         Reviewed by Anders Carlsson.
101
102         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
103         (CoreIPC::Connection::platformInitialize):
104         (CoreIPC::Connection::platformInvalidate):
105         (CoreIPC::Connection::readyReadHandler):
106         (CoreIPC::Connection::open):
107         (CoreIPC::Connection::sendOutgoingMessage):
108         * Shared/API/c/WKBase.h:
109         * Shared/NativeWebTouchEvent.h:
110         * UIProcess/API/C/WebKit2_C.h:
111         * UIProcess/BackingStore.h:
112         * UIProcess/InspectorServer/WebInspectorServer.cpp:
113         (WebKit::WebInspectorServer::inspectorUrlForPageID):
114         * UIProcess/InspectorServer/WebInspectorServer.h:
115         * UIProcess/InspectorServer/WebSocketServer.cpp:
116         * UIProcess/InspectorServer/WebSocketServer.h:
117         * UIProcess/WebPageProxy.cpp:
118         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
119         (WebKit::getPluginDisplay):
120         (WebKit::x11Screen):
121         (WebKit::displayDepth):
122         (WebKit::rootWindowID):
123         (WebKit::NetscapePlugin::x11HostDisplay):
124         (WebKit::NetscapePlugin::platformPostInitializeWindowless):
125         (WebKit::NetscapePlugin::platformPaint):
126
127 2013-10-03  Mark Rowe  <mrowe@apple.com>
128
129         REGRESSION (r155787): WebKitTestRunner rebuilds from scratch when doing an incremental build
130
131         Reviewed by Dan Bernstein.
132
133         * WebKit2.xcodeproj/project.pbxproj: Have unifdef generate its output to a temporary file. If its exit status
134         indicates that the content did not change, remove the temporary file. If the content changed, moved the temporary file
135         over the destination. This avoids updating the modification date of the file when it has not changed.
136
137 2013-10-03  Sam Weinig  <sam@webkit.org>
138
139         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
140         https://bugs.webkit.org/show_bug.cgi?id=122309
141
142         Reviewed by Andreas Kling.
143
144         WKBundlePageUIClient's shouldRubberBandInDirection has never worked with
145         threaded scrolling, so remove it.
146
147         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
148         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
149         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
150         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
151         * WebProcess/WebCoreSupport/WebChromeClient.h:
152
153 2013-10-03  Sergio Correia  <sergio.correia@openbossa.org>
154
155         Create CoordinatedDrawingArea / CoordinatedDrawingAreaProxy
156         https://bugs.webkit.org/show_bug.cgi?id=122207
157
158         Reviewed by Anders Carlsson.
159
160         Since Apple are moving away from DrawingAreaImpl, Coordinated Graphics
161         should have its own drawing area.
162
163         * CMakeLists.txt: Use CoordinatedDrawingArea and
164         CoordinatedDrawingAreaProxy instead of the DrawingAreaImpl /
165         DrawingAreaProxyImpl.
166         * Shared/DrawingAreaInfo.h: Add DrawingAreaTypeCoordinated.
167         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
168         Added, copied from DrawingAreaProxyImpl.cpp.
169         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h: Added,
170         copied from DrawingAreaProxyImpl.h.
171         * UIProcess/CoordinatedGraphics/WebView.cpp:
172         (WebKit::WebView::createDrawingAreaProxy): Use CoordinatedDrawingAreaProxy.
173         * UIProcess/DrawingAreaProxyImpl.cpp: Remove Coordinated Graphics
174         bits.
175         * UIProcess/DrawingAreaProxyImpl.h: Ditto.
176         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
177         Added, copied from DrawingAreaImpl.cpp.
178         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.h:
179         Added, copied from DrawingAreaImpl.h.
180         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
181         (WebKit::CoordinatedLayerTreeHost::performScheduledLayerFlush): Use
182         CoordinatedDrawingArea.
183         * WebProcess/WebPage/DrawingArea.cpp:
184         (WebKit::DrawingArea::create): Handle the DrawingAreaTypeCoordinated
185         in the DrawingArea creation code.
186         * WebProcess/WebPage/DrawingAreaImpl.cpp: Remove Coordinated Graphics
187         bits.
188         * WebProcess/WebPage/DrawingAreaImpl.h: Ditto.
189
190 2013-10-03  Anders Carlsson  <andersca@apple.com>
191
192         Ignore deprecation warnings
193         https://bugs.webkit.org/show_bug.cgi?id=122302
194
195         Reviewed by Mark Rowe.
196
197         * Shared/mac/WebEventFactory.mm:
198         (WebKit::globalPoint):
199         * UIProcess/API/mac/FindIndicatorWindow.mm:
200         (WebKit::FindIndicatorWindow::setFindIndicator):
201         * UIProcess/API/mac/PageClientImpl.mm:
202         (WebKit::PageClientImpl::screenToWindow):
203         (WebKit::PageClientImpl::windowToScreen):
204         * UIProcess/API/mac/WKTextInputWindowController.mm:
205         (-[WKTextInputPanel _interpretKeyEvent:usingLegacyCocoaTextInput:string:]):
206         (-[WKTextInputPanel _hasMarkedText]):
207         * UIProcess/API/mac/WKView.mm:
208         (-[WKView characterIndexForPoint:]):
209         (-[WKView firstRectForCharacterRange:actualRange:]):
210         (-[WKView _postFakeMouseMovedEventForFlagsChangedEvent:]):
211         (-[WKView _setDragImage:at:linkDrag:]):
212         (-[WKView performDictionaryLookupAtCurrentMouseLocation]):
213         * UIProcess/mac/WKFullScreenWindowController.mm:
214         (-[WKFullScreenWindowController _startEnterFullScreenAnimationWithDuration:]):
215         (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
216         * UIProcess/mac/WebContextMenuProxyMac.mm:
217         (WebKit::WebContextMenuProxyMac::showContextMenu):
218         * UIProcess/mac/WebPopupMenuProxyMac.mm:
219         (WebKit::WebPopupMenuProxyMac::showPopupMenu):
220
221 2013-10-03  Anders Carlsson  <andersca@apple.com>
222
223         Remove the last remnants of Qt from WebKit2
224         https://bugs.webkit.org/show_bug.cgi?id=122290
225
226         Reviewed by Andreas Kling.
227
228         * Platform/PlatformProcessIdentifier.h:
229         * Shared/API/c/WKSharedAPICast.h:
230         (WebKit::toAPI):
231         (WebKit::toImpl):
232         * Shared/Downloads/Download.cpp:
233         (WebKit::Download::Download):
234         * Shared/Downloads/Download.h:
235         * Shared/Downloads/DownloadManager.cpp:
236         * Shared/Downloads/DownloadManager.h:
237         * Shared/EditorState.cpp:
238         (WebKit::EditorState::encode):
239         (WebKit::EditorState::decode):
240         * Shared/EditorState.h:
241         (WebKit::EditorState::EditorState):
242         * Shared/LayerTreeContext.h:
243         * Shared/NativeWebKeyboardEvent.h:
244         * Shared/NativeWebMouseEvent.h:
245         * Shared/NativeWebWheelEvent.h:
246         * Shared/PlatformPopupMenuData.cpp:
247         (WebKit::PlatformPopupMenuData::encode):
248         (WebKit::PlatformPopupMenuData::decode):
249         * Shared/PlatformPopupMenuData.h:
250         * Shared/ShareableBitmap.h:
251         * Shared/WebPreferencesStore.h:
252         * UIProcess/Downloads/DownloadProxy.cpp:
253         * UIProcess/Downloads/DownloadProxy.h:
254         * UIProcess/PageClient.h:
255         * UIProcess/Plugins/PluginProcessProxy.cpp:
256         (WebKit::PluginProcessProxy::didFinishLaunching):
257         * UIProcess/WebContext.cpp:
258         (WebKit::WebContext::download):
259         * UIProcess/WebFullScreenManagerProxy.h:
260         * UIProcess/WebPageProxy.cpp:
261         (WebKit::WebPageProxy::performDragControllerAction):
262         (WebKit::WebPageProxy::receivedPolicyDecision):
263         (WebKit::WebPageProxy::editorStateChanged):
264         (WebKit::WebPageProxy::showPopupMenu):
265         * UIProcess/WebPageProxy.h:
266         * UIProcess/WebPageProxy.messages.in:
267         * UIProcess/WebPopupMenuProxy.h:
268         * WebProcess/InjectedBundle/InjectedBundle.h:
269         * WebProcess/WebCoreSupport/WebDragClient.cpp:
270         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
271         (WebKit::WebEditorClient::respondToChangedSelection):
272         (WebKit::WebEditorClient::willSetInputMethodState):
273         (WebKit::WebEditorClient::supportsGlobalSelection):
274         * WebProcess/WebCoreSupport/WebEditorClient.h:
275         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
276         (WebKit::WebFrameLoaderClient::shouldFallBack):
277         * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
278         (WebKit::WebPopupMenu::didChangeSelectedIndex):
279         * WebProcess/WebCoreSupport/WebPopupMenu.h:
280         * WebProcess/WebPage/WebPage.cpp:
281         (WebKit::WebPage::WebPage):
282         (WebKit::WebPage::editorState):
283         (WebKit::WebPage::performDragControllerAction):
284         * WebProcess/WebPage/WebPage.h:
285         * WebProcess/WebPage/WebPage.messages.in:
286         * WebProcess/WebProcess.cpp:
287         (WebKit::WebProcess::WebProcess):
288         * WebProcess/WebProcess.h:
289         * WebProcess/WebProcess.messages.in:
290         * config.h:
291
292 2013-10-03  Anders Carlsson  <andersca@apple.com>
293
294         Remove Qt files from WebKit2.
295
296         Rubber-stomped by Andreas Kling.
297
298         * DerivedSources.pri: Removed.
299         * PluginProcess.pro: Removed.
300         * PluginProcess/qt/PluginControllerProxyQt.cpp: Removed.
301         * PluginProcess/qt/PluginProcessMainQt.cpp: Removed.
302         * PluginProcess/qt/PluginProcessQt.cpp: Removed.
303         * SandboxProcess.pro: Removed.
304         * Shared/API/c/qt/WKImageQt.cpp: Removed.
305         * Shared/API/c/qt/WKImageQt.h: Removed.
306         * Shared/Downloads/qt/DownloadQt.cpp: Removed.
307         * Shared/Downloads/qt/QtFileDownloader.cpp: Removed.
308         * Shared/Downloads/qt/QtFileDownloader.h: Removed.
309         * Shared/qt/ArgumentCodersQt.cpp: Removed.
310         * Shared/qt/ArgumentCodersQt.h: Removed.
311         * Shared/qt/LayerTreeContextQt.cpp: Removed.
312         * Shared/qt/NativeWebKeyboardEventQt.cpp: Removed.
313         * Shared/qt/NativeWebMouseEventQt.cpp: Removed.
314         * Shared/qt/NativeWebTouchEventQt.cpp: Removed.
315         * Shared/qt/NativeWebWheelEventQt.cpp: Removed.
316         * Shared/qt/PlatformCertificateInfo.h: Removed.
317         * Shared/qt/ProcessExecutablePathQt.cpp: Removed.
318         * Shared/qt/QtNetworkReplyData.cpp: Removed.
319         * Shared/qt/QtNetworkReplyData.h: Removed.
320         * Shared/qt/QtNetworkRequestData.cpp: Removed.
321         * Shared/qt/QtNetworkRequestData.h: Removed.
322         * Shared/qt/ShareableBitmapQt.cpp: Removed.
323         * Shared/qt/WebCoreArgumentCodersQt.cpp: Removed.
324         * Shared/qt/WebEventFactoryQt.cpp: Removed.
325         * Shared/qt/WebEventFactoryQt.h: Removed.
326         * Shared/qt/WebURLRequestQt.cpp: Removed.
327         * Shared/qt/WebURLResponseQt.cpp: Removed.
328         * Target.pri: Removed.
329         * UIProcess/API/C/qt/WKIconDatabaseQt.cpp: Removed.
330         * UIProcess/API/C/qt/WKIconDatabaseQt.h: Removed.
331         * UIProcess/API/C/qt/WKNativeEvent.h: Removed.
332         * UIProcess/API/cpp/qt/WKStringQt.cpp: Removed.
333         * UIProcess/API/cpp/qt/WKStringQt.h: Removed.
334         * UIProcess/API/cpp/qt/WKURLQt.cpp: Removed.
335         * UIProcess/API/cpp/qt/WKURLQt.h: Removed.
336         * UIProcess/API/qt/qquicknetworkreply.cpp: Removed.
337         * UIProcess/API/qt/qquicknetworkreply_p.h: Removed.
338         * UIProcess/API/qt/qquicknetworkrequest.cpp: Removed.
339         * UIProcess/API/qt/qquicknetworkrequest_p.h: Removed.
340         * UIProcess/API/qt/qquickurlschemedelegate.cpp: Removed.
341         * UIProcess/API/qt/qquickurlschemedelegate_p.h: Removed.
342         * UIProcess/API/qt/qquickwebpage.cpp: Removed.
343         * UIProcess/API/qt/qquickwebpage_p.h: Removed.
344         * UIProcess/API/qt/qquickwebpage_p_p.h: Removed.
345         * UIProcess/API/qt/qquickwebview.cpp: Removed.
346         * UIProcess/API/qt/qquickwebview_p.h: Removed.
347         * UIProcess/API/qt/qquickwebview_p_p.h: Removed.
348         * UIProcess/API/qt/qtwebsecurityorigin.cpp: Removed.
349         * UIProcess/API/qt/qtwebsecurityorigin_p.h: Removed.
350         * UIProcess/API/qt/qwebdownloaditem.cpp: Removed.
351         * UIProcess/API/qt/qwebdownloaditem_p.h: Removed.
352         * UIProcess/API/qt/qwebdownloaditem_p_p.h: Removed.
353         * UIProcess/API/qt/qwebiconimageprovider.cpp: Removed.
354         * UIProcess/API/qt/qwebiconimageprovider_p.h: Removed.
355         * UIProcess/API/qt/qwebkittest.cpp: Removed.
356         * UIProcess/API/qt/qwebkittest_p.h: Removed.
357         * UIProcess/API/qt/qwebloadrequest.cpp: Removed.
358         * UIProcess/API/qt/qwebloadrequest_p.h: Removed.
359         * UIProcess/API/qt/qwebnavigationhistory.cpp: Removed.
360         * UIProcess/API/qt/qwebnavigationhistory_p.h: Removed.
361         * UIProcess/API/qt/qwebnavigationhistory_p_p.h: Removed.
362         * UIProcess/API/qt/qwebnavigationrequest.cpp: Removed.
363         * UIProcess/API/qt/qwebnavigationrequest_p.h: Removed.
364         * UIProcess/API/qt/qwebpermissionrequest.cpp: Removed.
365         * UIProcess/API/qt/qwebpermissionrequest_p.h: Removed.
366         * UIProcess/API/qt/qwebpreferences.cpp: Removed.
367         * UIProcess/API/qt/qwebpreferences_p.h: Removed.
368         * UIProcess/API/qt/qwebpreferences_p_p.h: Removed.
369         * UIProcess/API/qt/raw/qrawwebview.cpp: Removed.
370         * UIProcess/API/qt/raw/qrawwebview_p.h: Removed.
371         * UIProcess/API/qt/raw/qrawwebview_p_p.h: Removed.
372         * UIProcess/API/qt/tests/bytearraytestdata.cpp: Removed.
373         * UIProcess/API/qt/tests/bytearraytestdata.h: Removed.
374         * UIProcess/API/qt/tests/html/basic_page.html: Removed.
375         * UIProcess/API/qt/tests/html/basic_page2.html: Removed.
376         * UIProcess/API/qt/tests/html/bluesquare.html: Removed.
377         * UIProcess/API/qt/tests/html/direct-image-compositing.html: Removed.
378         * UIProcess/API/qt/tests/html/inputmethod.html: Removed.
379         * UIProcess/API/qt/tests/html/redsquare.html: Removed.
380         * UIProcess/API/qt/tests/html/resources/qwkview_noBackground1.png: Removed.
381         * UIProcess/API/qt/tests/html/resources/qwkview_noBackground3.png: Removed.
382         * UIProcess/API/qt/tests/html/resources/qwkview_paint.png: Removed.
383         * UIProcess/API/qt/tests/html/resources/simple_image.png: Removed.
384         * UIProcess/API/qt/tests/html/scroll.html: Removed.
385         * UIProcess/API/qt/tests/inspectorserver/inspectorserver.pro: Removed.
386         * UIProcess/API/qt/tests/inspectorserver/tst_inspectorserver.cpp: Removed.
387         * UIProcess/API/qt/tests/publicapi/publicapi.pro: Removed.
388         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp: Removed.
389         * UIProcess/API/qt/tests/qmltests/DesktopBehavior.pro: Removed.
390         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml: Removed.
391         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml: Removed.
392         * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_navigationRequested.qml: Removed.
393         * UIProcess/API/qt/tests/qmltests/WebView.pro: Removed.
394         * UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml: Removed.
395         * UIProcess/API/qt/tests/qmltests/WebView/tst_colorChooser.qml: Removed.
396         * UIProcess/API/qt/tests/qmltests/WebView/tst_doubleTapToZoom.qml: Removed.
397         * UIProcess/API/qt/tests/qmltests/WebView/tst_download.qml: Removed.
398         * UIProcess/API/qt/tests/qmltests/WebView/tst_evaluateJavaScript.qml: Removed.
399         * UIProcess/API/qt/tests/qmltests/WebView/tst_favIconLoad.qml: Removed.
400         * UIProcess/API/qt/tests/qmltests/WebView/tst_findText.qml: Removed.
401         * UIProcess/API/qt/tests/qmltests/WebView/tst_fitToView.qml: Removed.
402         * UIProcess/API/qt/tests/qmltests/WebView/tst_geopermission.qml: Removed.
403         * UIProcess/API/qt/tests/qmltests/WebView/tst_itemSelector.qml: Removed.
404         * UIProcess/API/qt/tests/qmltests/WebView/tst_javaScriptDialogs.qml: Removed.
405         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadFail.qml: Removed.
406         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadHtml.qml: Removed.
407         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgress.qml: Removed.
408         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadProgressSignal.qml: Removed.
409         * UIProcess/API/qt/tests/qmltests/WebView/tst_loadUrl.qml: Removed.
410         * UIProcess/API/qt/tests/qmltests/WebView/tst_messaging.qml: Removed.
411         * UIProcess/API/qt/tests/qmltests/WebView/tst_multiFileUpload.qml: Removed.
412         * UIProcess/API/qt/tests/qmltests/WebView/tst_navigationHistory.qml: Removed.
413         * UIProcess/API/qt/tests/qmltests/WebView/tst_notification.qml: Removed.
414         * UIProcess/API/qt/tests/qmltests/WebView/tst_origin.qml: Removed.
415         * UIProcess/API/qt/tests/qmltests/WebView/tst_preferences.qml: Removed.
416         * UIProcess/API/qt/tests/qmltests/WebView/tst_properties.qml: Removed.
417         * UIProcess/API/qt/tests/qmltests/WebView/tst_resize.qml: Removed.
418         * UIProcess/API/qt/tests/qmltests/WebView/tst_singleFileUpload.qml: Removed.
419         * UIProcess/API/qt/tests/qmltests/WebView/tst_titleChanged.qml: Removed.
420         * UIProcess/API/qt/tests/qmltests/WebView/tst_userScripts.qml: Removed.
421         * UIProcess/API/qt/tests/qmltests/WebView/tst_wheelEventHandling.qml: Removed.
422         * UIProcess/API/qt/tests/qmltests/common/TestWebView.qml: Removed.
423         * UIProcess/API/qt/tests/qmltests/common/alert.html: Removed.
424         * UIProcess/API/qt/tests/qmltests/common/append-document-title.js: Removed.
425         * UIProcess/API/qt/tests/qmltests/common/big-user-script.js: Removed.
426         * UIProcess/API/qt/tests/qmltests/common/change-document-title.js: Removed.
427         * UIProcess/API/qt/tests/qmltests/common/colorChooser.html: Removed.
428         * UIProcess/API/qt/tests/qmltests/common/confirm.html: Removed.
429         * UIProcess/API/qt/tests/qmltests/common/download.zip: Removed.
430         * UIProcess/API/qt/tests/qmltests/common/evaluatejavascript.html: Removed.
431         * UIProcess/API/qt/tests/qmltests/common/favicon.html: Removed.
432         * UIProcess/API/qt/tests/qmltests/common/favicon.png: Removed.
433         * UIProcess/API/qt/tests/qmltests/common/favicon2.html: Removed.
434         * UIProcess/API/qt/tests/qmltests/common/font-preferences.html: Removed.
435         * UIProcess/API/qt/tests/qmltests/common/geolocation.html: Removed.
436         * UIProcess/API/qt/tests/qmltests/common/javascript.html: Removed.
437         * UIProcess/API/qt/tests/qmltests/common/link.html: Removed.
438         * UIProcess/API/qt/tests/qmltests/common/localStorage.html: Removed.
439         * UIProcess/API/qt/tests/qmltests/common/messaging.html: Removed.
440         * UIProcess/API/qt/tests/qmltests/common/multifileupload.html: Removed.
441         * UIProcess/API/qt/tests/qmltests/common/notification.html: Removed.
442         * UIProcess/API/qt/tests/qmltests/common/prompt.html: Removed.
443         * UIProcess/API/qt/tests/qmltests/common/qrctest.html: Removed.
444         * UIProcess/API/qt/tests/qmltests/common/redirect.html: Removed.
445         * UIProcess/API/qt/tests/qmltests/common/select.html: Removed.
446         * UIProcess/API/qt/tests/qmltests/common/selectwithsize.html: Removed.
447         * UIProcess/API/qt/tests/qmltests/common/singlefileupload.html: Removed.
448         * UIProcess/API/qt/tests/qmltests/common/small-favicon.png: Removed.
449         * UIProcess/API/qt/tests/qmltests/common/test1.html: Removed.
450         * UIProcess/API/qt/tests/qmltests/common/test2.html: Removed.
451         * UIProcess/API/qt/tests/qmltests/common/test3.html: Removed.
452         * UIProcess/API/qt/tests/qmltests/common/test4.html: Removed.
453         * UIProcess/API/qt/tests/qmltests/common/test5.html: Removed.
454         * UIProcess/API/qt/tests/qmltests/common/titleupdate.js: Removed.
455         * UIProcess/API/qt/tests/qmltests/qmltests.pro: Removed.
456         * UIProcess/API/qt/tests/qmltests/resources.qrc: Removed.
457         * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp: Removed.
458         * UIProcess/API/qt/tests/qquickwebview/qquickwebview.pro: Removed.
459         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp: Removed.
460         * UIProcess/API/qt/tests/qrawwebview/qrawwebview.pro: Removed.
461         * UIProcess/API/qt/tests/qrawwebview/tst_qrawwebview.cpp: Removed.
462         * UIProcess/API/qt/tests/tests.pri: Removed.
463         * UIProcess/API/qt/tests/testwindow.h: Removed.
464         * UIProcess/API/qt/tests/util.cpp: Removed.
465         * UIProcess/API/qt/tests/util.h: Removed.
466         * UIProcess/InspectorServer/qt/WebInspectorServerQt.cpp: Removed.
467         * UIProcess/InspectorServer/qt/WebSocketServerQt.cpp: Removed.
468         * UIProcess/InspectorServer/qt/WebSocketServerQt.h: Removed.
469         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp: Removed.
470         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp: Removed.
471         * UIProcess/qt/BackingStoreQt.cpp: Removed.
472         * UIProcess/qt/PageViewportControllerClientQt.cpp: Removed.
473         * UIProcess/qt/PageViewportControllerClientQt.h: Removed.
474         * UIProcess/qt/QtDialogRunner.cpp: Removed.
475         * UIProcess/qt/QtDialogRunner.h: Removed.
476         * UIProcess/qt/QtDownloadManager.cpp: Removed.
477         * UIProcess/qt/QtDownloadManager.h: Removed.
478         * UIProcess/qt/QtGestureRecognizer.cpp: Removed.
479         * UIProcess/qt/QtGestureRecognizer.h: Removed.
480         * UIProcess/qt/QtPageClient.cpp: Removed.
481         * UIProcess/qt/QtPageClient.h: Removed.
482         * UIProcess/qt/QtPanGestureRecognizer.cpp: Removed.
483         * UIProcess/qt/QtPanGestureRecognizer.h: Removed.
484         * UIProcess/qt/QtPinchGestureRecognizer.cpp: Removed.
485         * UIProcess/qt/QtPinchGestureRecognizer.h: Removed.
486         * UIProcess/qt/QtTapGestureRecognizer.cpp: Removed.
487         * UIProcess/qt/QtTapGestureRecognizer.h: Removed.
488         * UIProcess/qt/QtWebContext.cpp: Removed.
489         * UIProcess/qt/QtWebContext.h: Removed.
490         * UIProcess/qt/QtWebError.cpp: Removed.
491         * UIProcess/qt/QtWebError.h: Removed.
492         * UIProcess/qt/QtWebIconDatabaseClient.cpp: Removed.
493         * UIProcess/qt/QtWebIconDatabaseClient.h: Removed.
494         * UIProcess/qt/QtWebPageEventHandler.cpp: Removed.
495         * UIProcess/qt/QtWebPageEventHandler.h: Removed.
496         * UIProcess/qt/QtWebPagePolicyClient.cpp: Removed.
497         * UIProcess/qt/QtWebPagePolicyClient.h: Removed.
498         * UIProcess/qt/QtWebPageSGNode.cpp: Removed.
499         * UIProcess/qt/QtWebPageSGNode.h: Removed.
500         * UIProcess/qt/QtWebPageUIClient.cpp: Removed.
501         * UIProcess/qt/QtWebPageUIClient.h: Removed.
502         * UIProcess/qt/TextCheckerQt.cpp: Removed.
503         * UIProcess/qt/WebColorPickerQt.cpp: Removed.
504         * UIProcess/qt/WebColorPickerQt.h: Removed.
505         * UIProcess/qt/WebContextMenuProxyQt.cpp: Removed.
506         * UIProcess/qt/WebContextMenuProxyQt.h: Removed.
507         * UIProcess/qt/WebContextQt.cpp: Removed.
508         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Removed.
509         * UIProcess/qt/WebGeolocationProviderQt.cpp: Removed.
510         * UIProcess/qt/WebGeolocationProviderQt.h: Removed.
511         * UIProcess/qt/WebInspectorProxyQt.cpp: Removed.
512         * UIProcess/qt/WebPageProxyQt.cpp: Removed.
513         * UIProcess/qt/WebPopupMenuProxyQt.cpp: Removed.
514         * UIProcess/qt/WebPopupMenuProxyQt.h: Removed.
515         * UIProcess/qt/WebPreferencesQt.cpp: Removed.
516         * UIProcess/qt/WebProcessProxyQt.cpp: Removed.
517         * WebKit2.pri: Removed.
518         * WebKit2.pro: Removed.
519         * WebProcess.pro: Removed.
520         * WebProcess/Cookies/qt/WebCookieManagerQt.cpp: Removed.
521         * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp: Removed.
522         * WebProcess/Plugins/Netscape/qt/PluginProxyQt.cpp: Removed.
523         * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp: Removed.
524         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp: Removed.
525         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp: Removed.
526         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp: Removed.
527         * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.h: Removed.
528         * WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp: Removed.
529         * WebProcess/WebPage/qt/WebInspectorQt.cpp: Removed.
530         * WebProcess/WebPage/qt/WebPageQt.cpp: Removed.
531         * WebProcess/qt/QtBuiltinBundle.cpp: Removed.
532         * WebProcess/qt/QtBuiltinBundle.h: Removed.
533         * WebProcess/qt/QtBuiltinBundlePage.cpp: Removed.
534         * WebProcess/qt/QtBuiltinBundlePage.h: Removed.
535         * WebProcess/qt/QtNetworkAccessManager.cpp: Removed.
536         * WebProcess/qt/QtNetworkAccessManager.h: Removed.
537         * WebProcess/qt/QtNetworkReply.cpp: Removed.
538         * WebProcess/qt/QtNetworkReply.h: Removed.
539         * WebProcess/qt/SeccompFiltersWebProcessQt.cpp: Removed.
540         * WebProcess/qt/SeccompFiltersWebProcessQt.h: Removed.
541         * WebProcess/qt/WebProcessMainQt.cpp: Removed.
542         * WebProcess/qt/WebProcessQt.cpp: Removed.
543         * qt/MainQt.cpp: Removed.
544         * qt/PluginMainQt.cpp: Removed.
545
546 2013-10-03  Brady Eidson  <beidson@apple.com>
547
548         Move IDBFactoryBackend creation to DatabaseStrategy.
549         https://bugs.webkit.org/show_bug.cgi?id=122284
550
551         Reviewed by Alexey Proskuryakov.
552
553         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
554         (WebKit::WebPlatformStrategies::createIDBFactoryBackend): Fallback to the default for now.
555         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
556
557 2013-10-03  Zan Dobersek  <zdobersek@igalia.com>
558
559         Unreviewed fix of DrawingArea creation on non-Mac platforms after r156793.
560         std::make_unique<DrawingAreaImpl>() should be used, as before that revision.
561
562         * WebProcess/WebPage/DrawingArea.cpp:
563         (WebKit::DrawingArea::create):
564
565 2013-10-02  Anders Carlsson  <andersca@apple.com>
566
567         Remove Qt code from Platform/
568         https://bugs.webkit.org/show_bug.cgi?id=122240
569
570         Reviewed by Andreas Kling.
571
572         * Platform/CoreIPC/Connection.h:
573         * Platform/Logging.cpp:
574         * Platform/Logging.h:
575         * Platform/Module.h:
576         * Platform/PlatformProcessIdentifier.h:
577         * Platform/SharedMemory.h:
578         * Platform/WorkQueue.h:
579         * Platform/qt/LoggingQt.cpp: Removed.
580         * Platform/qt/ModuleQt.cpp: Removed.
581         * Platform/qt/WorkQueueQt.cpp: Removed.
582
583 2013-10-02  Tim Horton  <timothy_horton@apple.com>
584
585         [mac] Stop using DrawingAreaImpl on PLATFORM(MAC) 
586         https://bugs.webkit.org/show_bug.cgi?id=121859
587         <rdar://problem/15069359>
588
589         Reviewed by Anders Carlsson.
590
591         The Mac port will now use tiled drawing for all WebKit2 views.
592
593         * Shared/DrawingAreaInfo.h:
594         Don't include DrawingAreaTypeImpl as a valid DrawingAreaType on Mac.
595
596         * UIProcess/API/mac/WKView.mm:
597         (-[WKView drawRect:]):
598         Remove our implementation of drawRect that paints from DrawingAreaImpl's backing store.
599
600         (-[WKView _shouldUseTiledDrawingArea]):
601         Removed. Always treated as if it were true, now.
602
603         (-[WKView _createDrawingAreaProxy]):
604         Always create a TiledCoreAnimationDrawingAreaProxy now.
605
606         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
607         (-[WKView wantsUpdateLayer]):
608         WKView always wants a layer, etc.
609
610         * UIProcess/BackingStore.h:
611         Remove Mac-specific BackingStore code, only used for DrawingAreaImpl on Mac.
612
613         * UIProcess/DrawingAreaProxy.h:
614         Remove an unneeded include.
615
616         * UIProcess/mac/BackingStoreMac.mm: Removed.
617         * WebKit2.xcodeproj/project.pbxproj:
618         Remove a bunch of files we don't need to build anymore.
619
620         * WebProcess/WebPage/DrawingArea.cpp:
621         (WebKit::DrawingArea::create):
622         Never create a DrawingAreaImpl on Mac.
623
624         * WebProcess/WebPage/DrawingAreaImpl.cpp:
625         (WebKit::DrawingAreaImpl::updatePreferences):
626         (WebKit::DrawingAreaImpl::resumePainting):
627         * WebProcess/WebPage/DrawingAreaImpl.h:
628         Remove Mac-specific DrawingAreaImpl code.
629
630         * WebProcess/WebPage/LayerTreeHost.cpp:
631         (WebKit::LayerTreeHost::create):
632         * WebProcess/WebPage/mac/LayerTreeHostMac.h: Removed.
633         * WebProcess/WebPage/mac/LayerTreeHostMac.mm: Removed.
634
635 2013-10-02  Daniel Bates  <dabates@apple.com>
636
637         Fix the Mac WebKit2 build following <http://trac.webkit.org/changeset/139241>
638         (https://bugs.webkit.org/show_bug.cgi?id=104197)
639
640         WebContextMac.mm fails to compile when building with network process disabled.
641
642         The constants WebKit2HTTPProxyDefaultsKey and WebKit2HTTPSProxyDefaultsKey,
643         defined in WebContextMac.mm, should only be defined when building with the
644         network process enabled as these constants are only referenced from
645         ENABLE(NETWORK_PROCESS)-guard code.
646
647         * UIProcess/mac/WebContextMac.mm:
648
649 2013-10-01  Sam Weinig  <sam@webkit.org>
650
651         CTTE: DOMWrapperWorlds should be passed around by reference
652         https://bugs.webkit.org/show_bug.cgi?id=122206
653
654         Reviewed by Andreas Kling.
655
656         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
657         (WebKit::InjectedBundlePageLoaderClient::didClearWindowObjectForFrame):
658         (WebKit::InjectedBundlePageLoaderClient::globalObjectIsAvailableForFrame):
659         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
660         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
661         (WebKit::InjectedBundleScriptWorld::getOrCreate):
662         (WebKit::InjectedBundleScriptWorld::normalWorld):
663         (WebKit::InjectedBundleScriptWorld::coreWorld):
664         * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h:
665         * WebProcess/Plugins/PluginView.cpp:
666         (WebKit::PluginView::windowScriptNPObject):
667         (WebKit::PluginView::pluginElementNPObject):
668         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
669         (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
670         (WebKit::WebFrameLoaderClient::dispatchGlobalObjectAvailable):
671         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
672
673 2013-10-01  Mark Rowe  <mrowe@apple.com>
674
675         <http://webkit.org/b/122190> WebKit2 APIs returning CF and NS types should explicitly declare whether they return retained objects.
676
677         This make the APIs easier to use under ARC and can help out the static analyzer.
678
679         Reviewed by Anders Carlsson.
680
681         * Shared/API/c/cf/WKErrorCF.h:
682         * Shared/API/c/cf/WKStringCF.h:
683         * Shared/API/c/cf/WKURLCF.h:
684         * Shared/API/c/cg/WKImageCG.h:
685         * Shared/API/c/mac/WKURLRequestNS.h:
686         * Shared/API/c/mac/WKURLResponseNS.h:
687         * UIProcess/API/C/cg/WKIconDatabaseCG.h:
688
689 2013-10-01  Gabor Abraham  <abrhm@inf.u-szeged.hu>
690
691         [Qt][WK2] Fix build after r156688.
692         https://bugs.webkit.org/show_bug.cgi?id=122153
693
694         Reviewed by Allan Sandfeld Jensen.
695
696         * Shared/qt/ShareableBitmapQt.cpp:
697         (WebKit::ShareableBitmap::createGraphicsContext):
698         * UIProcess/API/qt/qquickwebview.cpp:
699         (QQuickWebViewPrivate::createDrawingAreaProxy):
700         * UIProcess/API/qt/qquickwebview_p_p.h:
701         * UIProcess/API/qt/raw/qrawwebview.cpp:
702         (QRawWebViewPrivate::createDrawingAreaProxy):
703         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
704         * UIProcess/qt/QtPageClient.cpp:
705         (WebKit::QtPageClient::createDrawingAreaProxy):
706         * UIProcess/qt/QtPageClient.h:
707         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp:
708         (WebKit::convertQPixmapToShareableBitmap):
709
710 2013-09-30  Ryuan Choi  <ryuan.choi@samsung.com>
711
712         Build fix for EFL, Qt, Gtk port after r156688
713         https://bugs.webkit.org/show_bug.cgi?id=122139
714
715         Reviewed by Anders Carlsson.
716
717         Get rid of more uses of OwnPtr and PassOwnPtr.
718
719         * Shared/API/c/cairo/WKImageCairo.cpp:
720         (WKImageCreateFromCairoSurface):
721         * Shared/API/c/qt/WKImageQt.cpp:
722         (WKImageCreateFromQImage):
723         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
724         (WebKit::WebCoordinatedSurface::createGraphicsContext):
725         (WebKit::WebCoordinatedSurface::paintToSurface):
726         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
727         * Shared/cairo/ShareableBitmapCairo.cpp:
728         (WebKit::ShareableBitmap::createGraphicsContext):
729         * Shared/gtk/ArgumentCodersGtk.cpp:
730         (CoreIPC::encodeImage):
731         * UIProcess/API/gtk/PageClientImpl.cpp:
732         (WebKit::PageClientImpl::createDrawingAreaProxy):
733         * UIProcess/API/gtk/PageClientImpl.h:
734         * UIProcess/CoordinatedGraphics/WebView.cpp:
735         (WebKit::WebView::createDrawingAreaProxy):
736         * UIProcess/CoordinatedGraphics/WebView.h:
737         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
738         (WebKit::convertCairoSurfaceToShareableBitmap):
739
740 2013-09-30  Sam Weinig  <sam@webkit.org>
741
742         Remove support for DOMFileSystem
743         https://bugs.webkit.org/show_bug.cgi?id=122137
744
745         Reviewed by Anders Carlsson.
746
747         * Configurations/FeatureDefines.xcconfig:
748
749 2013-09-30  Anders Carlsson  <andersca@apple.com>
750
751         Fix build.
752
753         * NetworkProcess/mac/RemoteNetworkingContext.mm:
754
755 2013-09-30  Anders Carlsson  <andersca@apple.com>
756
757         Get rid of more uses of OwnPtr and PassOwnPtr
758         https://bugs.webkit.org/show_bug.cgi?id=122136
759
760         Reviewed by Antti Koivisto.
761
762         * NetworkProcess/AsynchronousNetworkLoaderClient.h:
763         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp:
764         (WebKit::NetworkBlobRegistry::registerBlobURL):
765         * NetworkProcess/FileAPI/NetworkBlobRegistry.h:
766         * NetworkProcess/NetworkResourceLoader.cpp:
767         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
768         * NetworkProcess/NetworkResourceLoader.h:
769         * NetworkProcess/SynchronousNetworkLoaderClient.h:
770         * NetworkProcess/mac/RemoteNetworkingContext.mm:
771         * Platform/CoreIPC/ArgumentDecoder.h:
772         * Platform/CoreIPC/ArgumentEncoder.h:
773         * Platform/CoreIPC/MessageDecoder.cpp:
774         (CoreIPC::MessageDecoder::setImportanceAssertion):
775         * Platform/CoreIPC/MessageDecoder.h:
776         * Platform/CoreIPC/mac/ConnectionMac.cpp:
777         (CoreIPC::Connection::receiveSourceEventHandler):
778         * Platform/CoreIPC/mac/ImportanceAssertion.h:
779         (CoreIPC::ImportanceAssertion::ImportanceAssertion):
780         * Platform/mac/LayerHostingContext.h:
781         * Platform/mac/LayerHostingContext.mm:
782         (WebKit::LayerHostingContext::createForPort):
783         (WebKit::LayerHostingContext::createForWindowServer):
784         * PluginProcess/PluginControllerProxy.cpp:
785         (WebKit::PluginControllerProxy::paint):
786         * PluginProcess/PluginControllerProxy.h:
787         * PluginProcess/WebProcessConnection.cpp:
788         (WebKit::WebProcessConnection::addPluginControllerProxy):
789         (WebKit::WebProcessConnection::removePluginControllerProxy):
790         (WebKit::WebProcessConnection::createPluginInternal):
791         * PluginProcess/WebProcessConnection.h:
792         * Shared/API/c/cg/WKImageCG.cpp:
793         (WKImageCreateFromCGImage):
794         * Shared/BlockingResponseMap.h:
795         (BlockingResponseMap::waitForResponse):
796         (BlockingResponseMap::didReceiveResponse):
797         * Shared/Downloads/Download.cpp:
798         * Shared/Downloads/Download.h:
799         * Shared/Downloads/DownloadManager.cpp:
800         (WebKit::DownloadManager::startDownload):
801         (WebKit::DownloadManager::convertHandleToDownload):
802         * Shared/FileAPI/BlobRegistrationData.cpp:
803         (WebKit::BlobRegistrationData::BlobRegistrationData):
804         (WebKit::BlobRegistrationData::releaseData):
805         (WebKit::BlobRegistrationData::decode):
806         * Shared/FileAPI/BlobRegistrationData.h:
807         * Shared/Plugins/NPObjectMessageReceiver.cpp:
808         * Shared/Plugins/NPObjectMessageReceiver.h:
809         * Shared/Plugins/NPRemoteObjectMap.cpp:
810         (WebKit::NPRemoteObjectMap::registerNPObject):
811         * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
812         (WebKit::NetscapePluginModule::tryLoad):
813         * Shared/Plugins/Netscape/NetscapePluginModule.h:
814         * Shared/ShareableBitmap.h:
815         * Shared/WebURL.h:
816         (WebKit::WebURL::create):
817         (WebKit::WebURL::WebURL):
818         (WebKit::WebURL::parseURLIfNecessary):
819         * Shared/cg/ShareableBitmapCG.cpp:
820         (WebKit::ShareableBitmap::createGraphicsContext):
821         (WebKit::ShareableBitmap::makeCGImageCopy):
822         * Shared/mac/SecItemShim.cpp:
823         (WebKit::sendSecItemRequest):
824         (WebKit::webSecItemCopyMatching):
825         (WebKit::webSecItemAdd):
826         (WebKit::webSecItemUpdate):
827         (WebKit::webSecItemDelete):
828         (WebKit::SecItemShim::secItemResponse):
829         * UIProcess/API/mac/FindIndicatorWindow.h:
830         * UIProcess/API/mac/PageClientImpl.h:
831         * UIProcess/API/mac/PageClientImpl.mm:
832         (WebKit::PageClientImpl::createDrawingAreaProxy):
833         * UIProcess/API/mac/WKView.mm:
834         (-[WKView std::WebKit::]):
835         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
836         * UIProcess/API/mac/WKViewInternal.h:
837         * UIProcess/BackingStore.cpp:
838         * UIProcess/BackingStore.h:
839         * UIProcess/DrawingAreaProxyImpl.cpp:
840         (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
841         * UIProcess/DrawingAreaProxyImpl.h:
842         * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
843         * UIProcess/PageClient.h:
844         * UIProcess/WebPageProxy.h:
845         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
846         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
847         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
848         * WebProcess/FileAPI/BlobRegistryProxy.cpp:
849         (WebKit::BlobRegistryProxy::registerBlobURL):
850         * WebProcess/FileAPI/BlobRegistryProxy.h:
851         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
852         * WebProcess/InjectedBundle/API/c/mac/WKBundlePageBannerMac.mm:
853         (WKBundlePageBannerCreateBannerWithCALayer):
854         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
855         (WebKit::imageForRect):
856         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
857         (WebKit::NetscapePlugin::scheduleTimer):
858         (WebKit::NetscapePlugin::unscheduleTimer):
859         (WebKit::NetscapePlugin::snapshot):
860         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
861         * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
862         * WebProcess/Plugins/PDF/PDFPlugin.mm:
863         (WebKit::PDFPlugin::snapshot):
864         * WebProcess/Plugins/PluginProxy.cpp:
865         (WebKit::PluginProxy::paint):
866         (WebKit::PluginProxy::update):
867         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
868         (WebKit::convertImageToBitmap):
869         * WebProcess/WebPage/DrawingArea.cpp:
870         (WebKit::DrawingArea::create):
871         * WebProcess/WebPage/DrawingArea.h:
872         * WebProcess/WebPage/DrawingAreaImpl.cpp:
873         (WebKit::DrawingAreaImpl::display):
874         * WebProcess/WebPage/DrawingAreaImpl.h:
875         * WebProcess/WebPage/FindController.cpp:
876         (WebKit::FindController::getFindIndicatorBitmapAndRect):
877         * WebProcess/WebPage/WebFrame.cpp:
878         (WebKit::WebFrame::createWithCoreMainFrame):
879         (WebKit::WebFrame::createSubframe):
880         (WebKit::WebFrame::create):
881         (WebKit::WebFrame::WebFrame):
882         * WebProcess/WebPage/WebFrame.h:
883         * WebProcess/WebPage/WebPage.cpp:
884         (WebKit::WebPage::scaledSnapshotWithOptions):
885         (WebKit::WebPage::drawRectToImage):
886         * WebProcess/WebPage/WebPage.h:
887         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
888         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
889         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
890         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
891         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
892         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
893         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
894         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
895
896 2013-09-27  Anders Carlsson  <andersca@apple.com>
897
898         Message sending functions should only accept rvalues
899         https://bugs.webkit.org/show_bug.cgi?id=122041
900
901         Reviewed by Andreas Kling.
902
903         In order to safely encode move-only types, make all send variants accept rvalues only, except
904         for the "send to all processes" ones. For them, copy the message before sending. This ensures that trying
905         to send a move-only type in a message will fail to compile.
906
907         * NetworkProcess/NetworkResourceLoader.h:
908         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
909         * Platform/CoreIPC/Connection.h:
910         (CoreIPC::Connection::send):
911         (CoreIPC::Connection::sendSync):
912         * Platform/CoreIPC/MessageSender.h:
913         (CoreIPC::MessageSender::sendSync):
914         * Shared/ChildProcessProxy.h:
915         (WebKit::ChildProcessProxy::send):
916         (WebKit::ChildProcessProxy::sendSync):
917         * UIProcess/WebContext.h:
918         (WebKit::WebContext::sendToNetworkingProcess):
919         (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
920         (WebKit::WebContext::sendToAllProcesses):
921         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
922         (WebKit::WebContext::sendToOneProcess):
923         * UIProcess/WebPageGroup.h:
924         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
925
926 2013-09-30  Benjamin Poulain  <benjamin@webkit.org>
927
928         Remove the code guarded by STYLE_SCOPED
929         https://bugs.webkit.org/show_bug.cgi?id=122123
930
931         Reviewed by Anders Carlsson.
932
933         * Configurations/FeatureDefines.xcconfig:
934
935 2013-09-30  Csaba Osztrogonác  <ossy@webkit.org>
936
937         NetworkResourceLoader.messages.in should be ENABLE(NETWORK_PROCESS) guarded
938         https://bugs.webkit.org/show_bug.cgi?id=122110
939
940         Reviewed by Darin Adler.
941
942         * NetworkProcess/NetworkResourceLoader.messages.in:
943
944 2013-09-30  Mark Rowe  <mrowe@apple.com>
945
946         Fix the build when building against an SDK.
947
948         Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
949         the compiler command lines. It can't know to do this for the system framework search paths
950         we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
951
952         * Configurations/BaseTarget.xcconfig:
953
954 2013-09-30  Allan Sandfeld Jensen  <allan.jensen@digia.com>
955
956         [Qt] Fix force_static_libs_as_shared in WebKit2
957         https://bugs.webkit.org/show_bug.cgi?id=121961
958
959         Reviewed by Csaba Osztrogonác.
960
961         Get rid of the unused WebKit2QML library
962
963         * Target.pri:
964         * WebKit2.pro:
965         * WebKit2QML.pri: Removed.
966
967 2013-09-29  Mark Rowe  <mrowe@apple.com>
968
969         Fix the Lion build.
970
971         Ensure that C++ and Objective-C++ files build with the right compiler flags.
972
973         * Configurations/BaseTarget.xcconfig:
974
975 2013-09-29  Sam Weinig  <sam@webkit.org>
976
977         Fix the build.
978
979         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
980         (WebKit::NPRuntimeObjectMap::evaluate):
981
982 2013-09-28  Mark Rowe  <mrowe@apple.com>
983
984         Fix some failures with newer versions of clang.
985
986         Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
987         usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
988         as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
989         flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
990         in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
991
992         Reviewed by Dan Bernstein.
993
994         * Configurations/BaseTarget.xcconfig:
995         * Configurations/DebugRelease.xcconfig:
996
997 2013-09-28  Mark Rowe  <mrowe@apple.com>
998
999         Take Xcode's advice and enable some extra warnings.
1000
1001         Reviewed by Sam Weinig.
1002
1003         * Configurations/Base.xcconfig:
1004         * WebKit2.xcodeproj/project.pbxproj:
1005
1006 2013-09-28  Darin Adler  <darin@apple.com>
1007
1008         Add Frame::mainFrame and Frame::isMainFrame
1009         https://bugs.webkit.org/show_bug.cgi?id=122064
1010
1011         Reviewed by Andreas Kling.
1012
1013         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1014         (WebKit::TiledCoreAnimationDrawingArea::shouldUseTiledBackingForFrameView):
1015         Call isMainFrame.
1016
1017 2013-09-27  Anders Carlsson  <andersca@apple.com>
1018
1019         Message sending functions should only accept rvalues
1020         https://bugs.webkit.org/show_bug.cgi?id=122041
1021
1022         Reviewed by Andreas Kling.
1023
1024         In order to safely encode move-only types, make all send variants accept rvalues only, except
1025         for the "send to all processes" ones. For them, copy the message before sending. This ensures that trying
1026         to send a move-only type in a message will fail to compile.
1027
1028         * NetworkProcess/NetworkResourceLoader.h:
1029         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
1030         * Platform/CoreIPC/Connection.h:
1031         (CoreIPC::Connection::send):
1032         (CoreIPC::Connection::sendSync):
1033         * Platform/CoreIPC/MessageSender.h:
1034         (CoreIPC::MessageSender::sendSync):
1035         * Shared/ChildProcessProxy.h:
1036         (WebKit::ChildProcessProxy::send):
1037         (WebKit::ChildProcessProxy::sendSync):
1038         * UIProcess/WebContext.h:
1039         (WebKit::WebContext::sendToNetworkingProcess):
1040         (WebKit::WebContext::sendToNetworkingProcessRelaunchingIfNecessary):
1041         (WebKit::WebContext::sendToAllProcesses):
1042         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
1043         (WebKit::WebContext::sendToOneProcess):
1044         * UIProcess/WebPageGroup.h:
1045         (WebKit::WebPageGroup::sendToAllProcessesInGroup):
1046
1047 2013-09-28  Philippe Normand  <pnormand@igalia.com>
1048
1049         Unreviewed GTK build fix after r156560.
1050
1051         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1052         (WebKit::LayerTreeHostGtk::paintContents):
1053         (WebKit::LayerTreeHostGtk::createPageOverlayLayer):
1054         (WebKit::LayerTreeHostGtk::destroyPageOverlayLayer):
1055         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
1056
1057 2013-09-28  Mark Rowe  <mrowe@apple.com>
1058
1059         WebKit2 fails to build with newer versions of clang.
1060
1061         Reviewed by Anders Carlsson.
1062
1063         * Shared/VisitedLinkTable.cpp: #if a function that's only used inside an ASSERT.
1064         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm: Remove an unused constant.
1065         * UIProcess/mac/WKFullScreenWindowController.mm: Ditto.
1066         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: Ditto.
1067         * WebProcess/WebPage/FindController.cpp: Ditto.
1068         * WebProcess/WebPage/WebBackForwardListProxy.cpp: Remove two unused constants.
1069
1070 2013-09-27  Csaba Osztrogonác  <ossy@webkit.org>
1071
1072         CookieStorageShim should be PLATFORM(MAC) guarded
1073         https://bugs.webkit.org/show_bug.cgi?id=121423
1074
1075         Reviewed by Darin Adler.
1076
1077         Original patch by Kwang Yul Seo <skyul@company100.com>.
1078
1079         * WebProcess/WebProcess.cpp:
1080         (WebKit::WebProcess::initializeWebProcess):
1081
1082 2013-09-27  Enrica Casucci  <enrica@apple.com>
1083
1084         Upstream changes to Pasteboard implementation for iOS.
1085         https://bugs.webkit.org/show_bug.cgi?id=121818
1086
1087         Reviewed by Benjamin Poulain.
1088
1089         * Shared/WebCoreArgumentCoders.cpp:
1090         (CoreIPC::decodeSharedBuffer):
1091         * Shared/WebCoreArgumentCoders.h:
1092         * UIProcess/WebContext.h:
1093         * UIProcess/WebContext.messages.in:
1094         * UIProcess/mac/WebContextMac.mm:
1095         (WebKit::WebContext::writeWebContentToPasteboard):
1096         (WebKit::WebContext::writeImageToPasteboard):
1097         (WebKit::WebContext::writeStringToPasteboard):
1098         (WebKit::WebContext::readStringFromPasteboard):
1099         (WebKit::WebContext::readURLFromPasteboard):
1100         (WebKit::WebContext::readBufferFromPasteboard):
1101         (WebKit::WebContext::getPasteboardItemsCount):
1102         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1103         (WebKit::WebPlatformStrategies::writeToPasteboard):
1104         (WebKit::WebPlatformStrategies::getPasteboardItemsCount):
1105         (WebKit::WebPlatformStrategies::readBufferFromPasteboard):
1106         (WebKit::WebPlatformStrategies::readURLFromPasteboard):
1107         (WebKit::WebPlatformStrategies::readStringFromPasteboard):
1108         (WebKit::WebPlatformStrategies::changeCount):
1109         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1110
1111 2013-09-27  Ralph Thomas  <ralpht@gmail.com>
1112
1113         [WK2][CoordinatedGraphics] fix build after r156560
1114         https://bugs.webkit.org/show_bug.cgi?id=122028
1115
1116         Fixing build.
1117
1118         Reviewed by Anders Carlsson.
1119
1120         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1121         (WebKit::CoordinatedLayerTreeHost::paintLayerContents):
1122         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1123
1124 2013-09-27  Anders Carlsson  <andersca@apple.com>
1125
1126         Use std::unique_ptr for GraphicsLayer creation
1127         https://bugs.webkit.org/show_bug.cgi?id=122020
1128
1129         Reviewed by Antti Koivisto.
1130
1131         * UIProcess/mac/RemoteLayerTreeHost.h:
1132         * UIProcess/mac/RemoteLayerTreeHost.mm:
1133         (WebKit::RemoteLayerTreeHost::getOrCreateLayer):
1134         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
1135         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1136         (WebKit::LayerTreeHostMac::paintContents):
1137         (WebKit::LayerTreeHostMac::createPageOverlayLayer):
1138         (WebKit::LayerTreeHostMac::destroyPageOverlayLayer):
1139         * WebProcess/WebPage/mac/RemoteGraphicsLayer.h:
1140         * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
1141         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1142         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1143         (WebKit::RemoteLayerTreeContext::createGraphicsLayer):
1144         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1145         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1146         (WebKit::TiledCoreAnimationDrawingArea::paintContents):
1147         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
1148         (WebKit::TiledCoreAnimationDrawingArea::destroyPageOverlayLayer):
1149
1150 2013-09-27  Beth Dakin  <bdakin@apple.com>
1151
1152         ScrollbarPainterController should adopt the api to lock overlay scrollbar state
1153         https://bugs.webkit.org/show_bug.cgi?id=121928
1154
1155         Reviewed by Sam Weinig.
1156
1157         This function no longer needs to be implemented by ScrollablArea subclasses.
1158         * WebProcess/Plugins/PDF/PDFPlugin.h:
1159         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1160
1161 2013-09-27  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
1162
1163         Web Inspector: Make WebKitGTK+ port work with Eclipse chromedevtools plugin
1164         https://bugs.webkit.org/show_bug.cgi?id=121121
1165
1166         Reviewed by Gustavo Noronha Silva.
1167
1168         The chromedevtools plugin (http://code.google.com/p/chromedevtools/) requires a specific
1169         json format to connect to the webkit inspector.
1170
1171         The current format is missing some required fields that make the connection with the plugin
1172         fail.
1173
1174         The format expected by the plugin is as follows:
1175           {
1176            "title": "Foo",
1177            "url": "http://foo",
1178            "devtoolsFrontendUrl": "/Main.html?ws=localhost:9222/devtools/page/1",
1179            "webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/1"
1180           }
1181
1182         The current format is missing the entries for "devtoolsFrontendUrl" and
1183         "webSocketDebuggerUrl".
1184
1185         The plugin also sends an HTTP GET request to http://host:port/json instead of
1186         http://host:port/pagelist.json when retrieving the pages list.
1187
1188         This patch fixes the issues by adding support for the missing fields and accepting requests
1189         for "/json" alongside "/pagelist.json".
1190
1191         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
1192         (WebKit::WebInspectorServer::platformResourceForPath):
1193         Also accept requests for "/json" alongside "pagelist.json".
1194         (WebKit::WebInspectorServer::buildPageList):
1195         Add fields required by chromedevtools plugin.
1196
1197 2013-09-26  Darin Adler  <darin@apple.com>
1198
1199         rename KURL to URL
1200         https://bugs.webkit.org/show_bug.cgi?id=16214
1201
1202         Reviewed by Andreas Kling.
1203
1204         * many files: Renamed, using script.
1205
1206 2013-09-27  Peter Gal  <galpeter@inf.u-szeged.hu>
1207
1208         Remove unused method parameters from TupleCoder.
1209         https://bugs.webkit.org/show_bug.cgi?id=122009
1210
1211         Reviewed by Anders Carlsson.
1212
1213         In case of TupleCoder<0, Elements...> the parameter
1214         names for encoder, decoder and tuple are not used.
1215         By removing the paramter names the unusued paramter
1216         warning will disappear.
1217
1218         * Platform/CoreIPC/Arguments.h:
1219
1220 2013-09-06  Jer Noble  <jer.noble@apple.com>
1221
1222         [Mac] Implement the media controls in JavaScript.
1223         https://bugs.webkit.org/show_bug.cgi?id=120895
1224
1225         Reviewed by Dean Jackson.
1226
1227         Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
1228
1229         * Configurations/FeatureDefines.xcconfig:
1230
1231 2013-09-27  Darin Adler  <darin@apple.com>
1232
1233         Add empty MainFrame class
1234         https://bugs.webkit.org/show_bug.cgi?id=121770
1235
1236         Reviewed by Andreas Kling.
1237
1238         * WebProcess/FullScreen/WebFullScreenManager.cpp:
1239         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1240         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1241         * WebProcess/Plugins/PluginView.cpp:
1242         * WebProcess/Storage/StorageAreaMap.cpp:
1243         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1244         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1245         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1246         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1247         * WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:
1248         * WebProcess/WebPage/FindController.cpp:
1249         * WebProcess/WebPage/PageOverlay.cpp:
1250         * WebProcess/WebPage/WebInspector.cpp:
1251         * WebProcess/WebPage/WebPage.cpp:
1252         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
1253         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
1254         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
1255         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1256         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1257         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
1258         * WebProcess/WebPage/mac/WebPageMac.mm:
1259         Include MainFrame.h instead of Frame.h as needed.
1260
1261 2013-09-27  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1262
1263         [Qt] Fix force_static_libs_as_shared in WebKit2
1264         https://bugs.webkit.org/show_bug.cgi?id=121961
1265
1266         Reviewed by Csaba Osztrogonác.
1267
1268         Do not add strict ordering for webkit2qml. It is not needed and causes
1269         Target.pri to be built out of order.
1270
1271         * WebKit2.pro:
1272
1273 2013-09-26  Anders Carlsson  <andersca@apple.com>
1274
1275         Remove Windows code
1276         https://bugs.webkit.org/show_bug.cgi?id=121988
1277
1278         Reviewed by Antti Koivisto.
1279
1280         * Platform/CoreIPC/Connection.h:
1281         * Platform/CoreIPC/win/ConnectionWin.cpp: Removed.
1282         * Platform/SharedMemory.h:
1283         * Platform/WorkQueue.h:
1284         * Platform/win/SharedMemoryWin.cpp: Removed.
1285         * Platform/win/WorkQueueWin.cpp: Removed.
1286         * Shared/ChildProcess.cpp:
1287         * Shared/ChildProcessProxy.cpp:
1288         (WebKit::ChildProcessProxy::didFinishLaunching):
1289         * UIProcess/Plugins/PluginInfoStore.cpp:
1290         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1291         * WebProcess/WebProcess.cpp:
1292
1293 2013-09-26  Anders Carlsson  <andersca@apple.com>
1294
1295         Stop using PassWeak
1296         https://bugs.webkit.org/show_bug.cgi?id=121968
1297
1298         Reviewed by Sam Weinig.
1299
1300         Update for JavaScriptCore changes.
1301
1302         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
1303         (WebKit::NPRuntimeObjectMap::getOrCreateJSObject):
1304
1305 2013-09-25  Jer Noble  <jer.noble@apple.com>
1306
1307         [WK2] Crash at at com.apple.WebKit2: WebKit::VoidCallback::invalidate + 46
1308         https://bugs.webkit.org/show_bug.cgi?id=121910
1309
1310         Reviewed by Darin Adler.
1311
1312         Store a copy of the VoidCallback passed to WKPage, and invalidate the callback
1313         during dealloc. The VoidCallback class assumes that it will only ever be
1314         invalidated or invoked once, so change the ASSERTs into an early return.
1315
1316         * UIProcess/GenericCallback.h:
1317         (WebKit::VoidCallback::performCallback): Exit early if previously invalidated.
1318         (WebKit::VoidCallback::invalidate): Ditto.
1319         * UIProcess/mac/WKFullScreenWindowController.h:
1320         * UIProcess/mac/WKFullScreenWindowController.mm:
1321         (-[WKFullScreenWindowController dealloc]): Invalidate the repaint callback if present.
1322         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): Ditto & create a new callback.
1323         (-[WKFullScreenWindowController completeFinishExitFullScreenAnimationAfterRepaint]): Clear the callback.
1324
1325 2013-09-26  Tim Horton  <timothy_horton@apple.com>
1326
1327         Tiled drawing should not imply threaded scrolling
1328         https://bugs.webkit.org/show_bug.cgi?id=121874
1329         <rdar://problem/15071494>
1330
1331         Reviewed by Sam Weinig.
1332
1333         * Shared/DrawingAreaInfo.h:
1334         We can have DrawingAreaTypeTiledCoreAnimation without threaded scrolling.
1335
1336         * Shared/WebPreferencesStore.h:
1337         * UIProcess/API/C/WKPreferences.cpp:
1338         (WKPreferencesSetThreadedScrollingEnabled):
1339         (WKPreferencesGetThreadedScrollingEnabled):
1340         * UIProcess/API/C/WKPreferencesPrivate.h:
1341         Add a preference for threaded scrolling.
1342
1343         * UIProcess/API/mac/WKView.mm:
1344         (-[WKView WebKit::]):
1345         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
1346         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
1347         * WebProcess/WebPage/DrawingArea.cpp:
1348         (WebKit::DrawingArea::create):
1349         * WebProcess/WebPage/DrawingArea.h:
1350         Make it so we can use TiledCoreAnimationDrawingArea without ENABLE(THREADED_SCROLLING).
1351
1352         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1353         (WebKit::WebChromeClient::shouldUseTiledBackingForFrame):
1354         * WebProcess/WebCoreSupport/WebChromeClient.h:
1355         Override shouldUseTiledBackingForFrame; ask the drawing area if we want a tiled backing for the given frame.
1356
1357         * WebProcess/WebPage/WebPage.cpp:
1358         (WebKit::WebPage::WebPage):
1359         (WebKit::WebPage::~WebPage):
1360         * WebProcess/WebPage/WebPage.h:
1361         Move attaching and detaching the scrolling tree into WebPage.
1362         Store whether or not this page is going to use threaded scrolling once, as this
1363         cannot change through the life of a page.
1364
1365         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
1366         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
1367         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
1368         (WebKit::TiledCoreAnimationDrawingArea::~TiledCoreAnimationDrawingArea):
1369         Move attaching and detaching the scrolling tree into WebPage.
1370
1371         (WebKit::TiledCoreAnimationDrawingArea::didInstallPageOverlay):
1372         (WebKit::TiledCoreAnimationDrawingArea::didUninstallPageOverlay):
1373         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
1374         (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
1375         Only do scrolling coordinator work if we have a scrolling coordinator.
1376
1377         (WebKit::TiledCoreAnimationDrawingArea::shouldUseTiledBackingForFrame):
1378         TiledCoreAnimationDrawingArea always wants a tiled backing for the main frame.
1379
1380 2013-09-25  Minju Kim  <pmuarteo@gmail.com>
1381
1382         8 bytes memory leaks in WebProcessMainQt.cpp when proxy is initialized
1383         https://bugs.webkit.org/show_bug.cgi?id=118515
1384
1385         Reviewed by Christophe Dumez.
1386
1387         * WebProcess/qt/WebProcessMainQt.cpp:
1388         (WebKit::initializeProxy): Handled EnvHttpProxyFactory by using OwnPtr
1389         to avoid memory leak when it isn't handled by NetworkProxyFactory
1390
1391 2013-09-25  Brady Eidson  <beidson@apple.com>
1392
1393         Enable the IndexedDB build on Mac, but leave the feature non-functional
1394         https://bugs.webkit.org/show_bug.cgi?id=121918
1395
1396         Reviewed by Alexey Proskuryakov.
1397
1398         * Configurations/FeatureDefines.xcconfig:
1399
1400 2013-09-25  Commit Queue  <commit-queue@webkit.org>
1401
1402         Unreviewed, rolling out r156432.
1403         http://trac.webkit.org/changeset/156432
1404         https://bugs.webkit.org/show_bug.cgi?id=121932
1405
1406         some integer conversion things that need brady to fix
1407         (Requested by thorton on #webkit).
1408
1409         * Configurations/FeatureDefines.xcconfig:
1410
1411 2013-09-25  Brady Eidson  <beidson@apple.com>
1412
1413         Enable the IndexedDB build on Mac, but leave the feature non-functional
1414         https://bugs.webkit.org/show_bug.cgi?id=121918
1415
1416         Reviewed by Alexey Proskuryakov.
1417
1418         * Configurations/FeatureDefines.xcconfig:
1419
1420 2013-09-25  Brent Fulgham  <bfulgham@apple.com>
1421
1422         Refactor RuntimeEnabledFeatures as a Singleton.
1423         https://bugs.webkit.org/show_bug.cgi?id=121883.
1424
1425         Reviewed by Jer Noble.
1426
1427         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1428         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Use
1429         Singleton accessor.
1430         (WebKit::InjectedBundle::setShadowDOMEnabled):
1431         (WebKit::InjectedBundle::setCSSRegionsEnabled):
1432         (WebKit::InjectedBundle::setCSSCompositingEnabled):
1433         (WebKit::InjectedBundle::setSeamlessIFramesEnabled):
1434         * WebProcess/WebPage/WebPage.cpp:
1435         (WebKit::WebPage::updatePreferences): Ditto.
1436         * WebProcess/qt/WebProcessQt.cpp:
1437         (WebKit::WebProcess::platformInitializeWebProcess): Ditto.
1438
1439 2013-09-25  Brady Eidson  <beidson@apple.com>
1440
1441         FeatureDefine.xcconfig cleanup (They should all be identical).
1442         https://bugs.webkit.org/show_bug.cgi?id=121921
1443
1444         Reviewed by Mark Rowe.
1445
1446         * Configurations/FeatureDefines.xcconfig:
1447
1448 2013-09-25  Anders Carlsson  <andersca@apple.com>
1449
1450         Use tuples for encoding IPC messages
1451         https://bugs.webkit.org/show_bug.cgi?id=121924
1452
1453         Reviewed by Andreas Kling.
1454
1455         Yet another step towards getting rid of the Arguments hierarchy.
1456
1457         * Platform/CoreIPC/Connection.h:
1458         (CoreIPC::Connection::send):
1459         (CoreIPC::Connection::sendSync):
1460         * Platform/CoreIPC/HandleMessage.h:
1461         (CoreIPC::handleMessage):
1462         (CoreIPC::handleMessageVariadic):
1463         (CoreIPC::handleMessageDelayed):
1464         * Platform/CoreIPC/MessageSender.h:
1465         (CoreIPC::MessageSender::send):
1466         * Scripts/webkit2/messages.py:
1467         (arguments_type_old):
1468         (arguments_type):
1469         (reply_type):
1470         (decode_type):
1471         (delayed_reply_type):
1472         (message_to_struct_declaration):
1473         * Scripts/webkit2/messages_unittest.py:
1474         (LoadURL):
1475         (std):
1476         (TouchEvent):
1477         (DidReceivePolicyDecision):
1478         (Close):
1479         (PreferencesDidChange):
1480         (SendDoubleAndFloat):
1481         (SendInts):
1482         (CreatePlugin):
1483         (RunJavaScriptAlert):
1484         (GetPlugins):
1485         (GetPluginProcessConnection):
1486         (TestMultipleAttributes):
1487         (TestParameterAttributes):
1488         (TemplateTest):
1489         (DidCreateWebProcessConnection):
1490         (InterpretKeyEvent):
1491         (DeprecatedOperation):
1492         (ExperimentalOperation):
1493         * Shared/ChildProcessProxy.h:
1494         (WebKit::ChildProcessProxy::send):
1495
1496 2013-09-25  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1497
1498         [Qt] Fix build with Qt 5.2 QtPosition module
1499         https://bugs.webkit.org/show_bug.cgi?id=121089
1500
1501         Reviewed by Simon Hausmann.
1502
1503         QtLocation -> QtPositioning
1504
1505         * Target.pri:
1506         * UIProcess/qt/WebGeolocationProviderQt.cpp:
1507         * WebKit2.pri:
1508
1509 2013-09-24  Sam Weinig  <sam@webkit.org>
1510
1511         Remove erroneous reference to libWTF.a in the WebKit2 Xcode project file.
1512
1513         Rubber-stamped by Alexey Proskuryakov.
1514
1515         * WebKit2.xcodeproj/project.pbxproj:
1516
1517 2013-09-24  Sam Weinig  <sam@webkit.org>
1518
1519         Remove the Windows-specific rules from WebKit2's DerivedSources.make, Windows is not supported anymore
1520         https://bugs.webkit.org/show_bug.cgi?id=121895
1521
1522         Reviewed by Alexey Proskuryakov.
1523
1524         * DerivedSources.make:
1525         Remove Windows-specific rules, and, now that only the Mac is using this file, remove the
1526         Mac checks.
1527
1528 2013-09-24  Anders Carlsson  <andersca@apple.com>
1529
1530         Only allow rvalues to be passed as synchronous message replies
1531         https://bugs.webkit.org/show_bug.cgi?id=121870
1532
1533         Reviewed by Andreas Kling.
1534
1535         This lets us get rid of a nasty const cast and is more logical.
1536
1537         * Platform/CoreIPC/Connection.h:
1538         (CoreIPC::Connection::sendSync):
1539         * Platform/CoreIPC/MessageSender.h:
1540         (CoreIPC::MessageSender::send):
1541         (CoreIPC::MessageSender::sendSync):
1542         * Shared/ChildProcessProxy.h:
1543         (WebKit::ChildProcessProxy::sendSync):
1544
1545 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1546
1547         Unreviewed buildfix.
1548
1549         * UIProcess/WebNetworkInfoManagerProxy.h:
1550
1551 2013-09-24  Alexey Proskuryakov  <ap@apple.com>
1552
1553         Fix Mac build now.
1554         
1555         * UIProcess/WebContext.messages.in:
1556
1557 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1558
1559         Unreviewed buildfix after r156350.
1560
1561         It seems that nested ifdefs don't work in messages.in files, so don't use them.
1562
1563         * UIProcess/WebContext.messages.in:
1564
1565 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1566
1567         Unreviewed buildfix after r156354 and r156360.
1568
1569         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1570         (CoreIPC::Connection::processMessage):
1571         (CoreIPC::Connection::sendOutgoingMessage):
1572
1573 2013-09-24  Csaba Osztrogonác  <ossy@webkit.org>
1574
1575         Unreviewed buildfix after r156349.
1576
1577         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1578         (CoreIPC::Connection::processMessage):
1579
1580 2013-09-24  Anders Carlsson  <andersca@apple.com>
1581
1582         Use std::unique_ptr for decoders as well
1583         https://bugs.webkit.org/show_bug.cgi?id=121868
1584
1585         Reviewed by Andreas Kling.
1586
1587         * Platform/CoreIPC/Connection.cpp:
1588         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
1589         (CoreIPC::Connection::SyncMessageState::dispatchMessages):
1590         (CoreIPC::Connection::waitForMessage):
1591         (CoreIPC::Connection::sendSyncMessage):
1592         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
1593         (CoreIPC::Connection::waitForSyncReply):
1594         (CoreIPC::Connection::processIncomingSyncReply):
1595         (CoreIPC::Connection::processIncomingMessage):
1596         (CoreIPC::Connection::enqueueIncomingMessage):
1597         (CoreIPC::Connection::dispatchMessage):
1598         (CoreIPC::Connection::dispatchOneMessage):
1599         * Platform/CoreIPC/Connection.h:
1600         (CoreIPC::Connection::sendSync):
1601         (CoreIPC::Connection::waitForAndDispatchImmediately):
1602         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1603         (CoreIPC::createMessageDecoder):
1604         (CoreIPC::Connection::receiveSourceEventHandler):
1605         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1606         (WebKit::InjectedBundle::postSynchronousMessage):
1607
1608 2013-09-24  Anders Carlsson  <andersca@apple.com>
1609
1610         Move MessageEncoder and ArgumentEncoder to std::unique_ptr
1611         https://bugs.webkit.org/show_bug.cgi?id=121861
1612
1613         Reviewed by Andreas Kling.
1614
1615         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1616         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
1617         * NetworkProcess/NetworkConnectionToWebProcess.h:
1618         * NetworkProcess/NetworkProcess.cpp:
1619         (WebKit::NetworkProcess::didReceiveSyncMessage):
1620         * NetworkProcess/NetworkProcess.h:
1621         * Platform/CoreIPC/Connection.cpp:
1622         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
1623         (CoreIPC::Connection::createSyncMessageEncoder):
1624         (CoreIPC::Connection::sendMessage):
1625         (CoreIPC::Connection::sendSyncReply):
1626         (CoreIPC::Connection::sendSyncMessage):
1627         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
1628         (CoreIPC::Connection::sendOutgoingMessages):
1629         (CoreIPC::Connection::dispatchSyncMessage):
1630         * Platform/CoreIPC/Connection.h:
1631         (CoreIPC::Connection::send):
1632         (CoreIPC::Connection::sendSync):
1633         * Platform/CoreIPC/HandleMessage.h:
1634         (CoreIPC::handleMessageDelayed):
1635         * Platform/CoreIPC/MessageReceiver.h:
1636         (CoreIPC::MessageReceiver::didReceiveSyncMessage):
1637         * Platform/CoreIPC/MessageReceiverMap.cpp:
1638         (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
1639         * Platform/CoreIPC/MessageReceiverMap.h:
1640         * Platform/CoreIPC/MessageSender.cpp:
1641         (CoreIPC::MessageSender::sendMessage):
1642         * Platform/CoreIPC/MessageSender.h:
1643         (CoreIPC::MessageSender::send):
1644         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1645         (CoreIPC::Connection::open):
1646         (CoreIPC::Connection::sendOutgoingMessage):
1647         * PluginProcess/PluginControllerProxy.h:
1648         * PluginProcess/WebProcessConnection.cpp:
1649         (WebKit::WebProcessConnection::didReceiveSyncMessage):
1650         * PluginProcess/WebProcessConnection.h:
1651         * Scripts/webkit2/messages.py:
1652         (message_to_struct_declaration):
1653         (generate_message_handler):
1654         * Scripts/webkit2/messages_unittest.py:
1655         * Shared/ChildProcessProxy.cpp:
1656         (WebKit::ChildProcessProxy::sendMessage):
1657         (WebKit::ChildProcessProxy::dispatchSyncMessage):
1658         (WebKit::ChildProcessProxy::didFinishLaunching):
1659         * Shared/ChildProcessProxy.h:
1660         (WebKit::ChildProcessProxy::send):
1661         * Shared/Plugins/NPObjectMessageReceiver.h:
1662         * Shared/Plugins/NPRemoteObjectMap.cpp:
1663         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
1664         * Shared/Plugins/NPRemoteObjectMap.h:
1665         * Shared/WebConnection.cpp:
1666         (WebKit::WebConnection::postMessage):
1667         * UIProcess/Downloads/DownloadProxy.h:
1668         * UIProcess/Network/NetworkProcessProxy.cpp:
1669         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
1670         * UIProcess/Network/NetworkProcessProxy.h:
1671         * UIProcess/Plugins/PluginProcessProxy.h:
1672         * UIProcess/Storage/StorageManager.h:
1673         * UIProcess/WebContext.cpp:
1674         (WebKit::WebContext::dispatchSyncMessage):
1675         (WebKit::WebContext::didReceiveSyncMessage):
1676         * UIProcess/WebContext.h:
1677         * UIProcess/WebFullScreenManagerProxy.h:
1678         * UIProcess/WebIconDatabase.h:
1679         * UIProcess/WebInspectorProxy.h:
1680         * UIProcess/WebPageProxy.h:
1681         * UIProcess/WebProcessProxy.cpp:
1682         (WebKit::WebProcessProxy::didReceiveSyncMessage):
1683         * UIProcess/WebProcessProxy.h:
1684         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1685         (WebKit::InjectedBundle::postMessage):
1686         (WebKit::InjectedBundle::postSynchronousMessage):
1687         * WebProcess/Network/NetworkProcessConnection.cpp:
1688         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
1689         * WebProcess/Network/NetworkProcessConnection.h:
1690         * WebProcess/Plugins/PluginProcessConnection.cpp:
1691         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
1692         * WebProcess/Plugins/PluginProcessConnection.h:
1693         * WebProcess/Plugins/PluginProxy.h:
1694         * WebProcess/WebPage/WebPage.cpp:
1695         (WebKit::WebPage::didReceiveSyncMessage):
1696         * WebProcess/WebPage/WebPage.h:
1697         * WebProcess/WebProcess.cpp:
1698         (WebKit::WebProcess::didReceiveSyncMessage):
1699         * WebProcess/WebProcess.h:
1700
1701 2013-09-24  Anders Carlsson  <andersca@apple.com>
1702
1703         Remove encoder create functions
1704         https://bugs.webkit.org/show_bug.cgi?id=121853
1705
1706         Reviewed by Sam Weinig.
1707
1708         * Platform/CoreIPC/ArgumentEncoder.cpp:
1709         * Platform/CoreIPC/ArgumentEncoder.h:
1710         * Platform/CoreIPC/Connection.cpp:
1711         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
1712         (CoreIPC::Connection::createSyncMessageEncoder):
1713         (CoreIPC::Connection::dispatchSyncMessage):
1714         * Platform/CoreIPC/Connection.h:
1715         (CoreIPC::Connection::send):
1716         * Platform/CoreIPC/MessageEncoder.cpp:
1717         (CoreIPC::MessageEncoder::setIsSyncMessage):
1718         * Platform/CoreIPC/MessageEncoder.h:
1719         * Platform/CoreIPC/MessageSender.h:
1720         (CoreIPC::MessageSender::send):
1721         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1722         (CoreIPC::Connection::open):
1723         * Shared/ChildProcessProxy.h:
1724         (WebKit::ChildProcessProxy::send):
1725         * Shared/WebConnection.cpp:
1726         (WebKit::WebConnection::postMessage):
1727         * UIProcess/WebContext.cpp:
1728         (WebKit::WebContext::createNewWebProcess):
1729         (WebKit::WebContext::postMessageToInjectedBundle):
1730         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1731         (WebKit::InjectedBundle::postMessage):
1732         * WebProcess/WebPage/EncoderAdapter.cpp:
1733         (WebKit::EncoderAdapter::EncoderAdapter):
1734         (WebKit::EncoderAdapter::dataReference):
1735         (WebKit::EncoderAdapter::encodeBytes):
1736         (WebKit::EncoderAdapter::encodeBool):
1737         (WebKit::EncoderAdapter::encodeUInt16):
1738         (WebKit::EncoderAdapter::encodeUInt32):
1739         (WebKit::EncoderAdapter::encodeUInt64):
1740         (WebKit::EncoderAdapter::encodeInt32):
1741         (WebKit::EncoderAdapter::encodeInt64):
1742         (WebKit::EncoderAdapter::encodeFloat):
1743         (WebKit::EncoderAdapter::encodeDouble):
1744         (WebKit::EncoderAdapter::encodeString):
1745         * WebProcess/WebPage/EncoderAdapter.h:
1746
1747 2013-09-24  Enrica Casucci  <enrica@apple.com>
1748
1749         Upstream changes to Pasteboard implementation for iOS.
1750         https://bugs.webkit.org/show_bug.cgi?id=121818
1751
1752         Reviewed by Darin Adler.
1753
1754         * Scripts/webkit2/messages.py:
1755         (struct_or_class):
1756         (headers_for_type):
1757         * Shared/WebCoreArgumentCoders.cpp:
1758         (CoreIPC::encodeSharedBuffer):
1759         (CoreIPC::decodeSharedBuffer):
1760         (CoreIPC::::encode):
1761         (CoreIPC::::decode):
1762         * Shared/WebCoreArgumentCoders.h:
1763         * UIProcess/WebContext.h:
1764         * UIProcess/WebContext.messages.in:
1765         * UIProcess/mac/WebContextMac.mm:
1766         (WebKit::WebContext::writeWebContentToPasteboard):
1767         (WebKit::WebContext::writeImageToPasteboard):
1768         (WebKit::WebContext::writeStringToPasteboard):
1769         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1770         (WebKit::WebPlatformStrategies::writeToPasteboard):
1771         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1772
1773 2013-09-24  Anders Carlsson  <andersca@apple.com>
1774
1775         Remove create functions from MessageDecoder and ArgumentDecoder
1776         https://bugs.webkit.org/show_bug.cgi?id=121850
1777
1778         Reviewed by Antti Koivisto.
1779
1780         * Platform/CoreIPC/ArgumentDecoder.cpp:
1781         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
1782         * Platform/CoreIPC/ArgumentDecoder.h:
1783         * Platform/CoreIPC/MessageDecoder.cpp:
1784         (CoreIPC::MessageDecoder::MessageDecoder):
1785         * Platform/CoreIPC/MessageDecoder.h:
1786         * Platform/CoreIPC/mac/ConnectionMac.cpp:
1787         (CoreIPC::createMessageDecoder):
1788         * WebProcess/WebPage/DecoderAdapter.cpp:
1789         (WebKit::DecoderAdapter::DecoderAdapter):
1790         (WebKit::DecoderAdapter::decodeBytes):
1791         (WebKit::DecoderAdapter::decodeBool):
1792         (WebKit::DecoderAdapter::decodeUInt16):
1793         (WebKit::DecoderAdapter::decodeUInt32):
1794         (WebKit::DecoderAdapter::decodeUInt64):
1795         (WebKit::DecoderAdapter::decodeInt32):
1796         (WebKit::DecoderAdapter::decodeInt64):
1797         (WebKit::DecoderAdapter::decodeFloat):
1798         (WebKit::DecoderAdapter::decodeDouble):
1799         (WebKit::DecoderAdapter::decodeString):
1800         * WebProcess/WebPage/DecoderAdapter.h:
1801         * WebProcess/WebProcess.cpp:
1802         (WebKit::WebProcess::postInjectedBundleMessage):
1803
1804 2013-09-24  Mark Rowe  <mrowe@apple.com>
1805
1806         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
1807
1808         Reviewed by Dan Bernstein.
1809
1810         * Configurations/Base.xcconfig:
1811
1812 2013-09-24  Lorenzo Tilve  <ltilve@igalia.com>
1813
1814         [GTK] Fix compilation problems when setting ENABLE_DRAG_SUPPORT = FALSE
1815         https://bugs.webkit.org/show_bug.cgi?id=121782
1816
1817         Reviewed by Martin Robinson.
1818
1819         Disabled drag functions.
1820
1821         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
1822         (webkit_web_view_base_class_init):
1823         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp:
1824
1825 2013-09-24  Anders Carlsson  <andersca@apple.com>
1826
1827         Begin adopting std::tuple for IPC decoding
1828         https://bugs.webkit.org/show_bug.cgi?id=121848
1829
1830         Reviewed by Sam Weinig.
1831
1832         This is the first step towards getting rid of the horrible Arguments class hierarchy.
1833
1834         * Platform/CoreIPC/Arguments.h:
1835         (CoreIPC::TupleCoder::encode):
1836         (CoreIPC::TupleCoder::decode):
1837         * Platform/CoreIPC/HandleMessage.h:
1838         (CoreIPC::callMemberFunction):
1839         (CoreIPC::handleMessage):
1840         (CoreIPC::handleMessageVariadic):
1841         (CoreIPC::handleMessageDelayed):
1842
1843 2013-09-24  ChangSeok Oh  <changseok.oh@collabora.com>
1844
1845         [EFL] Build failed at ProcessLauncherEfl.cpp
1846         https://bugs.webkit.org/show_bug.cgi?id=121826
1847
1848         Reviewed by Gyuyoung Kim.
1849
1850         Fixed a build failure with adding socket.h.
1851
1852         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
1853
1854 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
1855
1856         use NOMINMAX instead of #define min min
1857         https://bugs.webkit.org/show_bug.cgi?id=73563
1858
1859         Reviewed by Brent Fulgham.
1860
1861         Use NOMINMAX instead of #define min/max as a cleaner
1862         way of ensuring that Windows system header files don't
1863         define min/max as macro in the first place.
1864
1865         * config.h:
1866
1867 2013-09-23  ChangSeok Oh  <changseok.oh@collabora.com>
1868
1869         [GTK][WK2] A plugin dirtyRect within iframe remains after moving to a different page.
1870         https://bugs.webkit.org/show_bug.cgi?id=121600
1871
1872         Reviewed by Gustavo Noronha Silva.
1873
1874         Nowhere to destroy NetscapePlugin::m_platformPluginWidget even after destroying
1875         an instance of NetscapePlugin. So the created GtkWidget remains visible.
1876
1877         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
1878         (WebKit::NetscapePlugin::platformDestroy):
1879
1880 2013-09-23  Sam Weinig  <sam@webkit.org>
1881
1882         Add back the SharedWorkerStrategy to prevent crashing.
1883
1884         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1885         (WebKit::WebPlatformStrategies::createSharedWorkerStrategy):
1886         (WebKit::WebPlatformStrategies::isAvailable):
1887         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1888
1889 2013-09-23  Sam Weinig  <sam@webkit.org>
1890
1891         SharedWorkerProcess code is dead
1892         https://bugs.webkit.org/show_bug.cgi?id=121563
1893
1894         Reviewed by Alexey Proskuryakov.
1895
1896         Remove SharedWorkerProcess code.
1897
1898 2013-09-23  Patrick Gansterer  <paroga@webkit.org>
1899
1900         Cleanup CMake files in WebKit2
1901         https://bugs.webkit.org/show_bug.cgi?id=121767
1902
1903         Reviewed by Gyuyoung Kim.
1904
1905         Sort files and unify style.
1906
1907         * CMakeLists.txt:
1908         * PlatformEfl.cmake:
1909         * PlatformGTK.cmake:
1910
1911 2013-09-21  Darin Adler  <darin@apple.com>
1912
1913         Add ExecState::uncheckedArgument and use where possible to shrink a bit
1914         https://bugs.webkit.org/show_bug.cgi?id=121750
1915
1916         Reviewed by Andreas Kling.
1917
1918         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1919         (WebKit::JSNPObject::callMethod): In a loop.
1920         (WebKit::JSNPObject::callObject): Ditto.
1921         (WebKit::JSNPObject::callConstructor): Ditto.
1922
1923 2013-09-18  Anders Carlsson  <andersca@apple.com>
1924
1925         Remove the ENABLE_PLUGIN_PROCESS #define
1926         https://bugs.webkit.org/show_bug.cgi?id=121569
1927
1928         Reviewed by Andreas Kling.
1929
1930         Fold the ENABLE_PLUGIN_PROCESS #define into the NETSCAPE_PLUGIN_API #define since 
1931         building plug-ins without the plug-in process is not supported.
1932
1933         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
1934         * PluginProcess/PluginControllerProxy.cpp:
1935         * PluginProcess/PluginControllerProxy.h:
1936         * PluginProcess/PluginControllerProxy.messages.in:
1937         * PluginProcess/PluginCreationParameters.cpp:
1938         * PluginProcess/PluginCreationParameters.h:
1939         * PluginProcess/PluginProcess.cpp:
1940         * PluginProcess/PluginProcess.h:
1941         * PluginProcess/PluginProcess.messages.in:
1942         * PluginProcess/WebProcessConnection.cpp:
1943         * PluginProcess/WebProcessConnection.h:
1944         * PluginProcess/WebProcessConnection.messages.in:
1945         * PluginProcess/mac/PluginControllerProxyMac.mm:
1946         * PluginProcess/mac/PluginProcessMac.mm:
1947         * Shared/Plugins/NPIdentifierData.cpp:
1948         * Shared/Plugins/NPIdentifierData.h:
1949         * Shared/Plugins/NPObjectMessageReceiver.cpp:
1950         * Shared/Plugins/NPObjectMessageReceiver.h:
1951         * Shared/Plugins/NPObjectMessageReceiver.messages.in:
1952         * Shared/Plugins/NPObjectProxy.cpp:
1953         * Shared/Plugins/NPObjectProxy.h:
1954         * Shared/Plugins/NPRemoteObjectMap.cpp:
1955         * Shared/Plugins/NPRemoteObjectMap.h:
1956         * Shared/Plugins/NPVariantData.cpp:
1957         * Shared/Plugins/NPVariantData.h:
1958         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
1959         (WebKit::getMIMETypesFromPluginBundle):
1960         * Shared/Plugins/PluginProcessCreationParameters.cpp:
1961         * Shared/Plugins/PluginProcessCreationParameters.h:
1962         * UIProcess/Launcher/ProcessLauncher.cpp:
1963         (WebKit::ProcessLauncher::processTypeAsString):
1964         (WebKit::ProcessLauncher::getProcessTypeFromString):
1965         * UIProcess/Launcher/ProcessLauncher.h:
1966         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1967         (WebKit::addDYLDEnvironmentAdditions):
1968         (WebKit::serviceName):
1969         (WebKit::createProcess):
1970         * UIProcess/Plugins/PluginProcessManager.cpp:
1971         * UIProcess/Plugins/PluginProcessManager.h:
1972         * UIProcess/Plugins/PluginProcessProxy.cpp:
1973         * UIProcess/Plugins/PluginProcessProxy.h:
1974         * UIProcess/Plugins/PluginProcessProxy.messages.in:
1975         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
1976         (WebKit::WebPluginSiteDataManager::~WebPluginSiteDataManager):
1977         (WebKit::WebPluginSiteDataManager::invalidate):
1978         (WebKit::WebPluginSiteDataManager::getSitesWithData):
1979         (WebKit::WebPluginSiteDataManager::clearSiteData):
1980         * UIProcess/Plugins/WebPluginSiteDataManager.h:
1981         * UIProcess/Plugins/mac/PluginProcessManagerMac.mm:
1982         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1983         * UIProcess/WebContext.cpp:
1984         (WebKit::WebContext::setProcessModel):
1985         (WebKit::WebContext::shouldTerminate):
1986         (WebKit::WebContext::disconnectProcess):
1987         * UIProcess/WebProcessProxy.cpp:
1988         (WebKit::WebProcessProxy::getPluginProcessConnection):
1989         * UIProcess/WebProcessProxy.h:
1990         * UIProcess/WebProcessProxy.messages.in:
1991         * UIProcess/mac/WebContextMac.mm:
1992         (WebKit::updateProcessSuppressionStateOfGlobalChildProcesses):
1993         * WebKit2Prefix.h:
1994         * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm:
1995         * WebProcess/Plugins/PluginProcessConnection.cpp:
1996         * WebProcess/Plugins/PluginProcessConnection.h:
1997         * WebProcess/Plugins/PluginProcessConnection.messages.in:
1998         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
1999         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2000         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in:
2001         * WebProcess/Plugins/PluginProxy.cpp:
2002         * WebProcess/Plugins/PluginProxy.h:
2003         * WebProcess/Plugins/PluginProxy.messages.in:
2004         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2005         * WebProcess/WebPage/WebPage.cpp:
2006         * WebProcess/WebProcess.cpp:
2007         (WebKit::WebProcess::WebProcess):
2008         (WebKit::WebProcess::initializeConnection):
2009         * WebProcess/WebProcess.h:
2010         * WebProcess/WebProcess.messages.in:
2011
2012 2013-09-18  Sam Weinig  <sam@webkit.org>
2013
2014         Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebKit and WebKit2
2015         https://bugs.webkit.org/show_bug.cgi?id=121568
2016
2017         Reviewed by Andreas Kling.
2018
2019         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2020         (CoreIPC::Connection::processMessage):
2021         (CoreIPC::readBytesFromSocket):
2022         (CoreIPC::Connection::sendOutgoingMessage):
2023         * UIProcess/API/efl/EwkView.cpp:
2024         (EwkView::feedTouchEvent):
2025         (EwkView::feedTouchEvents):
2026         * UIProcess/API/efl/SnapshotImageGL.h:
2027         * UIProcess/API/efl/ewk_file_chooser_request.cpp:
2028         (ewk_file_chooser_request_files_choose):
2029         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2030         (WebKit::createArgsArray):
2031         (WebKit::ProcessLauncher::launchProcess):
2032         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2033         (WKBundlePageCopyContextMenuItems):
2034         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2035
2036 2013-09-18  Anders Carlsson  <andersca@apple.com>
2037
2038         RefPtrHashMap should work with move only types
2039         https://bugs.webkit.org/show_bug.cgi?id=121564
2040
2041         Reviewed by Andreas Kling.
2042
2043         * UIProcess/Storage/StorageManager.cpp:
2044         (WebKit::StorageManager::LocalStorageNamespace::getOrCreateStorageArea):
2045         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
2046         * WebProcess/Storage/StorageNamespaceImpl.cpp:
2047         (WebKit::StorageNamespaceImpl::storageArea):
2048
2049 2013-09-18  Carlos Garcia Campos  <cgarcia@igalia.com>
2050
2051         [GTK] WebKitScriptWorld not in API documentation
2052         https://bugs.webkit.org/show_bug.cgi?id=121539
2053
2054         Reviewed by Philippe Normand.
2055
2056         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add WebKitScriptWorld.
2057
2058 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2059
2060         Buildfix for !ENABLE(CUSTOM_PROTOCOLS) platforms
2061         https://bugs.webkit.org/show_bug.cgi?id=121417
2062
2063         Reviewed by Alexey Proskuryakov.
2064
2065         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2066
2067         * CMakeLists.txt: Add CustomProtocolManagerProxy.messages.in.
2068         * DerivedSources.pri: Add CustomProtocolManagerProxy.messages.in.
2069         * GNUmakefile.am: Add CustomProtocolManagerProxy.messages.in.
2070         * GNUmakefile.list.am: Add CustomProtocolManagerProxyMessages.h and CustomProtocolManagerProxyMessageReceiver.cpp.
2071         * NetworkProcess/NetworkProcess.cpp: Add the missing ENABLE(CUSTOM_PROTOCOLS) guard.
2072         (WebKit::NetworkProcess::NetworkProcess):
2073         * UIProcess/WebProcessProxy.cpp: Remove the unnecessary conditional include.
2074
2075 2013-09-17  Gustavo Noronha Silva  <gns@gnome.org>
2076
2077         [GTK] Test /webkit2/WebKitWebInspectorServer/test-open-debugging-session times out after r155714
2078         https://bugs.webkit.org/show_bug.cgi?id=121383
2079
2080         Reviewed by Carlos Garcia Campos.
2081
2082         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2083         (openRemoteDebuggingSession): use the page contents' to check the remote debugging of the page
2084         has been successfuly opened, as the title is no longer the same after the switch to the new
2085         frontend.
2086
2087 2013-09-16  Enrica Casucci  <enrica@apple.com>
2088
2089         Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
2090         https://bugs.webkit.org/show_bug.cgi?id=121464
2091
2092         Reviewed by Darin Adler.
2093
2094         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2095         * WebProcess/WebCoreSupport/WebEditorClient.h:
2096
2097 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2098
2099         Buildfix for !(ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)) platforms
2100         https://bugs.webkit.org/show_bug.cgi?id=121491
2101
2102         Reviewed by Darin Adler.
2103
2104         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2105         (WebKit::WebResourceLoadScheduler::scheduleLoad):
2106
2107 2013-09-17  Alberto Garcia  <berto@igalia.com>
2108
2109         [GTK] Unreviewed make distcheck fix.
2110
2111         * GNUmakefile.am: include WebProcess/Network/*.in in the tarball,
2112         it's needed for generating WebResourceLoaderMessage*.{cpp,h}.
2113
2114 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2115
2116         [GTK][EFL] Add ResourceError::internalError() after r138387
2117         https://bugs.webkit.org/show_bug.cgi?id=121433
2118
2119         Reviewed by Christophe Dumez.
2120
2121         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2122         and Kwang Yul Seo <skyul@company100.net>
2123
2124         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
2125         (WebKit::internalError):
2126         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
2127         (WebKit::internalError):
2128
2129 2013-09-17  Gabor Abraham  <abrhm@inf.u-szeged.hu>
2130
2131         Fix Qt WK2 build after r155888
2132         https://bugs.webkit.org/show_bug.cgi?id=121471
2133
2134         Reviewed by Csaba Osztrogonác.
2135
2136         * UIProcess/API/qt/qquickwebview.cpp:
2137         (QQuickWebViewPrivate::createDrawingAreaProxy):
2138         * UIProcess/API/qt/qquickwebview_p_p.h:
2139         * UIProcess/API/qt/raw/qrawwebview.cpp:
2140         (QRawWebViewPrivate::createDrawingAreaProxy):
2141         * UIProcess/API/qt/raw/qrawwebview_p_p.h:
2142         * UIProcess/qt/QtPageClient.cpp:
2143         (WebKit::QtPageClient::createDrawingAreaProxy):
2144         * UIProcess/qt/QtPageClient.h:
2145
2146 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2147
2148         [GTK][EFL] Add NetworkProcess support for ProcessLauncher
2149         https://bugs.webkit.org/show_bug.cgi?id=121434
2150
2151         Reviewed by Sam Weinig.
2152
2153         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2154         and Kwang Yul Seo <skyul@company100.net>
2155
2156         * Shared/ProcessExecutablePath.h:
2157         * Shared/efl/ProcessExecutablePathEfl.cpp:
2158         (WebKit::executablePathOfNetworkProcess):
2159         * Shared/gtk/ProcessExecutablePathGtk.cpp:
2160         (WebKit::executablePathOfNetworkProcess):
2161         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
2162         (WebKit::ProcessLauncher::launchProcess):
2163         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2164         (WebKit::ProcessLauncher::launchProcess):
2165
2166 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2167
2168         Buildfix for !USE(PROTECTION_SPACE_AUTH_CALLBACK) platforms
2169         https://bugs.webkit.org/show_bug.cgi?id=121431
2170
2171         Reviewed by Alexey Proskuryakov.
2172
2173         Mising guards added.
2174
2175         Original patch by Balazs Kelemen <kbalazs@webkit.org>
2176         and Kwang Yul Seo <skyul@company100.net>
2177
2178         * NetworkProcess/NetworkResourceLoader.messages.in:
2179         * WebProcess/Network/WebResourceLoader.cpp:
2180         * WebProcess/Network/WebResourceLoader.h:
2181         * WebProcess/Network/WebResourceLoader.messages.in:
2182
2183 2013-09-17  Csaba Osztrogonác  <ossy@webkit.org>
2184
2185         WebResourceLoader.messages.in should be ENABLE(NETWORK_PROCESS) guarded
2186         https://bugs.webkit.org/show_bug.cgi?id=121424
2187
2188         Reviewed by Alexey Proskuryakov.
2189
2190         Original patch by Balazs Kelemen <kbalazs@webkit.org>.
2191
2192         * CMakeLists.txt:
2193         * DerivedSources.pri:
2194         * GNUmakefile.am:
2195         * GNUmakefile.list.am:
2196         * WebProcess/Network/WebResourceLoader.messages.in: ENABLE(NETWORK_PROCESS) guard added.
2197
2198 2013-09-16  Manuel Rego Casasnovas  <rego@igalia.com>
2199
2200         Unreviewed, fixing the GTK WK2 debug build after r155911.
2201
2202         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp: Add missing using
2203         namespace WebCore.
2204
2205 2013-09-16  Sergio Correia  <sergio.correia@openbossa.org>
2206
2207         Fix EFL build after r155888
2208         https://bugs.webkit.org/show_bug.cgi?id=121465
2209
2210         Reviewed by Gyuyoung Kim.
2211
2212         Update WebView to follow the changes in PageClient in r155888.
2213
2214         * UIProcess/CoordinatedGraphics/WebView.cpp:
2215         (WebKit::WebView::createDrawingAreaProxy): Use createOwned (addded in
2216         r155407) to return the DrawingAreaProxy from DrawingAreaProxyImpl.
2217         * UIProcess/CoordinatedGraphics/WebView.h: Update createDrawingAreaProxy()
2218         signature to match PageClient.h.
2219
2220 2013-09-16  Gustavo Noronha Silva  <gns@gnome.org>
2221
2222         [GTK] Make symbol export filter more strict, and disable for dev/test builds
2223         https://bugs.webkit.org/show_bug.cgi?id=120586
2224
2225         Reviewed by Martin Robinson.
2226
2227         * GNUmakefile.am: only use the version script if developer mode is disabled.
2228
2229 2013-09-16  Gustavo Noronha Silva  <gns@gnome.org>
2230
2231         Unreviewed build fix after 155905.
2232
2233         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2234         (CoreIPC::Connection::sendOutgoingMessage): use OwnPtr instead of PassOwnPtr.
2235
2236 2013-09-16  Joseph Pecoraro  <pecoraro@apple.com>
2237
2238         Add RunLoop::isMain and use it in WebKit2
2239         https://bugs.webkit.org/show_bug.cgi?id=121459
2240
2241         Reviewed by Anders Carlsson.
2242
2243         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
2244         (getIconSurfaceSynchronously):
2245         (iconDataReadyForPageURLCallback):
2246         (webkit_favicon_database_get_favicon_uri):
2247         * UIProcess/API/mac/WKPrintingView.mm:
2248         (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
2249         (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]):
2250         (pageDidDrawToImage):
2251         (pageDidDrawToPDF):
2252         (-[WKPrintingView _preparePDFDataForPrintingOnSecondaryThread]):
2253         (pageDidComputePageRects):
2254         (-[WKPrintingView _askPageToComputePageRects]):
2255         (prepareDataForPrintingOnSecondaryThread):
2256         (-[WKPrintingView knowsPageRange:]):
2257         (-[WKPrintingView _drawPreview:]):
2258         (-[WKPrintingView drawRect:]):
2259         (-[WKPrintingView _drawPageBorderWithSizeOnMainThread:]):
2260         (-[WKPrintingView drawPageBorderWithSize:]):
2261         * UIProcess/WebProcessProxy.cpp:
2262         (WebKit::globalPageMap):
2263
2264 2013-09-16  Anders Carlsson  <andersca@apple.com>
2265
2266         Replace more uses of PassOwnPtr with OwnPtr in WebKit2
2267         https://bugs.webkit.org/show_bug.cgi?id=121453
2268
2269         Reviewed by Sam Weinig.
2270
2271         * Platform/CoreIPC/Connection.cpp:
2272         (CoreIPC::Connection::SecondaryThreadPendingSyncReply::SecondaryThreadPendingSyncReply):
2273         (CoreIPC::Connection::createSyncMessageEncoder):
2274         (CoreIPC::Connection::sendMessage):
2275         (CoreIPC::Connection::sendSyncReply):
2276         (CoreIPC::Connection::waitForMessage):
2277         (CoreIPC::Connection::sendSyncMessage):
2278         (CoreIPC::Connection::sendSyncMessageFromSecondaryThread):
2279         (CoreIPC::Connection::waitForSyncReply):
2280         (CoreIPC::Connection::processIncomingSyncReply):
2281         (CoreIPC::Connection::processIncomingMessage):
2282         (CoreIPC::Connection::enqueueIncomingMessage):
2283         (CoreIPC::Connection::dispatchMessage):
2284         * Platform/CoreIPC/Connection.h:
2285         (CoreIPC::Connection::PendingSyncReply::PendingSyncReply):
2286         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2287         (CoreIPC::Connection::sendOutgoingMessage):
2288
2289 2013-09-16  Zan Dobersek  <zdobersek@igalia.com>
2290
2291         Unreviewed, fixing the GTK WK2 build after r155888.
2292
2293         * UIProcess/API/gtk/PageClientImpl.cpp:
2294         (WebKit::PageClientImpl::createDrawingAreaProxy):
2295         * UIProcess/API/gtk/PageClientImpl.h:
2296
2297 2013-09-16  Anders Carlsson  <andersca@apple.com>
2298
2299         Remove some uses of PassOwnPtr in WebKit2
2300         https://bugs.webkit.org/show_bug.cgi?id=121443
2301
2302         Reviewed by Andreas Kling.
2303
2304         * Scripts/webkit2/messages.py:
2305         (message_to_struct_declaration):
2306         (generate_message_handler):
2307         * Scripts/webkit2/messages_unittest.py:
2308         * UIProcess/API/mac/FindIndicatorWindow.h:
2309         * UIProcess/API/mac/FindIndicatorWindow.mm:
2310         * UIProcess/API/mac/PageClientImpl.h:
2311         * UIProcess/API/mac/PageClientImpl.mm:
2312         (WebKit::PageClientImpl::createDrawingAreaProxy):
2313         * UIProcess/API/mac/WKView.mm:
2314         (-[WKView WebKit::]):
2315         (-[WKView _setFindIndicator:fadeOut:animate:]):
2316         * UIProcess/API/mac/WKViewInternal.h:
2317         * UIProcess/DrawingAreaProxyImpl.cpp:
2318         * UIProcess/DrawingAreaProxyImpl.h:
2319         * UIProcess/PageClient.h:
2320         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
2321         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
2322         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
2323         (PageOverlayClientImpl::PageOverlayClientImpl):
2324         (WKBundlePageOverlayCreate):
2325         * WebProcess/Plugins/PluginView.cpp:
2326         (WebKit::PluginView::createWebEvent):
2327         * WebProcess/Plugins/PluginView.h:
2328
2329 2013-09-16  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
2330
2331         Web Inspector: Do not try to parse incomplete HTTP requests
2332         https://bugs.webkit.org/show_bug.cgi?id=121123
2333
2334         Reviewed by Carlos Garcia Campos.
2335
2336         Update to incorporate additional review suggestions.
2337
2338         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2339         (sendIncompleteRequest):
2340         Fix memory leaks, change test timeout from 2 seconds to 1 second,
2341         use "0" instead of "NULL" and use g_assert_no_error when checking
2342         for GError.
2343
2344 2013-09-16  Eunmi Lee  <eunmi15.lee@samsung.com>
2345
2346         [EFL][WK2] Implement pan and flick gesture.
2347         https://bugs.webkit.org/show_bug.cgi?id=107101
2348
2349         Reviewed by Gyuyoung Kim.
2350
2351         Implement pan gesture to scroll page by movement of point and stop
2352         scrolling smoothly using ease-in-out-quad algorithm after touched
2353         point is removed from the screen.
2354
2355         Use Ecore_Animator in order to process movement once per each framing
2356         time slot instead of processing all movement.
2357
2358         * PlatformEfl.cmake:
2359         * UIProcess/API/efl/EwkView.cpp:
2360         (EwkView::scrollBy):
2361         * UIProcess/API/efl/EwkView.h:
2362         * UIProcess/API/efl/GestureRecognizer.cpp:
2363         (WebKit::GestureHandler::view):
2364         (WebKit::GestureHandler::GestureHandler):
2365         (WebKit::GestureHandler::~GestureHandler):
2366         (WebKit::GestureHandler::reset):
2367         (WebKit::GestureHandler::panAnimatorCallback):
2368         (WebKit::GestureHandler::handlePanStarted):
2369         (WebKit::GestureHandler::handlePan):
2370         (WebKit::GestureHandler::handlePanFinished):
2371         (WebKit::GestureHandler::flickAnimatorCallback):
2372         (WebKit::GestureHandler::handleFlick):
2373         (WebKit::GestureRecognizer::noGesture):
2374         (WebKit::GestureRecognizer::reset):
2375         * UIProcess/efl/EasingCurves.cpp: Added.
2376         (WebKit::easeInOutQuad):
2377         * UIProcess/efl/EasingCurves.h: Added.
2378
2379 2013-09-16  Wojciech Bielawski  <w.bielawski@samsung.com>
2380
2381         [WKTR] WebKitTestRunner's eventSender.contextClick() returns objects without implemented click() method.
2382         https://bugs.webkit.org/show_bug.cgi?id=98410
2383
2384         Reviewed by Darin Adler.
2385
2386         Add API required to implement click() method for context menu entry, used by WebkitTestRunner::EventSender.
2387
2388         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2389         (WKBundlePageClickMenuItem):
2390         (WKBundlePageCopyContextMenuItemTitle):
2391         (WKBundlePageGetContextMenuItems):
2392         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
2393
2394 2013-09-15  Gustavo Noronha Silva  <gns@gnome.org>
2395
2396         Unreviewed make distcheck fix.
2397
2398         * GNUmakefile.list.am:
2399
2400 2013-09-15  Carlos Garcia Campos  <cgarcia@igalia.com>
2401
2402         [GTK] The web inspector is not rendered when docked in WebKit2 when AC is used
2403         https://bugs.webkit.org/show_bug.cgi?id=121381
2404
2405         Reviewed by Martin Robinson.
2406
2407         When accelerated compositing results are rendered we return early
2408         from webkitWebViewBaseDraw and other WebView children are not
2409         drawn. We need to chain up the draw signal handler, so that the
2410         GtkContainer propagates the draw to all its children.
2411
2412         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2413         (webkitWebViewBaseDraw):
2414
2415 2013-09-14  Dan Bernstein  <mitz@apple.com>
2416
2417         Remove non-Apple cruft from the installed WKBase.h
2418         https://bugs.webkit.org/show_bug.cgi?id=121370
2419
2420         Reviewed by Darin Adler.
2421
2422         * Configurations/WebKit2.xcconfig: Set INSTALLHDRS_SCRIPT_PHASE to YES.
2423         * WebKit2.xcodeproj/project.pbxproj: Added a script build phase that runs unifdef on
2424         the installed WKBase.h with __APPLE__ defined and various BUILDING_* and WTF_USE_* symbols
2425         undefined.
2426
2427 2013-09-14  Dan Bernstein  <mitz@apple.com>
2428
2429         Build fix after r155770.
2430
2431         * UIProcess/API/mac/WKViewPrivate.h: Added WKBase.h import.
2432
2433 2013-09-14  Dan Bernstein  <mitz@apple.com>
2434
2435         [mac] Public header WKBase.h imports a private header, WKBaseMac.h
2436         https://bugs.webkit.org/show_bug.cgi?id=121216
2437
2438         Reviewed by Darin Adler.
2439
2440         * Shared/API/c/WKBase.h: Moved definitions of enums and WK_EXPORT and WK_INLINE macros
2441         out of this files.
2442         * Shared/API/c/WKDeclarationSpecifiers.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
2443         Contains definitions of WK_EXPORT and WK_INLINE.
2444         * Shared/API/c/WKSharedAPICast.h: Added #includes.
2445         * Shared/API/c/WKUserContentInjectedFrames.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
2446         Contains enum definition.
2447         * Shared/API/c/WKUserScriptInjectionTime.h: Copied from Source/WebKit2/Shared/API/c/WKBase.h.
2448         Contains enum definition.
2449         * UIProcess/API/C/WKPageGroup.h: Added #includes.
2450         * UIProcess/API/mac/WKBrowsingContextController.h: Removed WKBase.h import from this public
2451         header, replacing it with WKDeclarationSpecifiers.h import.
2452         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h: Added WKBase.h import.
2453         * UIProcess/API/mac/WKBrowsingContextGroup.h: Removed WKBase.h import from this public
2454         header, added necessary public imports.
2455         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Added WKBase.h import.
2456         * UIProcess/API/mac/WKBrowsingContextLoadDelegate.h: Removed WKBase.h import from public
2457         header.
2458         * UIProcess/API/mac/WKConnection.h: Ditto. Added WKDeclarationSpecifiers.h import.
2459         * UIProcess/API/mac/WKConnectionInternal.h: Added WKBase.h import.
2460         * UIProcess/API/mac/WKProcessGroup.h: Removed WKBase.h import from public header, added
2461         WKDeclarationSpecifiers.h import.
2462         * UIProcess/API/mac/WKProcessGroupPrivate.h: Added WKBase.h import.
2463         * UIProcess/API/mac/WKView.h: Removed WKBase.h import from public header, added
2464         WKDeclarationSpecifiers.h import.
2465         * WebKit2.xcodeproj/project.pbxproj: Added new public header files, made WKBase.h private.
2466         * WebProcess/InjectedBundle/API/mac/WKDOMNode.h: Removed WKBase.h import from public header,
2467         added WKDeclarationSpecifiers.h import.
2468         * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h: Added WKBase.h import.
2469         * WebProcess/InjectedBundle/API/mac/WKDOMRange.h: Removed WKBase.h import from public
2470         header, added WKDeclarationSpecifiers.h import.
2471         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h: Added WKBase.h import.
2472         * WebProcess/InjectedBundle/API/mac/WKDOMTextIterator.h: Removed WKBase.h import from public
2473         header, added WKDeclarationSpecifiers.h import.
2474         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.h: Ditto.
2475         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextControllerInternal.h:
2476         Added WKBase.h import.
2477
2478 2013-09-14  Alberto Garcia  <berto@igalia.com>
2479
2480         [GTK] WebKitGTK+ is linking against libxslt in too many places
2481         https://bugs.webkit.org/show_bug.cgi?id=121356
2482
2483         Reviewed by Martin Robinson.
2484
2485         Don't use LIBXSLT_CFLAGS when compiling libWebCoreGtk2, no source
2486         files use libxslt there.
2487
2488         * GNUmakefile.am:
2489
2490 2013-09-13  Ryuan Choi  <ryuan.choi@samsung.com>
2491
2492         Unreviewed build fix attempt for WK2 build.
2493
2494         * WebProcess/Plugins/PluginView.cpp: Changed ScriptState to ExecState.
2495         (WebKit::PluginView::performJavaScriptURLRequest):
2496
2497 2013-09-13  Anders Carlsson  <andersca@apple.com>
2498
2499         Use nullptr instead of 0 in calls to HashMap::add
2500         https://bugs.webkit.org/show_bug.cgi?id=121322
2501
2502         Reviewed by Sam Weinig.
2503
2504         * Platform/CoreIPC/Connection.cpp:
2505         (CoreIPC::Connection::SyncMessageState::getOrCreate):
2506         * UIProcess/Storage/StorageManager.cpp:
2507         (WebKit::StorageManager::createLocalStorageMap):
2508         (WebKit::StorageManager::createSessionStorageMap):
2509         (WebKit::StorageManager::getOrCreateLocalStorageNamespace):
2510         * UIProcess/WebProcessProxy.cpp:
2511         (WebKit::WebProcessProxy::addBackForwardItem):
2512         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
2513         (WebKit::InjectedBundleNodeHandle::getOrCreate):
2514         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
2515         (WebKit::InjectedBundleRangeHandle::getOrCreate):
2516         * WebProcess/Storage/StorageNamespaceImpl.cpp:
2517         (WebKit::StorageNamespaceImpl::createLocalStorageNamespace):
2518         * WebProcess/WebProcess.cpp:
2519         (WebKit::WebProcess::createWebPage):
2520         (WebKit::WebProcess::webPageGroup):
2521
2522 2013-09-13  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2523
2524         [GTK] Move to the new web inspector
2525         https://bugs.webkit.org/show_bug.cgi?id=120647
2526
2527         Reviewed by Carlos Garcia Campos.
2528
2529         * GNUmakefile.am: bundle the remote inspector page list HTML into libwebkit2gtk as a GResource.
2530         * UIProcess/API/gtk/tests/GNUmakefile.am: no need to set WEBKIT_INSPECTOR_PATH anymore.
2531         * UIProcess/API/gtk/tests/InspectorTestServer.cpp:
2532         (main): ditto.
2533         * UIProcess/API/gtk/tests/TestInspector.cpp:
2534         (beforeAll): ditto.
2535         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2536         (testInspectorServerPageList): update paths to the internal resource ones.
2537         * UIProcess/InspectorServer/WebInspectorServer.h:
2538         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
2539         (WebKit::WebInspectorServer::platformResourceForPath): ditto.
2540         (WebKit::WebInspectorServer::buildPageList): ditto.
2541         * UIProcess/WebInspectorProxy.cpp:
2542         (WebKit::isMainInspectorPage): factor out checking for the inspector main resource, to make
2543         the code more readable.
2544         (WebKit::decidePolicyForNavigationAction): use SchemeRegistry to figure out whether the
2545         request is for a local resource instead of KURL::isLocalFile() to allow using schemes
2546         other than file:// for the inspector resources.
2547         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
2548         (WebKit::WebInspectorProxy::inspectorPageURL): use the new internal resource URL; since it's now
2549         static we no longer need to generate and store the string.
2550         (WebKit::WebInspectorProxy::inspectorBaseURL): ditto.
2551         * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
2552         (WebKit::WebInspector::localizedStringsURL): use the new internal resource URL.
2553         * UIProcess/gtk/WebContextGtk.cpp:
2554         (WebKit::WebContext::platformInitializeWebProcess): register resource as a local scheme.
2555
2556 2013-09-13  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2557
2558         Fix build with namespaced Qt.
2559
2560         Unreviewed build fix.
2561
2562         One forward declaration of QUrl was missing proper namespace macros.
2563
2564         * UIProcess/API/qt/qquickurlschemedelegate_p.h:
2565
2566 2013-09-12  Simon Fraser  <simon.fraser@apple.com>
2567
2568         Avoid extra scrollbar-related layouts for overlay scrollbars
2569         https://bugs.webkit.org/show_bug.cgi?id=121267
2570
2571         Reviewed by Beth Dakin.
2572         
2573         view->resize() will call setNeedsLayout() if necessary, and may already have
2574         done layout, so the extra setNeedsLayout() here was bad.
2575
2576         * WebProcess/WebPage/WebPage.cpp:
2577         (WebKit::WebPage::setSize):
2578
2579 2013-09-12  Andre Moreira Magalhaes   <andre.magalhaes@collabora.co.uk>
2580
2581         Web Inspector: Do not try to parse incomplete HTTP requests
2582         https://bugs.webkit.org/show_bug.cgi?id=121123
2583
2584         Reviewed by Darin Adler.
2585
2586         When working on a patch for bug #121121 I found an issue with the InspectorServer where it would try
2587         to parse an HTTP message before receiving the full message and thus fail connecting with the
2588         chromedevtools plugin.
2589
2590         What happens is that the WebSocketServerConnection receives buffers on
2591         WebSocketServerConnection::didReceiveSocketStreamData and calls
2592         WebSocketServerConnection::readHTTPMessage which then checks if we have a valid request by calling
2593         HTTPRequest::parseHTTPRequestFromBuffer. If the request is valid it tries to parse the message and
2594         clears the buffer, otherwise it continues adding data to the internal buffer until we have a valid
2595         request.
2596
2597         The problem is that currently HTTPRequest::parseHTTPRequestFromBuffer considers the request as valid
2598         before receiving the full message. To solve this we should make the method check if the request
2599         headers end with a blank line otherwise we consider the request as invalid (see also
2600         http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html).
2601
2602         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
2603         (sendIncompleteRequest):
2604         (beforeAll):
2605         Add GTK specific test to check if the inspector server replies to incomplete requests.
2606         * UIProcess/InspectorServer/HTTPRequest.cpp:
2607         (WebKit::HTTPRequest::parseHeaders):
2608         Do not consider request valid if headers didn't end with a blank line.
2609
2610 2013-09-12  Anders Carlsson  <andersca@apple.com>
2611
2612         SharedBuffer::createNSData should return a RetainPtr<NSData>
2613         https://bugs.webkit.org/show_bug.cgi?id=121237
2614
2615         Reviewed by Darin Adler.
2616
2617         Update for WebCore changes.
2618
2619         * UIProcess/API/mac/WKView.mm:
2620         (-[WKView writeSelectionToPasteboard:types:]):
2621         (-[WKView _setPromisedData:WebCore::withFileName:withExtension:withTitle:withURL:withVisibleURL:withArchive:WebCore::forPasteboard:]):
2622         (-[WKView namesOfPromisedFilesDroppedAtDestination:]):
2623
2624 2013-09-12  Anders Carlsson  <andersca@apple.com>
2625
2626         SharedBuffer::createCFData should return RetainPtr<CFDataRef>
2627         https://bugs.webkit.org/show_bug.cgi?id=121230
2628
2629         Reviewed by Darin Adler.
2630
2631         * NetworkProcess/mac/NetworkResourceLoaderMac.mm:
2632         (WebKit::NetworkResourceLoader::tryGetShareableHandleFromSharedBuffer):
2633         * Shared/WebArchiveResource.cpp:
2634         (WebKit::WebArchiveResource::data):
2635
2636 2013-09-12  Zalan Bujtas  <zalan@apple.com>
2637
2638         REGRESSION: Inline PDF that are cached fail to appear in iframe.
2639         https://bugs.webkit.org/show_bug.cgi?id=75449
2640
2641         Reviewed by Darin Adler.
2642
2643         Make sure 'frame is from page cache' flag is set for subframes too.
2644
2645         WebFrameLoaderClient::m_frameCameFromPageCache == true forces plugins
2646         to be loaded manually. It ensures that the plugin raw data is fetched again
2647         while the containing frame is being restored from the page cache.
2648         (Plugins get destroyed when the frame goes to page cache.)
2649
2650         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2651         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
2652         This gets called only on the frame where the actual history navigation happens.
2653         (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
2654         This gets called for all the restored frames.
2655
2656 2013-09-11  Simon Fraser  <simon.fraser@apple.com>
2657
2658         Make sure that layout is up-to-date when moving a WKView into a window, to avoid !needsLayout() assertions in RenderView::paint()
2659         https://bugs.webkit.org/show_bug.cgi?id=121196
2660
2661         Reviewed by Tim Horton.
2662         
2663         When a WKView was moved into a window, it was possible for us to paint
2664         without ensuring that layout is up-to-date. Fix this by having
2665         WebPage::setIsInWindow() update layout if we are moving to a window.
2666
2667         * WebProcess/WebPage/WebPage.cpp:
2668         (WebKit::WebPage::setIsInWindow):
2669
2670 2013-09-11  Mario Sanchez Prada  <mario.prada@samsung.com>
2671
2672         [GTK] Remove Gail dependency from build system for GTK3
2673         https://bugs.webkit.org/show_bug.cgi?id=119673
2674
2675         Reviewed by Gustavo Noronha Silva.
2676
2677         * GNUmakefile.am: Removed GAIL_LIBS.
2678
2679 2013-09-11  Alberto Garcia  <berto@igalia.com>
2680
2681         [WK2] [GTK] LayerTreeHostGtk: don't set m_isValid to false if glContext() returns null
2682         https://bugs.webkit.org/show_bug.cgi?id=120892
2683
2684         Reviewed by Martin Robinson.
2685
2686         If the GL context cannot be created then m_isValid is set to false
2687         during the initialization of LayerTreeHostGtk.
2688
2689         This is not really necessary since the rest of the code already
2690         deals with that situation, so it doesn't have any effect other
2691         than breaking the assertion in invalidate().
2692
2693         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
2694         (WebKit::LayerTreeHostGtk::initialize):
2695
2696 2013-09-11  Commit Queue  <commit-queue@webkit.org>
2697
2698         Unreviewed, rolling out r154899.
2699         http://trac.webkit.org/changeset/154899
2700         https://bugs.webkit.org/show_bug.cgi?id=121162
2701
2702         It didn't fix the problem and broke other unit tests
2703         (Requested by KaL on #webkit).
2704
2705         * UIProcess/API/gtk/tests/WebViewTest.cpp:
2706         (WebViewTest::resizeView):
2707
2708 2013-09-11  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2709
2710         WTF::OwnPtr should behave similarly with the rest of WTF smart pointers
2711         https://bugs.webkit.org/show_bug.cgi?id=120773
2712
2713         Reviewed by Anders Carlsson.
2714
2715         Before the change OwnPtr could take either the pointer type or the pointed-to type, which was bad
2716         for the following reasons:
2717         - It distinguished OwnPtr behaviour from other WTF smart pointer classes behaviour (so it was confusing for the Client).
2718         - It was potential error-prone as it actually modified the type given by the Client in opaque way.
2719
2720         * UIProcess/API/efl/ewk_database_manager.cpp:
2721         (getDatabaseOriginsCallback):
2722         * UIProcess/API/efl/ewk_storage_manager.cpp:
2723         (getStorageOriginsCallback):
2724
2725 2013-09-11  ChangSeok Oh  <changseok.oh@collabora.com>
2726
2727         Unreviewed build fix.
2728
2729         * GNUmakefile.list.am: Duplicated NetscapePluginModuleNone.cpp & NetscapePluginNone.cpp.
2730         They cause build breaks of multiple definitions when targeting wayland build.
2731
2732 2013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2733
2734         Generate more HTML type checks and casting
2735         https://bugs.webkit.org/show_bug.cgi?id=121080
2736
2737         Reviewed by Andreas Kling.
2738
2739         Clean-up remained functions of HTML elements using auto-generated isFooElement(),
2740         and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
2741
2742         Besides this patch clean-up unnecessary checks which are being supported by
2743         auto-generated isFooElement().
2744
2745         * WebProcess/WebPage/WebFrame.cpp:
2746         (WebKit::WebFrame::containsAnyFormControls):
2747
2748 2013-09-10  Marcelo Morais  <m.morais@samsung.com>
2749
2750         [EFL] WebInspector: Move to new webinspector
2751         https://bugs.webkit.org/show_bug.cgi?id=119559
2752
2753         Reviewed by Gyuyoung Kim.
2754
2755         Loading the new Web Inspector page instead of the old inspector.
2756         Co-Author: Andre Loureiro <andre.vl@samsung.com>
2757
2758         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2759         (WebKit::WebInspectorProxy::inspectorPageURL):
2760
2761 2013-09-10  Sergio Villar Senin  <svillar@igalia.com>
2762
2763         [WK2][GTK] Frequent crashes when showing context menus in Debug builds
2764         https://bugs.webkit.org/show_bug.cgi?id=121099
2765
2766         Reviewed by Carlos Garcia Campos.
2767
2768         Disconnect signal handlers when destroying the context menu proxy
2769         object. This avoids use-after-free crashes when opening several
2770         context menus in a row.
2771
2772         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
2773         (WebKit::WebContextMenuProxyGtk::append):
2774         (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk):
2775         * UIProcess/gtk/WebContextMenuProxyGtk.h:
2776
2777 2013-09-10  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2778
2779         [Qt] make use of qtHaveModule() 
2780         https://bugs.webkit.org/show_bug.cgi?id=121090
2781
2782         Reviewed by Jocelyn Turcotte.
2783         Patch by Oswald Buddenhagen <oswald.buddenhagen@digia.com>
2784
2785         Use qtHaveModule instead of our own haveQtModule.
2786
2787         * WebProcess.pro:
2788
2789 2013-09-10  Carlos Garcia Campos  <cgarcia@igalia.com>
2790
2791         [GTK] /webkit2/WebKitWebView/default-menu fails when GtkSettings:gtk-show-input-method-menu is disabled
2792         https://bugs.webkit.org/show_bug.cgi?id=121088
2793
2794         Reviewed by Xan Lopez.
2795
2796         * UIProcess/API/gtk/tests/TestContextMenu.cpp: Always check
2797         Unicode submenu is present in default context menu for editable
2798         content.
2799
2800 2013-09-09  Dean Jackson  <dino@apple.com>
2801
2802         [WebGL] Allow multithreaded OpenGL contexts
2803         https://bugs.webkit.org/show_bug.cgi?id=121062
2804
2805         Reviewed by Simon Fraser.
2806
2807         Expose a new preference "multithreadedWebGLEnabled".
2808
2809         * Shared/WebPreferencesStore.h:
2810         * UIProcess/API/C/WKPreferences.cpp:
2811         (WKPreferencesSetMultithreadedWebGLEnabled):
2812         (WKPreferencesGetMultithreadedWebGLEnabled):
2813         * UIProcess/API/C/WKPreferencesPrivate.h:
2814         * WebProcess/WebPage/WebPage.cpp:
2815         (WebKit::WebPage::updatePreferences):
2816         * mac/WebKit2.order:
2817
2818 2013-09-09  Dean Jackson  <dino@apple.com>
2819
2820         Enable WebGL for OS X nightlies
2821         https://bugs.webkit.org/show_bug.cgi?id=121040
2822
2823         Reviewed by Beth Dakin.
2824
2825         * Shared/WebPreferencesStore.h: Set initial value to true.
2826
2827 2013-09-08  Anders Carlsson  <andersca@apple.com>
2828
2829         Begin moving off of TypeTraits.h
2830         https://bugs.webkit.org/show_bug.cgi?id=121006
2831
2832         Reviewed by Darin Adler.
2833
2834         Convert uses of WTF type traits to STL type traits.
2835
2836         * Platform/CoreIPC/ArgumentCoder.h:
2837         * Platform/CoreIPC/ArgumentCoders.h:
2838         * Platform/CoreIPC/ArgumentDecoder.h:
2839         * Platform/CoreIPC/ArgumentEncoder.h:
2840         * Platform/CoreIPC/Arguments.h:
2841         * Shared/API/c/WKSharedAPICast.h:
2842         (WebKit::toImpl):
2843
2844 2013-09-09  Gustavo Noronha Silva  <gns@gnome.org>
2845
2846         Unreviewed build fix.
2847
2848         * GNUmakefile.list.am: Typo - left-over \ from a copy/paste, most likely.
2849
2850 2013-09-09  Anton Obzhirov  <a.obzhirov@samsung.com>
2851
2852         [GTK] Cancel the current active WebKitAuthenticationRequest on load failed
2853         https://bugs.webkit.org/show_bug.cgi?id=120350
2854
2855         Reviewed by Carlos Garcia Campos.
2856
2857         The default dialog does not get closed and the authentication is not cancelled
2858         if loading fails or is stopped on a page which requires HTTP authentication.
2859
2860         This patch cancels the authentication request on load failed
2861         and adds new authentication cancelled signal in WebKitAuthenticationRequest
2862         to allow the application handling of authentication UI.
2863
2864         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
2865         (authenticationCancelled):
2866         (webkitAuthenticationDialogInitialize):
2867         (webkitAuthenticationDialogDispose):
2868         (webkitAuthenticationDialogNew):
2869         * UIProcess/API/gtk/WebKitAuthenticationDialog.h:
2870         * UIProcess/API/gtk/WebKitAuthenticationRequest.cpp:
2871         (webkit_authentication_request_class_init):
2872         (webkit_authentication_request_cancel):
2873         * UIProcess/API/gtk/WebKitWebView.cpp:
2874         (webkitWebViewAuthenticate):
2875         (webkitWebViewLoadFailed):
2876         (webkitWebViewHandleAuthenticationChallenge):
2877         (webkitWebViewCancelAuthenticationRequest):
2878         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
2879         (testWebViewAuthenticationLoadCancelled):
2880         (beforeAll):
2881
2882 2013-09-09  Brian Holt  <brian.holt@samsung.com>
2883
2884         [GTK][WK2] Update ContextMenu Download API
2885         https://bugs.webkit.org/show_bug.cgi?id=120763
2886
2887         Reviewed by Carlos Garcia Campos.
2888
2889         Mark the new Download items in the Context Menu with the Since
2890         tag, and include a unit test for Context Menu audio.
2891
2892         * UIProcess/API/gtk/WebKitContextMenuActions.h:
2893         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
2894         (testContextMenuDefaultMenu):
2895
2896 2013-09-08  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2897
2898         [wk2] REGRESSION (r154673): PDF scrolling moves very slowly
2899         https://bugs.webkit.org/show_bug.cgi?id=120542
2900
2901         Reviewed by Tim Horton.
2902
2903         Handle 'wheel' events in addition to 'mousewheel'. This fixes
2904         PDF scrolling.
2905
2906         * WebProcess/Plugins/PluginView.cpp:
2907         (WebKit::PluginView::handleEvent):
2908
2909 2013-09-08  Anders Carlsson  <andersca@apple.com>
2910
2911         Move WTF::notFound to Vector.h and delete NotFound.h
2912         https://bugs.webkit.org/show_bug.cgi?id=120990
2913
2914         Reviewed by Sam Weinig.
2915
2916         * Shared/EditorState.h:
2917
2918 2013-09-07  Anders Carlsson  <andersca@apple.com>
2919
2920         Get rid of PassOwnArrayPtr
2921         https://bugs.webkit.org/show_bug.cgi?id=120964
2922
2923         Reviewed by Andreas Kling.
2924
2925         Remove unneeded includes.
2926
2927         * Shared/ImmutableArray.h:
2928         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2929
2930 2013-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2931
2932         Range::ownerDocument should return Document&
2933         https://bugs.webkit.org/show_bug.cgi?id=120908
2934
2935         Reviewed by Andreas Kling.
2936
2937         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
2938         (-[WKDOMRange textRects]):
2939
2940 2013-09-05  Ryuan Choi  <ryuan.choi@samsung.com>
2941
2942         [CMAKE] Add c++0x into CXX_FLAGS as a default
2943         https://bugs.webkit.org/show_bug.cgi?id=120812
2944
2945         Unreviewed build fix for EFL ports.
2946
2947         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h: Added constexpr for in-class initialization.
2948         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp: Added space between strings.
2949         (EWK2UnitTest::EWK2UnitTestEnvironment::defaultTestPageUrl):
2950         (EWK2UnitTest::EWK2UnitTestEnvironment::defaultTheme):
2951         (EWK2UnitTest::EWK2UnitTestEnvironment::urlForResource):
2952
2953 2013-09-05  Alexey Proskuryakov  <ap@apple.com>
2954
2955         WKFullScreenWindowController extends lifetime of WKView, deleting it at a wrong time
2956         https://bugs.webkit.org/show_bug.cgi?id=120792
2957         <rdar://problem/14884666>
2958
2959         Reviewed by Jer Noble.
2960
2961         * UIProcess/API/mac/WKView.mm: (-[WKView fullScreenWindowController]):
2962         Use a newly minted initializer for the controller.
2963
2964         * UIProcess/mac/WKFullScreenWindowController.h: Removed unused web view accessors.
2965         Changed the class to take web view at initialization time.
2966
2967         * UIProcess/mac/WKFullScreenWindowController.mm:
2968         (-[WKFullScreenWindowController initWithWindow:webView:]): Initialize the controller
2969         inone step.
2970         (-[WKFullScreenWindowController dealloc]): WebView is now a raw pointer, no need
2971         to zero it.
2972         (-[WKFullScreenWindowController close]): Make sure to not leave a dangling WKView
2973         pointer (this method is indirectly but inevitably called when WKView is deallocated).
2974
2975 2013-09-05  Anders Carlsson  <andersca@apple.com>
2976
2977         Replace uses of CLANG_PRAGMA with #pragma
2978
2979         Rubber-stamped by Andreas Kling.
2980
2981         This file is only compiled by clang anyway.
2982
2983         * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
2984         (WebKit::InjectedBundle::load):
2985
2986 2013-09-05  Anders Carlsson  <andersca@apple.com>
2987
2988         GCAssertions.h should use STL type traits and static_assert
2989         https://bugs.webkit.org/show_bug.cgi?id=120785
2990
2991         Reviewed by Andreas Kling.
2992
2993         Update for JavaScriptCore changes.
2994
2995         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2996
2997 2013-09-05  Alberto Garcia  <berto@igalia.com>
2998
2999         [WK2] [GTK] Remove the test to disable AC under Wayland from WebKitWebViewGroup
3000         https://bugs.webkit.org/show_bug.cgi?id=120762
3001
3002         Reviewed by Gustavo Noronha Silva.
3003
3004         The code to disable AC under Wayland is not run if we're using
3005         WebKitTestRunner, so it would be better to move it to
3006         WebKitWebViewBase.
3007
3008         However it's not really necessary to do that, instead it's much
3009         simpler to disable accelerated compositing in all cases unless we
3010         know we can support it.
3011
3012         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3013         (webkitWebViewBaseUpdatePreferences):
3014         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
3015         (webkitWebViewGroupAttachSettingsToPageGroup):
3016
3017 2013-09-04  Alberto Garcia  <berto@igalia.com>
3018
3019         [WK2][GTK] ASSERTION in WebKit::LayerTreeHostGtk::invalidate
3020         https://bugs.webkit.org/show_bug.cgi?id=117733
3021
3022         Reviewed by Martin Robinson.
3023
3024         If the GL context cannot be created then an invalid
3025         LayerTreeHostGtk object will be returned.
3026
3027         This patch disables accelerated compositing if the system doesn't
3028         support it.
3029
3030         * UIProcess/API/gtk/WebKitWebView.cpp:
3031         (webkitWebViewUpdateSettings):
3032         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3033         (webkitWebViewBaseUpdatePreferences):
3034         (webkitWebViewBaseCreateWebPage):
3035         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
3036
3037 2013-09-04  Commit Queue  <commit-queue@webkit.org>
3038
3039         Unreviewed, rolling out r154989.
3040         http://trac.webkit.org/changeset/154989
3041         https://bugs.webkit.org/show_bug.cgi?id=120678
3042
3043         This patch might broke apps using webkitgtk not from the main
3044         thread (Requested by msanchez on #webkit).
3045
3046         * UIProcess/API/gtk/WebKitWebView.cpp:
3047         (webkitWebViewRunAsModal):
3048         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
3049         (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
3050
3051 2013-09-04  Zan Dobersek  <zdobersek@igalia.com>
3052
3053         [GTK] Add support for the Wayland build target
3054         https://bugs.webkit.org/show_bug.cgi?id=120627
3055
3056         Reviewed by Gustavo Noronha Silva.
3057
3058         * GNUmakefile.list.am: Build X11-specific NetscapePluginModule and NetscapePlugin classes if building the X11 target,
3059         fall back to the generic, empty classes otherwise.
3060         * PluginProcess/unix/PluginProcessMainUnix.cpp:
3061         (WebKit::PluginProcessMainUnix): Guard the NetscapePluginModule::scanPlugin() invocation with PLUGIN_ARCHITECTURE(X11),
3062         it's at the moment specific to the X11 implementation of the Netscape plugins.
3063         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp: Guard PluginProcessProxy::scanPlugin() with PLUGIN_ARCHITECTURE(X11),
3064         just like it's guarded in the PluginProcessProxy class declaration.
3065         * UIProcess/cairo/BackingStoreCairo.cpp: Additionally guard <gdk/gdkx.h> and WidgetBackingStoreGtkX11 inclusion and use
3066         with PLATFORM(X11), this code should only be built when building the X11 target.
3067         (WebKit::createBackingStoreForGTK):
3068         * UIProcess/gtk/WebPageProxyGtk.cpp: Guard the createPluginContainer() and windowedPluginGeometryDidChange() methods and their
3069         helper functions and objects with PLUGIN_ARCHITECTURE(X11), just like they're guarded in the WebPageProxy class declaration.
3070         * config.h: Only define PLUGIN_ARCHITECTURE_X11 to 1 if we're actually building the X11 target.
3071
3072 2013-09-03  Darin Adler  <darin@apple.com>
3073
3074         REGRESSION (r154967) window resize is very choppy
3075         https://bugs.webkit.org/show_bug.cgi?id=120653
3076
3077         Reviewed by Andreas Kling.
3078
3079         Andreas Kling spotted the bad change.
3080
3081         * Platform/CoreIPC/Connection.cpp:
3082         (CoreIPC::Connection::waitForMessage): Roll out this incorrect change.
3083         The code here is not the same as a call to take.
3084
3085 2013-09-03  Anton Obzhirov  <a.obzhirov@samsung.com>
3086
3087         [GTK] gdk threads deprecated functions calls should be refactored
3088         https://bugs.webkit.org/show_bug.cgi?id=120070
3089
3090         Reviewed by Mario Sanchez Prada.
3091
3092         Removed deprecated functions gdk_threads_leave()/gdk_threads_enter() functions since
3093         there is no more checks for threads lock in GTK 3.6.
3094
3095         * UIProcess/API/gtk/WebKitWebView.cpp:
3096         (webkitWebViewRunAsModal):
3097         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
3098         (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
3099
3100 2013-09-03  Brian Holt  <brian.holt@samsung.com>
3101
3102         [GTK] [WK2] TestContextMenu default-menu fails
3103         https://bugs.webkit.org/show_bug.cgi?id=120459
3104
3105         Reviewed by Gustavo Noronha Silva.
3106
3107         Add context menu items for downloading media elements.
3108
3109         * UIProcess/API/gtk/WebKitContextMenuActions.cpp:
3110         (webkitContextMenuActionGetActionTag):
3111         (webkitContextMenuActionGetForContextMenuItem):
3112         (webkitContextMenuActionGetLabel):
3113         * UIProcess/API/gtk/WebKitContextMenuActions.h:
3114         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
3115
3116 2013-09-02  Darin Adler  <darin@apple.com>
3117
3118         Cut down on double hashing and code needlessly using hash table iterators
3119         https://bugs.webkit.org/show_bug.cgi?id=120611
3120
3121         Reviewed by Andreas Kling.
3122
3123         * Platform/CoreIPC/Connection.cpp:
3124         (CoreIPC::Connection::waitForMessage): Use take instead of find/remove.
3125
3126         * UIProcess/WebPreferences.cpp:
3127         (WebKit::WebPreferences::removePageGroup): Use the return value from remove
3128         instead of find/remove.
3129
3130         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
3131         (WebKit::GeolocationPermissionRequestManager::cancelRequestForGeolocation):
3132         (WebKit::GeolocationPermissionRequestManager::didReceiveGeolocationPermissionDecision):
3133         Use take instead of find/remove.
3134
3135         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
3136         (WebKit::NetscapePlugin::frameDidFinishLoading): Use take instead of find/remove.
3137         (WebKit::NetscapePlugin::frameDidFail): Use take instead of find/remove.
3138
3139         * WebProcess/WebPage/WebBackForwardListProxy.cpp:
3140         (WebKit::WebBackForwardListProxy::removeItem): Use take instead of find/remove.
3141
3142         * WebProcess/WebPage/WebPage.cpp:
3143         (WebKit::WebPage::didFinishCheckingText): Use take instead of get/remove so we
3144         hash only once.
3145         (WebKit::WebPage::didCancelCheckingText): Ditto.
3146         (WebKit::WebPage::stopExtendingIncrementalRenderingSuppression): Use the return
3147         value from remove instead of contains/remove so we hash only once.
3148
3149 2013-09-02  Darin Adler  <darin@apple.com>
3150
3151         [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
3152         https://bugs.webkit.org/show_bug.cgi?id=120569
3153
3154         Reviewed by Andy Estes.
3155
3156         * Platform/mac/StringUtilities.mm:
3157         (WebKit::nsStringFromWebCoreString): Use CFBridgingRelease. Also
3158         changed condition to be a little cleaner and use a constant string for empty
3159         strings as well as null strings.
3160
3161         * UIProcess/API/mac/WKBrowsingContextController.mm:
3162         (autoreleased): Switched from autorelease to CFBridgingRelease for strings,
3163         which eliminates a type cast and makes this work under GC, although I don't
3164         think we should compile WebKit2 for GC.
3165
3166         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
3167         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
3168         Use CFBridgingRelease.
3169
3170 2013-09-02  Csaba Osztrogonác  <ossy@webkit.org>
3171
3172         REGRESSION(r154909): caused many crashes on Qt WK2, EFL WK2
3173         https://bugs.webkit.org/show_bug.cgi?id=120600
3174
3175         Reviewed by Andreas Kling.
3176
3177         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3178         (CoreIPC::::decode): keyTime should be double here too.
3179
3180 2013-09-01  Alexey Proskuryakov  <ap@apple.com>
3181
3182         [WK2][Mac] Drag and drop tests interfere with user's UI
3183         https://bugs.webkit.org/show_bug.cgi?id=120538
3184
3185         Reviewed by Dan Bernstein.
3186
3187         * UIProcess/API/mac/WKView.mm: (-[WKView _setDragImage:at:linkDrag:]): Make it possible
3188         to override drag initiation in subclasses. It is a bit unfortunate that this exposes
3189         a deprecated API that we call, but probably not unfortunate enough to invent a new
3190         scary looking name for the same function, and conditionally call that if implemented
3191         by subclass.
3192
3193 2013-08-31  Santosh Mahto  <santosh.ma@samsung.com>
3194
3195         warning: unused parameter point and area in EwkView.cpp:1390
3196         https://bugs.webkit.org/show_bug.cgi?id=120545
3197
3198         Reviewed by Darin Adler.
3199
3200         * UIProcess/API/efl/EwkView.cpp:
3201         (EwkView::didFindZoomableArea): Added UNUSED_PARAM.
3202
3203 2013-08-31  Jae Hyun Park  <jae.park@company100.net>
3204
3205         Remove unused variable in LayerTreeHost
3206         https://bugs.webkit.org/show_bug.cgi?id=118950
3207
3208         Reviewed by Anders Carlsson.
3209
3210         m_waitingForUIProcess has been renamed to m_isWaitingForRenderer as of
3211         r152183, and it is a private variable in CoordinatedLayerTreeHost. Thus,
3212         we don't need m_waitingForUIProcess in LayerTreeHost.
3213
3214         * WebProcess/WebPage/LayerTreeHost.h:
3215
3216 2013-08-30  Brian Holt  <brian.holt@samsung.com>
3217
3218         [GTK] [WK2] TestWebKitWebView snapshot fails
3219         https://bugs.webkit.org/show_bug.cgi?id=120404
3220
3221         Reviewed by Darin Adler.
3222
3223         Fixed the snapshot test failure caused by GTK no longer allowing
3224         widgets to resize.  Instead, resize the WebView by resizing the
3225         window and waiting for the event to complete asynchronously.
3226
3227         * UIProcess/API/gtk/tests/WebViewTest.cpp:
3228         (WebViewTest::resizeView):
3229
3230 2013-08-30  Csaba Osztrogonác  <ossy@webkit.org>
3231
3232         Add USE(PROTECTION_SPACE_AUTH_CALLBACK) guards to canAuthenticateAgainstProtectionSpace()
3233         https://bugs.webkit.org/show_bug.cgi?id=120351
3234
3235         Reviewed by Darin Adler.
3236
3237         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp:
3238         * NetworkProcess/AsynchronousNetworkLoaderClient.h:
3239         * NetworkProcess/NetworkLoaderClient.h:
3240         * NetworkProcess/SynchronousNetworkLoaderClient.cpp:
3241         * NetworkProcess/SynchronousNetworkLoaderClient.h:
3242
3243 2013-08-30  Gabor Abraham  <abrhm@inf.u-szeged.hu>
3244
3245         Fix, remove unused parameter in UIProcess/WebColorPicker.cpp.
3246         https://bugs.webkit.org/show_bug.cgi?id=120525
3247
3248         Reviewed by Darin Adler.
3249
3250         * UIProcess/WebColorPicker.cpp:
3251         (WebKit::WebColorPicker::showColorPicker):
3252
3253 2013-08-30  Tamas Czene  <tczene@inf.u-szeged.hu>
3254
3255         Resolve unused parameter warning in WebPlatformStrategies.cpp
3256         https://bugs.webkit.org/show_bug.cgi?id=120515
3257
3258         Reviewed by Darin Adler.
3259
3260         * WebProcess/WebPage/TapHighlightController.cpp:
3261         (WebKit::TapHighlightController::drawRect):
3262
3263 2013-08-30  Tamas Czene  <tczene@inf.u-szeged.hu>
3264
3265         Resolve unused parameter warning in FindController.cpp
3266         https://bugs.webkit.org/show_bug.cgi?id=120516
3267
3268         Reviewed by Darin Adler.
3269
3270         * WebProcess/WebPage/FindController.cpp:
3271         (WebKit::FindController::drawRect):
3272
3273 2013-08-30  Tamas Czene  <tczene@inf.u-szeged.hu>
3274
3275         Resolve unused parameter warning in WKBundlePageOverlay.cpp
3276         https://bugs.webkit.org/show_bug.cgi?id=120521
3277
3278         Reviewed by Andreas Kling.
3279
3280         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
3281         (WKBundlePageOverlayFractionFadedIn):
3282
3283 2013-08-30  Antti Koivisto  <antti@apple.com>
3284
3285         Remove code behind ENABLE(DIALOG_ELEMENT)
3286         https://bugs.webkit.org/show_bug.cgi?id=120467
3287
3288         Reviewed by Darin Adler.
3289
3290         * Configurations/FeatureDefines.xcconfig:
3291
3292 2013-08-29  Sam Weinig  <sam@webkit.org>
3293
3294         Add ENABLE gaurds for Promises
3295         https://bugs.webkit.org/show_bug.cgi?id=120488
3296
3297         Reviewed by Andreas Kling.
3298
3299         * Configurations/FeatureDefines.xcconfig:
3300
3301 2013-08-29  Zan Dobersek  <zdobersek@igalia.com>
3302
3303         [Automake] libWebCoreDOM.la could use a better name
3304         https://bugs.webkit.org/show_bug.cgi?id=120232
3305
3306         Reviewed by Martin Robinson.
3307
3308         * GNUmakefile.am: libWebCoreDOM has a new name - libGObjectDOMBindings.
3309
3310 2013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
3311
3312         Web Inspector: Download Web Archive of Inspected Page
3313         https://bugs.webkit.org/show_bug.cgi?id=119774
3314
3315         Reviewed by Timothy Hatcher.
3316
3317         Update to support InspectorFrontendHost.save's new base64Encoded
3318         parameter. It means the incoming content is binary data, not a string.
3319
3320         * UIProcess/WebInspectorProxy.cpp:
3321         (WebKit::WebInspectorProxy::save):
3322         * UIProcess/WebInspectorProxy.h:
3323         * UIProcess/WebInspectorProxy.messages.in:
3324         * UIProcess/efl/WebInspectorProxyEfl.cpp:
3325         (WebKit::WebInspectorProxy::platformSave):
3326         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
3327         (WebKit::WebInspectorProxy::platformSave):
3328         * UIProcess/mac/WebInspectorProxyMac.mm:
3329         (WebKit::WebInspectorProxy::platformSave):
3330         * UIProcess/qt/WebInspectorProxyQt.cpp:
3331         (WebKit::WebInspectorProxy::platformSave):
3332         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
3333         (WebKit::WebInspectorFrontendClient::save):
3334         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
3335         * WebProcess/WebPage/WebInspector.cpp:
3336         (WebKit::WebInspector::save):
3337         * WebProcess/WebPage/WebInspector.h:
3338
3339 2013-08-29  Brian Holt  <brian.holt@samsung.com>
3340
3341         [GTK] [WK2] TestWebKitWebView page-visibility fails
3342         https://bugs.webkit.org/show_bug.cgi?id=120406
3343
3344         Reviewed by Gustavo Noronha Silva.
3345
3346         Removed the webkit prefix for document visibility properties.
3347
3348         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
3349         (testWebViewPageVisibility):
3350
3351 2013-08-28  Chris Curtis  <chris_curtis@apple.com>
3352
3353         https://bugs.webkit.org/show_bug.cgi?id=119548
3354         Refactoring Exception throws.
3355
3356         Reviewed by Geoffrey Garen.
3357         
3358         Moved setting an exception into the vm, These functions changed to use the new functionality.
3359
3360         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
3361         (WebKit::JSNPObject::callMethod):
3362         (WebKit::JSNPObject::callObject):
3363         (WebKit::JSNPObject::callConstructor):
3364         (WebKit::JSNPObject::throwInvalidAccessError):
3365         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
3366         (WebKit::NPRuntimeObjectMap::moveGlobalExceptionToExecState):
3367
3368 2013-08-28  Anders Carlsson  <andersca@apple.com>
3369
3370         Allow the Flash plug-in to open its preference pane
3371         https://bugs.webkit.org/show_bug.cgi?id=120431
3372         <rdar://problem/14857039>
3373
3374         Reviewed by Andreas Kling.
3375
3376         Forward the -[NSWorkspace openFile:] call to the UI process and allow opening
3377         the Flash preference pane (if Flash asks for it).
3378
3379         * PluginProcess/PluginProcess.h:
3380         * PluginProcess/mac/PluginProcessMac.mm:
3381         (WebKit::replacedNSWorkspace_openFile):
3382         (WebKit::initializeCocoaOverrides):
3383         (WebKit::PluginProcess::openFile):
3384         * UIProcess/Plugins/PluginProcessProxy.h:
3385         * UIProcess/Plugins/PluginProcessProxy.messages.in:
3386         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
3387         (WebKit::PluginProcessProxy::openURL):
3388         (WebKit::shouldOpenFile):
3389         (WebKit::PluginProcessProxy::openFile):
3390
3391 2013-08-28  Tamas Czene  <tczene@inf.u-szeged.hu>
3392
3393         [wk2] Resolve unused parameters in WebPlatformStrategies.cpp
3394         https://bugs.webkit.org/show_bug.cgi?id=120410
3395
3396         Reviewed by Darin Adler.
3397
3398         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3399         (WebKit::WebPlatformStrategies::getPluginInfo):
3400         (WebKit::WebPlatformStrategies::transientLocalStorageNamespace):
3401
3402 2013-08-28  Tamas Czene  <tczene@inf.u-szeged.hu>
3403
3404         [wk2] Resolve unused parameter warnings in the WebProcess.cpp
3405         https://bugs.webkit.org/show_bug.cgi?id=120412
3406
3407         Reviewed by Darin Adler.
3408
3409         * WebProcess/WebProcess.cpp:
3410         (WebKit::WebProcess::startMemorySampler):
3411
3412 2013-08-28  Darin Adler  <darin@apple.com>
3413
3414         Eliminate Pasteboard::generalPasteboard
3415         https://bugs.webkit.org/show_bug.cgi?id=120392
3416
3417         Reviewed by Anders Carlsson.
3418
3419         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
3420         (WebKit::WebEditorClient::updateGlobalSelection):
3421         Use createForGlobalSelection instead of generalPasteboard and setSelectionMode.
3422
3423 2013-08-28  Ábrahám Gábor  <abrhm@inf.u-szeged.hu>
3424
3425         Fix unused variable warning.
3426         https://bugs.webkit.org/show_bug.cgi?id=120396
3427
3428         Reviewed by Allan Sandfeld Jensen.
3429
3430         Fix unused variable compiler warning in PageOverlay.h
3431
3432         * WebProcess/WebPage/PageOverlay.h:
3433         (WebKit::PageOverlay::Client::copyAccessibilityAttributeValue):
3434         (WebKit::PageOverlay::Client::copyAccessibilityAttributeNames):
3435
3436
3437 2013-08-28  Zan Dobersek  <zdobersek@igalia.com>
3438
3439         [GTK][WK2] Only set up a RedirectedXCompositeWindow if running under an X11 display
3440         https://bugs.webkit.org/show_bug.cgi?id=120321
3441
3442         Reviewed by Gustavo Noronha Silva.
3443
3444         Only set up the RedirectedXCompositeWindow member of the WebKitWebViewBasePrivate struct
3445         if we're running under an X11 display. This is now done in the webkitWebViewBaseConstructed
3446         function rather than the constructor, which is removed.
3447
3448         This allows for the UIProcess to run in a Wayland environment even when built with accelerated
3449         compositing enabled. Of course, at the moment there's no support yet for accelerated compositing
3450         under Wayland, so we fall back to rendering the backing store. No changes are introduced to
3451         the behavior under X11 - accelerated compositing will be used where possible, if supported.
3452
3453         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3454         (webkitWebViewBaseConstructed):
3455
3456 2013-08-28  Zan Dobersek  <zdobersek@igalia.com>
3457
3458         [GTK][WK2] Disable accelerated compositing under Wayland
3459         https://bugs.webkit.org/show_bug.cgi?id=120347
3460
3461         Reviewed by Martin Robinson.
3462
3463         Accelerated compositing is not yet supported under the Wayland display protocol,
3464         so it should be disabled. Since it is enabled by default and the GTK WK2 API does
3465         not provide any way to change that, it's enough to disable it when attaching the
3466         WebKitSettings object to the WebPageGroup if running under Wayland.
3467
3468         * UIProcess/API/gtk/WebKitWebViewGroup.cpp:
3469         (webkitWebViewGroupAttachSettingsToPageGroup):
3470
3471 2013-08-28  Alexandre Abreu  <alexandre.abreu@canonical.com>
3472
3473         Add a 'isMainFrame' parameter to QWebNavigationRequest.
3474         https://bugs.webkit.org/show_bug.cgi?id=118860
3475
3476         Reviewed by Simon Hausmann.
3477
3478         * UIProcess/API/qt/qwebnavigationrequest.cpp:
3479         (QWebNavigationRequestPrivate::QWebNavigationRequestPrivate):
3480         (QWebNavigationRequest::QWebNavigationRequest):
3481         (QWebNavigationRequest::navigationType):
3482         (QWebNavigationRequest::isMainFrame):
3483         * UIProcess/API/qt/qwebnavigationrequest_p.h:
3484         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp:
3485         * UIProcess/qt/QtWebPagePolicyClient.cpp:
3486         (WebKit::QtWebPagePolicyClient::decidePolicyForNavigationAction):
3487         * UIProcess/qt/QtWebPagePolicyClient.h:
3488
3489 2013-08-27  Luciano Wolf  <luciano.wolf@openbossa.org>
3490
3491         100% cpu usage for "transition: opacity" animation
3492         https://bugs.webkit.org/show_bug.cgi?id=120012
3493
3494         Reviewed by Noam Rosenthal.
3495
3496         Schedule animation timer after scheduling a layer flush. This way it
3497         won't overwrite animation timer with "0", thus avoiding 100% cpu usage.
3498
3499         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3500         (WebKit::CoordinatedLayerTreeHost::scheduleAnimation):
3501
3502 2013-08-27  Csaba Osztrogonác  <ossy@webkit.org>
3503
3504         [WK2][Soup] Add WebFrameNetworkingContext::webFrameLoaderClient() after r154490
3505         https://bugs.webkit.org/show_bug.cgi?id=120353
3506
3507         Reviewed by Alexey Proskuryakov.
3508
3509         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3510         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
3511         (WebKit::WebFrameNetworkingContext::webFrameLoaderClient):
3512         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
3513
3514 2013-08-26  Santosh Mahto  <santosh.ma@samsung.com>
3515
3516         Fixing compilation warning "unused parameter" in WebPageProxy.cpp
3517         https://bugs.webkit.org/show_bug.cgi?id=120205
3518
3519         Reviewed by Anders Carlsson.
3520
3521         * UIProcess/WebPageProxy.cpp:
3522         (WebKit::WebPageProxy::findPlugin):
3523         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
3524         Added UNUSED_PARAM to avoid warning.
3525
3526 2013-08-23  Andy Estes  <aestes@apple.com>
3527
3528         Fix issues found by the Clang Static Analyzer