c737041e3ad97e6ff80a6dae8e147c5d9ef0bd56
[WebKit.git] / Source / WebKit2 / ChangeLog
1 2011-10-17  Nayan Kumar K  <nayankk@motorola.com>
2
3         [WebKit2][gtk] Rename WEBKIT_POLICY_ERROR_CANNOT_SHOW_URL to WEBKIT_POLICY_ERROR_CANNOT_SHOW_URI
4         https://bugs.webkit.org/show_bug.cgi?id=70040
5
6         Reviewed by Martin Robinson.
7
8         * UIProcess/API/gtk/WebKitError.cpp:
9         * UIProcess/API/gtk/WebKitError.h:
10
11 2011-10-16  Adam Barth  <abarth@webkit.org>
12
13         Always enable ENABLE(DOM_STORAGE)
14         https://bugs.webkit.org/show_bug.cgi?id=70189
15
16         Reviewed by Eric Seidel.
17
18         * Configurations/FeatureDefines.xcconfig:
19         * WebProcess/WebPage/WebPage.cpp:
20         (WebKit::WebPage::updatePreferences):
21         * WebProcess/WebProcess.cpp:
22         (WebKit::WebProcess::initializeWebProcess):
23
24 2011-10-15  Adam Barth  <abarth@webkit.org>
25
26         Rename ENABLE(TILED_BACKING_STORE) to USE(TILED_BACKING_STORE)
27         https://bugs.webkit.org/show_bug.cgi?id=70194
28
29         Reviewed by Daniel Bates.
30
31         * Shared/DrawingAreaInfo.h:
32         * UIProcess/DrawingAreaProxy.h:
33         * UIProcess/DrawingAreaProxy.messages.in:
34         * UIProcess/PageClient.h:
35         * UIProcess/TiledDrawingAreaProxy.cpp:
36         * UIProcess/TiledDrawingAreaProxy.h:
37         * UIProcess/WebPageProxy.cpp:
38         * UIProcess/WebPageProxy.h:
39         * UIProcess/WebPageProxy.messages.in:
40         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
41         (WebKit::WebChromeClient::contentsSizeChanged):
42         * WebProcess/WebCoreSupport/WebChromeClient.h:
43         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
44         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
45         * WebProcess/WebPage/DrawingArea.cpp:
46         (WebKit::DrawingArea::create):
47         * WebProcess/WebPage/DrawingArea.h:
48         * WebProcess/WebPage/DrawingArea.messages.in:
49         * WebProcess/WebPage/TiledBackingStoreRemoteTile.cpp:
50         * WebProcess/WebPage/TiledBackingStoreRemoteTile.h:
51         * WebProcess/WebPage/TiledDrawingArea.cpp:
52         * WebProcess/WebPage/TiledDrawingArea.h:
53         * WebProcess/WebPage/WebPage.cpp:
54         (WebKit::WebPage::setSize):
55         * WebProcess/WebPage/WebPage.h:
56         * WebProcess/WebPage/WebPage.messages.in:
57
58 2011-10-15  Sheriff Bot  <webkit.review.bot@gmail.com>
59
60         Unreviewed, rolling out r97559.
61         http://trac.webkit.org/changeset/97559
62         https://bugs.webkit.org/show_bug.cgi?id=70176
63
64         Broke build on Mac (Requested by noamr_ on #webkit).
65
66         * DerivedSources.pro:
67         * Platform/CoreIPC/MessageID.h:
68         * Scripts/webkit2/messages.py:
69         * Shared/LayerTreeContext.h:
70         * Shared/WebLayerTreeInfo.cpp:
71         (WebKit::WebLayerInfo::encode):
72         (WebKit::WebLayerInfo::decode):
73         * Shared/WebLayerTreeInfo.h:
74         * Shared/qt/LayerTreeContextQt.cpp:
75         (WebKit::LayerTreeContext::LayerTreeContext):
76         (WebKit::LayerTreeContext::~LayerTreeContext):
77         (WebKit::LayerTreeContext::encode):
78         (WebKit::LayerTreeContext::decode):
79         (WebKit::LayerTreeContext::isEmpty):
80         (WebKit::operator==):
81         * UIProcess/DrawingAreaProxy.cpp:
82         * UIProcess/DrawingAreaProxy.h:
83         * UIProcess/DrawingAreaProxyImpl.cpp:
84         (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
85         * UIProcess/DrawingAreaProxyImpl.h:
86         * UIProcess/LayerTreeHostProxy.h: Removed.
87         * UIProcess/LayerTreeHostProxy.messages.in: Removed.
88         * UIProcess/WebPageProxy.cpp:
89         (WebKit::WebPageProxy::didReceiveMessage):
90         * UIProcess/qt/LayerTreeHostProxyQt.cpp: Removed.
91         * WebKit2.pro:
92         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
93         (WebCore::deletedLayerIDs):
94         (WebCore::WebGraphicsLayer::WebGraphicsLayer):
95         (WebCore::WebGraphicsLayer::~WebGraphicsLayer):
96         (WebCore::WebGraphicsLayer::setChildren):
97         (WebCore::WebGraphicsLayer::addChild):
98         (WebCore::WebGraphicsLayer::addChildAtIndex):
99         (WebCore::WebGraphicsLayer::addChildAbove):
100         (WebCore::WebGraphicsLayer::addChildBelow):
101         (WebCore::WebGraphicsLayer::replaceChild):
102         (WebCore::WebGraphicsLayer::removeFromParent):
103         (WebCore::WebGraphicsLayer::setContentsRect):
104         (WebCore::WebGraphicsLayer::setContentsToImage):
105         (WebCore::WebGraphicsLayer::setNeedsDisplay):
106         (WebCore::WebGraphicsLayer::setNeedsDisplayInRect):
107         (WebCore::WebGraphicsLayer::setContentsNeedsDisplay):
108         (WebCore::WebGraphicsLayer::didSynchronize):
109         (WebCore::WebGraphicsLayer::layerInfo):
110         (WebCore::WebGraphicsLayer::syncCompositingState):
111         (WebCore::WebGraphicsLayer::needsDisplayRect):
112         (WebCore::WebGraphicsLayer::takeLayersToDelete):
113         (WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
114         (WebCore::divideIntoTiles):
115         (WebCore::collectCompositingInfoForThisLayer):
116         (WebCore::collectCompositingInfoRecursively):
117         (WebCore::WebGraphicsLayer::sendLayersToUIProcess):
118         * WebProcess/WebCoreSupport/WebGraphicsLayer.h:
119         * WebProcess/WebPage/DrawingArea.h:
120         * WebProcess/WebPage/DrawingAreaImpl.cpp:
121         * WebProcess/WebPage/DrawingAreaImpl.h:
122         * WebProcess/WebPage/LayerTreeHost.cpp:
123         (WebKit::LayerTreeHost::create):
124         * WebProcess/WebPage/LayerTreeHost.h:
125         * WebProcess/WebPage/LayerTreeHost.messages.in: Removed.
126         * WebProcess/WebPage/TiledDrawingArea.cpp:
127         * WebProcess/WebPage/TiledDrawingArea.h:
128         * WebProcess/WebPage/WebPage.cpp:
129         (WebKit::WebPage::didReceiveMessage):
130         * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
131         * WebProcess/WebPage/qt/LayerTreeHostQt.h: Removed.
132
133 2011-10-15  No'am Rosenthal  <noam.rosenthal@nokia.com>
134
135         [Qt][WK2] Synchronize tiling with accelerated compositing
136         https://bugs.webkit.org/show_bug.cgi?id=69151
137
138         Reviewed by Simon Hausmann.
139
140         Make the tiled "non-composited" content and the composited layers go through the same
141         code path on WebKit2. Instead of having a "drawing area" that handles the non-composited
142         content and a seperate layer tree, we put everything in a layer tree, with the non-
143         composited content being a layer in the tree.
144
145         This allows fixing several issues with websites that have large content areas that are
146         composited or overlap with composited layers.
147
148         Layer-tree synchronization is done by passing WebKit2 messages between a LayerTreeHost
149         on the WebProcess and a LayerTreeHostProxy on the UI process. Every layer in the tree has
150         its own tiled backing store, and uses the LayerTreeHost communication channel to pass
151         content up to the UI process. The UI process will later creates its own GraphicsLayer tree,
152         based on TextureMapper, which can be painted directly with OpenGL.
153
154         Several optimizations are available for the non-composited layer as well, e.g. specifying
155         a trajectory and updating the visible rect together with the content scale.
156
157         This code is currently disabled, a separate patch will enable it and glue it to
158         QTouchWebPage.
159
160         * DerivedSources.pro:
161         * Platform/CoreIPC/MessageID.h:
162         * Scripts/webkit2/messages.py:
163         * Shared/LayerTreeContext.h:
164         * Shared/WebLayerTreeInfo.cpp:
165         (WebKit::WebLayerInfo::encode):
166         (WebKit::WebLayerInfo::decode):
167         * Shared/WebLayerTreeInfo.h:
168         * Shared/qt/LayerTreeContextQt.cpp:
169         (WebKit::LayerTreeContext::LayerTreeContext):
170         (WebKit::LayerTreeContext::~LayerTreeContext):
171         (WebKit::LayerTreeContext::encode):
172         (WebKit::LayerTreeContext::decode):
173         (WebKit::LayerTreeContext::isEmpty):
174         (WebKit::operator==):
175         * UIProcess/DrawingAreaProxy.cpp:
176         (WebKit::DrawingAreaProxy::updateWebView):
177         (WebKit::DrawingAreaProxy::contentsRect):
178         * UIProcess/DrawingAreaProxy.h:
179         (WebKit::DrawingAreaProxy::viewportVisibleRect):
180         (WebKit::DrawingAreaProxy::isBackingStoreReady):
181         (WebKit::DrawingAreaProxy::paintToCurrentGLContext):
182         (WebKit::DrawingAreaProxy::setVisibleContentsRectAndScale):
183         (WebKit::DrawingAreaProxy::setVisibleContentRectTrajectoryVector):
184         (WebKit::DrawingAreaProxy::createTileForLayer):
185         (WebKit::DrawingAreaProxy::updateTileForLayer):
186         (WebKit::DrawingAreaProxy::removeTileForLayer):
187         (WebKit::DrawingAreaProxy::didReceiveLayerTreeHostProxyMessage):
188         (WebKit::DrawingAreaProxy::page):
189         * UIProcess/DrawingAreaProxyImpl.cpp:
190         (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
191         (WebKit::DrawingAreaProxyImpl::didReceiveLayerTreeHostProxyMessage):
192         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRectAndScale):
193         (WebKit::DrawingAreaProxyImpl::setVisibleContentRectTrajectoryVector):
194         (WebKit::DrawingAreaProxyImpl::paintToCurrentGLContext):
195         * UIProcess/DrawingAreaProxyImpl.h:
196         * UIProcess/LayerTreeHostProxy.h: Added.
197         (WebKit::LayerTreeHostProxy::layerByID):
198         (WebKit::LayerTreeHostProxy::rootLayer):
199         (WebKit::LayerTreeHostProxy::notifyAnimationStarted):
200         (WebKit::LayerTreeHostProxy::notifySyncRequired):
201         (WebKit::LayerTreeHostProxy::showDebugBorders):
202         (WebKit::LayerTreeHostProxy::showRepaintCounter):
203         (WebKit::LayerTreeHostProxy::paintContents):
204         * UIProcess/LayerTreeHostProxy.messages.in: Added.
205         * UIProcess/WebPageProxy.cpp:
206         (WebKit::WebPageProxy::didReceiveMessage):
207         * UIProcess/qt/LayerTreeHostProxyQt.cpp: Added.
208         * WebKit2.pro:
209         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
210         (WebCore::WebGraphicsLayer::WebGraphicsLayer):
211         (WebCore::WebGraphicsLayer::~WebGraphicsLayer):
212         (WebCore::WebGraphicsLayer::setChildren):
213         (WebCore::WebGraphicsLayer::addChild):
214         (WebCore::WebGraphicsLayer::addChildAtIndex):
215         (WebCore::WebGraphicsLayer::addChildAbove):
216         (WebCore::WebGraphicsLayer::addChildBelow):
217         (WebCore::WebGraphicsLayer::replaceChild):
218         (WebCore::WebGraphicsLayer::removeFromParent):
219         (WebCore::WebGraphicsLayer::setContentsNeedsDisplay):
220         (WebCore::WebGraphicsLayer::setContentsToImage):
221         (WebCore::WebGraphicsLayer::setNeedsDisplay):
222         (WebCore::WebGraphicsLayer::setNeedsDisplayInRect):
223         (WebCore::WebGraphicsLayer::syncCompositingState):
224         (WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
225         (WebCore::WebGraphicsLayer::tiledBackingStorePaintBegin):
226         (WebCore::WebGraphicsLayer::setContentsScale):
227         (WebCore::WebGraphicsLayer::setRootLayer):
228         (WebCore::WebGraphicsLayer::setVisibleContentRectTrajectoryVector):
229         (WebCore::WebGraphicsLayer::setVisibleContentRect):
230         (WebCore::WebGraphicsLayer::tiledBackingStorePaint):
231         (WebCore::WebGraphicsLayer::tiledBackingStorePaintEnd):
232         (WebCore::WebGraphicsLayer::tiledBackingStoreUpdatesAllowed):
233         (WebCore::WebGraphicsLayer::tiledBackingStoreContentsRect):
234         (WebCore::WebGraphicsLayer::tiledBackingStoreVisibleRect):
235         (WebCore::WebGraphicsLayer::tiledBackingStoreBackgroundColor):
236         (WebCore::WebGraphicsLayer::createTile):
237         (WebCore::WebGraphicsLayer::updateTile):
238         (WebCore::WebGraphicsLayer::removeTile):
239         (WebCore::WebGraphicsLayer::updateTileBuffersRecursively):
240         (WebCore::WebGraphicsLayer::layerTreeTileClient):
241         (WebCore::WebGraphicsLayer::updateContentBuffers):
242         * WebProcess/WebCoreSupport/WebGraphicsLayer.h:
243         (WebCore::WebGraphicsLayer::setLayerTreeTileClient):
244         * WebProcess/WebPage/DrawingArea.h:
245         * WebProcess/WebPage/DrawingAreaImpl.cpp:
246         (WebKit::DrawingAreaImpl::didReceiveLayerTreeHostMessage):
247         * WebProcess/WebPage/DrawingAreaImpl.h:
248         * WebProcess/WebPage/LayerTreeHost.cpp:
249         (WebKit::LayerTreeHost::create):
250         * WebProcess/WebPage/LayerTreeHost.h:
251         (WebKit::LayerTreeHost::setVisibleContentRectAndScale):
252         (WebKit::LayerTreeHost::setVisibleContentRectTrajectoryVector):
253         (WebKit::LayerTreeHost::setVisibleContentRectForLayer):
254         (WebKit::LayerTreeHost::renderNextFrame):
255         * WebProcess/WebPage/LayerTreeHost.messages.in: Added.
256         * WebProcess/WebPage/TiledDrawingArea.cpp:
257         (WebKit::TiledDrawingArea::didReceiveLayerTreeHostMessage):
258         * WebProcess/WebPage/TiledDrawingArea.h:
259         * WebProcess/WebPage/WebPage.cpp:
260         (WebKit::WebPage::didReceiveMessage):
261         * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
262         (WebKit::LayerTreeHostQt::create):
263         (WebKit::LayerTreeHostQt::~LayerTreeHostQt):
264         (WebKit::LayerTreeHostQt::LayerTreeHostQt):
265         (WebKit::LayerTreeHostQt::setLayerFlushSchedulingEnabled):
266         (WebKit::LayerTreeHostQt::scheduleLayerFlush):
267         (WebKit::LayerTreeHostQt::cancelPendingLayerFlush):
268         (WebKit::LayerTreeHostQt::setShouldNotifyAfterNextScheduledLayerFlush):
269         (WebKit::LayerTreeHostQt::setRootCompositingLayer):
270         (WebKit::LayerTreeHostQt::invalidate):
271         (WebKit::LayerTreeHostQt::setNonCompositedContentsNeedDisplay):
272         (WebKit::LayerTreeHostQt::scrollNonCompositedContents):
273         (WebKit::LayerTreeHostQt::forceRepaint):
274         (WebKit::LayerTreeHostQt::sizeDidChange):
275         (WebKit::LayerTreeHostQt::didInstallPageOverlay):
276         (WebKit::LayerTreeHostQt::didUninstallPageOverlay):
277         (WebKit::LayerTreeHostQt::setPageOverlayNeedsDisplay):
278         (WebKit::LayerTreeHostQt::flushPendingLayerChanges):
279         (WebKit::LayerTreeHostQt::didSyncCompositingStateForLayer):
280         (WebKit::LayerTreeHostQt::didDeleteLayer):
281         (WebKit::LayerTreeHostQt::performScheduledLayerFlush):
282         (WebKit::LayerTreeHostQt::layerFlushTimerFired):
283         (WebKit::LayerTreeHostQt::createPageOverlayLayer):
284         (WebKit::LayerTreeHostQt::destroyPageOverlayLayer):
285         (WebKit::LayerTreeHostQt::adoptImageBackingStore):
286         (WebKit::LayerTreeHostQt::releaseImageBackingStore):
287         (WebKit::LayerTreeHostQt::notifyAnimationStarted):
288         (WebKit::LayerTreeHostQt::notifySyncRequired):
289         (WebKit::LayerTreeHostQt::paintContents):
290         (WebKit::LayerTreeHostQt::showDebugBorders):
291         (WebKit::LayerTreeHostQt::showRepaintCounter):
292         (WebKit::LayerTreeHost::supportsAcceleratedCompositing):
293         (WebKit::LayerTreeHostQt::createTile):
294         (WebKit::LayerTreeHostQt::updateTile):
295         (WebKit::LayerTreeHostQt::removeTile):
296         (WebKit::LayerTreeHostQt::setVisibleContentRectForLayer):
297         (WebKit::LayerTreeHostQt::setVisibleContentRectAndScale):
298         (WebKit::LayerTreeHostQt::setVisibleContentRectTrajectoryVector):
299         (WebKit::LayerTreeHostQt::renderNextFrame):
300         (WebKit::LayerTreeHostQt::layerTreeTileUpdatesAllowed):
301
302 2011-10-15  Sheriff Bot  <webkit.review.bot@gmail.com>
303
304         Unreviewed, rolling out r97549.
305         http://trac.webkit.org/changeset/97549
306         https://bugs.webkit.org/show_bug.cgi?id=70174
307
308         It broke the SL build (Requested by Ossy_weekend on #webkit).
309
310         * DerivedSources.pro:
311         * Platform/CoreIPC/MessageID.h:
312         * Scripts/webkit2/messages.py:
313         * Shared/LayerTreeContext.h:
314         * Shared/WebLayerTreeInfo.cpp:
315         (WebKit::WebLayerInfo::encode):
316         (WebKit::WebLayerInfo::decode):
317         * Shared/WebLayerTreeInfo.h:
318         * Shared/qt/LayerTreeContextQt.cpp:
319         (WebKit::LayerTreeContext::LayerTreeContext):
320         (WebKit::LayerTreeContext::~LayerTreeContext):
321         (WebKit::LayerTreeContext::encode):
322         (WebKit::LayerTreeContext::decode):
323         (WebKit::LayerTreeContext::isEmpty):
324         (WebKit::operator==):
325         * UIProcess/DrawingAreaProxy.cpp:
326         * UIProcess/DrawingAreaProxy.h:
327         * UIProcess/DrawingAreaProxyImpl.cpp:
328         (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
329         * UIProcess/DrawingAreaProxyImpl.h:
330         * UIProcess/LayerTreeHostProxy.h: Removed.
331         * UIProcess/LayerTreeHostProxy.messages.in: Removed.
332         * UIProcess/WebPageProxy.cpp:
333         (WebKit::WebPageProxy::didReceiveMessage):
334         * UIProcess/qt/LayerTreeHostProxyQt.cpp: Removed.
335         * WebKit2.pro:
336         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
337         (WebCore::deletedLayerIDs):
338         (WebCore::WebGraphicsLayer::WebGraphicsLayer):
339         (WebCore::WebGraphicsLayer::~WebGraphicsLayer):
340         (WebCore::WebGraphicsLayer::setChildren):
341         (WebCore::WebGraphicsLayer::addChild):
342         (WebCore::WebGraphicsLayer::addChildAtIndex):
343         (WebCore::WebGraphicsLayer::addChildAbove):
344         (WebCore::WebGraphicsLayer::addChildBelow):
345         (WebCore::WebGraphicsLayer::replaceChild):
346         (WebCore::WebGraphicsLayer::removeFromParent):
347         (WebCore::WebGraphicsLayer::setContentsRect):
348         (WebCore::WebGraphicsLayer::setContentsToImage):
349         (WebCore::WebGraphicsLayer::setNeedsDisplay):
350         (WebCore::WebGraphicsLayer::setNeedsDisplayInRect):
351         (WebCore::WebGraphicsLayer::setContentsNeedsDisplay):
352         (WebCore::WebGraphicsLayer::didSynchronize):
353         (WebCore::WebGraphicsLayer::layerInfo):
354         (WebCore::WebGraphicsLayer::syncCompositingState):
355         (WebCore::WebGraphicsLayer::needsDisplayRect):
356         (WebCore::WebGraphicsLayer::takeLayersToDelete):
357         (WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
358         (WebCore::divideIntoTiles):
359         (WebCore::collectCompositingInfoForThisLayer):
360         (WebCore::collectCompositingInfoRecursively):
361         (WebCore::WebGraphicsLayer::sendLayersToUIProcess):
362         * WebProcess/WebCoreSupport/WebGraphicsLayer.h:
363         * WebProcess/WebPage/DrawingArea.h:
364         * WebProcess/WebPage/DrawingAreaImpl.cpp:
365         * WebProcess/WebPage/DrawingAreaImpl.h:
366         * WebProcess/WebPage/LayerTreeHost.cpp:
367         (WebKit::LayerTreeHost::create):
368         * WebProcess/WebPage/LayerTreeHost.h:
369         * WebProcess/WebPage/LayerTreeHost.messages.in: Removed.
370         * WebProcess/WebPage/TiledDrawingArea.cpp:
371         * WebProcess/WebPage/TiledDrawingArea.h:
372         * WebProcess/WebPage/WebPage.cpp:
373         (WebKit::WebPage::didReceiveMessage):
374         * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
375         * WebProcess/WebPage/qt/LayerTreeHostQt.h: Removed.
376
377 2011-10-15  No'am Rosenthal  <noam.rosenthal@nokia.com>
378
379         [Qt][WK2] Synchronize tiling with accelerated compositing
380         https://bugs.webkit.org/show_bug.cgi?id=69151
381
382         Reviewed by Simon Hausmann.
383
384         Make the tiled "non-composited" content and the composited layers go through the same
385         code path on WebKit2. Instead of having a "drawing area" that handles the non-composited
386         content and a seperate layer tree, we put everything in a layer tree, with the non-
387         composited content being a layer in the tree.
388
389         This allows fixing several issues with websites that have large content areas that are
390         composited or overlap with composited layers.
391
392         Layer-tree synchronization is done by passing WebKit2 messages between a LayerTreeHost
393         on the WebProcess and a LayerTreeHostProxy on the UI process. Every layer in the tree has
394         its own tiled backing store, and uses the LayerTreeHost communication channel to pass
395         content up to the UI process. The UI process will later creates its own GraphicsLayer tree,
396         based on TextureMapper, which can be painted directly with OpenGL.
397
398         Several optimizations are available for the non-composited layer as well, e.g. specifying
399         a trajectory and updating the visible rect together with the content scale.
400
401         This code is currently disabled, a separate patch will enable it and glue it to
402         QTouchWebPage.
403
404         * DerivedSources.pro:
405         * Platform/CoreIPC/MessageID.h:
406         * Scripts/webkit2/messages.py:
407         * Shared/LayerTreeContext.h:
408         * Shared/WebLayerTreeInfo.cpp:
409         (WebKit::WebLayerInfo::encode):
410         (WebKit::WebLayerInfo::decode):
411         * Shared/WebLayerTreeInfo.h:
412         * Shared/qt/LayerTreeContextQt.cpp:
413         (WebKit::LayerTreeContext::LayerTreeContext):
414         (WebKit::LayerTreeContext::~LayerTreeContext):
415         (WebKit::LayerTreeContext::encode):
416         (WebKit::LayerTreeContext::decode):
417         (WebKit::LayerTreeContext::isEmpty):
418         (WebKit::operator==):
419         * UIProcess/DrawingAreaProxy.cpp:
420         (WebKit::DrawingAreaProxy::updateWebView):
421         (WebKit::DrawingAreaProxy::contentsRect):
422         * UIProcess/DrawingAreaProxy.h:
423         (WebKit::DrawingAreaProxy::viewportVisibleRect):
424         (WebKit::DrawingAreaProxy::isBackingStoreReady):
425         (WebKit::DrawingAreaProxy::paintToCurrentGLContext):
426         (WebKit::DrawingAreaProxy::setVisibleContentsRectAndScale):
427         (WebKit::DrawingAreaProxy::setVisibleContentRectTrajectoryVector):
428         (WebKit::DrawingAreaProxy::createTileForLayer):
429         (WebKit::DrawingAreaProxy::updateTileForLayer):
430         (WebKit::DrawingAreaProxy::removeTileForLayer):
431         (WebKit::DrawingAreaProxy::didReceiveLayerTreeHostProxyMessage):
432         (WebKit::DrawingAreaProxy::page):
433         * UIProcess/DrawingAreaProxyImpl.cpp:
434         (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
435         (WebKit::DrawingAreaProxyImpl::didReceiveLayerTreeHostProxyMessage):
436         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRectAndScale):
437         (WebKit::DrawingAreaProxyImpl::setVisibleContentRectTrajectoryVector):
438         (WebKit::DrawingAreaProxyImpl::paintToCurrentGLContext):
439         * UIProcess/DrawingAreaProxyImpl.h:
440         * UIProcess/LayerTreeHostProxy.h: Added.
441         (WebKit::LayerTreeHostProxy::layerByID):
442         (WebKit::LayerTreeHostProxy::rootLayer):
443         (WebKit::LayerTreeHostProxy::notifyAnimationStarted):
444         (WebKit::LayerTreeHostProxy::notifySyncRequired):
445         (WebKit::LayerTreeHostProxy::showDebugBorders):
446         (WebKit::LayerTreeHostProxy::showRepaintCounter):
447         (WebKit::LayerTreeHostProxy::paintContents):
448         * UIProcess/LayerTreeHostProxy.messages.in: Added.
449         * UIProcess/WebPageProxy.cpp:
450         (WebKit::WebPageProxy::didReceiveMessage):
451         * UIProcess/qt/LayerTreeHostProxyQt.cpp: Added.
452         * WebKit2.pro:
453         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
454         (WebCore::WebGraphicsLayer::WebGraphicsLayer):
455         (WebCore::WebGraphicsLayer::~WebGraphicsLayer):
456         (WebCore::WebGraphicsLayer::setChildren):
457         (WebCore::WebGraphicsLayer::addChild):
458         (WebCore::WebGraphicsLayer::addChildAtIndex):
459         (WebCore::WebGraphicsLayer::addChildAbove):
460         (WebCore::WebGraphicsLayer::addChildBelow):
461         (WebCore::WebGraphicsLayer::replaceChild):
462         (WebCore::WebGraphicsLayer::removeFromParent):
463         (WebCore::WebGraphicsLayer::setContentsNeedsDisplay):
464         (WebCore::WebGraphicsLayer::setContentsToImage):
465         (WebCore::WebGraphicsLayer::setNeedsDisplay):
466         (WebCore::WebGraphicsLayer::setNeedsDisplayInRect):
467         (WebCore::WebGraphicsLayer::syncCompositingState):
468         (WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
469         (WebCore::WebGraphicsLayer::tiledBackingStorePaintBegin):
470         (WebCore::WebGraphicsLayer::setContentsScale):
471         (WebCore::WebGraphicsLayer::setRootLayer):
472         (WebCore::WebGraphicsLayer::setVisibleContentRectTrajectoryVector):
473         (WebCore::WebGraphicsLayer::setVisibleContentRect):
474         (WebCore::WebGraphicsLayer::tiledBackingStorePaint):
475         (WebCore::WebGraphicsLayer::tiledBackingStorePaintEnd):
476         (WebCore::WebGraphicsLayer::tiledBackingStoreUpdatesAllowed):
477         (WebCore::WebGraphicsLayer::tiledBackingStoreContentsRect):
478         (WebCore::WebGraphicsLayer::tiledBackingStoreVisibleRect):
479         (WebCore::WebGraphicsLayer::tiledBackingStoreBackgroundColor):
480         (WebCore::WebGraphicsLayer::createTile):
481         (WebCore::WebGraphicsLayer::updateTile):
482         (WebCore::WebGraphicsLayer::removeTile):
483         (WebCore::WebGraphicsLayer::updateTileBuffersRecursively):
484         (WebCore::WebGraphicsLayer::layerTreeTileClient):
485         (WebCore::WebGraphicsLayer::updateContentBuffers):
486         * WebProcess/WebCoreSupport/WebGraphicsLayer.h:
487         (WebCore::WebGraphicsLayer::setLayerTreeTileClient):
488         * WebProcess/WebPage/DrawingArea.h:
489         * WebProcess/WebPage/DrawingAreaImpl.cpp:
490         (WebKit::DrawingAreaImpl::didReceiveLayerTreeHostMessage):
491         * WebProcess/WebPage/DrawingAreaImpl.h:
492         * WebProcess/WebPage/LayerTreeHost.cpp:
493         (WebKit::LayerTreeHost::create):
494         * WebProcess/WebPage/LayerTreeHost.h:
495         (WebKit::LayerTreeHost::setVisibleContentRectAndScale):
496         (WebKit::LayerTreeHost::setVisibleContentRectTrajectoryVector):
497         (WebKit::LayerTreeHost::setVisibleContentRectForLayer):
498         (WebKit::LayerTreeHost::renderNextFrame):
499         * WebProcess/WebPage/LayerTreeHost.messages.in: Added.
500         * WebProcess/WebPage/TiledDrawingArea.cpp:
501         (WebKit::TiledDrawingArea::didReceiveLayerTreeHostMessage):
502         * WebProcess/WebPage/TiledDrawingArea.h:
503         * WebProcess/WebPage/WebPage.cpp:
504         (WebKit::WebPage::didReceiveMessage):
505         * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
506         (WebKit::LayerTreeHostQt::create):
507         (WebKit::LayerTreeHostQt::~LayerTreeHostQt):
508         (WebKit::LayerTreeHostQt::LayerTreeHostQt):
509         (WebKit::LayerTreeHostQt::setLayerFlushSchedulingEnabled):
510         (WebKit::LayerTreeHostQt::scheduleLayerFlush):
511         (WebKit::LayerTreeHostQt::cancelPendingLayerFlush):
512         (WebKit::LayerTreeHostQt::setShouldNotifyAfterNextScheduledLayerFlush):
513         (WebKit::LayerTreeHostQt::setRootCompositingLayer):
514         (WebKit::LayerTreeHostQt::invalidate):
515         (WebKit::LayerTreeHostQt::setNonCompositedContentsNeedDisplay):
516         (WebKit::LayerTreeHostQt::scrollNonCompositedContents):
517         (WebKit::LayerTreeHostQt::forceRepaint):
518         (WebKit::LayerTreeHostQt::sizeDidChange):
519         (WebKit::LayerTreeHostQt::didInstallPageOverlay):
520         (WebKit::LayerTreeHostQt::didUninstallPageOverlay):
521         (WebKit::LayerTreeHostQt::setPageOverlayNeedsDisplay):
522         (WebKit::LayerTreeHostQt::flushPendingLayerChanges):
523         (WebKit::LayerTreeHostQt::didSyncCompositingStateForLayer):
524         (WebKit::LayerTreeHostQt::didDeleteLayer):
525         (WebKit::LayerTreeHostQt::performScheduledLayerFlush):
526         (WebKit::LayerTreeHostQt::layerFlushTimerFired):
527         (WebKit::LayerTreeHostQt::createPageOverlayLayer):
528         (WebKit::LayerTreeHostQt::destroyPageOverlayLayer):
529         (WebKit::LayerTreeHostQt::adoptImageBackingStore):
530         (WebKit::LayerTreeHostQt::releaseImageBackingStore):
531         (WebKit::LayerTreeHostQt::notifyAnimationStarted):
532         (WebKit::LayerTreeHostQt::notifySyncRequired):
533         (WebKit::LayerTreeHostQt::paintContents):
534         (WebKit::LayerTreeHostQt::showDebugBorders):
535         (WebKit::LayerTreeHostQt::showRepaintCounter):
536         (WebKit::LayerTreeHost::supportsAcceleratedCompositing):
537         (WebKit::LayerTreeHostQt::createTile):
538         (WebKit::LayerTreeHostQt::updateTile):
539         (WebKit::LayerTreeHostQt::removeTile):
540         (WebKit::LayerTreeHostQt::setVisibleContentRectForLayer):
541         (WebKit::LayerTreeHostQt::setVisibleContentRectAndScale):
542         (WebKit::LayerTreeHostQt::setVisibleContentRectTrajectoryVector):
543         (WebKit::LayerTreeHostQt::renderNextFrame):
544         (WebKit::LayerTreeHostQt::layerTreeTileUpdatesAllowed):
545
546 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
547
548         Rename getOwnPropertySlot to getOwnPropertySlotVirtual
549         https://bugs.webkit.org/show_bug.cgi?id=69810
550
551         Reviewed by Geoffrey Garen.
552
553         Renamed the virtual version of getOwnPropertySlot to getOwnPropertySlotVirtual
554         in preparation for when we add the static getOwnPropertySlot to the MethodTable 
555         in ClassInfo.
556
557         Also added a few static getOwnPropertySlot functions where they had been overlooked 
558         before (especially in CodeGeneratorJS.pm).
559
560         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
561         (WebKit::JSNPObject::getOwnPropertySlotVirtual):
562         * WebProcess/Plugins/Netscape/JSNPObject.h:
563
564 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
565
566         Rename virtual put to putVirtual
567         https://bugs.webkit.org/show_bug.cgi?id=69851
568
569         Reviewed by Darin Adler.
570
571         Renamed virtual versions of put to putVirtual in prepration for 
572         adding the static put to the MethodTable in ClassInfo since the 
573         compiler gets mad if the virtual and static versions have the same 
574         name.
575
576         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
577         (WebKit::JSNPObject::putVirtual):
578         (WebKit::JSNPObject::put):
579         * WebProcess/Plugins/Netscape/JSNPObject.h:
580         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
581         (WebKit::NPJSObject::setProperty):
582
583 2011-10-14  Jeff Miller  <jeffm@apple.com>
584
585         InjectedBundleHitTestResult::imageRect() should return rect in WKView coordinates
586         https://bugs.webkit.org/show_bug.cgi?id=69963
587         
588         WebKit2 clients only have knowledge of the WKView's coordinate system, they have no way to
589         convert from subframe view coordinates , so any rect that we expose through WK2 APIs should
590         be in WKView coordinates.
591         
592         Reviewed by Simon Fraser.
593
594         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
595         (WebKit::InjectedBundleHitTestResult::imageRect): Use WebCore::FrameView::contentsToRootView() to convert the image rect to WKView coordinates.
596
597 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
598
599         Rename virtual deleteProperty to deletePropertyVirtual
600         https://bugs.webkit.org/show_bug.cgi?id=69884
601
602         Reviewed by Darin Adler.
603
604         Renamed virtual versions of deleteProperty to deletePropertyVirtual in prepration for 
605         adding the static deleteProperty to the MethodTable in ClassInfo since the 
606         compiler gets mad if the virtual and static versions have the same name.
607
608         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
609         (WebKit::JSNPObject::deletePropertyVirtual):
610         (WebKit::JSNPObject::deleteProperty):
611         * WebProcess/Plugins/Netscape/JSNPObject.h:
612         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
613         (WebKit::NPJSObject::removeProperty):
614
615 2011-10-14  Nayan Kumar K  <nayankk@motorola.com>
616
617         [WebKit2][gtk] Add documentation for WebKitPluginError and WebKitPolicyError.
618         https://bugs.webkit.org/show_bug.cgi?id=70016
619
620         Reviewed by Martin Robinson.
621
622         * UIProcess/API/gtk/WebKitError.h:
623
624 2011-10-14  Nayan Kumar K  <nayankk@motorola.com>
625
626         [WebKit2][gtk] Skip TestWebKitSettings test.
627         https://bugs.webkit.org/show_bug.cgi?id=70129
628
629         Reviewed by Martin Robinson.
630
631         Skip running TestWebKitSettings test till a bug
632         https://bugs.webkit.org/show_bug.cgi?id=70127 gets fixed.
633
634         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
635         (testWebKitSettings): Skip TestWebKitSettings test.
636
637 2011-10-14  Sheriff Bot  <webkit.review.bot@gmail.com>
638
639         Unreviewed, rolling out r97375.
640         http://trac.webkit.org/changeset/97375
641         https://bugs.webkit.org/show_bug.cgi?id=70115
642
643         It breaks loading of webpages in QtWebKit2 (Requested by jeez_
644         on #webkit).
645
646         * UIProcess/qt/ClientImpl.cpp:
647         (qt_wk_decidePolicyForNavigationAction):
648         * UIProcess/qt/ClientImpl.h:
649         * UIProcess/qt/QtWebPageProxy.cpp:
650         (QtWebPageProxy::init):
651
652 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
653
654         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
655         https://bugs.webkit.org/show_bug.cgi?id=69964
656
657         Reviewed by Enrica Casucci.
658
659         * WebProcess/WebPage/mac/WebPageMac.mm:
660         (WebKit::WebPage::getMarkedRange):
661         (WebKit::WebPage::getSelectedRange):
662         (WebKit::WebPage::characterIndexForPoint):
663         (WebKit::convertToRange):
664
665 2011-10-14  Nayan Kumar K  <nayankk@motorola.com>
666
667         [GTK] r97438: Inconsistent use of flattening vs flattering in function names/comments
668         https://bugs.webkit.org/show_bug.cgi?id=70092
669
670         Reviewed by Martin Robinson.
671
672         Fixes the miss-spelling of 'PROP_ENABLE_FRAME_FLATTENING' as 'PROP_ENABLE_FRAME_FLATTERING'
673         introduced with change set r97438.
674
675         * UIProcess/API/gtk/WebKitSettings.cpp:
676         (webKitSettingsSetProperty): Property name correction.
677         (webKitSettingsGetProperty): Property name correction.
678         (webkit_settings_class_init): Property name correction.
679         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
680         (testWebKitSettings): Spelling correction.
681
682 2011-10-14  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
683
684         [Qt] enable qmltests for qt5
685         https://bugs.webkit.org/show_bug.cgi?id=70037
686
687         Reviewed by Chang Shu.
688
689         Qml tests seem to be disabled for some reason. This patch enables the tests by including qmltests to SUBDIRS.
690
691         * UIProcess/API/qt/tests/tests.pro:
692
693 2011-10-14  Kenneth Rohde Christiansen  <kenneth@webkit.org>
694
695         Do not cache m_resizesToContentsLayoutSize on WebKit2's WebPage
696         https://bugs.webkit.org/show_bug.cgi?id=66134
697
698         Unreviewed build fix after r97462.
699
700         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
701         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
702
703 2011-10-14  Kenneth Rohde Christiansen  <kenneth@webkit.org>
704
705         Do not cache m_resizesToContentsLayoutSize on WebKit2's WebPage
706         https://bugs.webkit.org/show_bug.cgi?id=66134
707
708         Reviewed by Simon Hausmann.
709
710         Do the resize to contents on the web process side.
711
712         Based on patch by Zalan Bujtas.
713
714         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
715         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
716         * WebProcess/WebPage/WebPage.cpp:
717         (WebKit::WebPage::setSize):
718         (WebKit::WebPage::setResizesToContentsUsingLayoutSize):
719         (WebKit::WebPage::resizeToContentsIfNeeded):
720         * WebProcess/WebPage/WebPage.h:
721
722 2011-10-14  Carlos Garcia Campos  <cgarcia@igalia.com>
723
724         [GTK] Build is broken with new ld
725         https://bugs.webkit.org/show_bug.cgi?id=70097
726
727         Reviewed by Philippe Normand.
728
729         * UIProcess/API/gtk/tests/GNUmakefile.am:
730
731 2011-10-12  Simon Hausmann  <simon.hausmann@nokia.com>
732
733         [Qt][WK2] Fix build after QSGItem API changes
734         https://bugs.webkit.org/show_bug.cgi?id=69926
735
736         Reviewed by Kenneth Rohde Christiansen.
737
738         Commit c825865cdd88445aa1db94cdf0da89426919acdb in qtdeclarative changed the
739         signatures of the Drag & Drop event handlers in QSGItem. The SG specific events
740         were replaced with the plain QDrag* events, which are now used for widgets as well
741         as the Qt scene graph.
742
743         This patch adapts the desktop webview as well as the page proxy to handle these
744         kind of events.
745
746         * UIProcess/API/qt/qdesktopwebview.cpp:
747         (QDesktopWebView::dragMoveEvent):
748         (QDesktopWebView::dragEnterEvent):
749         (QDesktopWebView::dragLeaveEvent):
750         (QDesktopWebView::dropEvent):
751         * UIProcess/API/qt/qdesktopwebview.h:
752         * UIProcess/qt/qdesktopwebpageproxy.cpp:
753         (QDesktopWebPageProxy::handleEvent):
754         (QDesktopWebPageProxy::handleDragEnterEvent):
755         (QDesktopWebPageProxy::handleDragLeaveEvent):
756         (QDesktopWebPageProxy::handleDragMoveEvent):
757         (QDesktopWebPageProxy::handleDropEvent):
758         * UIProcess/qt/qdesktopwebpageproxy.h:
759
760 2011-10-13  Nayan Kumar K  <nayankk@motorola.com>
761
762         [GTK][WEBKIT2] Add WebKitSettings GTK+ API.
763         https://bugs.webkit.org/show_bug.cgi?id=68371
764
765         Reviewed by Martin Robinson.
766
767         WebKitSettings GTK+ object is created and first set of
768         API's are written to get or set the properties of WebKitSettings.
769
770         * GNUmakefile.am: Added new files for compilation.
771         * UIProcess/API/gtk/WebKitSettings.cpp: Added.
772         (_WebKitSettingsPrivate::_WebKitSettingsPrivate): Constructor.
773         (webKitSettingsSetProperty): Set property function.
774         (webKitSettingsGetProperty): Get property function.
775         (webKitSettingsFinalize): Class finalize function.
776         (webkit_settings_class_init): Class init function.
777         (webkit_settings_init): Instance init function.
778         (webkit_settings_new): Creates WebKitSettings GObject.
779         (webkit_settings_get_enable_javascript): Function to get 'enable-javascript' property.
780         (webkit_settings_set_enable_javascript): Function to set 'enable-javascript' property.
781         (webkit_settings_get_auto_load_images): Get the 'auto-load-images' property.
782         (webkit_settings_set_auto_load_images): Set the 'auto-load-images' property.
783         (webkit_settings_get_load_icons_ignoring_image_load_setting): Function to get
784         'load-icons-ignoring-image-load-setting' property.
785         (webkit_settings_set_load_icons_ignoring_image_load_setting): Function to set
786         'load-icons-ignoring-image-load-setting' property.
787         (webkit_settings_get_enable_offline_web_application_cache): Function to get
788         'enable-offline-web-application-cache' property.
789         (webkit_settings_set_enable_offline_web_application_cache): Function to set
790         'enable-offline-web-application-cache' property.
791         (webkit_settings_get_enable_html5_local_storage): Get the property 'enable-html5-local-storage'.
792         (webkit_settings_set_enable_html5_local_storage): Set the property 'enable-html5-local-storage'.
793         (webkit_settings_get_enable_html5_database): Get the property 'enable-html5-database'.
794         (webkit_settings_set_enable_html5_database): Set the property 'enable-html5-database'.
795         (webkit_settings_get_enable_xss_auditor): Get property 'enable-xss-editor'.
796         (webkit_settings_set_enable_xss_auditor): Set property 'enable-xss-editor'.
797         (webkit_settings_get_enable_frame_flattening): Get the property 'enable-frame-flattening'.
798         (webkit_settings_set_enable_frame_flattening): Set the property 'enable-frame-flattening'.
799         (webkit_settings_get_enable_plugins): Get the property 'enable-plugins'.
800         (webkit_settings_set_enable_plugins): Set the property 'enable-plugins'.
801         (webkit_settings_get_enable_java): Function to get 'enable-java' property.
802         (webkit_settings_set_enable_java): Function to set 'enable-java' property.
803         (webkit_settings_get_javascript_can_open_windows_automatically): Get the property
804         'javascript-can-open-windows-automatically'.
805         (webkit_settings_set_javascript_can_open_windows_automatically): Set the property
806         'javascript-can-open-windows-automatically'.
807         (webkit_settings_get_enable_hyperlink_auditing): Get 'enable-hyperlink-auditing' property.
808         (webkit_settings_set_enable_hyperlink_auditing): Set 'enable-hyperlink-auditing' property.
809         * UIProcess/API/gtk/WebKitSettings.h: Added. Public API's.
810         * UIProcess/API/gtk/tests/GNUmakefile.am: Added new test.
811         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp: Added.
812         (testWebKitSettings): Add WebKitSetting unit test.
813         (beforeAll): Pre-test function.
814         (afterAll): Post-test function.
815         * UIProcess/API/gtk/webkit2.h: Add WebKitSettings.h to exposed API list.
816
817 2011-10-13  Mark Hahnenberg  <mhahnenberg@apple.com>
818
819         Rename virtual getConstructData to getConstructDataVirtual
820         https://bugs.webkit.org/show_bug.cgi?id=69872
821
822         Reviewed by Geoffrey Garen.
823
824         Renamed virtual getConstructData functions to getConstructDataVirtual to 
825         avoid conflicts when we add static getConstructData to the MethodTable.
826
827         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
828         (WebKit::JSNPObject::getConstructDataVirtual):
829         * WebProcess/Plugins/Netscape/JSNPObject.h:
830
831 2011-10-13  Sam Weinig  <sam@webkit.org>
832
833         Another SnowLeopard build fix.
834
835         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
836         (WebKit::cachedImage):
837         (WebKit::WebDragClient::declareAndWriteDragImage):
838         (-[WKPasteboardOwner initWithImage:WebCore::]):
839
840 2011-10-13  Sam Weinig  <sam@webkit.org>
841
842         Fix SnowLeopard build.
843
844         * UIProcess/WebPageProxy.cpp:
845         (WebKit::WebPageProxy::setCursor):
846         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
847
848 2011-10-13  Alexey Proskuryakov  <ap@apple.com>
849
850         [Mac] PDF Documents at epo.org look very blurry
851         https://bugs.webkit.org/show_bug.cgi?id=70072
852
853         Reviewed by Dan Bernstein.
854
855         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: (WebKit::BuiltInPDFView::paintContent):
856         Ensure integral coordinates. <rdar://problem/10283382> tracks lifting this limitation.
857
858 2011-10-13  Alexey Proskuryakov  <ap@apple.com>
859
860         [Mac] Wheel event handler counter is incorrect with PDF views
861         https://bugs.webkit.org/show_bug.cgi?id=70062
862
863         Reviewed by Dan Bernstein.
864
865         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
866         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
867         (WebKit::BuiltInPDFView::didAddVerticalScrollbar): Added forgotten override for vertical case.
868         (WebKit::BuiltInPDFView::willRemoveVerticalScrollbar): Ditto.
869         (WebKit::BuiltInPDFView::createScrollbar): Notify self, do not make a shortcut to ScrollAnimator.
870         (WebKit::BuiltInPDFView::destroyScrollbar): Ditto.
871         (WebKit::BuiltInPDFView::destroy): Actually destroy the scrollbars.
872
873 2011-10-12  Chris Marrin  <cmarrin@apple.com>
874
875         Sync requestAnimationFrame callback to CVDisplayLink on Mac
876         https://bugs.webkit.org/show_bug.cgi?id=68911
877
878         Reviewed by Simon Fraser.
879
880         Add windowDidChangeScreen function which listens for the window changing
881         screens and passes the new displayID along to WebCore::Page. It also sends
882         one on windowDidBecomeKey, so the Page has a fresh displayID after it's
883         created. Event is generated in the UIProcess and then sent over to the
884         WebProcess, which actually sends it to WebCore::Page.
885
886         * UIProcess/API/mac/WKView.mm:
887         (-[WKView addWindowObserversForWindow:]):
888         (-[WKView removeWindowObservers]):
889         (-[WKView _windowDidChangeScreen:]):
890         (-[WKView _windowDidBecomeKey:]):
891         * UIProcess/WebPageProxy.cpp:
892         (WebKit::WebPageProxy::windowScreenDidChange):
893         * UIProcess/WebPageProxy.h:
894         * WebProcess/WebPage/WebPage.cpp:
895         (WebKit::WebPage::windowScreenDidChange):
896         * WebProcess/WebPage/WebPage.h:
897         * WebProcess/WebPage/WebPage.messages.in:
898
899 2011-10-13  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
900
901         [Qt][WK2] WebErrorsQt.cpp duplicates code from WKError.h and WebError.h
902         https://bugs.webkit.org/show_bug.cgi?id=70053
903
904         Reviewed by Kenneth Rohde Christiansen.
905
906         Now we will be aligned with WKError.h and WebError.h by using the shared
907         and pre-defined enum for error codes and WebError::webkitErrorDomain().
908
909         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
910         (WebKit::blockedError):
911         (WebKit::cannotShowURLError):
912         (WebKit::interruptedForPolicyChangeError):
913         (WebKit::cannotShowMIMETypeError):
914         (WebKit::pluginWillHandleLoadError):
915
916 2011-10-13  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
917
918         [Qt][WK2] WebViews are emitting loadFailed for "private" error codes
919         https://bugs.webkit.org/show_bug.cgi?id=70047
920
921         Reviewed by Kenneth Rohde Christiansen.
922
923         Both QDesktopWebView and QTouchWebView are emitting loadFailed for private errors
924         like the ones defined in Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp.
925
926         We now filter these by not emitting this signal for FrameLoadInterruptedByPolicyChange,
927         PlugInWillHandleLoad and Cancellation, following previous decisions from WebKit 1.
928
929         * UIProcess/qt/ClientImpl.cpp:
930         (dispatchLoadFailed):
931
932 2011-10-13  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
933
934         Implement TextChecker for WebKit2 GTK+
935         https://bugs.webkit.org/show_bug.cgi?id=68548
936
937         Reviewed by Anders Carlsson.
938
939         Added implementation for all functions in TextCheckerGtk.cpp removing earlier stubbed implementations.
940         Moved couple of API earlier specific to win port to common section and added stubbed implementation
941         of the same for remaining ports of Qt, Efl and Mac.
942
943         * GNUmakefile.am: Added TextChecker implementation files.
944         * UIProcess/TextChecker.h: Moved spellCheckingEnabled and grammarCheckingEnabled API outside of win port.
945         * UIProcess/efl/TextCheckerEfl.cpp: Stubbed implementation of API which was moved outside win port.
946         * UIProcess/gtk/TextCheckerGtk.cpp: Implementation of all TextChecker API.
947         (WebKit::TextChecker::state):
948         (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
949         (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
950         (WebKit::TextChecker::setGrammarCheckingEnabled):
951         (WebKit::TextChecker::continuousSpellCheckingEnabledStateChanged):
952         (WebKit::TextChecker::grammarCheckingEnabledStateChanged):
953         (WebKit::TextChecker::uniqueSpellDocumentTag):
954         (WebKit::TextChecker::closeSpellDocumentWithTag):
955         (WebKit::TextChecker::checkSpellingOfString):
956         (WebKit::TextChecker::checkGrammarOfString):
957         (WebKit::TextChecker::spellingUIIsShowing):
958         (WebKit::TextChecker::toggleSpellingUIIsShowing):
959         (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
960         (WebKit::TextChecker::updateSpellingUIWithGrammarString):
961         (WebKit::TextChecker::getGuessesForWord):
962         (WebKit::TextChecker::learnWord):
963         (WebKit::TextChecker::ignoreWord):
964         * UIProcess/mac/TextCheckerMac.mm: Implementation of API which was moved outside win port.
965         * UIProcess/qt/TextCheckerQt.cpp: Stubbed implementation of API which was moved outside win port.
966
967 2011-10-13  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
968
969         [Qt][WK2] Implement decidePolicyForResponse in our PolicyClient
970         https://bugs.webkit.org/show_bug.cgi?id=69832
971
972         Reviewed by Kenneth Rohde Christiansen.
973
974         We implement decidePolicyForResponse in our PolicyClient in order to
975         decide whether a given ResourceResponse should be downloaded or loaded.
976
977         * UIProcess/qt/ClientImpl.cpp:
978         (qt_wk_decidePolicyForResponse):
979         * UIProcess/qt/ClientImpl.h:
980         * UIProcess/qt/QtWebPageProxy.cpp:
981         (QtWebPageProxy::init):
982
983 2011-10-13  Carlos Garcia Campos  <cgarcia@igalia.com>
984
985         [GTK] Add WebKitTestServer class to WebKit2 GTK+ unit tests library
986         https://bugs.webkit.org/show_bug.cgi?id=70010
987
988         Reviewed by Martin Robinson.
989
990         With this class tests using a soup server only need to implement
991         the soup server callback.
992
993         * UIProcess/API/gtk/tests/GNUmakefile.am: Add new files to compilation.
994         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp: Use WebKitTestServer.
995         (testLoadingStatus):
996         (testLoadingError):
997         (testLoadAlternateContent):
998         (testWebViewReload):
999         (testLoadProgress):
1000         (beforeAll):
1001         (afterAll):
1002         * UIProcess/API/gtk/tests/WebKitTestServer.cpp: Added.
1003         (WebKitTestServer::WebKitTestServer):
1004         (WebKitTestServer::~WebKitTestServer):
1005         (WebKitTestServer::run): Run the soup server and adds the given
1006         soup server callback to handle requests.
1007         (WebKitTestServer::getURIForPath): Returns the server absolute URI
1008         for the given relative path.
1009         * UIProcess/API/gtk/tests/WebKitTestServer.h: Added.
1010         (WebKitTestServer::baseURI):
1011
1012 2011-10-13  Nayan Kumar K  <nayankk@motorola.com>
1013
1014         [WebKit2][gtk] Fix warnings while generating WebKit2-GTK+ documentation.
1015         https://bugs.webkit.org/show_bug.cgi?id=69928
1016
1017         Reviewed by Philippe Normand.
1018
1019         Patch fixes the warnings reported by gtk-doc while generating
1020         WebKit2-GTK+ documentation.
1021
1022         * UIProcess/API/gtk/WebKitWebContext.h: Correct the documentation comment.
1023         * UIProcess/API/gtk/WebKitWebView.cpp: Parameter name correction.
1024
1025 2011-10-12  Joseph Pecoraro  <joepeck@webkit.org>
1026
1027         Pass Parsed Accept Attribute MIME Types to WebKit Clients
1028         https://bugs.webkit.org/show_bug.cgi?id=69598
1029
1030         Reviewed by David Kilzer.
1031
1032         * Shared/WebCoreArgumentCoders.cpp:
1033         (CoreIPC::::encode):
1034         (CoreIPC::::decode):
1035
1036 2011-10-12  Joseph Pecoraro  <joepeck@webkit.org>
1037
1038         Pass Parsed Accept Attribute MIME Types to WebKit Clients
1039         https://bugs.webkit.org/show_bug.cgi?id=69598
1040
1041         Reviewed by Anders Carlsson.
1042
1043         The WebOpenPanelParameters::Data struct was a mirror of
1044         the already existing WebCore::FileChooserSettings struct.
1045         So eliminate the excess struct and generate default
1046         WebCore coders for the WebCore::FileChooserSettings struct.
1047
1048         * Scripts/webkit2/messages.py:
1049         Switch to the new type. FileChooserSetting's header needs
1050         to be special cased to FileChooser.h.
1051
1052         * Shared/WebCoreArgumentCoders.h:
1053         * Shared/WebCoreArgumentCoders.cpp:
1054         (CoreIPC::::encode):
1055         (CoreIPC::::decode):
1056         Encode and decode all, non-deprecated, values. So we
1057         ignore deprecatedAcceptTypes. A follow-up patch will add it.
1058
1059         * Shared/WebOpenPanelParameters.cpp:
1060         (WebKit::WebOpenPanelParameters::create):
1061         (WebKit::WebOpenPanelParameters::WebOpenPanelParameters):
1062         Switch to the new type.
1063
1064         * Shared/WebOpenPanelParameters.h:
1065         (WebKit::WebOpenPanelParameters::allowMultipleFiles):
1066         (WebKit::WebOpenPanelParameters::selectedFileNames):
1067         FileChooserSettings had different property names.
1068
1069         * UIProcess/WebPageProxy.cpp:
1070         (WebKit::WebPageProxy::runOpenPanel):
1071         Generate the WebOpenPanelParameters object here, before
1072         passing into the WebUIClient. This seems to be the convention
1073         to not have WebCore types in WebUIClient.
1074
1075         * UIProcess/WebPageProxy.h:
1076         * UIProcess/WebPageProxy.messages.in:
1077         * UIProcess/WebUIClient.cpp:
1078         (WebKit::WebUIClient::runOpenPanel):
1079         * UIProcess/WebUIClient.h:
1080         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1081         (WebKit::WebChromeClient::runOpenPanel):
1082         Switch to the new type.
1083
1084 2011-10-12  Joseph Pecoraro  <joepeck@webkit.org>
1085
1086         Pass Parsed Accept Attribute MIME Types to WebKit Clients
1087         https://bugs.webkit.org/show_bug.cgi?id=69598
1088
1089         Reviewed by Kent Tamura.
1090
1091         Switch to deprecated for now, but the next patches will
1092         remove the deprecated version from the WebKit2 path.
1093
1094         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1095         (WebKit::WebChromeClient::runOpenPanel):
1096
1097 2011-10-12  Adam Barth  <abarth@webkit.org>
1098
1099         Remove ENABLE(XHTMLMP) and associated code
1100         https://bugs.webkit.org/show_bug.cgi?id=69729
1101
1102         Reviewed by David Levin.
1103
1104         * Configurations/FeatureDefines.xcconfig:
1105
1106 2011-10-12  Dan Bernstein  <mitz@apple.com>
1107
1108         Hang beneath PluginProcessProxy::createPropertyListFile() when using a thin build
1109         https://bugs.webkit.org/show_bug.cgi?id=69960
1110
1111         Reviewed by Adam Roben.
1112
1113         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
1114         (WebKit::PluginProcessProxy::createPropertyListFile): Check for any non-zero return value
1115         from posix_spawn() rather than for a negative return value. The old, incorrect check, caused
1116         this function to hang in waitpid() after failing to spawn a plug-in process for a 32-bit plug-in
1117         when WebKit2 was built for 64-bit only.
1118
1119 2011-10-12  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1120
1121         [Qt][WK2] Move qweberror* out of API/qt
1122         https://bugs.webkit.org/show_bug.cgi?id=69875
1123
1124         Reviewed by Andreas Kling.
1125
1126         Moving QWebError outside API/qt in order to keep our API folder (layer) aligned.
1127
1128         * UIProcess/qt/qweberror.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/qweberror.cpp.
1129         (QWebError::QWebError):
1130         (QWebErrorPrivate::createQWebError):
1131         (QWebErrorPrivate::QWebErrorPrivate):
1132         (QWebErrorPrivate::~QWebErrorPrivate):
1133         (QWebError::type):
1134         (QWebError::errorCode):
1135         (QWebError::url):
1136         * UIProcess/qt/qweberror.h: Renamed from Source/WebKit2/UIProcess/API/qt/qweberror.h.
1137         (QWebError::errorCodeAsHttpStatusCode):
1138         (QWebError::errorCodeAsNetworkError):
1139         * UIProcess/qt/qweberror_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qweberror_p.h.
1140         * WebKit2.pro:
1141         * WebKit2API.pri:
1142
1143 2011-10-12  Nayan Kumar K  <nayankk@motorola.com>
1144
1145         [WebKit2][gtk] Add few more API's to gtk-doc section file.
1146         https://bugs.webkit.org/show_bug.cgi?id=69921
1147
1148         Reviewed by Gustavo Noronha Silva.
1149
1150         Generate documentation for existing WebKit2-GTK+ API's,
1151         which are not yet the part of gtk-doc documentation.
1152
1153         * UIProcess/API/gtk/docs/GNUmakefile.am: List ignore files.
1154         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: API's addition.
1155
1156 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
1157
1158         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1159         https://bugs.webkit.org/show_bug.cgi?id=68134
1160
1161         Reviewed by Darin Adler.
1162
1163         Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled.
1164         
1165         Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method
1166         that reads the setting, and returns the mock theme if set. All callers now use
1167         theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build.
1168
1169         * UIProcess/win/WebPopupMenuProxyWin.cpp:
1170         (WebKit::WebPopupMenuProxyWin::calculatePositionAndSize):
1171         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
1172         (WebKit::BuiltInPDFView::paintControls):
1173         * WebProcess/WebPage/PageOverlay.cpp:
1174         (WebKit::PageOverlay::bounds):
1175
1176 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
1177
1178         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1179         https://bugs.webkit.org/show_bug.cgi?id=68134
1180
1181         Reviewed by Darin Adler.
1182
1183         ScrollbarTheme::nativeTheme() renamed to theme().
1184
1185         * WebProcess/WebPage/PageOverlay.cpp:
1186         (WebKit::PageOverlay::bounds):
1187
1188 2011-10-10  Martin Robinson  <mrobinson@igalia.com>
1189
1190         [GTK] [WebKit2] Make adding another unit test easier
1191         https://bugs.webkit.org/show_bug.cgi?id=69409
1192
1193         Reviewed by Gustavo Noronha Silva.
1194
1195         * GNUmakefile.am: Add the new WebKit2 API tests.
1196         * UIProcess/API/gtk/tests/GNUmakefile.am: Added.
1197         * UIProcess/API/gtk/tests/LoadTrackingTest.cpp: Added. A fixture for creating load tracking tests.
1198         * UIProcess/API/gtk/tests/LoadTrackingTest.h: Added.
1199         * UIProcess/API/gtk/tests/TestMain.cpp: Copied from Source/WebKit2/UIProcess/API/gtk/tests/testwebview.c.
1200         (main):
1201         * UIProcess/API/gtk/tests/TestMain.h: Added.
1202         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp: Copied from Source/WebKit2/UIProcess/API/gtk/tests/testwebview.c.
1203         * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp: Added.
1204         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp: Renamed from Source/WebKit2/UIProcess/API/gtk/tests/testwebview.c.
1205         * UIProcess/API/gtk/tests/WebViewTest.cpp: Added. A fixture for generic WebView tests.
1206         * UIProcess/API/gtk/tests/WebViewTest.h: Added.
1207         * UIProcess/API/gtk/tests/testloading.c: Removed.
1208         * UIProcess/API/gtk/tests/testwebcontext.c: Removed.
1209
1210 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
1211
1212         [Mac] Crash when opening an embedded PDF in a background tab
1213         https://bugs.webkit.org/show_bug.cgi?id=69880
1214
1215         Reviewed by Darin Adler.
1216
1217         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
1218         (WebKit::BuiltInPDFView::BuiltInPDFView):
1219         (WebKit::BuiltInPDFView::~BuiltInPDFView):
1220         (WebKit::BuiltInPDFView::initialize):
1221         (WebKit::BuiltInPDFView::destroy):
1222         Moved initialization and destruction code from C++ constructor and destructor to designated
1223         functions. Not part of the fix, but seems related enough to fix.
1224
1225 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
1226
1227         [Mac] Crash when opening an embedded PDF in a background tab
1228         https://bugs.webkit.org/show_bug.cgi?id=69880
1229
1230         Reviewed by Darin Adler.
1231
1232         * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::paint): Don't call plug-in that
1233         doesn't even have a controller yet.
1234
1235 2011-10-11  Beth Dakin  <bdakin@apple.com>
1236
1237         https://bugs.webkit.org/show_bug.cgi?id=69874
1238         WebKit2 snapshot APIs should take the device scale factor into account 
1239         -and corresponding-
1240         <rdar://problem/10269112>
1241
1242         Reviewed by Darin Adler.
1243
1244         Add the deviceScaleFactor as a scale on the snapshot's context to create a 
1245         snapshot of the appropriate resolution. This matches the manner in which we scale 
1246         the context in DrawingAreaImpl::display().
1247         * WebProcess/WebPage/WebPage.cpp:
1248         (WebKit::WebPage::snapshotInViewCoordinates):
1249         (WebKit::WebPage::scaledSnapshotInDocumentCoordinates):
1250
1251 2011-10-11  W. James MacLean  <wjmaclean@chromium.org>
1252
1253         Loss of precision when converting from double to int and double to float in FrameView::zoomAnimatorTransformChanged()
1254         https://bugs.webkit.org/show_bug.cgi?id=69739
1255
1256         Change 'double' parameters to 'float' to match changes in FrameView.
1257
1258         Reviewed by Simon Fraser.
1259
1260         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
1261         (WebKit::BuiltInPDFView::zoomAnimatorTransformChanged):
1262
1263 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
1264
1265         [Mac] Small embedded PDFs are not fully repainted when scrolling
1266         https://bugs.webkit.org/show_bug.cgi?id=69861
1267
1268         Reviewed by Anders Carlsson.
1269
1270         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: (WebKit::BuiltInPDFView::paintContent):
1271         Account for vertical centering when deciding which pages to paint.
1272
1273 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
1274
1275         Embedding of PDF's with <object> or <embed> fails when there is no MIME type specified
1276         https://bugs.webkit.org/show_bug.cgi?id=64934
1277
1278         Reviewed by Dan Bernstein.
1279
1280         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::createPlugin): Check URL extension, too,
1281         like GetPluginPath does in UI process. One difference is that UI process additionally tries
1282         platform specific extension to MIME type mapping, but that doesn't matter for PDF, which
1283         does not have other standard extensions.
1284
1285 2011-10-11  Alexey Proskuryakov  <ap@apple.com>
1286
1287         [Mac] Should be able to display multi-page PDFs in subframes
1288         https://bugs.webkit.org/show_bug.cgi?id=69804
1289
1290         Reviewed by Anders Carlsson.
1291
1292         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
1293         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
1294         (WebKit::BuiltInPDFView::updateScrollbars): Page step should be exactly one page, so that
1295         one could step over the document page by page. It certainly shouldn't be a portion of the
1296         whole document.
1297         (WebKit::BuiltInPDFView::pdfDocumentDidLoad): Moved duplicated code from load callbacks here.
1298         (WebKit::BuiltInPDFView::calculateSizes): Calculate document size including gutters, and
1299         remember page boxes.
1300         (WebKit::BuiltInPDFView::paint): Split into separate functions.
1301         (WebKit::BuiltInPDFView::paintBackground): Just paint gray background for the whole dirty rect.
1302         (WebKit::BuiltInPDFView::paintContent): Paint pages and shadow under them. This code is still
1303         fairly naive, as it doesn't understand annotations or page rotation.
1304         Constants for shadows roughly match PDFView, but not quite, since it draws entirely custom
1305         shadows.
1306         (WebKit::BuiltInPDFView::paintControls): Moved scrollbar and scroll corner painting here.
1307         (WebKit::BuiltInPDFView::streamDidFinishLoading): Moved common code into pdfDocumentDidLoad().
1308         (WebKit::BuiltInPDFView::manualStreamDidFinishLoading): Ditto.
1309
1310 2011-10-11  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1311
1312         [Qt] WebProcess using proxy settings for localhost as well
1313         https://bugs.webkit.org/show_bug.cgi?id=69611
1314
1315         Reviewed by Chang Shu.
1316
1317         Implemented checks in queryProxy to return QNetworkProxy::NoProxy for localhost and 127.0.0.1
1318
1319         * WebProcess/qt/WebProcessMainQt.cpp:
1320         (WebKit::EnvHttpProxyFactory::queryProxy):
1321
1322 2011-10-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1323
1324         [Qt] Remove all references to QTDIR_build and standalone_package
1325
1326         Qt is now modularized, which means we no longer import WebKit into
1327         the Qt source tree. Instead we use git submodules, and building
1328         QtWebKit as "part of Qt" is really building QtWebKit as from trunk.
1329
1330         To decrease the number of buildsystem configurations we also remove
1331         the standalone_package code-path used when we were providing tarballs
1332         with the derived sources pre-generated.
1333
1334         Reviewed by Simon Hausmann.
1335
1336         * DerivedSources.pro:
1337         * UIProcess/API/qt/qmlplugin/qmlplugin.pro:
1338         * UIProcess/API/qt/tests/tests.pri:
1339         * WebKit2.pri:
1340         * WebProcess.pro:
1341
1342 2011-10-10  Nate Chapin  <japhet@chromium.org>
1343
1344         Use a CachedImageClient instead of CachedResourceClient
1345         in WebDragClientMac.
1346         https://bugs.webkit.org/show_bug.cgi?id=69790
1347
1348         Reviewed by Adam Barth.
1349
1350         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
1351         (promisedDataClient):
1352
1353 2011-10-10  Mark Hahnenberg  <mhahnenberg@apple.com>
1354
1355         Remove getCallDataVirtual methods
1356         https://bugs.webkit.org/show_bug.cgi?id=69186
1357
1358         Reviewed by Geoffrey Garen.
1359
1360         Removed all getCallDataVirtual methods and replaced their call sites 
1361         with an explicit lookup in the MethodTable.
1362
1363         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
1364         * WebProcess/Plugins/Netscape/JSNPMethod.h:
1365         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1366         * WebProcess/Plugins/Netscape/JSNPObject.h:
1367
1368 2011-10-10  Simon Hausmann  <simon.hausmann@nokia.com>
1369
1370         [Qt] Fix build with qreal == float on MeeGo 1.2 Harmattan
1371
1372         Reviewed by Andreas Kling.
1373
1374         Explicitly choose the qreal variant of qMin, since QPointF is using qreal.
1375
1376         * UIProcess/qt/ViewportInteractionEngine.cpp:
1377         (WebKit::ViewportInteractionEngine::animateContentPositionIntoBoundariesIfNeeded):
1378
1379 2011-10-10  Carlos Garcia Campos  <cgarcia@igalia.com>
1380
1381         [GTK] Add methods to reload the view to WebKit2 GTK+ API
1382         https://bugs.webkit.org/show_bug.cgi?id=69613
1383
1384         Reviewed by Martin Robinson.
1385
1386         * UIProcess/API/gtk/WebKitWebView.cpp:
1387         (webkit_web_view_reload):
1388         (webkit_web_view_reload_bypass_cache):
1389         * UIProcess/API/gtk/WebKitWebView.h:
1390         * UIProcess/API/gtk/tests/testloading.c:
1391         (loadReloadProvisionalLoadStarted):
1392         (loadReloadLoadFinished):
1393         (testLoadTimeoutFinishLoop):
1394         (testLoadReload):
1395         (main):
1396
1397 2011-10-09  Luke Macpherson   <macpherson@chromium.org>
1398
1399         Fix Lion, Leopard and Snow Leopard builds after changeset 97034 <http://trac.webkit.org/changeset/97034>
1400         (https://bugs.webkit.org/show_bug.cgi?id=68035)
1401         https://bugs.webkit.org/show_bug.cgi?id=69735
1402
1403         Reviewed by Daniel Bates.
1404
1405         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
1406         Add symbols that are now required by ScrollableArea.
1407         (WebKit::BuiltInPDFView::zoomAnimatorTransformChanged):
1408
1409 2011-10-08  Mark Hahnenberg  <mhahnenberg@apple.com>
1410
1411         Add static version of JSCell::getConstructData
1412         https://bugs.webkit.org/show_bug.cgi?id=69673
1413
1414         Reviewed by Geoffrey Garen.
1415
1416         Added static version of getConstructData to all classes that 
1417         override it and changed the virtual versions to call the static 
1418         versions.  This is the first step in de-virtualizing JSCell::getConstructData.
1419
1420         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1421         (WebKit::JSNPObject::getConstructData):
1422         * WebProcess/Plugins/Netscape/JSNPObject.h:
1423
1424 2011-10-08  Mark Hahnenberg  <mhahnenberg@apple.com>
1425
1426         Add static version of JSCell::getOwnPropertySlot
1427         https://bugs.webkit.org/show_bug.cgi?id=69593
1428
1429         Reviewed by Geoffrey Garen.
1430
1431         Added static version of getOwnPropertySlot to every class that overrides
1432         JSCell::getOwnPropertySlot.  The virtual versions now call the static versions.
1433         This is the first step in de-virtualizing JSCell::getOwnPropertySlot.
1434
1435         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1436         (WebKit::JSNPObject::getOwnPropertySlot):
1437         * WebProcess/Plugins/Netscape/JSNPObject.h:
1438
1439 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com> and Martin Robinson  <mrobinson@igalia.com>
1440
1441         [GTK] Implement drag and drop support in WebKit2
1442         https://bugs.webkit.org/show_bug.cgi?id=63706
1443
1444         Reviewed by Philippe Normand.
1445
1446         * GNUmakefile.am: Add new files to compilation.
1447         * Shared/gtk/ArgumentCodersGtk.cpp: Added.
1448         (CoreIPC::encodeImage): Encode a GdkPixbuf.
1449         (CoreIPC::decodeImage): Decode a GdkPixbuf.
1450         (CoreIPC::encodeDataObject): Encode a DataObjectGtk.
1451         (CoreIPC::decodeDataObject): Decode a DataObjectGtk.
1452         (CoreIPC::::encode): Encode DragData.
1453         (CoreIPC::::decode): Decode DragData.
1454         * Shared/gtk/ArgumentCodersGtk.h:
1455         * UIProcess/API/gtk/PageClientImpl.cpp:
1456         (WebKit::PageClientImpl::startDrag):
1457         * UIProcess/API/gtk/PageClientImpl.h:
1458         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
1459         (webkit_web_view_base_init): Set the view as a potential drop destination.
1460         (webkitWebViewBaseDragDataGet): Added, delegate to GtkDragAndDropHelper.
1461         (webkitWebViewBaseDragEnd): Ditto.
1462         (webkitWebViewBaseDragDataReceived): Ditto.
1463         (webkitWebViewBaseDragEnter): Ditto.
1464         (webkitWebViewBaseDragMotion): Ditto.
1465         (doDragLeaveLater): Ditto.
1466         (webkitWebViewBaseDragLeave): Ditto.
1467         (webkitWebViewBaseDragDrop): Ditto.
1468         (webkit_web_view_base_class_init): Override GtkWidget drag and drop methods.
1469         (webkitWebViewBaseStartDrag): Calls gtk_drag_begin() to start a drag operation.
1470         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h: Add webkitWebViewBaseStartDrag().
1471         * UIProcess/PageClient.h: Add startDrag().
1472         * UIProcess/WebPageProxy.cpp:
1473         (WebKit::WebPageProxy::performDragControllerAction): Share the Qt version.
1474         * UIProcess/WebPageProxy.h:
1475         * UIProcess/WebPageProxy.messages.in:
1476         * WebProcess/WebCoreSupport/WebDragClient.cpp:
1477         * WebProcess/WebCoreSupport/gtk/WebDragClientGtk.cpp: Added.
1478         * WebProcess/WebPage/WebPage.cpp: Add drag support for GTK+.
1479         * WebProcess/WebPage/WebPage.h: Ditto.
1480         * WebProcess/WebPage/WebPage.messages.in: Ditto.
1481
1482 2011-10-08  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1483
1484         [Qt] [WK2] Wrong handling of visibility in QTouchWebPage
1485         https://bugs.webkit.org/show_bug.cgi?id=69670
1486
1487         Reviewed by Andreas Kling.
1488
1489         Replace QTouchWebPage visibility handling by Show/Hide events with use of 
1490         QSGItem::visibleChanged signal.
1491
1492         * UIProcess/API/qt/qtouchwebpage.cpp:
1493         (QTouchWebPage::QTouchWebPage):
1494         (QTouchWebPage::event):
1495         (QTouchWebPage::onVisibleChanged):
1496         * UIProcess/API/qt/qtouchwebpage.h:
1497
1498 2011-10-08  Sheriff Bot  <webkit.review.bot@gmail.com>
1499
1500         Unreviewed, rolling out r96996.
1501         http://trac.webkit.org/changeset/96996
1502         https://bugs.webkit.org/show_bug.cgi?id=69697
1503
1504         It broke all tests on the Qt bot (Requested by Ossy_night on
1505         #webkit).
1506
1507         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
1508         (WebKit::JSNPMethod::getCallDataVirtual):
1509         * WebProcess/Plugins/Netscape/JSNPMethod.h:
1510         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1511         (WebKit::JSNPObject::getCallDataVirtual):
1512         * WebProcess/Plugins/Netscape/JSNPObject.h:
1513
1514 2011-10-07  Jeff Miller  <jeffm@apple.com>
1515
1516         Add WKPageContextMenuClient callback when context menu is dismissed
1517         https://bugs.webkit.org/show_bug.cgi?id=69553
1518
1519         Add contextMenuDismissed callback to WKPageContextMenuClient, and bump the API
1520         version of this client to 1 so we continue to work with old clients.
1521
1522         * Shared/APIClientTraits.cpp: Added array of interface sizes for WKPageContextMenuClient.
1523         * Shared/APIClientTraits.h: Added APIClientTraits for WKPageContextMenuClient.
1524
1525         * UIProcess/API/C/WKPage.h: Added contextMenuDismissed callback to WKPageContextMenuClient and bumped kWKPageContextMenuClientCurrentVersion.
1526
1527         * UIProcess/WebPageContextMenuClient.cpp:
1528         (WebKit::WebPageContextMenuClient::contextMenuDismissed): Added.
1529
1530         * UIProcess/WebPageContextMenuClient.h: Added WebPageContextMenuClient::contextMenuDismissed().
1531
1532         * UIProcess/WebPageProxy.cpp:
1533         (WebKit::WebPageProxy::internalShowContextMenu): Notify client when context menu is dismissed.
1534
1535 2011-10-07  Mark Hahnenberg  <mhahnenberg@apple.com>
1536
1537         Remove getCallDataVirtual methods
1538         https://bugs.webkit.org/show_bug.cgi?id=69186
1539
1540         Reviewed by Geoffrey Garen.
1541
1542         Removed all getCallDataVirtual methods and replaced their call sites 
1543         with an explicit lookup in the MethodTable.
1544
1545         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
1546         * WebProcess/Plugins/Netscape/JSNPMethod.h:
1547         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1548         * WebProcess/Plugins/Netscape/JSNPObject.h:
1549
1550 2011-10-07  Alexey Proskuryakov  <ap@apple.com>
1551
1552         [Mac] Scrollbars in embedded PDFs should update when system preferences change
1553         https://bugs.webkit.org/show_bug.cgi?id=69654
1554
1555         Reviewed by Simon Fraser.
1556
1557         * WebProcess/Plugins/PDF/BuiltInPDFView.h: Added an scrollbarStyleChanged() override.
1558         ScrollAnimatorMac sets scrollbar frame to a bogus (0, 0, thickness, thickness) one when style
1559         changes, and expects clients to move them back in place.
1560
1561         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
1562         (WebKit::BuiltInPDFView::isOnActivePage): Fixed a typo that prevented ScrollAnimatorMac from
1563         updating style of PDF view scrollbars.
1564         (WebKit::BuiltInPDFView::scrollbarStyleChanged): Reposition scrollbars and content after
1565         style change. The behavior is not perfect in edge cases, but roughly matches ScrollView.
1566
1567 2011-10-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1568
1569         Unreviewed, rolling out r96938.
1570         http://trac.webkit.org/changeset/96938
1571         https://bugs.webkit.org/show_bug.cgi?id=69653
1572
1573         It broke zillion tests and make testing so slow (Requested by
1574         ossy_ on #webkit).
1575
1576         * UIProcess/WebContext.cpp:
1577         * UIProcess/WebContext.h:
1578         * UIProcess/efl/WebContextEfl.cpp:
1579         (WebKit::WebContext::applicationCacheDirectory):
1580         * UIProcess/gtk/WebContextGtk.cpp:
1581         (WebKit::WebContext::applicationCacheDirectory):
1582         * UIProcess/mac/WebContextMac.mm:
1583         (WebKit::WebContext::applicationCacheDirectory):
1584         * UIProcess/qt/WebContextQt.cpp:
1585         (WebKit::WebContext::applicationCacheDirectory):
1586         * UIProcess/win/WebContextWin.cpp:
1587         (WebKit::WebContext::applicationCacheDirectory):
1588
1589 2011-10-07  Qi Zhang  <qi.2.zhang@nokia.com>
1590
1591         [Qt][WK2] ApplicationCache LayoutTests failed
1592         https://bugs.webkit.org/show_bug.cgi?id=69541
1593
1594         Reviewed by Chang Shu.
1595
1596         1. Moved applicationCacheDirectory to common code.
1597         2. Added interface setApplicationCacheDirectory to allow UI client overriding.
1598         3. Renamed all platform-dependent implementations of applicationCacheDirectory to platformDefaultApplicationCacheDirectory.
1599         4. On Qt, set the platformDefaultApplicationCacheDirectory to the default data location.
1600
1601
1602         * UIProcess/WebContext.cpp:
1603         (WebKit::WebContext::applicationCacheDirectory):
1604         * UIProcess/WebContext.h:
1605         (WebKit::WebContext::setApplicationCacheDirectory):
1606         * UIProcess/efl/WebContextEfl.cpp:
1607         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
1608         * UIProcess/gtk/WebContextGtk.cpp:
1609         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
1610         * UIProcess/mac/WebContextMac.mm:
1611         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
1612         * UIProcess/qt/WebContextQt.cpp:
1613         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
1614         * UIProcess/win/WebContextWin.cpp:
1615         (WebKit::WebContext::platformDefaultApplicationCacheDirectory):
1616
1617 2011-10-06  Brent Fulgham  <bfulgham@webkit.org>
1618
1619         [WinCairo] Correct improper identification of WKQC extensions.
1620         https://bugs.webkit.org/show_bug.cgi?id=69600
1621
1622         * DerivedSources.make: Make sure we are not building the
1623         WinCairo variant.
1624
1625 2011-10-06  Anders Carlsson  <andersca@apple.com>
1626
1627         When building with clang, enable -Wglobal-constructors and -Wexit-time-destructors
1628         https://bugs.webkit.org/show_bug.cgi?id=69586
1629
1630         Reviewed by Darin Adler.
1631
1632         * Configurations/Base.xcconfig:
1633         Add -Wglobal-constructors and -Wexit-time-destructors when building with clang.
1634
1635         * WebKit2.xcodeproj/project.pbxproj:
1636         When building with clang, we don't need to run the check-for-global-initializers and
1637         check-for-exit-time-destructors anymore.
1638
1639 2011-10-06  Anders Carlsson  <andersca@apple.com>
1640
1641         Add DEFINE_DEBUG_ONLY_GLOBAL for globals that should be defined in debug builds
1642         https://bugs.webkit.org/show_bug.cgi?id=69584
1643
1644         Reviewed by Darin Adler.
1645
1646         Adopt the DEFINE_DEBUG_ONLY_GLOBAL macro.
1647
1648         * UIProcess/WebContext.cpp:
1649         * UIProcess/WebPageProxy.cpp:
1650         * WebProcess/WebPage/WebFrame.cpp:
1651         * WebProcess/WebPage/WebPage.cpp:
1652
1653 2011-10-06  Alexey Proskuryakov  <ap@apple.com>
1654
1655         [Mac] Should be able to scroll embedded PDFs using mouse
1656         https://bugs.webkit.org/show_bug.cgi?id=69579
1657
1658         Reviewed by Darin Adler.
1659
1660         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
1661         (WebKit::BuiltInPDFView::handleMouseEvent): No longer need to hardcode mouseDown handling,
1662         ScrollableArea does everything now.
1663         (WebKit::BuiltInPDFView::horizontalScrollbar): Added plumbing to access scrollbars from
1664         WebCore hit testing code.
1665         (WebKit::BuiltInPDFView::verticalScrollbar): Ditto.
1666         (WebKit::BuiltInPDFView::visibleHeight): ScrollableArea now wants this.
1667         (WebKit::BuiltInPDFView::visibleWidth): Ditto.
1668
1669         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1670         (WebKit::NetscapePlugin::horizontalScrollbar):
1671         (WebKit::NetscapePlugin::verticalScrollbar):
1672         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1673         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
1674         * WebProcess/Plugins/Plugin.h:
1675         * WebProcess/Plugins/PluginProxy.cpp:
1676         (WebKit::PluginProxy::horizontalScrollbar):
1677         (WebKit::PluginProxy::verticalScrollbar):
1678         * WebProcess/Plugins/PluginProxy.h:
1679         * WebProcess/Plugins/PluginView.cpp:
1680         (WebKit::PluginView::horizontalScrollbar):
1681         (WebKit::PluginView::verticalScrollbar):
1682         * WebProcess/Plugins/PluginView.h:
1683         Added plumbing to access scrollbars from WebCore hit testing code.
1684
1685 2011-10-06  Alexis Menard  <alexis.menard@openbossa.org>
1686
1687         [Qt][WK2] WebIconDatabase expects a file path not a directory.
1688         https://bugs.webkit.org/show_bug.cgi?id=69557
1689
1690         Reviewed by Andreas Kling.
1691
1692         WebIconDatabase::setDatabasePath expects a file path not a directory.
1693         I used the same name as the Mac port.
1694
1695         * UIProcess/qt/WebContextQt.cpp:
1696         (WebKit::WebContext::platformDefaultIconDatabasePath):
1697
1698 2011-10-06  Anders Carlsson  <andersca@apple.com>
1699
1700         In background window, page flashes white if it enters and then immediately leaves compositing mode
1701         https://bugs.webkit.org/show_bug.cgi?id=69566
1702         <rdar://problem/9521192>
1703
1704         Reviewed by Dan Bernstein.
1705
1706         Don't update the backing store state if we're just about to exit accelerated compositing mode. Otherwise
1707         the UI process will try to render an empty layer tree for a short period of time, leading to a white flash.
1708
1709         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1710         (WebKit::DrawingAreaImpl::layerHostDidFlushLayers):
1711
1712 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
1713
1714         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
1715         https://bugs.webkit.org/show_bug.cgi?id=69009
1716
1717         Reviewed by Simon Fraser.
1718
1719         * win/WebKit2.def:
1720         * win/WebKit2CFLite.def:
1721
1722 2011-10-06  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
1723
1724         Move windows specific TextChecker implementation common to all ports.
1725         https://bugs.webkit.org/show_bug.cgi?id=68532
1726
1727         Reviewed by Anders Carlsson.
1728
1729         All the TextChecker feature implementation files are moved outside of win port since they are
1730         platform independent and can be moved across all ports. Only the implementation of TextChecker
1731         class is platform dependent now and has been retained across all ports. Rest all files has been
1732         moved for all ports usage.
1733
1734         * Shared/API/c/WKBase.h: Add WKGrammarDetailRef & WKTextCheckerRef types.
1735         * Shared/API/c/win/WKBaseWin.h: Remove WKGrammarDetailRef & WKTextCheckerRef types.
1736         * Shared/APIObject.h: Moved TypeGrammarDetail & TypeTextChecker from platform specific section to UIProcess types.
1737         * UIProcess/API/C/WKAPICast.h: Added mapping for WKTextCheckerRef & WKGrammarDetailRef.
1738         * UIProcess/API/C/WKGrammarDetail.cpp: Renamed from Source/WebKit2/UIProcess/API/C/win/WKGrammarDetail.cpp.
1739         * UIProcess/API/C/WKGrammarDetail.h: Renamed from Source/WebKit2/UIProcess/API/C/win/WKGrammarDetail.h.
1740         * UIProcess/API/C/WKTextChecker.cpp: Renamed from Source/WebKit2/UIProcess/API/C/win/WKTextChecker.cpp.
1741         * UIProcess/API/C/WKTextChecker.h: Renamed from Source/WebKit2/UIProcess/API/C/win/WKTextChecker.h.
1742         * UIProcess/API/C/win/WKAPICastWin.h: Removed mapping for WKTextCheckerRef & WKGrammarDetailRef.
1743         * UIProcess/WebGrammarDetail.cpp: Renamed from Source/WebKit2/UIProcess/win/WebGrammarDetail.cpp.
1744         * UIProcess/WebGrammarDetail.h: Renamed from Source/WebKit2/UIProcess/win/WebGrammarDetail.h.
1745         * UIProcess/WebTextChecker.cpp: Renamed from Source/WebKit2/UIProcess/win/WebTextChecker.cpp.
1746         * UIProcess/WebTextChecker.h: Renamed from Source/WebKit2/UIProcess/win/WebTextChecker.h.
1747         * UIProcess/WebTextCheckerClient.cpp: Renamed from Source/WebKit2/UIProcess/win/WebTextCheckerClient.cpp.
1748         * UIProcess/WebTextCheckerClient.h: Renamed from Source/WebKit2/UIProcess/win/WebTextCheckerClient.h.
1749         * win/WebKit2.vcproj: Corrected paths for renamed files.
1750         * win/WebKit2Generated.make: Corrected paths for renamed files.
1751
1752 2011-10-06  Anders Carlsson  <andersca@apple.com>
1753
1754         Crash when PluginProxy object is destroyed inside PluginProxy::pluginScriptableNPObject
1755         https://bugs.webkit.org/show_bug.cgi?id=69559
1756         <rdar://problem/9704066>
1757
1758         Reviewed by Maciej Stachowiak.
1759
1760         Protect the plug-in itself in the call to pluginScriptableNPObject. In some cases, sending
1761         the synchronous message to the plug-in process can end up causing the web process to handle
1762         an incoming message that will destroy t he plug-in.
1763
1764         Unfortunately, this is highly timing-dependent and can't be tested reliably.
1765
1766         * WebProcess/Plugins/PluginProxy.cpp:
1767         (WebKit::PluginProxy::pluginScriptableNPObject):
1768
1769 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1770
1771         [GTK] Add estimated-progress property to WebKitWebLoaderClient
1772         https://bugs.webkit.org/show_bug.cgi?id=69509
1773
1774         Reviewed by Martin Robinson.
1775
1776         It allows to monitor the estimated progress of a lof operation by
1777         connecting to the notify signal.
1778
1779         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
1780         (didChangeProgress): Update estimated-progress property and notify when
1781         it changes.
1782         (webkitWebLoaderClientConstructed): Add implementations for
1783         didStartProgress, didChangeProgress and didFinishProgress.
1784         (webkitWebLoaderClientGetProperty):
1785         (webkit_web_loader_client_class_init): Add estimated-progress property.
1786         (webkit_web_loader_client_get_estimated_progress): Returns the
1787         value of estimated-progress property.
1788         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
1789         * UIProcess/API/gtk/tests/testloading.c:
1790         (webLoadingFixtureSetup):
1791         (loadProgressEstimatedProgressChanged):
1792         (loadProgressLoadFinished):
1793         (testLoadProgress):
1794         (main):
1795
1796 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1797
1798         [GTK] Implement cache model for WebKit2
1799         https://bugs.webkit.org/show_bug.cgi?id=68434
1800
1801         Reviewed by Martin Robinson.
1802
1803         * UIProcess/API/gtk/WebKitWebContext.cpp:
1804         (webkit_web_context_set_cache_model):
1805         (webkit_web_context_get_cache_model):
1806         * UIProcess/API/gtk/WebKitWebContext.h:
1807         * UIProcess/API/gtk/tests/testwebcontext.c:
1808         (testWebContextCacheModel):
1809         (main):
1810         * WebProcess/gtk/WebProcessGtk.cpp:
1811         (WebKit::getCacheDiskFreeSize): Helper function to get free space
1812         of the file system where the cache directory is on.
1813         (WebKit::getMemorySize): Helper function to get the total memory
1814         of the system in MB.
1815         (WebKit::WebProcess::platformSetCacheModel): Implement
1816         platformSetCacheModel for Gtk port using calculateCacheSizes().
1817
1818 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
1819
1820         https://bugs.webkit.org/show_bug.cgi?id=69492
1821         [Mac] Should be able to scroll embedded PDFs from keyboard
1822
1823         Reviewed by Darin Adler.
1824
1825         * WebProcess/Plugins/Plugin.h:
1826         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1827         (WebKit::NetscapePlugin::handleScroll):
1828         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1829         * WebProcess/Plugins/PluginProxy.cpp:
1830         (WebKit::PluginProxy::handleScroll):
1831         * WebProcess/Plugins/PluginProxy.h:
1832         Added a handleScroll method. A plug-in gets it if it doesn't handle a keyboard event, and
1833         WebCore decides that this is an event for scrolling. A plug-in can decide whether it scrolls
1834         main content, or some scrollable subview of its own.
1835
1836         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp:
1837         (WebKit::BuiltInPDFView::handleMouseEvent): Added a comment explaining returned value.
1838         (WebKit::BuiltInPDFView::handleScroll): Just call ScrollableArea, it will do everything.
1839
1840         * WebProcess/Plugins/PDF/BuiltInPDFView.h: Added a handleScroll override.
1841
1842         * WebProcess/Plugins/PluginView.cpp:
1843         (WebKit::PluginView::scroll): Pass a PluginViewBase scroll to plug-in to handle.
1844         (WebKit::PluginView::handleEvent): Added a FIXME.
1845         * WebProcess/Plugins/PluginView.h:
1846
1847 2011-10-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1848
1849         [GTK] Do not use C API in GTK+ API public headers
1850         https://bugs.webkit.org/show_bug.cgi?id=69506
1851
1852         Reviewed by Martin Robinson.
1853
1854         * GNUmakefile.am: Add new files to compilation.
1855         * UIProcess/API/gtk/WebKitDefines.h: Added.
1856         * UIProcess/API/gtk/WebKitError.h: Use WEBKIT_API instead of WK_EXPORT.
1857         * UIProcess/API/gtk/WebKitWebContext.h: Ditto.
1858         * UIProcess/API/gtk/WebKitWebLoaderClient.h: Ditto.
1859         * UIProcess/API/gtk/WebKitWebView.h: Ditto.
1860         * UIProcess/API/gtk/WebKitWebViewBase.h: Ditto.
1861         * UIProcess/API/gtk/docs/GNUmakefile.am: Ignore WEBKIT_API
1862         decorator in docs.
1863         * UIProcess/API/gtk/webkit2.h: Include <webkit2/WebKitDefines.h>
1864
1865 2011-10-06  Alexis Menard  <alexis.menard@openbossa.org>
1866
1867         [Qt][WK2] Cursor should change when hovering links or input fields.
1868         https://bugs.webkit.org/show_bug.cgi?id=69519
1869
1870         Reviewed by Simon Hausmann.
1871
1872         This is a temporary fix until Qt5 brings support for changing cursor
1873         per item. This patch enforce the change of the cursor at application
1874         level.
1875
1876         * UIProcess/API/qt/qdesktopwebview.cpp:
1877         (QDesktopWebViewPrivate::didChangeCursor):
1878
1879 2011-10-06  Zeno Albisser  <zeno.albisser@nokia.com>
1880
1881         [Qt][WK2][Mac] QtWebProcess should not show up in the Dock.
1882         https://bugs.webkit.org/show_bug.cgi?id=69432
1883
1884         We can set the environment variable QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM
1885         in the WebProcess stub to disable the automatic foreground transformation.
1886
1887         Reviewed by Andreas Kling.
1888
1889         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
1890         (WebKit::QtWebProcess::setupChildProcess):
1891
1892 2011-10-03  Andy Estes  <aestes@apple.com>
1893
1894         Add an option to suppress rendering until the document's load event fires.
1895         https://bugs.webkit.org/show_bug.cgi?id=69298
1896
1897         Reviewed by Simon Fraser.
1898         
1899         Add a new WKPreference.
1900
1901         * Shared/WebPreferencesStore.h:
1902         * UIProcess/API/C/WKPreferences.cpp:
1903         (WKPreferencesSetSuppressRenderingWhileInitiallyLoading):
1904         (WKPreferencesGetSuppressRenderingWhileInitiallyLoading):
1905         * UIProcess/API/C/WKPreferences.h:
1906         * WebProcess/WebPage/WebPage.cpp:
1907         (WebKit::WebPage::updatePreferences):
1908
1909 2011-10-05  Simon Fraser  <simon.fraser@apple.com>
1910
1911         r96770 broke binary compatibility with Safari
1912         https://bugs.webkit.org/show_bug.cgi?id=69496
1913
1914         Reviewed by Dan Bernstein.
1915         
1916         Fix binary compatibility issue by declaring the deprecated methods inside a extern "C" block.
1917
1918         * UIProcess/API/C/WKContext.cpp:
1919
1920 2011-10-05  Jer Noble  <jer.noble@apple.com>
1921
1922         Enable WEB_AUDIO by default in the WebKit/mac port.
1923         https://bugs.webkit.org/show_bug.cgi?id=68587
1924
1925         Reviewed by Simon Fraser.
1926
1927         * Configurations/FeatureDefines.xcconfig:
1928
1929 2011-10-05  Simon Fraser  <simon.fraser@apple.com>
1930
1931         In WebKitTestRunner, text has font smoothing in pixel snapshots
1932         https://bugs.webkit.org/show_bug.cgi?id=69396
1933
1934         Reviewed by Darin Adler.
1935         
1936         Plumb through a method on WKContext that controls whether font smoothing
1937         is enabled. Since this is a global setting, such a method is more appropriate
1938         than a preference.
1939         
1940         Remove leading underscores on some WKContext functions, but keep
1941         exported versions of same for binary compatibility.
1942
1943         * Shared/WebProcessCreationParameters.cpp:
1944         (WebKit::WebProcessCreationParameters::WebProcessCreationParameters):
1945         (WebKit::WebProcessCreationParameters::encode):
1946         (WebKit::WebProcessCreationParameters::decode):
1947         * Shared/WebProcessCreationParameters.h:
1948         * UIProcess/API/C/WKContext.cpp:
1949         (WKContextSetAlwaysUsesComplexTextCodePath):
1950         (WKContextSetShouldUseFontSmoothing):
1951         (WKContextSetAdditionalPluginsDirectory):
1952         (WKContextRegisterURLSchemeAsEmptyDocument):
1953         (WKContextSetHTTPPipeliningEnabled):
1954         (_WKContextSetAdditionalPluginsDirectory):
1955         (_WKContextRegisterURLSchemeAsEmptyDocument):
1956         (_WKContextSetAlwaysUsesComplexTextCodePath):
1957         (_WKContextSetHTTPPipeliningEnabled):
1958         * UIProcess/API/C/WKContextPrivate.h:
1959         * UIProcess/WebContext.cpp:
1960         (WebKit::WebContext::WebContext):
1961         (WebKit::WebContext::ensureWebProcess):
1962         (WebKit::WebContext::setShouldUseFontSmoothing):
1963         (WebKit::WebContext::httpPipeliningEnabled):
1964         * UIProcess/WebContext.h:
1965         * WebProcess/WebProcess.cpp:
1966         (WebKit::WebProcess::initializeWebProcess):
1967         (WebKit::WebProcess::setShouldUseFontSmoothing):
1968         * WebProcess/WebProcess.h:
1969         * WebProcess/WebProcess.messages.in:
1970
1971 2011-10-05  Anders Carlsson  <andersca@apple.com>
1972
1973         Flash of white when unminimizing windows
1974         https://bugs.webkit.org/show_bug.cgi?id=69476
1975         <rdar://problem/10202680>
1976
1977         Reviewed by Simon Fraser.
1978
1979         Whenever the UI process requests an immediate backing store update, make sure to resume
1980         painting if it's suspended.
1981
1982         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1983         (WebKit::DrawingAreaImpl::updateBackingStoreState):
1984
1985 2011-10-05  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1986
1987         [Qt] [WK2] Support JS alert/confirm/prompt in QDesktopWebView
1988         https://bugs.webkit.org/show_bug.cgi?id=69274
1989
1990         Reviewed by Andreas Kling.
1991
1992         Use currently existing QtWidgets to provide an implementation of
1993         window.alert(), window.confirm() and window.prompt().
1994
1995         * Shared/WebString.h:
1996         (WebKit::WebString::createNull):
1997         (WebKit::WebString::WebString):
1998         Add a way to create a Null WebString. RunJavaScriptPrompt will differentiate
1999         between empty and null strings.
2000
2001         * UIProcess/API/qt/qdesktopwebview.cpp:
2002         (QDesktopWebViewPrivate::enableMouseEvents):
2003         (QDesktopWebViewPrivate::disableMouseEvents):
2004         Create helper functions to enable and disable mouse events. This is useful for
2005         disabling mouse events in the WebView when we show QtWidget dialogs to avoid
2006         unwanted interaction with the page.
2007
2008         (QDesktopWebViewPrivate::runJavaScriptAlert):
2009         (QDesktopWebViewPrivate::runJavaScriptConfirm):
2010         (QDesktopWebViewPrivate::runJavaScriptPrompt):
2011         (QDesktopWebView::init):
2012         * UIProcess/API/qt/qdesktopwebview_p.h:
2013         * UIProcess/qt/ClientImpl.cpp:
2014         (qt_wk_runJavaScriptAlert):
2015         (qt_wk_runJavaScriptConfirm):
2016         (createNullWKString):
2017         (qt_wk_runJavaScriptPrompt):
2018         * UIProcess/qt/ClientImpl.h:
2019         * UIProcess/qt/QtWebPageProxy.cpp:
2020         (QtWebPageProxy::init):
2021         * UIProcess/qt/TouchViewInterface.cpp:
2022         (WebKit::TouchViewInterface::runJavaScriptAlert):
2023         (WebKit::TouchViewInterface::runJavaScriptConfirm):
2024         (WebKit::TouchViewInterface::runJavaScriptPrompt):
2025         * UIProcess/qt/TouchViewInterface.h:
2026         * UIProcess/qt/ViewInterface.h:
2027
2028 2011-10-05  Chang Shu  <cshu@webkit.org>
2029
2030         [WK2] Support setMarkedText/hasMarkedText/unmarkText/insertText for WTR TextInputController
2031         https://bugs.webkit.org/show_bug.cgi?id=68924
2032
2033         Implemented WKBundlePage private APIs to support the above functions.
2034
2035         Reviewed by Darin Adler.
2036
2037         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2038         (WKBundlePageSetComposition):
2039         (WKBundlePageHasComposition):
2040         (WKBundlePageConfirmComposition):
2041         (WKBundlePageConfirmCompositionWithText):
2042         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
2043         * WebProcess/WebPage/WebPage.cpp:
2044         (WebKit::WebPage::setCompositionForTesting):
2045         (WebKit::WebPage::hasCompositionForTesting):
2046         (WebKit::WebPage::confirmCompositionForTesting):
2047         * WebProcess/WebPage/WebPage.h:
2048
2049 2011-10-05  Alexey Proskuryakov  <ap@apple.com>
2050
2051         [Mac] Make built-in PDF description localizable
2052         https://bugs.webkit.org/show_bug.cgi?id=69442
2053
2054         Reviewed by Dan Bernstein.
2055
2056         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: Use a localized string instead of a literal one.
2057
2058 2011-10-05  Chang Shu  <cshu@webkit.org>
2059
2060         [WK2] WebKitTestRunner needs LayoutTestController.dumpConfigurationForViewport
2061         https://bugs.webkit.org/show_bug.cgi?id=69365
2062
2063         Reviewed by Darin Adler.
2064
2065         Implement retrieving viewport configuration as text in WebProcess.
2066
2067         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2068         (WKBundlePageViewportConfigurationAsText):
2069         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
2070         * WebProcess/WebPage/WebPage.cpp:
2071         (WebKit::WebPage::viewportConfigurationAsText):
2072         * WebProcess/WebPage/WebPage.h:
2073
2074 2011-10-05  Alexis Menard  <alexis.menard@openbossa.org>
2075
2076         [Qt][WK2] Default directories and paths are missing for LocalStorage, Database and IconDatabase.
2077         https://bugs.webkit.org/show_bug.cgi?id=69111
2078
2079         Reviewed by Kenneth Rohde Christiansen.
2080
2081         Provide default path for LocalStorage, Database and IconDatabase using QDesktopServices.
2082
2083         * UIProcess/qt/WebContextQt.cpp:
2084         (WebKit::defaultDataLocation):
2085         (WebKit::WebContext::platformInitializeWebProcess):
2086         (WebKit::WebContext::platformDefaultDatabaseDirectory):
2087         (WebKit::WebContext::platformDefaultIconDatabasePath):
2088         (WebKit::WebContext::platformDefaultLocalStorageDirectory):
2089
2090 2011-10-05  Carlos Garcia Campos  <cgarcia@igalia.com>
2091
2092         [GTK] Use WKRetainPtr for WK types in WebKit2 GTK+
2093         https://bugs.webkit.org/show_bug.cgi?id=69404
2094
2095         Reviewed by Martin Robinson.
2096
2097         * UIProcess/API/gtk/WebKitWebContext.cpp:
2098         (webkitWebContextFinalize):
2099         (createDefaultWebContext):
2100         (webkitWebContextGetWKContext):
2101         * UIProcess/API/gtk/WebKitWebView.cpp:
2102         (webkit_web_view_load_uri):
2103         (webkit_web_view_load_alternate_html):
2104
2105 2011-10-04  Kent Tamura  <tkent@chromium.org>
2106
2107         Introduce feature flags for incomplete input types
2108         https://bugs.webkit.org/show_bug.cgi?id=68971
2109
2110         Reviewed by Hajime Morita.
2111
2112         * Configurations/FeatureDefines.xcconfig:
2113         Add ENABLE_INPUT_TYPE_* flags. They are enabled only for iOS.
2114
2115 2011-10-04  Scott Graham  <scottmg@chromium.org>
2116
2117         Add GAMEPAD feature flag
2118         https://bugs.webkit.org/show_bug.cgi?id=66859
2119
2120         Reviewed by Darin Fisher.
2121
2122         * Configurations/FeatureDefines.xcconfig:
2123
2124 2011-10-04  Ada Chan  <adachan@apple.com>
2125
2126         toURLRef() in WKSharedAPICast.h should return null for a null string
2127         https://bugs.webkit.org/show_bug.cgi?id=69380
2128
2129         Reviewed by Jon Honeycutt.
2130
2131         * Shared/API/c/WKSharedAPICast.h:
2132         (WebKit::toURLRef): Add the missing "return" for the null string case.
2133
2134 2011-10-04  Alexey Proskuryakov  <ap@apple.com>
2135
2136         https://bugs.webkit.org/show_bug.cgi?id=67774
2137         PDF in a frameset is not displayed, always downloads
2138
2139         Reviewed by Darin Adler.
2140
2141         * WebKit2.xcodeproj/project.pbxproj:
2142         * WebProcess/Plugins/PDF: Added.
2143         Added BuiltInPDFView class. It implements ScrollableArea and Plugin, working with iframes,
2144         objects and embeds. The implementation targets Mac port only, fixing a WebKit2 regression.
2145
2146         * UIProcess/WebContext.cpp: (WebKit::WebContext::getPlugins): Tell WebCore that there is a
2147         plug-in for PDF, so that it instantiates it in a regular fashion.
2148
2149         * UIProcess/WebFrameProxy.cpp: (WebKit::WebFrameProxy::canShowMIMEType): We can now show
2150         PDF not only in main frame.
2151
2152         * WebProcess/Plugins/PDF/BuiltInPDFView.cpp: Added. This is largely an implementation of
2153         ScrollableArea now, which can render the first page of a PDF. Further improvements to come.
2154
2155         * WebProcess/Plugins/PDF/BuiltInPDFView.h: Added.
2156
2157         * WebProcess/Plugins/Plugin.cpp: (WebKit::Plugin::updateControlTints): Give Plugin a chance
2158         to invalidate its tintable controls - it's necessary for PDF because scrollbars are tintable. 
2159
2160         * WebProcess/Plugins/Plugin.h: (WebKit::Plugin::controller): Added a const version, since
2161         some ScrollableArea methods are const.
2162
2163         * WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::paint): Call updateControlTints
2164         at updatingControlTints phase.
2165
2166         * WebProcess/Plugins/PluginView.h: PDF plug-in needs to tinker with embedding FrameView to
2167         use Scrollbar class, so it needs to cast its PluginController up to PluginView. It's unfortunate
2168         that PluginView has so much NPAPI specific code, but that's how it is now.
2169
2170         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::createPlugin): If there is no real plug-in
2171         installed for PDF, instantiate built-in one.
2172
2173 2011-10-04  Jon Lee  <jonlee@apple.com>
2174
2175         REGRESSION (WK2): (Shift-)option-tabbing skips over elements when transitioning from chrome to webview
2176         https://bugs.webkit.org/show_bug.cgi?id=68412
2177         <rdar://problem/9988252>
2178
2179         Reviewed by Darin Adler.
2180
2181         In WK1 setInitialFocus() is called on FocusController with the key event that
2182         caused the web view to become first responder. In WK2 no event is sent. So if
2183         the key stroke that caused the change in first responder status contains the
2184         option modifier key, FocusController did not know that it had to switch behavior.
2185
2186         Because there are multiple ways that the WKView can becomeFirstResponder, I changed
2187         the signature to setInitialFocus to express whether the key event parameter is an
2188         actual key event.
2189
2190         * UIProcess/API/C/win/WKView.cpp:
2191         (WKViewSetInitialFocus):
2192         * UIProcess/API/mac/WKView.mm:
2193         (-[WKView becomeFirstResponder]): Take the NSApp currentEvent and pass it along if
2194         the event is a keyboard event, otherwise pass an empty event.
2195         * UIProcess/WebPageProxy.cpp:
2196         (WebKit::WebPageProxy::setInitialFocus): Change in function signature to confirm that
2197         the event that caused the initial focus was a keyboard event, and provide the keyboard
2198         event itself.
2199         * UIProcess/WebPageProxy.h:
2200         * UIProcess/win/WebView.cpp:
2201         (WebKit::WebView::setInitialFocus):
2202         * UIProcess/win/WebView.h:
2203         * WebProcess/WebPage/WebPage.cpp:
2204         (WebKit::WebPage::setInitialFocus): If we know that the cause of this was a keyboard
2205         event, we pass that event to the FocusController. Otherwise we fall back to the original
2206         behavior, which is to pass no event at all.
2207         * WebProcess/WebPage/WebPage.h:
2208         * WebProcess/WebPage/WebPage.messages.in:
2209
2210 2011-10-04  Jeff Miller  <jeffm@apple.com>
2211
2212         WKPreferences should allow control of application chrome mode
2213         https://bugs.webkit.org/show_bug.cgi?id=69344
2214
2215         Reviewed by Dan Bernstein.
2216
2217         * Shared/WebPreferencesStore.h: Add application chrome mode setting to FOR_EACH_WEBKIT_BOOL_PREFERENCE().
2218
2219         * UIProcess/API/C/WKPreferences.cpp:
2220         (WKPreferencesSetApplicationChromeModeEnabled): Added.
2221         (WKPreferencesGetApplicationChromeModeEnabled): Added.
2222
2223         * UIProcess/API/C/WKPreferencesPrivate.h: Added WKPreferencesSetApplicationChromeModeEnabled() and WKPreferencesGetApplicationChromeModeEnabled().
2224
2225         * WebProcess/WebPage/WebPage.cpp:
2226         (WebKit::WebPage::updatePreferences): Set application chrome mode setting.
2227
2228 2011-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
2229
2230         [GTK] Implement default error pages in WebKit2 GTK+ API
2231         https://bugs.webkit.org/show_bug.cgi?id=69255
2232
2233         Reviewed by Martin Robinson.
2234
2235         * UIProcess/API/gtk/WebKitError.cpp:
2236         (webkit_policy_error_quark): Add quark for policy errors.
2237         (webkit_plugin_error_quark): Add quark for plugin errors.
2238         * UIProcess/API/gtk/WebKitError.h: Add policy and plugin errors.
2239         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
2240         (webkitWebLoaderClientLoadFailed): Load a custom error page when
2241         load failed and signal has not been handled.
2242         (webkit_web_loader_client_class_init): Add default implementation
2243         for provisional_load_failed and load_failed virtual methods.
2244
2245 2011-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
2246
2247         [GTK] Add webkit_web_view_load_alternate_html() to WebKit2 GTK+ API
2248         https://bugs.webkit.org/show_bug.cgi?id=69254
2249
2250         Reviewed by Martin Robinson.
2251
2252         * UIProcess/API/gtk/WebKitWebView.cpp:
2253         (webkit_web_view_load_alternate_html):
2254         * UIProcess/API/gtk/WebKitWebView.h:
2255         * UIProcess/API/gtk/tests/testloading.c:
2256         (loadAlternateContentLoadFinished):
2257         (loadAlternateContentLoadFailed):
2258         (testLoadAlternateContent):
2259         (main):
2260
2261 2011-10-03  Jon Lee  <jonlee@apple.com>
2262
2263         Extend DOM WheelEvent to differentiate between physical and logical scroll directions
2264         https://bugs.webkit.org/show_bug.cgi?id=68959
2265         <rdar://problem/10036688>
2266
2267         Reviewed by Sam Weinig.
2268
2269         * Shared/WebEvent.h:
2270         (WebKit::WebWheelEvent::directionInvertedFromDevice):
2271         * Shared/WebEventConversion.cpp:
2272         (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent):
2273         * Shared/WebWheelEvent.cpp:
2274         (WebKit::WebWheelEvent::WebWheelEvent):
2275         (WebKit::WebWheelEvent::encode):
2276         (WebKit::WebWheelEvent::decode):
2277         * Shared/mac/WebEventFactory.mm:
2278         (WebKit::WebEventFactory::createWebWheelEvent): get the flag from the NSEvent.
2279         * UIProcess/WebPageProxy.cpp:
2280         (WebKit::coalesce):
2281
2282 2011-10-04  Nayan Kumar K  <nayankk@motorola.com>
2283
2284         [WebKit2][gtk] Generate gtk-doc for WebKit2-GTK.
2285         https://bugs.webkit.org/show_bug.cgi?id=69325
2286
2287         Reviewed by Gustavo Noronha Silva.
2288
2289         Documentation generation for WebKit2-GTK+ APIs
2290         using gtk-doc.
2291
2292         * GNUmakefile.am: Added doc generation files to EXTRA_DIST.
2293         * UIProcess/API/gtk/docs/GNUmakefile.am: Makefile for doc generation.
2294         * UIProcess/API/gtk/docs/version.xml.in: Version information.
2295         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Document template.
2296         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Document sections added.
2297         * UIProcess/API/gtk/docs/webkit2gtk.types: Added GObjects types.
2298
2299 2011-10-04  Nayan Kumar K  <nayankk@motorola.com>
2300
2301         [WebKit2][gtk] Fix warnings while generating documentation using gtk-doc.
2302         https://bugs.webkit.org/show_bug.cgi?id=69329
2303
2304         Reviewed by Martin Robinson.
2305
2306         Added documentation for WebKitNetworkError enum and corrected few other
2307         minor issues in WebKit2-GTK+ API documentation.
2308
2309         * UIProcess/API/gtk/WebKitError.h: Added documentation for WebKitNetworkError.
2310         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
2311         (webkit_web_loader_client_class_init): Corrected parameter name.
2312         * UIProcess/API/gtk/WebKitWebView.cpp: Corrected annotation.
2313
2314 2011-10-04  Vsevolod Vlasov  <vsevik@chromium.org>
2315
2316         Web Inspector: Remove http/tests/inspector/network/disabled-cache-crash.html.
2317         https://bugs.webkit.org/show_bug.cgi?id=69332
2318
2319         Reviewed by Pavel Feldman.
2320
2321         * win/WebKit2.def:
2322         * win/WebKit2CFLite.def:
2323
2324 2011-10-03  Anders Carlsson  <andersca@apple.com>
2325
2326         Content area does not return to the correct position after rubberbanding
2327         https://bugs.webkit.org/show_bug.cgi?id=69302
2328         <rdar://problem/10102886>
2329
2330         Reviewed by Sam Weinig.
2331
2332         Make sure to schedule a display after adding to the dirty region.
2333
2334         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2335         (WebKit::DrawingAreaImpl::scroll):
2336
2337 2011-10-03  Anders Carlsson  <andersca@apple.com>
2338
2339         Remove custom scrollbar painting hooks
2340         https://bugs.webkit.org/show_bug.cgi?id=69163
2341
2342         Remove overridden ChromeClient member functions.
2343
2344         Reviewed by Alexey Proskuryakov.
2345
2346         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2347         * WebProcess/WebCoreSupport/WebChromeClient.h:
2348
2349 2011-10-03  Jer Noble  <jer.noble@apple.com>
2350
2351         Unreviewed, rolling out r96526.
2352         http://trac.webkit.org/changeset/96526
2353         https://bugs.webkit.org/show_bug.cgi?id=68587
2354
2355         WEB_AUDIO has numerous 64->32 bit casting warnings, causing
2356         build breakages where -Wall is enabled.
2357
2358         * Configurations/FeatureDefines.xcconfig:
2359
2360 2011-10-03  Jer Noble  <jer.noble@apple.com>
2361
2362         Enable WEB_AUDIO by default in the WebKit/mac port.
2363         https://bugs.webkit.org/show_bug.cgi?id=68587
2364
2365         Reviewed by Simon Fraser.
2366
2367         * Configurations/FeatureDefines.xcconfig:
2368
2369 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
2370
2371         [GTK] Add failing uri parameter to provisional-load-failed and load-failed signals
2372         https://bugs.webkit.org/show_bug.cgi?id=69252
2373
2374         Reviewed by Martin Robinson.
2375
2376         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
2377         (didFailProvisionalLoadWithErrorForFrame): Pass failing URL to
2378         signal handler.
2379         (didFailLoadWithErrorForFrame): Ditto.
2380         (webkit_web_loader_client_class_init): Add failing URL parameter
2381         to provisional-load-failed and load-failed signals.
2382         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
2383         * UIProcess/API/gtk/tests/testloading.c:
2384         (loadStatusProvisionalLoadFailed): Update to API changes.
2385         (loadStatusLoadFailed): Ditto.
2386         (loadErrorProvisionalLoadFailed): Ditto.
2387         * UIProcess/API/gtk/webkit2marshal.list:
2388
2389 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
2390
2391         [GTK] Fix memory leak when loading url
2392         https://bugs.webkit.org/show_bug.cgi?id=69247
2393
2394         Reviewed by Martin Robinson.
2395
2396         Release URL created with WKURLCreateWithUTF8CString().
2397
2398         * UIProcess/API/gtk/WebKitWebView.cpp:
2399         (webkit_web_view_load_uri):
2400
2401 2011-10-03  Carlos Garcia Campos  <cgarcia@igalia.com>
2402
2403         [UNIX] Rename NetscapePluginModule::pluginInfo to NetscapePluginModule::getPluginInfoForLoadedPlugin()
2404         https://bugs.webkit.org/show_bug.cgi?id=69147
2405
2406         Reviewed by Martin Robinson.
2407
2408         * Shared/Plugins/Netscape/NetscapePluginModule.h:
2409         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2410         (WebKit::NetscapePluginModule::getPluginInfoForLoadedPlugin):
2411         (WebKit::NetscapePluginModule::getPluginInfo):
2412
2413 2011-10-03  Zeno Albisser  <zeno.albisser@nokia.com>
2414
2415         [Qt][WebKit2][Mac] WebProcess should exit automatically when UIProcess dies.
2416         https://bugs.webkit.org/show_bug.cgi?id=68439
2417
2418         We use a dispatch queue and a dispatch source in the WebProcess
2419         to receive a notification when the UI Process dies.
2420         The WebProcess then commits suicide.
2421
2422         Reviewed by Andreas Kling.
2423
2424         * WebProcess/qt/WebProcessQt.cpp:
2425         (WebKit::parentProcessDiedCallback):
2426         (WebKit::WebProcess::platformInitializeWebProcess):
2427
2428 2011-10-02  Zeno Albisser  <zeno.albisser@nokia.com>
2429
2430         [Qt][WK2][Mac] WebKit2 does not build on mac after merge of Qt5 refactor branch.
2431         https://bugs.webkit.org/show_bug.cgi?id=69223
2432
2433         After the merge of the Qt5 refactor branch, networking stuff has been
2434         extracted into a separate library. The qmlplugin needs to link to that
2435         library to get QNetworkReply defined.
2436
2437         Reviewed by Noam Rosenthal.
2438
2439         * UIProcess/API/qt/qmlplugin/qmlplugin.pro:
2440
2441 2011-10-01  Geoffrey Garen  <ggaren@apple.com>
2442
2443         Removed redundant helper functions for allocating Strong handles
2444         https://bugs.webkit.org/show_bug.cgi?id=69218
2445
2446         Reviewed by Sam Weinig.
2447
2448         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
2449         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
2450
2451 2011-09-30  Sam Weinig  <sam@webkit.org>
2452
2453         Add support for eventSender.mouseScrollBy in WTR
2454         https://bugs.webkit.org/show_bug.cgi?id=69189
2455
2456         Reviewed by Simon Fraser.
2457
2458         * UIProcess/WebPageProxy.cpp:
2459         (WebKit::WebPageProxy::handleWheelEvent):
2460         * WebProcess/WebPage/WebPage.cpp:
2461         (WebKit::WebPage::wheelEventSyncForTesting):
2462         * WebProcess/WebPage/WebPage.h:
2463         * WebProcess/WebPage/WebPage.messages.in:
2464         Add sync version of wheel event handling for use in testing.
2465
2466 2011-09-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2467
2468         [Qt] Add missing include for QMimeData
2469         https://bugs.webkit.org/show_bug.cgi?id=69178
2470
2471         Reviewed by Tor Arne Vestbø.
2472
2473         This was implicitly included by other headers, but due to changes in
2474         Qt5 we need to include explicitly.
2475
2476         * UIProcess/qt/QtWebPageProxy.cpp:
2477         * WebProcess/WebPage/WebPage.cpp:
2478
2479 2011-09-30  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2480
2481         [Qt] Prevent qDebug() output from DRT and WTR unless --verbose
2482
2483         For DRT we didn't install the message handler early enough to
2484         catch output while constructing the QApplication. For WTR we
2485         didn't even install a message handler.
2486
2487         Since the UI process will forward any output from the web process
2488         we set an environment variable QT_WEBKIT_SUPPRESS_WEB_PROCESS_OUTPUT
2489         in WTR before the web process is started. This is picked up by the
2490         web process which installs its own message handler.
2491
2492         The environment variable can be overriden on the command line if you
2493         want to see output from the web process, or you can pass --verbose to
2494         WTR to see output from both processes.
2495
2496         https://bugs.webkit.org/show_bug.cgi?id=69132
2497
2498         Reviewed by Andreas Kling.
2499
2500         * WebProcess/qt/WebProcessMainQt.cpp:
2501
2502 2011-09-30  Anders Carlsson  <andersca@apple.com>
2503
2504         Remove didCompleteRubberBandForMainFrame UIClient callback
2505         https://bugs.webkit.org/show_bug.cgi?id=69161
2506
2507         Reviewed by Adam Roben.
2508
2509         * UIProcess/API/C/WKPage.h:
2510         * UIProcess/WebPageProxy.cpp:
2511         * UIProcess/WebPageProxy.h:
2512         * UIProcess/WebPageProxy.messages.in:
2513         * UIProcess/WebUIClient.cpp:
2514         * UIProcess/WebUIClient.h:
2515         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2516         (WebKit::WebChromeClient::didCompleteRubberBandForFrame):
2517
2518 2011-09-30  Qi Zhang  <qi.2.zhang@nokia.com>
2519
2520         WebKitTestRunner needs layoutTestController.setAppCacheMaximumSize
2521         https://bugs.webkit.org/show_bug.cgi?id=42698
2522
2523         Reviewed by Andreas Kling.
2524
2525         Implemented layoutTestController.setAppCacheMaximumSize and layoutTestController.clearApplicationCache,
2526         and call clearApplicationCache when layoutTest start up.
2527
2528         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2529         (WebKit::WebApplicationCacheManager::setAppCacheMaximumSize):
2530         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
2531         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2532         (WKBundleClearApplicationCache):
2533         (WKBundleSetAppCacheMaximumSize):
2534         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
2535         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2536         (WebKit::InjectedBundle::clearApplicationCache):
2537         (WebKit::InjectedBundle::setAppCacheMaximumSize):
2538         * WebProcess/InjectedBundle/InjectedBundle.h:
2539
2540 2011-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
2541
2542         [UNIX] Add a method to get information for an already loaded plugin module
2543         https://bugs.webkit.org/show_bug.cgi?id=69139
2544
2545         Reviewed by Martin Robinson.
2546
2547         * Shared/Plugins/Netscape/NetscapePluginModule.h: Add pluginInfo().
2548         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2549         (WebKit::NetscapePluginModule::pluginInfo): Private method to get
2550         the plugin information from the module, it must be called when the
2551         module has been already initialized.
2552         (WebKit::NetscapePluginModule::getPluginInfo): Use pluginInfo() to
2553         get information of the plugin module for the given path.
2554
2555 2011-09-30  Zeno Albisser  <zeno.albisser@nokia.com>
2556
2557         [Qt][WK2] Event delivery in QDesktopWebView is broken after merge of Qt5 refactor
2558         https://bugs.webkit.org/show_bug.cgi?id=69105
2559
2560         This changes QDesktopWebView and QDesktopWebPageProxy to use QMouseEvent instead
2561         of QGraphicsSceneMouseEvent.
2562         Further it removes an endless loop introduced by the QSGItem::event() function
2563         delivering inputMethodEvents but no other events.
2564
2565         Reviewed by Andreas Kling.
2566
2567         * Shared/NativeWebMouseEvent.h:
2568         (WebKit::NativeWebMouseEvent::nativeEvent):
2569         * Shared/NativeWebWheelEvent.h:
2570         (WebKit::NativeWebWheelEvent::nativeEvent):
2571         * Shared/qt/NativeWebMouseEventQt.cpp:
2572         (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
2573         * Shared/qt/NativeWebWheelEventQt.cpp:
2574         (WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
2575         * Shared/qt/WebEventFactoryQt.cpp:
2576         (WebKit::mouseButtonForEvent):
2577         (WebKit::webEventTypeForEvent):
2578         (WebKit::WebEventFactory::createWebMouseEvent):
2579         (WebKit::WebEventFactory::createWebWheelEvent):
2580         * Shared/qt/WebEventFactoryQt.h:
2581         * UIProcess/API/qt/qdesktopwebview.cpp:
2582         (QDesktopWebView::mousePressEvent):
2583         (QDesktopWebView::mouseMoveEvent):
2584         (QDesktopWebView::mouseReleaseEvent):
2585         (QDesktopWebView::mouseDoubleClickEvent):
2586         (QDesktopWebView::wheelEvent):
2587         (QDesktopWebView::event):
2588         * UIProcess/API/qt/qdesktopwebview.h:
2589         * UIProcess/qt/qdesktopwebpageproxy.cpp:
2590         (QDesktopWebPageProxy::handleEvent):
2591         (QDesktopWebPageProxy::handleMouseMoveEvent):
2592         (QDesktopWebPageProxy::handleMousePressEvent):
2593         (QDesktopWebPageProxy::handleMouseReleaseEvent):
2594         (QDesktopWebPageProxy::handleMouseDoubleClickEvent):
2595         (QDesktopWebPageProxy::handleWheelEvent):
2596         (QDesktopWebPageProxy::handleHoverMoveEvent):
2597         * UIProcess/qt/qdesktopwebpageproxy.h:
2598
2599 2011-09-29  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
2600
2601         Initial implementation of WebInspector for WebKit2 GTK port.
2602         https://bugs.webkit.org/show_bug.cgi?id=68235
2603
2604         Reviewed by Martin Robinson.
2605
2606         * UIProcess/WebInspectorProxy.cpp:
2607         (WebKit::WebInspectorProxy::WebInspectorProxy): Initialize the native window handles of GTK.
2608         * UIProcess/WebInspectorProxy.h: Add native window handle for inspector window.
2609         * UIProcess/gtk/WebInspectorGtk.cpp:
2610         (WebKit::inspectorFilesBasePath): Base folder for inspector resources.
2611         (WebKit::inspectorWindowDestroyed): Invoked when inspector window is closed by user.
2612         (WebKit::WebInspectorProxy::windowDestroyed): Resets the native handles to 0 when user closes the window.
2613         (WebKit::WebInspectorProxy::platformCreateInspectorPage): Create the WebView for inspector.
2614         (WebKit::WebInspectorProxy::platformOpen): Create the window for inspector.
2615         (WebKit::WebInspectorProxy::platformDidClose): Close both WebView & window of inspector.
2616         (WebKit::WebInspectorProxy::platformInspectedURLChanged): Update the title of inspector window.
2617         (WebKit::WebInspectorProxy::inspectorPageURL): Return the absolute URL of inspector.html.
2618         (WebKit::WebInspectorProxy::inspectorBaseURL): Return the location where inspector resources are present.
2619         WebProcess is given read access to this folder only for loading file URLs by sandboxed extension.
2620
2621 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2622
2623         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
2624
2625         QWidget and friends now live in the QtWidgets library. We update
2626         includes in implementation files and private headers to us the
2627         non-module-prefixed path, and leave the lookup for the include
2628         path. For public headers we have to ifdef the includes as the
2629         user might now have the modules we need in his QT config.
2630
2631         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
2632         have to update our code and use windowHandle() for setting the
2633         parent relationships.
2634
2635         https://bugs.webkit.org/show_bug.cgi?id=68687
2636
2637         Reviewed by Andreas Kling.
2638
2639         * UIProcess/API/qt/qdesktopwebview.cpp:
2640         * UIProcess/API/qt/qdesktopwebview.h:
2641         * UIProcess/API/qt/tests/tests.pro:
2642         * UIProcess/qt/ViewInterface.h:
2643         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
2644
2645 2011-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
2646
2647         [GTK] Force single header include in WebKit2 GTK+ API
2648         https://bugs.webkit.org/show_bug.cgi?id=69084
2649
2650         Reviewed by Martin Robinson.
2651
2652         Only <webkit2/webkit2.h> will be allowed for API users.
2653
2654         * GNUmakefile.am:
2655         * UIProcess/API/gtk/WebKitError.h:
2656         * UIProcess/API/gtk/WebKitWebContext.h:
2657         * UIProcess/API/gtk/WebKitWebLoaderClient.h:
2658         * UIProcess/API/gtk/WebKitWebView.h:
2659         * UIProcess/API/gtk/WebKitWebViewBase.h:
2660         * UIProcess/API/gtk/webkit2.h:
2661
2662 2011-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
2663
2664         [GTK] Explicitly call destructors for objects initialized with placement new syntax
2665         https://bugs.webkit.org/show_bug.cgi?id=69079
2666
2667         Reviewed by Xan Lopez.
2668
2669         * UIProcess/API/gtk/WebKitWebContext.cpp:
2670         (webkitWebContextFinalize): Call ~WebKitWebContextPrivate().
2671         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
2672         (webkitWebLoaderClientFinalize): Call ~WebKitWebLoaderClient().
2673         (webkit_web_loader_client_class_init):
2674         * UIProcess/API/gtk/WebKitWebView.cpp:
2675         (webkitWebViewFinalize): Call ~WebKitWebViewPrivate().
2676         (webkit_web_view_class_init):
2677
2678 2011-09-28  Martin Robinson  <mrobinson@igalia.com>
2679
2680         Fix the WebGL build on WebKit2 GTK+.
2681
2682         * GNUmakefile.am: Add OPENGL_LIBS to WebKit2 targets.
2683
2684 2011-09-28  Brent Fulgham  <bfulgham@webkit.org>
2685
2686         WinCairo build fix.
2687
2688         * WebProcess/WebPage/WebFrame.h: Add include of <wtc/RetainPtr.h>
2689
2690 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2691
2692         One more shot at fixing GTK+, this seems to make the dependencies
2693         work.
2694
2695         * GNUmakefile.am:
2696
2697 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2698
2699         GTK+ build fix 3 - the return of the marshal.
2700
2701         * GNUmakefile.am:
2702
2703 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2704
2705         Second try at fixing the GTK+ build.
2706
2707         * GNUmakefile.am:
2708
2709 2011-09-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
2710
2711         Try to fix GTK+ build.
2712
2713         * GNUmakefile.am:
2714
2715 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2716
2717         [GTK] Fix webkit2 unit tests in debug builds
2718         https://bugs.webkit.org/show_bug.cgi?id=69006
2719
2720         Reviewed by Martin Robinson.
2721
2722         We are currently using the WorQueue name as thread name which in
2723         this moment can be com.apple.WebKit.ProcessLauncher or
2724         com.apple.CoreIPC.ReceiveQueue. Both names are longer than 31
2725         characters which is the limit of Visual Studio for thread
2726         names. When log is enabled createThread() will assert instead of
2727         truncate the name, so we need to make sure we don't use a name
2728         longer than 31 characters.
2729
2730         * Platform/gtk/WorkQueueGtk.cpp:
2731         (WorkQueue::platformInitialize):
2732
2733 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2734
2735         [GTK] Loader client implementation for WebKit2 GTK+ API
2736         https://bugs.webkit.org/show_bug.cgi?id=68085
2737
2738         Reviewed by Martin Robinson.
2739
2740         Adds a new object, WebKitWebLoaderClient, that emits signals for
2741         every page loader callback.
2742
2743         * GNUmakefile.am: Add new files to compilation.
2744         * UIProcess/API/gtk/WebKitWebLoaderClient.cpp: Added.
2745         (didStartProvisionalLoadForFrame):
2746         (didReceiveServerRedirectForProvisionalLoadForFrame):
2747         (didFailProvisionalLoadWithErrorForFrame):
2748         (didCommitLoadForFrame):
2749         (didFinishLoadForFrame):
2750         (didFailLoadWithErrorForFrame):
2751         (webkitWebLoaderClientConstructed):
2752         (webkitWebLoaderClientSetProperty):
2753         (webkitWebLoaderClientGetProperty):
2754         (webkit_web_loader_client_init):
2755         (webkit_web_loader_client_class_init):
2756         * UIProcess/API/gtk/WebKitWebLoaderClient.h: Added.
2757         * UIProcess/API/gtk/WebKitWebView.cpp:
2758         (webkitWebViewConstructed): Create the loader client for the view.
2759         (webkit_web_view_init):
2760         (webkit_web_view_get_loader_client): Get the current loader client.
2761         (webkit_web_view_set_loader_client): Set a new loader client.
2762         * UIProcess/API/gtk/WebKitWebView.h:
2763         * UIProcess/API/gtk/tests/testloading.c: Added.
2764         (serverCallback):
2765         (webLoadingFixtureSetup):
2766         (webLoadingFixtureTeardown):
2767         (getURIForPath):
2768         (loadStatusProvisionalLoadStarted):
2769         (loadStatusProvisionalLoadReceivedServerRedirect):
2770         (loadStatusProvisionalLoadFailed):
2771         (loadStatusLoadCommitted):
2772         (loadStatusLoadFinished):
2773         (loadStatusLoadFailed):
2774         (testLoadingStatus):
2775         (loadErrorProvisionalLoadStarted):
2776         (loadErrorProvisionalLoadFailed):
2777         (loadErrorLoadFinished):
2778         (testLoadingError):
2779         (main):
2780         * UIProcess/API/gtk/webkit2marshal.list: Added.
2781
2782 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2783
2784         [GTK] Add WebKitError to GTK+ WebKit2 API
2785         https://bugs.webkit.org/show_bug.cgi?id=68508
2786
2787         Reviewed by Martin Robinson.
2788
2789         Add WebKitNetworkError enum to define network errors.
2790
2791         * GNUmakefile.am: Add new files to compilation.
2792         * UIProcess/API/gtk/WebKitError.cpp: Added.
2793         (webkit_network_error_quark):
2794         * UIProcess/API/gtk/WebKitError.h:
2795         * UIProcess/API/gtk/WebKitPrivate.h: Add
2796         COMPILE_ASSERT_MATCHING_ENUM macro.
2797         * UIProcess/API/gtk/webkit2.h: Add WebKitError.h and
2798         WebKitEnumTypes.h
2799
2800 2011-09-28  Carlos Garcia Campos  <cgarcia@igalia.com>
2801
2802         [GTK] Fix Programs/unittests/webkit2/testwebview
2803         https://bugs.webkit.org/show_bug.cgi?id=68993
2804
2805         Reviewed by Philippe Normand.
2806
2807         * GNUmakefile.am: Add -DWEBKIT_EXEC_PATH.
2808         * UIProcess/API/gtk/tests/testwebview.c:
2809         (main): Get WebProcess path from WEBKIT_EXEC_PATH environment
2810         variable.
2811
2812 2011-09-27  Mark Hahnenberg  <mhahnenberg@apple.com>
2813
2814         Add static version of JSCell::getCallData
2815         https://bugs.webkit.org/show_bug.cgi?id=68741
2816
2817         Reviewed by Darin Adler.
2818
2819         In this patch we just extract the bodies of the virtual getCallData methods
2820         throughout the JSCell inheritance hierarchy out into static methods, which are 
2821         now called from the virtual methods.  This is an intermediate step in trying to 
2822         move the virtual-ness of getCallData into our own method table stored in 
2823         ClassInfo.  We need to convert the methods to static methods because static methods 
2824         can be represented as function pointers rather than pointers to member functions, and
2825         function pointers are smaller and faster to call than pointers to member functions.
2826
2827         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
2828         (WebKit::JSNPMethod::getCallDataVirtual):
2829         (WebKit::JSNPMethod::getCallData):
2830         * WebProcess/Plugins/Netscape/JSNPMethod.h:
2831         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
2832         (WebKit::JSNPObject::getCallDataVirtual):
2833         (WebKit::JSNPObject::getCallData):
2834         * WebProcess/Plugins/Netscape/JSNPObject.h:
2835
2836 2011-09-27  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
2837
2838         [Qt] QDesktopWebView load zero size view test missing
2839         https://bugs.webkit.org/show_bug.cgi?id=68655
2840
2841         Reviewed by Chang Shu.
2842
2843         Added test case to check load behavior with zero size view.
2844
2845         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadZeroSizeView.qml: Added.
2846         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2847
2848 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2849
2850         [GTK] Use WebKitWebContext in WebKitWebView
2851         https://bugs.webkit.org/show_bug.cgi?id=67990
2852
2853         Reviewed by Martin Robinson.
2854
2855         Use webkit_web_context_get_default() instead of
2856         WKContextGetSharedProcessContext() and add API to create a view
2857         with a given web context and to return the current context
2858         associated to the view.
2859
2860         * GNUmakefile.am: Add new files to compilation.
2861         * UIProcess/API/gtk/WebKitPrivate.h: Added.
2862         * UIProcess/API/gtk/WebKitWebContext.cpp:
2863         (webkitWebContextGetWKContext): Private API to get the WKContext
2864         wrapped by the WebKitWebContext.
2865         * UIProcess/API/gtk/WebKitWebContextPrivate.h: Added.
2866         * UIProcess/API/gtk/WebKitWebView.cpp:
2867         (webkitWebViewConstructed): Create the webpage using the web
2868         context of the view.
2869         (webkitWebViewSetProperty):
2870         (webkitWebViewGetProperty):
2871         (webkit_web_view_init):
2872         (webkit_web_view_class_init):
2873         (webkit_web_view_new): Create a new view with the default context.
2874         (webkit_web_view_new_with_context): Create a new view with the
2875         given context.
2876         (webkit_web_view_get_context): Return the context.
2877         * UIProcess/API/gtk/WebKitWebView.h:
2878         * UIProcess/API/gtk/tests/testwebview.c: Added.
2879         (testWebViewDefaultContext):
2880         (main):
2881
2882 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2883
2884
2885         [GTK] Add WebKitWebContext to GTK API
2886         https://bugs.webkit.org/show_bug.cgi?id=67931
2887
2888         Reviewed by Philippe Normand.
2889
2890         Initial implementation of WebKitWebContext for WebKit2 GTK API.
2891
2892         * GNUmakefile.am: Add new files to compilation.
2893         * UIProcess/API/gtk/WebKitWebContext.cpp: Added.
2894         (webkitWebContextFinalize):
2895         (webkit_web_context_init):
2896         (webkit_web_context_class_init):
2897         (createDefaultWebContext):
2898         (webkit_web_context_get_default):
2899         * UIProcess/API/gtk/WebKitWebContext.h: Added.
2900         * UIProcess/API/gtk/tests/testwebcontext.c:
2901         (testWebContextDefault):
2902         (main):
2903         * UIProcess/API/gtk/webkit2.h: Add <webkit2/WebKitWebContext.h>.
2904
2905 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
2906
2907         Unreviewed, rolling out r96108, r96111, r96113, and r96116.
2908         http://trac.webkit.org/changeset/96108
2909         http://trac.webkit.org/changeset/96111
2910         http://trac.webkit.org/changeset/96113
2911         http://trac.webkit.org/changeset/96116
2912         https://bugs.webkit.org/show_bug.cgi?id=68913
2913
2914         Wait for working Qt5 (Requested by ossy on #webkit).
2915
2916         * UIProcess/API/qt/qdesktopwebview.cpp:
2917         (QDesktopWebViewPrivate::startDrag):
2918         (QDesktopWebViewPrivate::didChangeToolTip):
2919         (QDesktopWebViewPrivate::didChangeCursor):
2920         (QDesktopWebViewPrivate::showContextMenu):
2921         (QDesktopWebViewPrivate::chooseFiles):
2922         * UIProcess/API/qt/qdesktopwebview.h:
2923         * UIProcess/API/qt/tests/tests.pri:
2924         * UIProcess/API/qt/tests/tests.pro:
2925         * UIProcess/qt/ViewInterface.h:
2926         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
2927         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
2928
2929 2011-09-27  Carlos Garcia Campos  <cgarcia@igalia.com>
2930
2931         [GTK] Rename WebKit2 GTK+ API main header as webkit2.h
2932         https://bugs.webkit.org/show_bug.cgi?id=65178
2933
2934         Reviewed by Martin Robinson.
2935
2936         * GNUmakefile.am: Add webkit2.h.
2937         * UIProcess/API/gtk/WebKitWebView.h:
2938         * UIProcess/API/gtk/webkit2.h: Renamed from Source/WebKit2/UIProcess/API/gtk/webkit/webkit.h.
2939         * webkit2gtk.pc.in: Use webkitgtk-<api-version> as include dir.
2940
2941 2011-09-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2942
2943         [Qt] Fix build of WebKit2 unit-tests after r96108
2944
2945         Reviewed by Andreas Kling.
2946
2947         * UIProcess/API/qt/tests/tests.pri:
2948
2949 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2950
2951         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
2952
2953         QWidget and friends now live in the QtWidgets library. We update
2954         includes in implementation files and private headers to us the
2955         non-module-prefixed path, and leave the lookup for the include
2956         path. For public headers we have to ifdef the includes as the
2957         user might now have the modules we need in his QT config.
2958
2959         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
2960         have to update our code and use windowHandle() for setting the
2961         parent relationships.
2962
2963         https://bugs.webkit.org/show_bug.cgi?id=68687
2964
2965         Reviewed by Andreas Kling.
2966
2967         * UIProcess/API/qt/qdesktopwebview.cpp:
2968         * UIProcess/API/qt/qdesktopwebview.h:
2969         * UIProcess/API/qt/tests/tests.pro:
2970         * UIProcess/qt/ViewInterface.h:
2971         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp:
2972
2973 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2974
2975         [Qt][WK2] Add support for hover API in Qt WebKit2
2976         https://bugs.webkit.org/show_bug.cgi?id=68369
2977
2978         Reviewed by Andreas Kling.
2979
2980         Based on the patch from Igor Oliveira in the same bug.
2981
2982         Expose a linkHovered() signal in QDesktopWebView, that passes the QUrl and the
2983         QString corresponding to the link title. I left textContent out because was
2984         unsure of its use case.
2985
2986         In QDesktopWebView we store the last URL and title emitted to make sure we send
2987         the signal only if either value changes. Tests were added to the QML element to
2988         check: if values are correctly emitted and if we don't emit more signals than
2989         necessary.
2990
2991         * UIProcess/API/qt/qdesktopwebview.cpp:
2992         (QDesktopWebViewPrivate::didMouseMoveOverElement):
2993         * UIProcess/API/qt/qdesktopwebview.h:
2994         * UIProcess/API/qt/qdesktopwebview_p.h:
2995         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_linkHovered.qml: Added.
2996         * UIProcess/API/qt/tests/qmltests/common/test2.html:
2997         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
2998         * UIProcess/qt/ClientImpl.cpp:
2999         (qt_wk_mouseDidMoveOverElement):
3000         * UIProcess/qt/ClientImpl.h:
3001         * UIProcess/qt/QtWebPageProxy.cpp:
3002         (QtWebPageProxy::init):
3003         * UIProcess/qt/TouchViewInterface.h:
3004         (WebKit::TouchViewInterface::didMouseMoveOverElement):
3005         * UIProcess/qt/ViewInterface.h:
3006
3007 2011-09-27  Alexis Menard  <alexis.menard@openbossa.org>
3008
3009         [Qt][WK2] API fixes for QML, the signal parameters needs to be named.
3010         https://bugs.webkit.org/show_bug.cgi?id=68889
3011
3012         Reviewed by Andreas Kling.
3013
3014         Signal parameters needs to be explicitly named in QML to be accessible.
3015         This patch fix this problem.
3016
3017         * UIProcess/API/qt/qdesktopwebview.h:
3018         * UIProcess/API/qt/qtouchwebpage.h:
3019
3020 2011-09-27  Alexis Menard  <alexis.menard@openbossa.org>
3021
3022         [Qt][WK2] Mark FINAL properties which can't be overridden by a subclass.
3023         https://bugs.webkit.org/show_bug.cgi?id=68848
3024
3025         Reviewed by Andreas Kling.
3026
3027         The presence of the FINAL attribute indicates that the property will not be 
3028         overridden by a derived class. This can be used for performance optimizations
3029         by QML.
3030
3031         * UIProcess/API/qt/qdesktopwebview.h:
3032         * UIProcess/API/qt/qtouchwebpage.h:
3033         * UIProcess/API/qt/qtouchwebview.h:
3034         * UIProcess/API/qt/qwebnavigationcontroller.h:
3035
3036 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3037
3038         [Qt] Fix WK2 build after r96014
3039         https://bugs.webkit.org/show_bug.cgi?id=68856
3040
3041         Reviewed by Gustavo Noronha Silva.
3042
3043         Commit r96014 added inspectorBaseURL for Qt but removed
3044         inspectorPageURL, adding it back.
3045
3046         * UIProcess/qt/WebInspectorProxyQt.cpp:
3047         (WebKit::WebInspectorProxy::inspectorPageURL):
3048
3049 2011-09-26  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3050
3051         [Qt] [WK2] Fix build after r95982
3052         https://bugs.webkit.org/show_bug.cgi?id=68842
3053
3054         Reviewed by Anders Carlsson.
3055
3056         The patch in r95982 removed the paint() function, because it was doing
3057         nothing (in both implementations). This patch remove the call we had
3058         for it to fix the build.
3059
3060         * UIProcess/qt/qtouchwebpageproxy.cpp:
3061         (QTouchWebPageProxy::paintContent):
3062
3063 2011-09-26  Alexey Proskuryakov  <ap@apple.com>
3064
3065         REGRESSION (r95747): Activating the web inspector causes the web process to be killed
3066         https://bugs.webkit.org/show_bug.cgi?id=68762
3067
3068         Reviewed by Anders Carlsson.
3069
3070         * UIProcess/WebInspectorProxy.cpp: (WebKit::WebInspectorProxy::createInspectorPage):
3071         Tell Web process that loading resources from WebCore resources directory is OK.
3072
3073         * UIProcess/WebPageProxy.cpp:
3074         (WebKit::WebPageProxy::loadHTMLString):
3075         (WebKit::WebPageProxy::loadAlternateHTMLString):
3076         * UIProcess/WebProcessProxy.cpp:
3077         (WebKit::WebProcessProxy::assumeReadAccessToBaseURL):
3078         * UIProcess/WebProcessProxy.h:
3079         Renamed willLoadHTMLStringWithBaseURL to more generic assumeReadAccessToBaseURL.
3080
3081         * UIProcess/WebInspectorProxy.h:
3082         * UIProcess/efl/WebInspectorEfl.cpp:
3083         (WebKit::WebInspectorProxy::inspectorBaseURL):
3084         * UIProcess/gtk/WebInspectorGtk.cpp:
3085         (WebKit::WebInspectorProxy::inspectorBaseURL):
3086         * UIProcess/mac/WebInspectorProxyMac.mm:
3087         (WebKit::WebInspectorProxy::inspectorBaseURL):
3088         * UIProcess/qt/WebInspectorProxyQt.cpp:
3089         (WebKit::WebInspectorProxy::inspectorBaseURL):
3090         * UIProcess/win/WebInspectorProxyWin.cpp:
3091         (WebKit::WebInspectorProxy::inspectorBaseURL):
3092         Report what base directory Inspector has access to.
3093
3094 2011-09-26  Nayan Kumar K  <nayankk@motorola.com>
3095
3096         Added WKHitTestResult API's.
3097
3098         WKHitTestResult API's are added. These API's can be used to
3099         get the hover'ed link/image/media URL as well as link lable and
3100         title.
3101         https://bugs.webkit.org/show_bug.cgi?id=68426
3102
3103         Reviewed by Anders Carlsson.
3104
3105         * CMakeLists.txt:
3106         * GNUmakefile.am:
3107         * UIProcess/API/C/WKHitTestResult.cpp: Added.
3108         (WKHitTestResultGetTypeID):
3109         (WKHitTestResultCopyAbsoluteImageURL):
3110         (WKHitTestResultCopyAbsoluteLinkURL):
3111         (WKHitTestResultCopyAbsoluteMediaURL):
3112         (WKHitTestResultCopyLinkLabel):
3113         (WKHitTestResultCopyLinkTitle):
3114         * UIProcess/API/C/WKHitTestResult.h: Added.
3115         * UIProcess/API/C/WebKit2.h:
3116         * WebKit2.xcodeproj/project.pbxproj:
3117         * WebKit2API.pri:
3118         * win/WebKit2.vcproj:
3119         * win/WebKit2Generated.make:
3120
3121 2011-09-26  Csaba Osztrogonác  <ossy@webkit.org>
3122
3123         [Qt][WK2]Unreviewed speculative buildfix after r95968.
3124
3125         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3126         (WebKit::WebChromeClient::contentsSizeChanged):
3127
3128 2011-09-26  Anders Carlsson  <andersca@apple.com>
3129
3130         Remove an old DrawingAreaProxy::paint member function
3131         https://bugs.webkit.org/show_bug.cgi?id=68825
3132
3133         Reviewed by Dan Bernstein.
3134
3135         * UIProcess/DrawingAreaProxy.h:
3136         * UIProcess/DrawingAreaProxyImpl.cpp:
3137         * UIProcess/DrawingAreaProxyImpl.h:
3138         * UIProcess/TiledDrawingAreaProxy.cpp:
3139         * UIProcess/TiledDrawingAreaProxy.h:
3140
3141 2011-09-26  Jer Noble  <jer.noble@apple.com>
3142
3143         White flash when entering full-screen using element.webkitRequestFullScreen()
3144         https://bugs.webkit.org/show_bug.cgi?id=68481
3145
3146         Reviewed by Simon Fraser.
3147
3148         Do not re-enable screen updates after exiting compositing mode until a repaint has completed.
3149
3150         * UIProcess/mac/WKFullScreenWindowController.mm:
3151         (-[WKFullScreenWindowController exitAcceleratedCompositingMode]):
3152         (continueExitCompositingModeAfterRepaintCallback):
3153         (-[WKFullScreenWindowController _continueExitCompositingModeAfterRepaint]):
3154
3155 2011-09-23  Simon Fraser  <simon.fraser@apple.com>
3156
3157         Repaint tests don't work in WebKit2
3158         https://bugs.webkit.org/show_bug.cgi?id=68453
3159
3160         Reviewed by Sam Weinig.
3161         
3162         Expose WKBundlePage methods to turn on repaint rect tracking
3163         in WebKit2, for WebKitTestRunner.
3164         
3165         As part of the change, expose utility methods on WebPage
3166         to get the main Frame and FrameView, which required renaming
3167         the exisiting method that returns a WebFrame. Fix callers
3168         of that method to handle null when necessary.
3169
3170         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
3171         (WKBundlePageGetMainFrame):
3172         (WKBundlePageSetTracksRepaints):
3173         (WKBundlePageIsTrackingRepaints):
3174         (WKBundlePageResetTrackedRepaints):
3175         (WKBundlePageCopyTrackedRepaintRects):
3176         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
3177         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3178         (WebKit::findLargestFrameInFrameSet):
3179         (WebKit::WebChromeClient::closeWindowSoon):
3180         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3181         (WebKit::WebFrameLoaderClient::dispatchDidFirstLayout):
3182         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
3183         (WebKit::WebFrameLoaderClient::frameLoadCompleted):
3184         (WebKit::WebFrameLoaderClient::restoreViewState):
3185         (WebKit::WebFrameLoaderClient::provisionalLoadStarted):
3186         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
3187         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
3188         (WebKit::WebFrameLoaderClient::createPlugin):
3189         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
3190         (WebKit::WebEditorClient::documentFragmentFromAttributedString):
3191         * WebProcess/WebPage/WebFrame.cpp:
3192         (WebKit::WebFrame::isMainFrame):
3193         * WebProcess/WebPage/WebPage.cpp:
3194         (WebKit::WebPage::setTracksRepaints):
3195         (WebKit::WebPage::isTrackingRepaints):
3196         (WebKit::WebPage::resetTrackedRepaints):
3197         (WebKit::WebPage::trackedRepaintRects):
3198         (WebKit::WebPage::clearMainFrameName):
3199         (WebKit::WebPage::layoutIfNeeded):
3200         (WebKit::WebPage::mainFrameHasCustomRepresentation):
3201         (WebKit::WebPage::mainFrame):
3202         (WebKit::WebPage::mainFrameView):
3203         * WebProcess/WebPage/WebPage.h:
3204         (WebKit::WebPage::mainWebFrame):
3205         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm:
3206         (-[WKAccessibilityWebPageObject accessibilityHitTest:]):
3207
3208 2011-09-25  Mark Hahnenberg  <mhahnenberg@apple.com>
3209
3210         Add custom vtable struct to ClassInfo struct
3211         https://bugs.webkit.org/show_bug.cgi?id=68567
3212
3213         Reviewed by Oliver Hunt.
3214
3215         Added CREATE_METHOD_TABLE macro to generate the custom vtable for the 
3216         specified class in its ClassInfo.  Also added to it the first function to use 
3217         this macro, visitChildren.  This is part of the process of getting rid of all 
3218         C++ virtual methods in JSCell.  Eventually all virtual functions in JSCell 
3219         that can't easily be converted to non-virtual functions will be put into 
3220         this custom vtable structure.
3221
3222         * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
3223         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
3224
3225 2011-09-25  Adam Barth  <abarth@webkit.org>
3226
3227         Finish removing PLATFORM(BREWMP) by removing associated code
3228         https://bugs.webkit.org/show_bug.cgi?id=68779
3229
3230         Reviewed by Sam Weinig.
3231
3232         * Scripts/generate-forwarding-headers.pl:
3233
3234 2011-09-25  Adam Barth  <abarth@webkit.org>
3235
3236         Remove PLATFORM(HAIKU) and associated code
3237         https://bugs.webkit.org/show_bug.cgi?id=68774
3238
3239         Reviewed by Sam Weinig.
3240
3241         * Scripts/generate-forwarding-headers.pl:
3242
3243 2011-09-24  Adam Barth  <abarth@webkit.org>
3244
3245         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
3246         https://bugs.webkit.org/show_bug.cgi?id=68767
3247
3248         Reviewed by Eric Seidel.
3249
3250         * Configurations/FeatureDefines.xcconfig:
3251         * UIProcess/qt/WebContextQt.cpp:
3252         (WebKit::WebContext::applicationCacheDirectory):
3253         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3254         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
3255         (WebKit::WebApplicationCacheManager::deleteEntriesForOrigin):
3256         (WebKit::WebApplicationCacheManager::deleteAllEntries):
3257         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3258         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
3259         * WebProcess/WebCoreSupport/WebChromeClient.h:
3260         * WebProcess/WebProcess.cpp:
3261         (WebKit::WebProcess::initializeWebProcess):
3262         (WebKit::WebProcess::clearApplicationCache):
3263         * WebProcess/WebProcess.h:
3264
3265 2011-09-23  Adam Klein  <adamk@chromium.org>
3266
3267         Add ENABLE_MUTATION_OBSERVERS feature flag
3268         https://bugs.webkit.org/show_bug.cgi?id=68732
3269
3270         Reviewed by Ojan Vafai.
3271
3272         This flag will guard an implementation of the "Mutation Observers" proposed in
3273         http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1622.html
3274
3275         * Configurations/FeatureDefines.xcconfig:
3276
3277 2011-09-23  Varun Jain  <varunjain@google.com>
3278
3279         Refactor WebViewImpl::scrollFocusedNodeIntoRect to a better place and add tests 
3280         https://bugs.webkit.org/show_bug.cgi?id=68198
3281
3282         Reviewed by Dimitri Glazkov.
3283
3284         * win/WebKit2.def:
3285         * win/WebKit2CFLite.def:
3286
3287 2011-09-23  Chang Shu  <cshu@webkit.org>
3288
3289         [WK2] [Qt] Implement MouseDown/MouseUp/MouseMoveTo functions for WebKit2 EventSender
3290         https://bugs.webkit.org/show_bug.cgi?id=68556
3291
3292         Implement the MouseDown/MouseUp/MouseMoveTo functions on Qt platform.
3293
3294         Reviewed by Darin Adler.
3295
3296         * Shared/API/c/WKGeometry.h:
3297         (operator==):
3298         * WebProcess/WebPage/WebPage.cpp:
3299         (WebKit::WebPage::mouseEventSyncForTesting): initialize "handled"
3300
3301 2011-09-23  Anders Carlsson  <andersca@apple.com>
3302
3303         Move WebHitTestResult files to Shared/ in the Xcode project
3304         https://bugs.webkit.org/show_bug.cgi?id=68718
3305
3306         Reviewed by Sam Weinig.
3307
3308         * WebKit2.xcodeproj/project.pbxproj:
3309
3310 2011-09-23  Anders Carlsson  <andersca@apple.com>
3311
3312         Add OVERRIDE to overrides of virtual member functions in client classes
3313         https://bugs.webkit.org/show_bug.cgi?id=68702
3314
3315         Reviewed by Darin Adler.
3316
3317         Disable the warning in Xcode and VS2005 for using override and final when compiling as C++98,
3318         and remove WebEditorClient::isEditable, WebChromeClient::formDidFocus,
3319         WebChromeClient::formDidBlur and WebFrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest since
3320         they have been removed from their respective base classes.
3321         
3322         * Configurations/Base.xcconfig:
3323         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3324         * WebProcess/WebCoreSupport/WebChromeClient.h:
3325         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
3326         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3327         * WebProcess/WebCoreSupport/WebDragClient.h:
3328         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
3329         * WebProcess/WebCoreSupport/WebEditorClient.h:
3330         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
3331         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
3332         * WebProcess/WebCoreSupport/WebGeolocationClient.h:
3333         * WebProcess/WebCoreSupport/WebInspectorClient.h:
3334         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
3335         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
3336         * WebProcess/WebCoreSupport/WebPopupMenu.h:
3337         * WebProcess/WebCoreSupport/WebSearchPopupMenu.h:
3338         * win/WebKit2Common.vsprops:
3339
3340 2011-09-23  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3341
3342         [Qt][WK2] QtFileDownloader ctor shouldn't call QtFileDownloader::onReadyRead()
3343         https://bugs.webkit.org/show_bug.cgi?id=68696
3344
3345         Reviewed by Andreas Kling.
3346
3347         Instead of connecting signals and calling QtFileDownloader::onReadyRead()
3348         on its constructor, QtFileDownloader will now handle this in start().
3349
3350         * WebProcess/Downloads/qt/DownloadQt.cpp:
3351         (WebKit::Download::start):
3352         * WebProcess/Downloads/qt/QtFileDownloader.cpp:
3353         (WebKit::QtFileDownloader::QtFileDownloader):
3354         (WebKit::QtFileDownloader::start):
3355         * WebProcess/Downloads/qt/QtFileDownloader.h:
3356
3357 2011-09-22  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3358
3359         [Qt] TouchWebView load test not running
3360         https://bugs.webkit.org/show_bug.cgi?id=68620
3361
3362         Reviewed by Chang Shu.
3363
3364         Load test was not executed since it was missing in pro file. Added tst_load.qml to qmltests.pro
3365
3366         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
3367
3368 2011-09-22  Dean Jackson  <dino@apple.com>
3369
3370         Add ENABLE_CSS_FILTERS
3371         https://bugs.webkit.org/show_bug.cgi?id=68652
3372
3373         Reviewed by Simon Fraser.
3374
3375         * Configurations/FeatureDefines.xcconfig:
3376
3377 2011-09-22  Simon Fraser  <simon.fraser@apple.com>
3378
3379         Add APIObjects for Size, Point, Rect
3380         https://bugs.webkit.org/show_bug.cgi?id=68644
3381
3382         Reviewed by Sam Weinig.
3383         
3384         Make APIObjects for size, point and rect so that they can be
3385         used in WKArrayRefs.
3386         
3387         Make some inline helper methods to create WKSize, WKPoint and WKRect
3388         types.
3389
3390         * GNUmakefile.am:
3391         * Shared/API/c/WKBase.h:
3392         * Shared/API/c/WKGeometry.cpp: Copied from Source/WebKit2/Shared/API/c/WKGeometry.h.
3393         (WKSizeGetTypeID):
3394         (WKPointGetTypeID):
3395         (WKRectGetTypeID):
3396         (WKPointCreate):
3397         (WKSizeCreate):
3398         (WKRectCreate):
3399         (WKSizeGetValue):
3400         (WKPointGetValue):
3401         (WKRectGetValue):
3402         * Shared/API/c/WKGeometry.h:
3403         (WKPoint::WKPointMake):
3404         (WKPoint::WKSizeMake):
3405         (WKPoint::WKRectMake):
3406         * Shared/API/c/WKSharedAPICast.h:
3407         * Shared/APIObject.h:
3408         * Shared/UserMessageCoders.h:
3409         (WebKit::UserMessageEncoder::baseEncode):
3410         (WebKit::UserMessageDecoder::baseDecode):
3411         * Shared/WebGeometry.h: Added.
3412         (WebKit::WebSize::create):
3413         (WebKit::WebSize::size):
3414         (WebKit::WebSize::WebSize):
3415         (WebKit::WebSize::type):
3416         (WebKit::WebPoint::create):
3417         (WebKit::WebPoint::point):
3418         (WebKit::WebPoint::WebPoint):
3419         (WebKit::WebPoint::type):
3420         (WebKit::WebRect::create):
3421         (WebKit::WebRect::rect):
3422         (WebKit::WebRect::WebRect):
3423         (WebKit::WebRect::type):
3424         * WebKit2.pro:
3425         * WebKit2.xcodeproj/project.pbxproj:
3426         * WebKit2API.pri:
3427         * win/WebKit2.vcproj:
3428
3429 2011-09-22  Alexey Proskuryakov  <ap@apple.com>
3430
3431         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
3432         https://bugs.webkit.org/show_bug.cgi?id=68573
3433
3434         Reviewed by Anders Carlsson.
3435
3436         Re-landing with a slightly less aggressive check.
3437
3438         * UIProcess/API/mac/WKView.mm:
3439         (maybeCreateSandboxExtensionFromPasteboard): Return a boolean, telling the caller whether
3440         an extension actually needed to be created
3441         (-[WKView performDragOperation:]): Tell process proxy when the process is going to get
3442         universal file read sandbox extension.
3443
3444         * UIProcess/WebContext.cpp:
3445         (WebKit::WebContext::didPerformClientRedirect): Check the URLs.
3446         (WebKit::WebContext::didPerformServerRedirect): Ditto.
3447         (WebKit::WebContext::didUpdateHistoryTitle): Ditto.
3448         (WebKit::WebContext::getPluginPath): Ditto. Also, properly parse the URL - we can never
3449         assume that a string coming from WebProcess is a ParsedURLString.
3450
3451         * UIProcess/WebPageProxy.cpp:
3452         (WebKit::WebPageProxy::reattachToWebProcessWithItem): Tell process proxy when the process
3453         is going to get universal file read sandbox extension.
3454         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle): Changed to return a boolean,
3455         telling the caller whether an extension actually needed to be created.
3456         (WebKit::WebPageProxy::loadURL): Tell process proxy about extension.
3457         (WebKit::WebPageProxy::loadURLRequest): Ditto.
3458         (WebKit::WebPageProxy::loadHTMLString): Tell process proxy if a file URL was used as a base
3459         one for a string. In this case, WebKit2 assumes that WebProcess has access to a subdirectory,
3460         (typically, one where error page resources live), and can load from it.
3461         (WebKit::WebPageProxy::loadAlternateHTMLString): Ditto.
3462         (WebKit::WebPageProxy::goForward): Tell process proxy about extension.
3463         (WebKit::WebPageProxy::goBack): Tell process proxy about extension.
3464         (WebKit::WebPageProxy::goToBackForwardItem): Tell process proxy about extension.
3465         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Check the URL.
3466         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): Ditto.
3467         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): Ditto.
3468         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Ditto.
3469         (WebKit::WebPageProxy::decidePolicyForNewWindowAction): Ditto.
3470         (WebKit::WebPageProxy::decidePolicyForResponse): Ditto.
3471         (WebKit::WebPageProxy::didInitiateLoadForResource): Ditto.
3472         (WebKit::WebPageProxy::didSendRequestForResource): Ditto.
3473         (WebKit::WebPageProxy::didReceiveResponseForResource): Ditto.
3474         (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
3475
3476         * UIProcess/WebPageProxy.h: Changed initializeSandboxExtensionHandle() to return a bool,
3477         and renamed to maybeInitializeSandboxExtensionHandle (matching WKView counterpart).
3478
3479         * UIProcess/WebProcessProxy.cpp:
3480         (WebKit::WebProcessProxy::WebProcessProxy): Initialize m_mayHaveUniversalFileReadSandboxExtension.
3481         It's going to be true if we ever granted an extension for "/".
3482         (WebKit::WebProcessProxy::willLoadHTMLStringWithBaseURL): Remember the path, we should expect
3483         that WebProcess will load subresources from it.
3484         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess): Check that it's reasonable to expect
3485         WebProcess send us a URL like this.
3486         (WebKit::WebProcessProxy::addBackForwardItem): Check the URLs.
3487
3488         * UIProcess/WebProcessProxy.h: Added data members remembering what to expect from this process.
3489
3490         * UIProcess/cf/WebPageProxyCF.cpp: (WebKit::WebPageProxy::restoreFromSessionStateData):
3491         Tell process proxy when the process is going to get universal file read sandbox extension.
3492
3493 2011-09-22  Alpha Lam  <hclam@chromium.org>
3494
3495         https://bugs.webkit.org/show_bug.cgi?id=68081
3496         Fix scroll in page scaling mode.
3497
3498         Reviewed by Simon Fraser.
3499
3500         * WebProcess/Plugins/PluginView.cpp: Rename pageScaleFactor to frameScaleFactor.
3501         (WebKit::PluginView::handleEvent):
3502         (WebKit::PluginView::viewGeometryDidChange):
3503         (WebKit::PluginView::clipRectInWindowCoordinates):
3504
3505 2011-09-22  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3506
3507         [Qt] Redirection overflow errors have wrong error domain
3508         https://bugs.webkit.org/show_bug.cgi?id=68612
3509
3510         Reviewed by Andreas Kling.
3511
3512         Redirection overflow currently puts the URL hostname in the errorDomain field
3513         and therefore are treated as a QWebError::EngineError. From now on they
3514         will be treated as QWebError::HttpError, since their error domain was modified
3515         to "HTTP" in QNetworkReplyHandler::redirect().
3516
3517         * UIProcess/API/qt/qweberror.cpp:
3518         (QWebError::type):
3519
3520 2011-09-22  Csaba Osztrogonác  <ossy@webkit.org>
3521
3522         REGRESSION(r95679): It broke everything.
3523         https://bugs.webkit.org/show_bug.cgi?id=68611
3524
3525         Unreviewed rolling out r95679 and r95690, because it broke everything.
3526
3527         * UIProcess/API/mac/WKView.mm:
3528         (maybeCreateSandboxExtensionFromPasteboard):
3529         (-[WKView performDragOperation:]):
3530         * UIProcess/WebContext.cpp:
3531         (WebKit::WebContext::didPerformClientRedirect):
3532         (WebKit::WebContext::didPerformServerRedirect):
3533         (WebKit::WebContext::didUpdateHistoryTitle):
3534         (WebKit::WebContext::getPluginPath):
3535         * UIProcess/WebPageProxy.cpp:
3536         (WebKit::WebPageProxy::reattachToWebProcessWithItem):
3537         (WebKit::WebPageProxy::initializeSandboxExtensionHandle):
3538         (WebKit::WebPageProxy::loadURL):
3539         (WebKit::WebPageProxy::loadURLRequest):
3540         (WebKit::WebPageProxy::loadHTMLString):
3541         (WebKit::WebPageProxy::loadAlternateHTMLString):
3542         (WebKit::WebPageProxy::goForward):
3543         (WebKit::WebPageProxy::goBack):
3544         (WebKit::WebPageProxy::goToBackForwardItem):
3545         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
3546         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
3547         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
3548         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
3549         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
3550         (WebKit::WebPageProxy::decidePolicyForResponse):
3551         (WebKit::WebPageProxy::didInitiateLoadForResource):
3552         (WebKit::WebPageProxy::didSendRequestForResource):
3553         (WebKit::WebPageProxy::didReceiveResponseForResource):
3554         (WebKit::WebPageProxy::missingPluginButtonClicked):
3555         * UIProcess/WebPageProxy.h:
3556         * UIProcess/WebProcessProxy.cpp:
3557         (WebKit::WebProcessProxy::WebProcessProxy):
3558         (WebKit::WebProcessProxy::addBackForwardItem):
3559         * UIProcess/WebProcessProxy.h:
3560         * UIProcess/cf/WebPageProxyCF.cpp:
3561         (WebKit::WebPageProxy::restoreFromSessionStateData):
3562
3563 2011-09-21  Alexey Proskuryakov  <ap@apple.com>
3564
3565         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
3566         https://bugs.webkit.org/show_bug.cgi?id=68573
3567
3568         Unreviewed follow-up fix.
3569
3570         * UIProcess/WebProcessProxy.cpp: (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess):
3571         Just like we allow null URLs, also allow empty strings.
3572
3573 2011-09-21  Julien Chaffraix  <jchaffraix@webkit.org>
3574
3575         Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled
3576         https://bugs.webkit.org/show_bug.cgi?id=68133
3577
3578         Reviewed by Darin Adler.
3579
3580         * win/WebKit2.def:
3581         * win/WebKit2CFLite.def:
3582         Exported the new FrameView::paintControlTints function.
3583
3584 2011-09-21  Alexey Proskuryakov  <ap@apple.com>
3585
3586         [WK2] UIProcess should check that WebProcess isn't sending unexpected file: URLs to it
3587         https://bugs.webkit.org/show_bug.cgi?id=68573
3588
3589         Reviewed by Anders Carlsson.
3590
3591         * UIProcess/API/mac/WKView.mm:
3592         (maybeCreateSandboxExtensionFromPasteboard): Return a boolean, telling the caller whether
3593         an extension actually needed to be created
3594         (-[WKView performDragOperation:]): Tell process proxy when the process is going to get
3595         universal file read sandbox extension.
3596
3597         * UIProcess/WebContext.cpp:
3598         (WebKit::WebContext::didPerformClientRedirect): Check the URLs.
3599         (WebKit::WebContext::didPerformServerRedirect): Ditto.
3600         (WebKit::WebContext::didUpdateHistoryTitle): Ditto.
3601         (WebKit::WebContext::getPluginPath): Ditto. Also, properly parse the URL - we can never
3602         assume that a string coming from WebProcess is a ParsedURLString.
3603
3604         * UIProcess/WebPageProxy.cpp:
3605         (WebKit::WebPageProxy::reattachToWebProcessWithItem): Tell process proxy when the process
3606         is going to get universal file read sandbox extension.
3607         (WebKit::WebPageProxy::maybeInitializeSandboxExtensionHandle): Changed to return a boolean,
3608         telling the caller whether an extension actually needed to be created.
3609         (WebKit::WebPageProxy::loadURL): Tell process proxy about extension.
3610         (WebKit::WebPageProxy::loadURLRequest): Ditto.
3611         (WebKit::WebPageProxy::loadHTMLString): Tell process proxy if a file URL was used as a base
3612         one for a string. In this case, WebKit2 assumes that WebProcess has access to a subdirectory,
3613         (typically, one where error page resources live), and can load from it.
3614         (WebKit::WebPageProxy::loadAlternateHTMLString): Ditto.
3615         (WebKit::WebPageProxy::goForward): Tell process proxy about extension.
3616         (WebKit::WebPageProxy::goBack): Tell process proxy about extension.
3617         (WebKit::WebPageProxy::goToBackForwardItem): Tell process proxy about extension.
3618         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Check the URL.
3619         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame): Ditto.
3620         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame): Ditto.
3621         (WebKit::WebPageProxy::decidePolicyForNavigationAction): Ditto.
3622         (WebKit::WebPageProxy::decidePolicyForNewWindowAction): Ditto.
3623         (WebKit::WebPageProxy::decidePolicyForResponse): Ditto.
3624         (WebKit::WebPageProxy::didInitiateLoadForResource): Ditto.
3625         (WebKit::WebPageProxy::didSendRequestForResource): Ditto.
3626         (WebKit::WebPageProxy::didReceiveResponseForResource): Ditto.
3627         (WebKit::WebPageProxy::missingPluginButtonClicked): Ditto.
3628
3629         * UIProcess/WebPageProxy.h: Changed initializeSandboxExtensionHandle() to return a bool,
3630         and renamed to maybeInitializeSandboxExtensionHandle (matching WKView counterpart).
3631
3632         * UIProcess/WebProcessProxy.cpp:
3633         (WebKit::WebProcessProxy::WebProcessProxy): Initialize m_mayHaveUniversalFileReadSandboxExtension.
3634         It's going to be true if we ever granted an extension for "/".
3635         (WebKit::WebProcessProxy::willLoadHTMLStringWithBaseURL): Remember the path, we should expect
3636         that WebProcess will load subresources from it.
3637         (WebKit::WebProcessProxy::checkURLReceivedFromWebProcess): Check that it's reasonable to expect
3638         WebProcess send us a URL like this.
3639         (WebKit::WebProcessProxy::addBackForwardItem): Check the URLs.
3640
3641         * UIProcess/WebProcessProxy.h: Added data members remembering what to expect from this process.
3642
3643         * UIProcess/cf/WebPageProxyCF.cpp: (WebKit::WebPageProxy::restoreFromSessionStateData):
3644         Tell process proxy when the process is going to get universal file read sandbox extension.
3645
3646 2011-09-19  Jer Noble  <jer.noble@apple.com>
3647
3648         Add settings to control the availability of the Web Audio API to WebKit and WebKit2.
3649         https://bugs.webkit.org/show_bug.cgi?id=68382
3650
3651         Add support for the webAudioEnabled preference in WebKit2.
3652
3653         Reviewed by Darin Adler.
3654
3655         * Shared/WebPreferencesStore.h: Add WebAudioEnabled getter and setter macro.
3656         * UIProcess/API/C/WKPreferences.cpp:
3657         (WKPreferencesSetWebAudioEnabled): Added.
3658         (WKPreferencesGetWebAudioEnabled): Added.
3659         * UIProcess/API/C/WKPreferences.h:
3660         * WebProcess/WebPage/WebPage.cpp:
3661         (WebKit::WebPage::updatePreferences): Update the webAudioEnabled preference.
3662
3663 2011-09-21  Dan Bernstein  <mitz@apple.com>
3664
3665         Use the prefix "WK" instead of "Web" for Objective-C classes defined in WebKit2.
3666
3667         Reviewed by Anders Carlsson.
3668
3669         Renamed WebInspectorProxyObjCAdapter to WKWebInspectorProxyObjCAdapter.
3670         Renamed WebInspectorWKView to WKWebInspectorWKView.
3671         Renamed WebFindIndicatorWindowAnimation to WKFindIndicatorWindowAnimation.
3672         Renamed WebFindIndicatorView to WKFindIndicatorView.
3673         Renamed WebUserDataWrapper to WKUserDataWrapper.
3674
3675         Updated the build phase checking for inappropriate Objective-C class names to disallow the prefix
3676         "Web" and only allow "WK".
3677
3678         * UIProcess/API/mac/FindIndicatorWindow.h:
3679         * UIProcess/API/mac/FindIndicatorWindow.mm:
3680         (WebKit::FindIndicatorWindow::setFindIndicator):
3681         (WebKit::FindIndicatorWindow::startFadeOutTimerFired):
3682         * UIProcess/WebInspectorProxy.h:
3683         * UIProcess/mac/WebContextMenuProxyMac.mm:
3684         (-[WKMenuTarget forwardContextMenuAction:]):
3685         (WebKit::nsMenuItemVector):
3686         * UIProcess/mac/WebInspectorProxyMac.mm:
3687         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
3688         (WebKit::WebInspectorProxy::platformOpen):
3689         * WebKit2.xcodeproj/project.pbxproj:
3690         * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
3691         (WebKit::WebFullScreenManagerMac::WebFullScreenManagerMac):
3692
3693 2011-09-21  Chang Shu  <cshu@webkit.org>
3694
3695         [WK2] [Mac] Implement a more-complete MouseDown/MouseUp/MouseMoveTo functions for WebKit2 EventSender
3696         https://bugs.webkit.org/show_bug.cgi?id=68108
3697
3698         This patch implements the event sender mouse events through WebKit2 UIProcess which is
3699         closer to the real simulation than a WebProcess-only approach. The patch only supports Mac
3700         platform as the first step so the existing code is still kept for other platforms.
3701
3702         Reviewed by Darin Adler.
3703
3704         * UIProcess/API/C/WKPage.cpp:
3705         (WKPageSetShouldSendEventsSynchronously):
3706         * UIProcess/API/C/WKPagePrivate.h:
3707         * UIProcess/WebPageProxy.cpp:
3708         (WebKit::WebPageProxy::WebPageProxy):
3709         (WebKit::WebPageProxy::handleMouseEvent):
3710         (WebKit::WebPageProxy::handleKeyboardEvent):
3711         * UIProcess/WebPageProxy.h:
3712         (WebKit::WebPageProxy::setShouldSendEventsSynchronously):
3713         * WebProcess/WebPage/WebPage.cpp:
3714         (WebKit::WebPage::mouseEventSyncForTesting):
3715         * WebProcess/WebPage/WebPage.h:
3716         * WebProcess/WebPage/WebPage.messages.in:
3717
3718 2011-09-21  Dan Bernstein  <mitz@apple.com>
3719
3720         WebKit2 part of: Prevent the WebKit frameworks from defining inappropriately-named Objective-C classes
3721         https://bugs.webkit.org/show_bug.cgi?id=68451
3722
3723         Reviewed by Darin Adler.
3724
3725         * WebKit2.xcodeproj/project.pbxproj: Added a script build phase that invokes
3726         check-for-inappropriate-objc-class-names, allowing only class names prefixed with "WK" or "Web".
3727
3728 2011-09-21  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3729
3730         [Qt][WK2] Implement Download support in WebProcess
3731         https://bugs.webkit.org/show_bug.cgi?id=68153
3732
3733         Reviewed by Andreas Kling.
3734
3735         We implement the necessary functions of Download.h, and our QtFileDownloader
3736         to handle all network communication and call the necessary functions of Download.
3737
3738         We use the download policy for any MIME type not supported by WebKit. This
3739         behaves like Qt non-WebKit2 except that we don't force download when
3740         we encounter Content-Disposition: attachment. We still use the "filename="
3741         field for file name suggestion though.
3742
3743         Based on original patches by: Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>,
3744         Jocelyn Turcotte <jocelyn.turcotte@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
3745         and Zalan Bujtas <zalan.bujtas@nokia.com>.
3746
3747         * UIProcess/API/qt/qweberror.cpp: Adding DownloadError
3748         (QWebError::type):
3749         * UIProcess/API/qt/qweberror.h: Adding DownloadError
3750         * WebKit2.pro:
3751         * WebProcess/Downloads/Download.cpp: Adding QtFileDownloader, Qt platform specific
3752         (WebKit::Download::Download):
3753         * WebProcess/Downloads/Download.h: Adding QtFileDownloader, Qt platform specific
3754         * WebProcess/Downloads/qt/DownloadQt.cpp:
3755         (WebKit::Download::start):
3756         (WebKit::Download::startWithHandle):
3757         (WebKit::Download::cancel):
3758         (WebKit::Download::platformInvalidate):
3759         (WebKit::Download::didDecideDestination):
3760         * WebProcess/Downloads/qt/QtFileDownloader.cpp: Added.
3761         (WebKit::QtFileDownloader::QtFileDownloader):
3762         (WebKit::QtFileDownloader::~QtFileDownloader):
3763         (WebKit::QtFileDownloader::determineFilename):
3764         (WebKit::QtFileDownloader::decidedDestination):
3765         (WebKit::QtFileDownloader::abortDownloadWritingAndEmitError):
3766         (WebKit::QtFileDownloader::onReadyRead):
3767         (WebKit::QtFileDownloader::onFinished):
3768         (WebKit::QtFileDownloader::onError):
3769         (WebKit::QtFileDownloader::cancel):
3770         * WebProcess/Downloads/qt/QtFileDownloader.h: Added.
3771
3772 2011-09-21  Mark Rowe  <mrowe@apple.com>
3773
3774         <rdar://problem/9890932> "Open PDF in Preview" on two PDFs of the same name does nothing the second time
3775
3776         The logic in PDFViewController::pathToPDFOnDisk that deals with constructing a unique
3777         file name if a file of the suggested name already exists was incorrect. It was appending
3778         the template used by mkstemps to the directory name component of the path rather than
3779         using it as a prefix on the filename portion of the path. This resulted in a template path
3780         like WebKitPDFs-ABCDEFXXXXXX-/foo.pdf where WebKitPDFs-ABCDEF/XXXXXX-foo.pdf was expected.
3781
3782         Reviewed by Jon Honeycutt.
3783
3784         * UIProcess/API/mac/PDFViewController.mm:
3785         (WebKit::PDFViewController::pathToPDFOnDisk): Append the template as a new path component,
3786         then append the suggested file name to that component.
3787
3788 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
3789
3790         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
3791         https://bugs.webkit.org/show_bug.cgi?id=67702
3792
3793         Reviewed by Csaba Osztrogonác.
3794
3795         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype.
3796         (WebKit::WebPlatformStrategies::isLinkVisited):
3797         (WebKit::WebPlatformStrategies::addVisitedLink):
3798         * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Ditto.
3799
3800 2011-09-20  Anders Carlsson  <andersca@apple.com>
3801
3802         Get rid of PluginView::setBoundsSize from WebKit2
3803         https://bugs.webkit.org/show_bug.cgi?id=68489
3804
3805         Reviewed by Dan Bernstein.
3806
3807         Remove m_boundsSize and the setter since they aren't used anywhere.
3808
3809         * WebProcess/Plugins/PluginView.cpp:
3810         * WebProcess/Plugins/PluginView.h:
3811
3812 2011-09-20  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3813
3814         [Qt] QTouchWebView missing signal tests for loadProgress
3815         https://bugs.webkit.org/show_bug.cgi?id=68442
3816
3817         Reviewed by Chang Shu.
3818
3819         Added test case to check load progress signal for QTouchWebView
3820
3821         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgressSignal.qml: Added.
3822         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
3823
3824 2011-09-20  Sheriff Bot  <webkit.review.bot@gmail.com>
3825
3826         Unreviewed, rolling out r95565.
3827         http://trac.webkit.org/changeset/95565
3828         https://bugs.webkit.org/show_bug.cgi?id=68470
3829
3830         Broke builds (Requested by andersca on #webkit).
3831
3832         * GNUmakefile.am:
3833         * Shared/API/c/WKHitTestResult.cpp: Removed.
3834         * Shared/API/c/WKHitTestResult.h: Removed.
3835         * UIProcess/API/C/WebKit2.h:
3836
3837 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
3838
3839         [Qt] [WK2] Implement a persistent cookie storage.
3840         https://bugs.webkit.org/show_bug.cgi?id=65309
3841
3842         Reviewed by Chang Shu.
3843
3844         Add parameter to the WebProcess creation to specify where cookies should be saved.
3845         It also use the new cookie storage implementation and set it to our network stack
3846         so cookies are used when using it.
3847
3848         * Shared/WebProcessCreationParameters.cpp:
3849         (WebKit::WebProcessCreationParameters::encode):
3850         (WebKit::WebProcessCreationParameters::decode):
3851         * Shared/WebProcessCreationParameters.h:
3852         * UIProcess/qt/WebContextQt.cpp:
3853         (WebKit::WebContext::platformInitializeWebProcess):
3854         * WebProcess/qt/WebProcessQt.cpp:
3855         (WebKit::WebProcess::platformInitializeWebProcess):
3856         (WebKit::WebProcess::platformTerminate):
3857
3858 2011-09-20  Nayan Kumar K  <nayankk@motorola.com>
3859
3860         Added WKHitTestResult API's.
3861
3862         WKHitTestResult API's are added. These API's can be used to
3863         get the hover'ed link/image/media URL as well as link lable and
3864         title.
3865         https://bugs.webkit.org/show_bug.cgi?id=68426
3866
3867         Reviewed by Anders Carlsson.
3868
3869         * GNUmakefile.am:
3870         * Shared/API/c/WKHitTestResult.cpp: Copied from Source/WebKit2/UIProcess/API/C/WebKit2.h.
3871         (WKHitTestResultGetTypeID):
3872         (WKHitTestResultCopyAbsoluteImageURL):
3873         (WKHitTestResultCopyAbsoluteLinkURL):
3874         (WKHitTestResultCopyAbsoluteMediaURL):
3875         (WKHitTestResultCopyLinkLabel):
3876         (WKHitTestResultCopyLinkTitle):
3877         * Shared/API/c/WKHitTestResult.h: Copied from Source/WebKit2/UIProcess/API/C/WebKit2.h.
3878         * UIProcess/API/C/WebKit2.h:
3879
3880 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
3881
3882         [Qt][WK2] Add stubs for FULLSCREEN_API on Qt.
3883         https://bugs.webkit.org/show_bug.cgi?id=68444
3884
3885         Reviewed by Andreas Kling.
3886
3887         Create all the stubs necessary for enabling FULLSCREEN_API on the Qt port.
3888
3889         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp: Added.
3890         (WebKit::WebFullScreenManagerProxy::invalidate):
3891         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
3892         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
3893         (WebKit::WebFullScreenManagerProxy::beganEnterFullScreenAnimation):
3894         (WebKit::WebFullScreenManagerProxy::finishedEnterFullScreenAnimation):
3895         (WebKit::WebFullScreenManagerProxy::beganExitFullScreenAnimation):
3896         (WebKit::WebFullScreenManagerProxy::finishedExitFullScreenAnimation):
3897         (WebKit::WebFullScreenManagerProxy::enterAcceleratedCompositingMode):
3898         (WebKit::WebFullScreenManagerProxy::exitAcceleratedCompositingMode):
3899         (WebKit::WebFullScreenManagerProxy::getFullScreenRect):
3900         * WebKit2.pro:
3901         * WebProcess/FullScreen/qt: Added.
3902         * WebProcess/FullScreen/qt/WebFullScreenManagerQt.cpp: Added.
3903         (WebKit::WebFullScreenManagerQt::WebFullScreenManagerQt):
3904         (WebKit::WebFullScreenManager::create):
3905         (WebKit::WebFullScreenManagerQt::setRootFullScreenLayer):
3906         (WebKit::WebFullScreenManagerQt::beginEnterFullScreenAnimation):
3907         (WebKit::WebFullScreenManagerQt::beginExitFullScreenAnimation):
3908         * WebProcess/FullScreen/qt/WebFullScreenManagerQt.h: Added.
3909
3910 2011-09-20  Alexis Menard  <alexis.menard@openbossa.org>
3911
3912         [Qt][WK2] Export QNetworkReply in the QtWebKit QML module.
3913         https://bugs.webkit.org/show_bug.cgi?id=68401
3914
3915         Reviewed by Simon Hausmann.
3916
3917         Add QNetworkReply in the QtWebKit module. We use the enum QNetworkReply::NetworkError
3918         as the error code when the load fails. It is not used in the QtQuick module therefore
3919         the QML team thinks it should belong here. Also added some auto-tests to cover the
3920         loading errors.
3921
3922         * UIProcess/API/qt/qmlplugin/plugin.cpp:
3923         (WebKit2QmlPlugin::registerTypes):
3924         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadFail.qml: Added.
3925         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadFail.qml: Added.
3926
3927 2011-09-20  Csaba Osztrogonác  <ossy@webkit.org>
3928
3929         [Qt][Mac] Buildfix after r95513.
3930
3931         Rubber-stamped by Andras Becsi.
3932
3933         * Scripts/generate-forwarding-headers.pl: Add mm file supporting.
3934
3935 2011-09-20  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
3936
3937         [Qt] QDesktopWebView missing loadProgress tests
3938         https://bugs.webkit.org/show_bug.cgi?id=68280
3939
3940         Reviewed by Andreas Kling.
3941
3942         Added test case to check load progress property and signal for QDesktopWebView
3943
3944         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgress.qml: Added.
3945         * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_loadProgressSignal.qml: Added.
3946         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
3947
3948 2011-09-20  Carlos Garcia Campos  <cgarcia@igalia.com>
3949
3950         [GTK] WebProcess shouldn't use the GTK+ API
3951         https://bugs.webkit.org/show_bug.cgi?id=68062
3952
3953         Reviewed by Martin Robinson.
3954
3955         Use WebCore API to create errors in WebProcess.
3956
3957         * GNUmakefile.am: Don't use webkit/webkierror.h.
3958         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
3959         (WebKit::cancelledError):
3960         (WebKit::blockedError):
3961         (WebKit::cannotShowURLError):
3962         (WebKit::interruptedForPolicyChangeError):
3963         (WebKit::cannotShowMIMETypeError):
3964         (WebKit::fileDoesNotExistError):
3965         (WebKit::pluginWillHandleLoadError):
3966
3967 2011-09-19  Mark Rowe  <mrowe@apple.com>
3968
3969         <http://webkit.org/b/68421> Stop calling UpdateSystemActivity in places where we hold power assertions that achieve the same effect
3970
3971         On SnowLeopard and newer it's not necessary to call UpdateSystemActivity to prevent the screensaver from kicking
3972         in as the NoDisplaySleep assertion now has that effect. It's also not necessary to hold both a NoDisplaySleep and
3973         a NoIdleSleep assertion as the latter is implied by the former.
3974
3975         Adopt the DisplaySleepDisabler class that was added to WebCore and remove all of duplicated logic from WKFullScreenWindowController.
3976
3977         Reviewed by Dan Bernstein.
3978
3979         * UIProcess/mac/WKFullScreenWindowController.h:
3980         * UIProcess/mac/WKFullScreenWindowController.mm:
3981         (-[WKFullScreenWindowController _updatePowerAssertions]): Create a DisplaySleepDisabler instance when transitioning from permitting
3982         display sleep to disabling display sleep. Clear out our reference when sleep should be permitted, destroying any
3983         disabler that we own. Also adds a FIXME about an error that was noticed while working in this code.
3984
3985 2011-09-19  Adam Barth  <abarth@webkit.org>
3986
3987         Always enable ENABLE(EVENTSOURCE)
3988         https://bugs.webkit.org/show_bug.cgi?id=68414
3989
3990         Reviewed by Eric Seidel.
3991
3992         * Configurations/FeatureDefines.xcconfig:
3993
3994 2011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
3995
3996         [Qt] Unreviewed coding style fix.
3997
3998         * UIProcess/API/qt/qdesktopwebview.h:
3999         * UIProcess/API/qt/qtouchwebpage.h:
4000         * UIProcess/API/qt/qweberror.h:
4001
4002 2011-09-19  Alexis Menard  <alexis.menard@openbossa.org>
4003
4004         [Qt][WK2] Make loading errors API easier to use.
4005         https://bugs.webkit.org/show_bug.cgi?id=68357
4006
4007         Reviewed by Tor Arne Vestbø.
4008
4009         Make the API to get loading errors easier to use. 95197 introduced
4010         a QJSValue API that is a bit opaque for the client code. Rather than
4011         using a dedicated object, we can just pass the needed information as
4012         parameters of the slot.
4013
4014         * UIProcess/API/qt/qdesktopwebview.cpp:
4015         (QDesktopWebViewPrivate::loadDidFail):
4016         * UIProcess/API/qt/qdesktopwebview.h:
4017         * UIProcess/API/qt/qdesktopwebview_p.h:
4018         * UIProcess/API/qt/qtouchwebpage.h:
4019         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
4020         (tst_CommonViewTests::loadNonexistentFileUrl):
4021         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
4022         (WebViewAbstraction::WebViewAbstraction):
4023         (WebViewAbstraction::touchViewLoadFailed):
4024         (WebViewAbstraction::desktopViewLoadFailed):
4025         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
4026         * UIProcess/qt/QtWebPageProxy.cpp:
4027         (QtWebPageProxy::loadDidFail):
4028         * UIProcess/qt/TouchViewInterface.cpp:
4029         (WebKit::TouchViewInterface::loadDidFail):
4030         * UIProcess/qt/TouchViewInterface.h:
4031         * UIProcess/qt/ViewInterface.h:
4032
4033 2011-09-19  Dan Bernstein  <mitz@apple.com>
4034
4035         WebKit2 part of [mac] WebKit contains Objective-C classes that are not prefixed with its standard prefixes
4036         https://bugs.webkit.org/show_bug.cgi?id=68323
4037
4038         Reviewed by Sam Weinig.
4039
4040         Renamed FullKeyboardAccessWatcher to WKFullKeyboardAccessWatcher.
4041         Renamed AccessibilityWebPageObject to WKAccessibilityWebPageObject.
4042
4043         * WebKit2.xcodeproj/project.pbxproj:
4044         * WebProcess/WebPage/WebPage.h:
4045         * WebProcess/WebPage/mac/AccessibilityWebPageObject.h: Removed.
4046         * WebProcess/WebPage/mac/AccessibilityWebPageObject.mm: Removed.
4047         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.h: Copied from Source/WebKit2/WebProcess/WebPage/mac/AccessibilityWebPageObject.h.
4048         * WebProcess/WebPage/mac/WKAccessibilityWebPageObject.mm: Copied from Source/WebKit2/WebProcess/WebPage/mac/AccessibilityWebPageObject.mm.
4049         * WebProcess/WebPage/mac/WebPageMac.mm:
4050         (WebKit::WebPage::platformInitialize):
4051         (WebKit::WebPage::accessibilityRemoteObject):
4052         * WebProcess/mac/FullKeyboardAccessWatcher.h: Removed.
4053         * WebProcess/mac/FullKeyboardAccessWatcher.mm: Removed.
4054         * WebProcess/mac/WKFullKeyboardAccessWatcher.h: Copied from Source/WebKit2/WebProcess/mac/FullKeyboardAccessWatcher.h.
4055         * WebProcess/mac/WKFullKeyboardAccessWatcher.mm: Copied from Source/WebKit2/WebProcess/mac/FullKeyboardAccessWatcher.mm.
4056         (+[WKFullKeyboardAccessWatcher fullKeyboardAccessEnabled]):
4057         * WebProcess/mac/WebProcessMac.mm:
4058         (WebKit::WebProcess::fullKeyboardAccessEnabled):
4059
4060 2011-09-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
4061
4062         [Qt] [WK2] Implement popup menus in QDesktopWebView using QComboBox
4063         https://bugs.webkit.org/show_bug.cgi?id=67938
4064
4065         Reviewed by Andreas Kling.
4066
4067         Implement a WebPopupMenuProxy that uses QtWebComboBox (a QComboBox subclass we
4068         have for WK1). Then use this WebPopupMenuProxy in QDesktopWebView. The implementation
4069         explicitly avoids running a nested mainloop.
4070
4071         * UIProcess/WebPageProxy.cpp:
4072         (WebKit::WebPageProxy::showPopupMenu):
4073         Since we don't run a nested mainloop, we need to keep the client pointer to call
4074         valueChangedForPopupMenu().
4075
4076         * UIProcess/qt/WebPopupMenuProxyQtDesktop.cpp: Added.
4077         (WebKit::WebPopupMenuProxyQtDesktop::WebPopupMenuProxyQtDesktop):
4078         (WebKit::WebPopupMenuProxyQtDesktop::~WebPopupMenuProxyQtDesktop):
4079         (WebKit::WebPopupMenuProxyQtDesktop::showPopupMenu):
4080         (WebKit::WebPopupMenuProxyQtDesktop::hidePopupMenu):
4081         (WebKit::WebPopupMenuProxyQtDesktop::setSelectedIndex):
4082         (WebKit::WebPopupMenuProxyQtDesktop::onPopupMenuHidden):
4083         (WebKit::WebPopupMenuProxyQtDesktop::populate):
4084         * UIProcess/qt/WebPopupMenuProxyQtDesktop.h: Added.
4085         (WebKit::WebPopupMenuProxyQtDesktop::create):
4086         * UIProcess/qt/qdesktopwebpageproxy.cpp:
4087         (QDesktopWebPageProxy::createPopupMenuProxy):
4088         * UIProcess/qt/qdesktopwebpageproxy.h:
4089         * WebKit2.pro:
4090
4091 2011-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
4092
4093         [GTK] Fix distcheck build
4094         https://bugs.webkit.org/show_bug.cgi?id=68241
4095
4096         Reviewed by Martin Robinson.
4097
4098         * GNUmakefile.am:
4099
4100 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
4101
4102         FrameLoaderClient BackForwardList-related methods are unsued
4103         https://bugs.webkit.org/show_bug.cgi?id=68293
4104
4105         Reviewed by Darin Adler.
4106
4107         Remove FrameLoaderClient methods that were added by r51629, since only        
4108         the old (since-deleted) Android port needed them.
4109
4110         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
4111         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
4112
4113 2011-09-16  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
4114         [Qt] QTouchWebView missing loadProgress tests
4115         https://bugs.webkit.org/show_bug.cgi?id=68183
4116
4117         Reviewed by Chang Shu.
4118
4119         Added test case to check load progress for QTouchWebView
4120
4121         * UIProcess/API/qt/tests/qmltests/TouchWebView/tst_loadProgress.qml: Added.
4122         * UIProcess/API/qt/tests/qmltests/qmltests.pro:
4123
4124 2011-09-16  Ravi Phaneendra Kasibhatla  <ravi.kasibhatla@motorola.com>
4125
4126         Removed unwanted NotImplemented.h inclusion in WebKit2 GTK port & platform independent files
4127         https://bugs.webkit.org/show_bug.cgi?id=68249
4128
4129         Reviewed by Martin Robinson.
4130
4131         * Shared/Plugins/NPIdentifierData.cpp: Removed NotImplemented.h inclusion.
4132         * Shared/Plugins/NPRemoteObjectMap.cpp: Removed NotImplemented.h inclusion.
4133         * Shared/Plugins/NPVariantData.cpp: Removed NotImplemented.h inclusion.
4134         * UIProcess/gtk/WebContextGtk.cpp: Removed NotImplemented.h inclusion.
4135         * WebProcess/Cookies/WebCookieManager.cpp: Removed NotImplemented.h inclusion.
4136         * WebProcess/KeyValueStorage/WebKeyValueStorageManager.cpp: Removed NotImplemented.h inclusion.
4137         * WebProcess/Plugins/Netscape/JSNPMethod.cpp: Removed NotImplemented.h inclusion.
4138         * WebProcess/Plugins/Netscape/NPJSObject.cpp: Removed NotImplemented.h inclusion.
4139         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp: Removed NotImplemented.h inclusion.
4140         * WebProcess/WebCoreSupport/WebInspectorClient.cpp: Removed NotImplemented.h inclusion.
4141
4142 2011-09-16  Simon Fraser  <simon.fraser@apple.com>
4143
4144         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
4145         https://bugs.webkit.org/show_bug.cgi?id=68134
4146
4147         Reviewed by Sam Weinig.
4148
4149         Hook up a private preference that enables the mock scrollbar theme.
4150
4151         * Shared/WebPreferencesStore.h:
4152         * UIProcess/API/C/WKPreferences.cpp:
4153         (WKPreferencesSetMockScrollbarsEnabled):
4154         (WKPreferencesGetMockScrollbarsEnabled):
4155         * UIProcess/API/C/WKPreferencesPrivate.h:
4156         * WebProcess/WebPage/WebPage.cpp:
4157         (WebKit::WebPage::updatePreferences):
4158
4159 2011-09-16  Mark Rowe  <mrowe@apple.com>
4160
4161         Stop installing source and header files in to WebKit2.framework after r95303.
4162
4163         * WebKit2.xcodeproj/project.pbxproj:
4164
4165 2011-09-16  Anders Carlsson  <andersca@apple.com>
4166
4167         Add back the WKHitTestResultRef parameter to mouseDidMoveOverElement in an ABI preserving way
4168         https://bugs.webkit.org/show_bug.cgi?id=68269
4169
4170         Reviewed by Geoffrey Garen.
4171
4172         Add back WKPageMouseDidMoveOverElementCallback last and deprecate the current callback.
4173
4174         * UIProcess/API/C/WKPage.h:
4175         * UIProcess/WebUIClient.cpp:
4176         (WebKit::WebUIClient::mouseDidMoveOverElement):
4177
4178 2011-09-16  Alexey Proskuryakov  <ap@apple.com>
4179
4180         Give local builds of WebProcess different icon to distinguish them from built-in Safari’s WebProcess
4181         https://bugs.webkit.org/show_bug.cgi?id=68268
4182
4183         Reviewed by Darin Adler.
4184
4185         * Configurations/WebProcess.xcconfig: Add an icon in Debug and Release builds.  The empty
4186         value for production resulted in WebKit not adding the key to plist at all, which is what
4187         we want (but I don't know if it's a supported feature).
4188         Also, don't copy the icon file to built framework in production builds.
4189
4190         * WebKit2.xcodeproj/project.pbxproj: Added WebKit.icns.