WK1: Add initial support for immediate actions
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-12-10  Beth Dakin  <bdakin@apple.com>
2
3         WK1: Add initial support for immediate actions
4         https://bugs.webkit.org/show_bug.cgi?id=139522
5
6         Reviewed by Dan Bernstein.
7
8         This basic implementation of the controller will use the delegate methods to 
9         perform and cache a HitTest when relevant. Future patches will patch 
10         _updateImmediateActionItem to use the HitTestResult to determine if there is any 
11         immediate action that should be taken.
12         * WebView/WebImmediateActionController.h: Added.
13         * WebView/WebImmediateActionController.mm: Added.
14         (-[WebImmediateActionController webViewClosed]):
15         (-[WebImmediateActionController _clearImmediateActionState]):
16         (-[WebImmediateActionController performHitTestAtPoint:]):
17         (-[WebImmediateActionController immediateActionRecognizerWillPrepare:]):
18         (-[WebImmediateActionController immediateActionRecognizerWillBeginAnimation:]):
19         (-[WebImmediateActionController immediateActionRecognizerDidCancelAnimation:]):
20         (-[WebImmediateActionController immediateActionRecognizerDidCompleteAnimation:]):
21         (-[WebImmediateActionController _updateImmediateActionItem]):
22
23         New enum for immediate action types.
24         * WebView/WebUIDelegatePrivate.h:
25
26         Create an NSImmediateActionGestureRecognizer if possible and a controller.
27         * WebView/WebView.mm:
28         (-[WebView _commonInitializationWithFrameName:groupName:]):
29         (-[WebView _close]):
30         * WebView/WebViewData.h:
31         * WebView/WebViewData.mm:
32         (-[WebViewPrivate dealloc]):
33
34 2014-12-08  Anders Carlsson  <andersca@apple.com>
35
36         Use the new storage namespace provider in WebKit1
37         https://bugs.webkit.org/show_bug.cgi?id=139425
38
39         Reviewed by Tim Horton.
40
41         * WebView/WebView.mm:
42         (-[WebView _commonInitializationWithFrameName:groupName:]):
43         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
44         Set the storage namespace provider from the web page group.
45
46 2014-12-10  Timothy Horton  <timothy_horton@apple.com>
47
48         Should have copy and paste items in all text menus
49         https://bugs.webkit.org/show_bug.cgi?id=139510
50         <rdar://problem/19198388>
51
52         Reviewed by Beth Dakin.
53
54         * WebView/WebActionMenuController.mm:
55         (-[WebActionMenuController _defaultMenuItemsForText]):
56         Add a disabled paste menu item into the read-only text menu.
57
58         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]):
59         Add a disabled copy menu item into the editable whitespace text menu.
60
61 2014-12-10  Anders Carlsson  <andersca@apple.com>
62
63         Add WebStorageNamespaceProvider::closeLocalStorage
64         https://bugs.webkit.org/show_bug.cgi?id=139502
65
66         Reviewed by Tim Horton.
67
68         * WebView/WebView.mm:
69         (+[WebView _applicationWillTerminate]):
70         Call WebStorageNamespaceProvider::closeLocalStorage.
71
72 2014-12-09  Commit Queue  <commit-queue@webkit.org>
73
74         Unreviewed, rolling out r177037.
75         https://bugs.webkit.org/show_bug.cgi?id=139464
76
77         broke ~50 API tests (Requested by thorton on #webkit).
78
79         Reverted changeset:
80
81         "Use the new storage namespace provider in WebKit1"
82         https://bugs.webkit.org/show_bug.cgi?id=139425
83         http://trac.webkit.org/changeset/177037
84
85 2014-12-08  Anders Carlsson  <andersca@apple.com>
86
87         Use the new storage namespace provider in WebKit1
88         https://bugs.webkit.org/show_bug.cgi?id=139425
89
90         Reviewed by Tim Horton.
91
92         * WebView/WebView.mm:
93         (-[WebView _commonInitializationWithFrameName:groupName:]):
94         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
95         Set the storage namespace provider from the web page group.
96
97 2014-12-09  Myles C. Maxfield  <mmaxfield@apple.com>
98
99         Delete Node::boundingBox()
100         https://bugs.webkit.org/show_bug.cgi?id=139333
101
102         Reviewed by Zalan Bujtas.
103
104         * WebView/WebActionMenuController.mm:
105         (elementBoundingBoxInWindowCoordinatesFromNode): Use
106         RenderObject::absoluteBoundingBoxRect().
107
108 2014-12-08  Alexey Proskuryakov  <ap@apple.com>
109
110         REGRESSION (r158036): WebView cannot handle HTTP Basic Authentication challenge
111         https://bugs.webkit.org/show_bug.cgi?id=138843
112         rdar://problem/18793695
113
114         Reviewed by Dan Bernstein.
115
116         * Panels/WebAuthenticationPanel.m:
117         (-[WebAuthenticationPanel cancel:]):
118         (-[WebAuthenticationPanel logIn:]):
119         Don't close the panel before using panel.sheetParent, because the parent becomes nil.
120         In fact, we don't need to close it at all, it's enough to call orderOut:, and even
121         that only when using an old NSWindow API.
122
123 2014-12-08  Beth Dakin  <bdakin@apple.com>
124
125         Copy and Lookup menu items should be disabled when something is not copyable
126         https://bugs.webkit.org/show_bug.cgi?id=139423
127
128         Reviewed by Tim Horton.
129
130         Disable both lookup and copy when a HitTestResult does not allow copy.
131         * WebView/WebActionMenuController.mm:
132
133         Set autoenablesItems to NO. It’s messing with our ability to control the enable/
134         disable state otherwise.
135         * WebView/WebView.mm:
136         (-[WebView _commonInitializationWithFrameName:groupName:]):
137
138 2014-12-08  Anders Carlsson  <andersca@apple.com>
139
140         Adding user content to a group should force that group to be created
141         https://bugs.webkit.org/show_bug.cgi?id=139421
142         rdar://problem/19180108
143
144         Reviewed by Sam Weinig.
145
146         * WebCoreSupport/WebViewGroup.h:
147         Store the local storage database path in the group.
148
149         * WebCoreSupport/WebViewGroup.mm:
150         (WebViewGroup::getOrCreate):
151         If we have an existing group that hasn't had its storage namespace provider created, and the path passed is not empty,
152         set it. This will ensure that getOrCreate will still work when creating a storage namspace provider.
153
154         (WebViewGroup::WebViewGroup):
155         Initialize the new member variable.
156
157         (WebViewGroup::storageNamespaceProvider):
158         Create the namespace provider lazily.
159
160         * WebView/WebView.mm:
161         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
162         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
163         Use getOrCreate instead of get.
164
165 2014-12-08  Anders Carlsson  <andersca@apple.com>
166
167         WebStorageNamespaceProvider should know about its local storage database path
168         https://bugs.webkit.org/show_bug.cgi?id=139413
169
170         Reviewed by Andreas Kling.
171
172         * WebCoreSupport/WebViewGroup.h:
173         * WebCoreSupport/WebViewGroup.mm:
174         (WebViewGroup::getOrCreate):
175         (WebViewGroup::WebViewGroup):
176         * WebView/WebView.mm:
177         (-[WebView _commonInitializationWithFrameName:groupName:]):
178         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
179         (-[WebView setGroupName:]):
180         (-[WebView groupName]): Deleted.
181
182 2014-12-08  Daniel Bates  <dabates@apple.com>
183
184         [iOS] Fix the WebKit build with the public SDK
185
186         Include header NSURLDownloadSPI.h.
187
188         * WebCoreSupport/WebFrameLoaderClient.mm:
189
190 2014-12-07  Dan Bernstein  <mitz@apple.com>
191
192         Introduce and deploy a function that allocates and returns an instance of a soft-linked class
193         https://bugs.webkit.org/show_bug.cgi?id=139348
194
195         Reviewed by Anders Carlsson.
196
197         In [[getFooClass() alloc] init*], the type of the result of +alloc is id, so the compiler
198         picks an arbitrary declaration of init*, not necessarily the Foo one. This can then lead
199         to warnings or errors if the types or attributes don’t match, or to runtime errors if Foo
200         doesn’t even have the expected initializer. The new allocFooInstance() returns a Foo *, thus
201         avoiding the ambiguity.
202
203         * WebView/WebActionMenuController.mm:
204         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
205
206 2014-12-06  Anders Carlsson  <andersca@apple.com>
207
208         Add a stubbed out version of WebStorageNamespaceProvider
209         https://bugs.webkit.org/show_bug.cgi?id=139213
210
211         Reviewed by Sam Weinig.
212
213         * WebCoreSupport/WebViewGroup.h:
214         (WebViewGroup::storageNamespaceProvider):
215         * WebCoreSupport/WebViewGroup.mm:
216         (WebViewGroup::getOrCreate):
217         (WebViewGroup::WebViewGroup):
218         Give WebViewGroup a storage namespace provider.
219
220 2014-12-06  Anders Carlsson  <andersca@apple.com>
221
222         Fix build with newer versions of clang.
223         rdar://problem/18978687
224
225         Add missing overrides and missing casts.
226
227         * Storage/WebDatabaseManagerClient.h:
228         * Storage/WebStorageTrackerClient.h:
229         * WebCoreSupport/WebChromeClient.h:
230         * WebCoreSupport/WebFrameLoaderClient.h:
231         * WebCoreSupport/WebInspectorClient.h:
232         * WebView/WebDataSource.mm:
233         (-[WebDataSource _makeRepresentation]):
234         * WebView/WebFrameView.mm:
235         (-[WebFrameView _makeDocumentViewForDataSource:]):
236
237 2014-12-05  Tim Horton  <timothy_horton@apple.com>
238
239         Legacy WebKit should set deviceScaleFactor in _commonInitializationWithFrameName, not _initWithFrame
240         https://bugs.webkit.org/show_bug.cgi?id=139306
241         <rdar://problem/19157955>
242
243         Reviewed by Beth Dakin.
244
245         * WebView/WebView.mm:
246         (-[WebView _commonInitializationWithFrameName:groupName:]):
247         (-[WebView _initWithFrame:frameName:groupName:]):
248         Move setDeviceScaleFactor to the initialization path that is guaranteed to happen.
249
250 2014-12-05  David Kilzer  <ddkilzer@apple.com>
251
252         FeatureDefines.xcconfig: Workaround bug in Xcode 5.1.1 when defining ENABLE_WEB_REPLAY
253         <http://webkit.org/b/139286>
254
255         Reviewed by Daniel Bates.
256
257         * Configurations/FeatureDefines.xcconfig: Switch back to using
258         PLATFORM_NAME to workaround a bug in Xcode 5.1.1 on 10.8.
259
260 2014-12-04  Timothy Horton  <timothy_horton@apple.com>
261
262         Fix the 32-bit build.
263
264         * WebView/WebView.mm:
265         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
266
267 2014-12-04  Tim Horton  <timothy_horton@apple.com>
268
269         TextIndicator::createWithSelectionInFrame does synchronous IPC in WebKit2
270         https://bugs.webkit.org/show_bug.cgi?id=139252
271         <rdar://problem/19140827>
272
273         Reviewed by Anders Carlsson.
274
275         * WebView/WebView.mm:
276         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
277         Adjust to the WebCore changes.
278
279 2014-12-03  Timothy Horton  <timothy_horton@apple.com>
280
281         Implement action menus for tel: URLs
282         https://bugs.webkit.org/show_bug.cgi?id=139240
283         <rdar://problem/19115662>
284
285         Reviewed by Anders Carlsson.
286
287         * WebView/WebActionMenuController.mm:
288         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
289         Make sure to use the newly created currentActionContext... everywhere.
290
291 2014-12-03  Timothy Horton  <timothy_horton@apple.com>
292
293         Implement action menus for tel: URLs
294         https://bugs.webkit.org/show_bug.cgi?id=139240
295         <rdar://problem/19115662>
296
297         Reviewed by Anders Carlsson.
298
299         * WebView/WebActionMenuController.mm:
300         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
301         Make sure to use the newly created currentActionContext.
302
303 2014-12-03  Beth Dakin  <bdakin@apple.com>
304
305         <input> elements get whitespace action menu instead of editable text menu
306         https://bugs.webkit.org/show_bug.cgi?id=139241
307         -and corresponding-
308         rdar://problem/19072083
309
310         Reviewed by Sam Weinig.
311
312         We should disallow shadow content in the hit test. This is the default and it is 
313         how context menus behave. We originally wanted to text inside shadow content so 
314         that we could find the text, but the new function I added to HitTestResult will 
315         allow that.
316         * WebView/WebActionMenuController.mm:
317         (-[WebActionMenuController performHitTestAtPoint:]):
318
319         Adjust to the fact that we don’t hit test shadow content any more.
320         (-[WebActionMenuController focusAndSelectHitTestResult]):
321
322         Offer the text menus for text inside form controls.
323         (-[WebActionMenuController _defaultMenuItems]):
324
325 2014-12-03  Tim Horton  <timothy_horton@apple.com>
326
327         Implement action menus for tel: URLs
328         https://bugs.webkit.org/show_bug.cgi?id=139240
329         <rdar://problem/19115662>
330
331         Reviewed by Anders Carlsson.
332
333         * WebView/WebActionMenuController.mm:
334         (-[WebActionMenuController _defaultMenuItemsForDataDetectableLink]):
335         Rename this function as it will work for both mailto and tel URLs.
336         Adjust it to use contextForView:.
337
338         (-[WebActionMenuController webView:willHandleMouseDown:]):
339         (-[WebActionMenuController prepareForMenu:withEvent:]):
340         (-[WebActionMenuController didCloseMenu:withEvent:]):
341         (-[WebActionMenuController _defaultMenuItems]):
342         Don't check the menu type when going to interact with _currentActionContext.
343         We'll only have a _currentActionContext if we have a data detected item,
344         and there are multiple menu types that end up using DDActionContext.
345
346         * WebView/WebUIDelegatePrivate.h:
347         Add a new type.
348
349 2014-12-03  Anders Carlsson  <andersca@apple.com>
350
351         Set a visited link store when creating a simple WebView
352         https://bugs.webkit.org/show_bug.cgi?id=139234
353         <rdar://problem/19132978>
354
355         Reviewed by Sam Weinig.
356
357         * WebView/WebView.mm:
358         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
359
360 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
361
362         Fix the build.
363
364         * WebCoreSupport/WebFrameLoaderClient.mm:
365
366 2014-12-02  Alexey Proskuryakov  <ap@apple.com>
367
368         http/tests/appcache/main-resource-fallback-for-network-error-crash.html can break subsequent tests
369         https://bugs.webkit.org/show_bug.cgi?id=139149
370
371         Reviewed by Anders Carlsson.
372
373         This changes API behavior. I think that it's OK, because existing behavior made no sense.
374         We used to delete caches from disk, but they were still active in memory. Now we also
375         obsolete them in memory, so documents that use a cache still work, but new ones don't
376         pick one up.
377
378         * WebCoreSupport/WebApplicationCache.mm:
379         (+[WebApplicationCache setMaximumSize:]): Changing maximum on-disk size doesn't
380         need to delete in-momry caches too. Keep existing behavior.
381         (+[WebApplicationCache deleteAllApplicationCaches]): Use the new WebCore function
382         that properly deletes caches.
383
384 2014-12-02  Tim Horton  <timothy_horton@apple.com>
385
386         Remove a SnowLeopard-era quirk for QuickLook
387         https://bugs.webkit.org/show_bug.cgi?id=139208
388         <rdar://problem/19121822>
389
390         Reviewed by Alexey Proskuryakov.
391
392         * WebCoreSupport/WebFrameLoaderClient.h:
393         * WebCoreSupport/WebFrameLoaderClient.mm:
394
395 2014-12-02  Tim Horton  <timothy_horton@apple.com>
396
397         Loading Lookup causes http/tests/cache/post-redirect-get.php to fail
398         https://bugs.webkit.org/show_bug.cgi?id=139204
399
400         Reviewed by Anders Carlsson.
401
402         * WebView/WebView.mm:
403         (-[WebView _commonInitializationWithFrameName:groupName:]):
404         (-[WebView _showDictionaryLookupPopup:]):
405         * WebView/WebViewData.h:
406         Work around this by delaying the softlinking (and setting up the notification
407         observer) until we actually need it. There's still an underlying bug, but
408         this will fix the test.
409
410 2014-12-02  Beth Dakin  <bdakin@apple.com>
411
412         Yet another build fix.
413
414         * WebView/WebActionMenuController.mm:
415         (-[WebActionMenuController _defaultMenuItemsForLink]):
416
417 2014-12-02  Beth Dakin  <bdakin@apple.com>
418
419         Build fix.
420
421         * WebView/WebActionMenuController.mm:
422         (-[WebActionMenuController _defaultMenuItemsForLink]):
423
424 2014-12-02  Beth Dakin  <bdakin@apple.com>
425
426         More build fixing.
427
428         * WebView/WebActionMenuController.mm:
429         (-[WebActionMenuController _defaultMenuItemsForLink]):
430
431 2014-12-02  Beth Dakin  <bdakin@apple.com>
432
433         Should use standardQuickLookMenuItem for apps that don't implement customizations
434         https://bugs.webkit.org/show_bug.cgi?id=139193
435         -and corresponding-
436         rdar://problem/18944696
437
438         Reviewed by Anders Carlsson.
439
440         Use [NSMenuItem standardQuickLookMenuItem].
441         * WebView/WebActionMenuController.mm:
442         (-[WebActionMenuController _defaultMenuItemsForLink]):
443
444         Delegate methods to set up the standardQuickLookMenuItem.
445         (-[WebActionMenuController menuItem:viewAtScreenPoint:]):
446         (-[WebActionMenuController menuItem:previewItemAtPoint:]):
447         (-[WebActionMenuController menuItem:preferredEdgeForPoint:]):
448
449         Remove all of the old QLPreviewBubble code.
450         (-[WebActionMenuController _createActionMenuItemForTag:]):
451         (-[WebActionMenuController _quickLookURLFromActionMenu:]): Deleted.
452
453 2014-12-02  Timothy Horton  <timothy_horton@apple.com>
454
455         Fix the build.
456
457         * WebView/WebViewData.h:
458
459 2014-12-02  Tim Horton  <timothy_horton@apple.com>
460
461         Implement Lookup transition from selection for Legacy WebKit
462         https://bugs.webkit.org/show_bug.cgi?id=139180
463         <rdar://problem/19067172>
464
465         Reviewed by Beth Dakin.
466
467         * WebView/DictionaryPopupInfo.h: Added.
468         Split DictionaryPopupInfo out into its own file.
469
470         * WebView/WebActionMenuController.mm:
471         (-[WebActionMenuController _lookupText:]):
472         Hand the DictionaryPopupInfo to WebView, which will show the TextIndicator and invoke Lookup.
473
474         (performDictionaryLookupForSelection):
475         (performDictionaryLookupForRange):
476         Plumb the transition style through these helpers.
477         Create a TextIndicator from the selection range.
478
479         * WebView/WebHTMLView.mm:
480         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
481         Make use of TextIndicator (and DictionaryPopupInfo, and the new
482         _showDictionaryLookupPopup on WebView) to add a transition from blue
483         when performing Lookup from the context menu.
484
485         (-[WebHTMLView quickLookWithEvent:]):
486         Remove our TextIndicator whenever a normal three-finger-tap event
487         comes through, as it will have its own indication.
488
489         * WebView/WebView.mm:
490         (-[WebView _commonInitializationWithFrameName:groupName:]):
491         (-[WebView _dictionaryLookupPopoverWillClose:]):
492         Register for the LUNotificationPopoverWillClose notification and remove
493         our TextIndicator when it is called, just like in WebKit2.
494         Deregistration is already handled in _close.
495
496         (-[WebView _showDictionaryLookupPopup:]):
497         Just like WebKit2, show our TextIndicator and tell Lookup not to show its own,
498         if the relevant API is available.
499
500         * WebView/WebViewInternal.h:
501
502 2014-12-02  Anders Carlsson  <andersca@apple.com>
503
504         Remove visited link handling from PageGroup
505         https://bugs.webkit.org/show_bug.cgi?id=139185
506
507         Reviewed by Sam Weinig.
508
509         * History/WebHistory.mm:
510         (-[WebHistoryPrivate removeItemForURLString:]):
511         (-[WebHistoryPrivate removeAllItems]):
512         (+[WebHistory setOptionalSharedHistory:]):
513         (+[WebHistory _setVisitedLinkTrackingEnabled:]):
514         (+[WebHistory _removeAllVisitedLinks]):
515         (-[WebHistoryPrivate addVisitedLinksToPageGroup:]): Deleted.
516         (-[WebHistory _addVisitedLinksToPageGroup:]): Deleted.
517         * History/WebHistoryInternal.h:
518         * WebCoreSupport/WebChromeClient.h:
519         * WebCoreSupport/WebChromeClient.mm:
520         (WebChromeClient::populateVisitedLinks): Deleted.
521         * WebView/WebView.mm:
522         (-[WebView addVisitedLinks:]):
523         (-[WebView removeVisitedLink:]):
524
525 2014-12-01  Timothy Horton  <timothy_horton@apple.com>
526
527         Try to fix the Mac build.
528
529         * WebView/WebView.mm:
530         (-[WebView _commonInitializationWithFrameName:groupName:]):
531         (-[WebView _close]):
532
533 2014-12-01  Timothy Horton  <timothy_horton@apple.com>
534
535         Fix the iOS build.
536
537         * WebView/WebActionMenuController.h:
538         * WebView/WebActionMenuController.mm:
539         * WebView/WebHTMLView.mm:
540         (-[WebHTMLView scrollWheel:scrollWheel:]):
541         (-[WebHTMLView mouseDown:mouseDown:]):
542         * WebView/WebView.mm:
543         * WebView/WebViewData.h:
544         * WebView/WebViewData.mm:
545         (-[WebViewPrivate dealloc]):
546         * WebView/WebViewInternal.h:
547
548 2014-12-01  Tim Horton  <timothy_horton@apple.com>
549
550         Implement yellow highlight for WebKit1 data detectors
551         https://bugs.webkit.org/show_bug.cgi?id=138956
552         <rdar://problem/18992185>
553
554         Reviewed by Beth Dakin.
555
556         * WebView/WebActionMenuController.h:
557         * WebView/WebActionMenuController.mm:
558         (-[WebActionMenuController webView:willHandleMouseDown:]):
559         (-[WebActionMenuController webView:didHandleScrollWheel:]):
560         (-[WebActionMenuController prepareForMenu:withEvent:]):
561         (-[WebActionMenuController didCloseMenu:withEvent:]):
562         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
563         (-[WebActionMenuController _showTextIndicator]):
564         (-[WebActionMenuController _hideTextIndicator]):
565         (-[WebActionMenuController _dismissActionMenuPopovers]):
566         Copy the WebKit2 WKActionMenuController TextIndicator implementation
567         into WebActionMenuController. The only significant difference is
568         that we build the TextIndicator right at menu construction time
569         instead of in the Web process.
570
571         * WebView/WebHTMLView.mm:
572         (-[WebHTMLView scrollWheel:]):
573         Let the WebActionMenuController know that we're handling a scroll.
574
575         (-[WebHTMLView mouseDown:]):
576         Let the WebActionMenuController know that we're handling a mouseDown.
577
578         * WebView/WebView.mm:
579         (-[WebView _setTextIndicator:fadeOut:animationCompletionHandler:]):
580         (-[WebView _clearTextIndicator]):
581         (-[WebView _actionMenuController]):
582         (-[WebView _convertRectFromRootView:]): Deleted.
583         * WebView/WebViewData.h:
584         * WebView/WebViewData.mm:
585         * WebView/WebViewInternal.h:
586         Keep a TextIndicatorWindow on WebView, just like WKView does.
587         Expose the WebActionMenuController on WebView (internally).
588
589 2014-12-01  Anders Carlsson  <andersca@apple.com>
590
591         Remove old site specific quirks code that was added in 2009
592         https://bugs.webkit.org/show_bug.cgi?id=139141
593
594         Reviewed by Antti Koivisto.
595
596         * WebCoreSupport/WebFrameNetworkingContext.h:
597         * WebCoreSupport/WebFrameNetworkingContext.mm:
598         (WebFrameNetworkingContext::needsSiteSpecificQuirks): Deleted.
599
600 2014-11-30  Anders Carlsson  <andersca@apple.com>
601
602         Fix a test failure.
603
604         * History/WebHistory.mm:
605         (+[WebHistory _setVisitedLinkTrackingEnabled:]):
606         Call through to the visited link store.
607
608         (+[WebHistory _removeAllVisitedLinks]):
609         Ditto.
610
611         * WebCoreSupport/WebVisitedLinkStore.mm:
612         (WebVisitedLinkStore::isLinkVisited):
613         Make sure to populate visited links.
614
615 2014-11-30  Anders Carlsson  <andersca@apple.com>
616
617         Switch over to the visited link store from the WebViewGroup
618         https://bugs.webkit.org/show_bug.cgi?id=139112
619
620         Reviewed by Sam Weinig.
621
622         * WebView/WebView.mm:
623         (-[WebView _commonInitializationWithFrameName:groupName:]):
624         (-[WebView setGroupName:]):
625
626 2014-11-30  Anders Carlsson  <andersca@apple.com>
627
628         Add WebVisitedLinkStore::removeVisitedLink and use it on iOS
629         https://bugs.webkit.org/show_bug.cgi?id=139111
630
631         Reviewed by Sam Weinig.
632
633         * WebCoreSupport/WebVisitedLinkStore.h:
634         * WebCoreSupport/WebVisitedLinkStore.mm:
635         (WebVisitedLinkStore::removeVisitedLink):
636         * WebView/WebView.mm:
637         (-[WebView removeVisitedLink:]):
638
639 2014-11-29  Anders Carlsson  <andersca@apple.com>
640
641         Populate visited links
642         https://bugs.webkit.org/show_bug.cgi?id=139101
643
644         Reviewed by Sam Weinig.
645
646         * History/WebHistory.mm:
647         (-[WebHistoryPrivate addVisitedLinksToVisitedLinkStore:]):
648         Helper function that adds all visited link to the given store.
649
650         (-[WebHistory _addVisitedLinksToVisitedLinkStore:]):
651         Call the private method.
652
653         * History/WebHistoryInternal.h:
654         * WebCoreSupport/WebVisitedLinkStore.h:
655         Add new members.
656
657         * WebCoreSupport/WebVisitedLinkStore.mm:
658         (WebVisitedLinkStore::addVisitedLink):
659         Get the characters from the URL string and hash them, then call addVisitedLinkHash.
660
661         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
662         Implement this. First try the delegate, then try the shared history.
663
664         (WebVisitedLinkStore::addVisitedLinkHash):
665         Factor code that adds the link to the hash table into a separate function.
666
667         * WebView/WebView.mm:
668         (-[WebView addVisitedLinks:]):
669         Add the visited links to the store.
670
671 2014-11-29  Anders Carlsson  <andersca@apple.com>
672
673         More work on the legacy WebKit visited link store
674         https://bugs.webkit.org/show_bug.cgi?id=139100
675
676         Reviewed by Sam Weinig.
677
678         * History/WebHistory.mm:
679         (+[WebHistory setOptionalSharedHistory:]):
680         Call WebVisitedLinkStore::setShouldTrackVisitedLinks and WebVisitedLinkStore::removeAllVisitedLinks.
681
682         * WebCoreSupport/WebVisitedLinkStore.h:
683         * WebCoreSupport/WebVisitedLinkStore.mm:
684         (visitedLinkStores):
685         (WebVisitedLinkStore::WebVisitedLinkStore):
686         (WebVisitedLinkStore::~WebVisitedLinkStore):
687         Keep track of live visited link stores.
688
689         (WebVisitedLinkStore::setShouldTrackVisitedLinks):
690         Update s_shouldTrackVisitedLinks and call removeAllVisitedLinks if necessary.
691
692         (WebVisitedLinkStore::removeAllVisitedLinks):
693         Iterate over all live link stores and remove their links.
694
695         (WebVisitedLinkStore::isLinkVisited):
696         Populate visited links and check if our hash table contains the link.
697
698         (WebVisitedLinkStore::addVisitedLink):
699         Add the link hash to the table.
700
701         (WebVisitedLinkStore::populateVisitedLinksIfNeeded):
702         Add stub.
703
704         (WebVisitedLinkStore::removeVisitedLinkHashes):
705         Clear out the hash table.
706
707 2014-11-27  Anders Carlsson  <andersca@apple.com>
708
709         Add a stubbed out WebVisitedLinkStore to WebViewGroup
710         https://bugs.webkit.org/show_bug.cgi?id=139066
711
712         Reviewed by Antti Koivisto.
713
714         * WebCoreSupport/WebViewGroup.h:
715         (WebViewGroup::visitedLinkStore):
716         * WebCoreSupport/WebViewGroup.mm:
717         (WebViewGroup::WebViewGroup):
718         * WebCoreSupport/WebVisitedLinkStore.h: Copied from Source/WebKit/mac/WebCoreSupport/WebViewGroup.h.
719         * WebCoreSupport/WebVisitedLinkStore.mm: Copied from Source/WebKit/mac/WebCoreSupport/WebViewGroup.h.
720         (WebVisitedLinkStore::create):
721         (WebVisitedLinkStore::WebVisitedLinkStore):
722         (WebVisitedLinkStore::~WebVisitedLinkStore):
723         (WebVisitedLinkStore::isLinkVisited):
724         (WebVisitedLinkStore::addVisitedLink):
725
726 2014-11-25  Anders Carlsson  <andersca@apple.com>
727
728         Remove user content handling from PageGroup
729         https://bugs.webkit.org/show_bug.cgi?id=139051
730
731         Reviewed by Antti Koivisto.
732
733         Use the user content controller in the web view group.
734
735         * WebView/WebView.mm:
736         (-[WebView _injectOutlookQuirksScript]):
737
738 2014-11-25  Anders Carlsson  <andersca@apple.com>
739
740         Add a user content controller to WebViewGroup and use it for user content
741         https://bugs.webkit.org/show_bug.cgi?id=139043
742
743         Reviewed by Antti Koivisto.
744
745         This is another tiny step towards getting rid of user content handling inside PageGroup.
746
747         * WebCoreSupport/WebViewGroup.h:
748         (WebViewGroup::userContentController):
749         Add a UserContentController member and getter.
750
751         * WebCoreSupport/WebViewGroup.mm:
752         (WebViewGroup::get):
753         Helper function that returns a WebViewGroup by its name (or null if it doesn't exist).
754
755         (WebViewGroup::WebViewGroup):
756         Create a user content controller.
757
758         * WebView/WebView.mm:
759         (-[WebView _commonInitializationWithFrameName:groupName:]):
760         Instead of calling -[WebView setGroupName:], create a WebViewGroup before creating the page, that way we can
761         set its user content controller in the PageConfiguration.
762
763         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
764         Ditto.
765
766         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
767         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
768         (+[WebView _removeUserScriptFromGroup:world:url:]):
769         (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
770         (+[WebView _removeUserScriptsFromGroup:world:]):
771         (+[WebView _removeUserStyleSheetsFromGroup:world:]):
772         (+[WebView _removeAllUserContentFromGroup:]):
773         Instead of calling into the PageGroup, get the WebViewGroup's user content controller and call into that.
774
775         (-[WebView setGroupName:]):
776         Set the user content controller to the new WebViewGroup's user content controller.
777
778 2014-11-21  Jer Noble  <jer.noble@apple.com>
779
780         Support multiple signatures of diagnostic logging.
781         https://bugs.webkit.org/show_bug.cgi?id=138690
782
783         Reviewed by Anders Carlsson.
784
785         Page::PageClients has been renamed PageConfiguration.
786
787         * WebView/WebView.mm:
788         (-[WebView _commonInitializationWithFrameName:groupName:]):
789         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
790
791 2014-11-21  Zalan Bujtas  <zalan@apple.com>
792
793         Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser.
794         https://bugs.webkit.org/show_bug.cgi?id=138981
795
796         Reviewed by Simon Fraser.
797
798         * WebView/WebPreferenceKeysPrivate.h:
799         * WebView/WebPreferences.mm:
800         (+[WebPreferences initialize]):
801         (-[WebPreferences simpleLineLayoutDebugBordersEnabled]):
802         (-[WebPreferences setSimpleLineLayoutDebugBordersEnabled:]):
803         * WebView/WebPreferencesPrivate.h:
804         * WebView/WebView.mm:
805         (-[WebView _preferencesChanged:]):
806
807 2014-11-21  Tim Horton  <timothy_horton@apple.com>
808
809         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
810         ​https://bugs.webkit.org/show_bug.cgi?id=138960
811         <rdar://problem/19056715>
812
813         Reviewed by Anders Carlsson.
814
815         * WebView/WebActionMenuController.mm:
816         (-[WebActionMenuController _defaultMenuItemsForMailtoLink]):
817         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
818         Use DataDetectors SPI instead of an explicit blacklist.
819
820 2014-11-21  Tim Horton  <timothy_horton@apple.com>
821
822         REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
823         https://bugs.webkit.org/show_bug.cgi?id=138960
824         <rdar://problem/19056715>
825
826         Reviewed by Beth Dakin.
827
828         * WebView/WebActionMenuController.mm:
829         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
830         Blacklist contact results, because they don't have useful menus. If we
831         bail before setting up _currentActionContext, we'll still allow fallthrough
832         to ordinary text actions, avoiding mysterious failure when a contact is detected.
833
834         This doesn't break the case that r176351 was intended to fix,
835         because in that case we were detecting e.g. addresses.
836
837 2014-11-21  Anders Carlsson  <andersca@apple.com>
838
839         Remove the Timer parameters from timer callbacks
840         https://bugs.webkit.org/show_bug.cgi?id=138974
841
842         Reviewed by Antti Koivisto.
843
844         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
845         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
846         (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
847         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
848         * Plugins/WebNetscapePluginStream.h:
849         * Plugins/WebNetscapePluginStream.mm:
850         (WebNetscapePluginStream::WebNetscapePluginStream):
851         (WebNetscapePluginStream::deliverDataTimerFired):
852
853 2014-11-21  Anders Carlsson  <andersca@apple.com>
854
855         Make memoryCache() return a reference
856         https://bugs.webkit.org/show_bug.cgi?id=138939
857
858         Reviewed by Antti Koivisto.
859
860         * Misc/WebCache.mm:
861         (+[WebCache statistics]):
862         (+[WebCache emptyInMemoryResources]):
863         (+[WebCache sizeOfDeadResources:]):
864         (+[WebCache addImageToCache:forURL:forFrame:]):
865         (+[WebCache removeImageFromCacheForURL:forFrame:]):
866         (+[WebCache imageForURL:]):
867         (+[WebCache setDisabled:]):
868         (+[WebCache isDisabled]):
869         * WebView/WebView.mm:
870         (+[WebView _setCacheModel:]):
871
872 2014-11-20  Benjamin Poulain  <bpoulain@apple.com>
873
874         Remove the remaining vestiges of minimal-ui
875         https://bugs.webkit.org/show_bug.cgi?id=138890
876
877         Reviewed by Sam Weinig.
878
879         * History/WebHistoryItem.mm:
880         * History/WebHistoryItemPrivate.h:
881
882 2014-11-20  Tim Horton  <timothy_horton@apple.com>
883
884         Cancel DataDetectors menu earlier if we know it can't be presented
885         https://bugs.webkit.org/show_bug.cgi?id=138922
886         <rdar://problem/18950441>
887
888         Reviewed by Beth Dakin.
889
890         * WebView/WebActionMenuController.mm:
891         (-[WebActionMenuController prepareForMenu:withEvent:]):
892         Move our call to shouldUseActionsWithContext earlier, to menuNeedsUpdate,
893         and use a bigger hammer (removeAllItems).
894
895         (-[WebActionMenuController willOpenMenu:withEvent:]):
896         If we end up with a menu with no items, don't change selection or anything.
897
898 2014-11-20  Beth Dakin  <bdakin@apple.com>
899
900         Invalid message WebPageProxy.DidPerformDictionaryLookup on Google stocks result
901         https://bugs.webkit.org/show_bug.cgi?id=138568
902         -and corresponding-
903         rdar://problem/18904600
904
905         Reviewed by Tim Horton.
906
907         Skip images for lookup.
908         * WebView/WebActionMenuController.mm:
909         (performDictionaryLookupForRange):
910
911 2014-11-19  Beth Dakin  <bdakin@apple.com>
912
913         Invoking an action menu on a selection should result in the text menu
914         https://bugs.webkit.org/show_bug.cgi?id=138892
915         -and corresponding-
916         rdar://problem/18996776
917
918         Reviewed by Tim Horton.
919
920         * WebView/WebActionMenuController.mm:
921         (-[WebActionMenuController _defaultMenuItems]):
922
923 2014-11-19  Beth Dakin  <bdakin@apple.com>
924
925         Data detected results with no menu items should not fall through to regular text 
926         action menus
927         https://bugs.webkit.org/show_bug.cgi?id=138887
928         -and corresponding-
929         rdar://problem/18971616
930
931         Reviewed by Tim Horton.
932
933         * WebView/WebActionMenuController.mm:
934         (-[WebActionMenuController _defaultMenuItems]):
935
936 2014-11-19  Daniel Bates  <dabates@apple.com>
937
938         [iOS] Make WebKit build with public iOS SDK
939         https://bugs.webkit.org/show_bug.cgi?id=136863
940
941         Reviewed by David Kilzer.
942
943         * History/WebHistory.mm: Include header NSCalendarDateSPI.h.
944         * History/WebHistoryItemPrivate.h: Remove include of private header Foundation/NSCalendarDate.h.
945         * Misc/WebDownload.h: Forward declare NSURLDownload when building without header Foundation/NSURLDownload.h.
946         We use __has_include() instead of WTF_USE_APPLE_INTERNAL_SDK since this header
947         may be used by Apple internal clients that do not include wtf/Platform.h.
948         * Misc/WebDownload.mm: Include header NSURLDownloadSPI.h instead of including
949         private Foundation headers directly.
950         * Misc/WebNSURLExtras.mm: Remove unnecessary include of private Foundation header.
951         * WebCoreSupport/WebFrameNetworkingContext.mm: Include header CFNetworkSPI.h
952         instead of including private CFNetwork headers directly. Also fixed up style and
953         ordering of header include directives.
954         * WebView/WebView.mm: Include header CFNetworkSPI.h instead of including private
955         CFNetwork headers directly. Also sort the #import directives.
956         * WebView/WebViewPrivate.h: Define ENABLE_TOUCH_EVENTS if not otherwise defined
957         and added ENABLE_TOUCH_EVENTS-guard around -_touchEventRegions.
958
959 2014-11-18  David Kilzer  <ddkilzer@apple.com>
960
961         FeatureDefines.xcconfig: Switch from using PLATFORM_NAME to SDK selectors
962         <http://webkit.org/b/138813>
963
964         Reviewed by Mark Rowe.
965
966         * Configurations/FeatureDefines.xcconfig: Switch to using SDK
967         selectors.
968
969 2014-11-18  Chris Dumez  <cdumez@apple.com>
970
971         Add a setting to toggle DOMTimer throttling support
972         https://bugs.webkit.org/show_bug.cgi?id=138844
973         <rdar://problem/19020874>
974
975         Reviewed by Andreas Kling.
976
977         Add a setting to disable DOM timers throttling, in order to help
978         developers determine if a specific issue is caused by timer
979         throttling.
980
981         * WebView/WebPreferenceKeysPrivate.h:
982         * WebView/WebPreferences.mm:
983         (+[WebPreferences initialize]):
984         (-[WebPreferences domTimersThrottlingEnabled]):
985         (-[WebPreferences setDOMTimersThrottlingEnabled:]):
986         * WebView/WebPreferencesPrivate.h:
987         * WebView/WebView.mm:
988         (-[WebView _preferencesChanged:]):
989
990 2014-11-18  Tim Horton  <timothy_horton@apple.com>
991
992         Avoid re-encoding action menu image data
993         https://bugs.webkit.org/show_bug.cgi?id=138817
994         <rdar://problem/18840382>
995
996         Reviewed by Anders Carlsson.
997
998         * WebView/WebActionMenuController.mm:
999         (-[WebActionMenuController _defaultMenuItemsForImage:]):
1000         (-[WebActionMenuController _addImageToPhotos:]):
1001         Build a temporary filename from a UUID and the image's desired extension.
1002         Use the Image's encoded data instead of re-encoding it with CGImageDestination.
1003         Build an image menu only if we have an image, URL, data, and extension.
1004
1005 2014-11-18  Daniel Bates  <dabates@apple.com>
1006
1007         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
1008         SPI are not available in public SDK
1009         https://bugs.webkit.org/show_bug.cgi?id=138802
1010
1011         Reviewed by David Kilzer.
1012
1013         Include headers DispatchSPI.h and MobileGestaltSPI.h instead of including
1014         libdispatch and MobileGestalt headers directly.
1015
1016         * WebView/WebView.mm:
1017
1018 2014-11-17  Brian Weinstein  <bweinstein@apple.com>
1019
1020         Remove calls to deprecated NSMenu methods
1021         https://bugs.webkit.org/show_bug.cgi?id=138808.
1022
1023         Reviewed by Anders Carlsson.
1024
1025         -[NSMenu menuChangedMessagesEnabled] and -[NSMenu setMenuChangedMessagesEnabled:] are no-ops as of 10.6.
1026
1027         * WebCoreSupport/PopupMenuMac.mm:
1028         (PopupMenuMac::populate):
1029
1030 2014-11-17  Daniel Bates  <dabates@apple.com>
1031
1032         Unreviewed, rolling out r176232.
1033
1034         Broke the Mac build. Will investigate offline.
1035
1036         Reverted changeset:
1037
1038         "[iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions,
1039         MobileGestalt"
1040         https://bugs.webkit.org/show_bug.cgi?id=138802
1041         http://trac.webkit.org/changeset/176232
1042
1043 2014-11-17  Daniel Bates  <dabates@apple.com>
1044
1045         [iOS] Libdispatch, Dyld, IOKit, Mach, NSPointerFunctions, MobileGestalt
1046         SPI are not available in public SDK
1047         https://bugs.webkit.org/show_bug.cgi?id=138802
1048
1049         Reviewed by David Kilzer.
1050
1051         Include headers DispatchSPI.h and MobileGestaltSPI.h instead of including
1052         libdispatch and MobileGestalt headers directly.
1053
1054         * WebView/WebView.mm:
1055
1056 2014-11-17  Beth Dakin  <bdakin@apple.com>
1057
1058         Whitespace action menus should focus the HitTestResult and create an insertion 
1059         point
1060         https://bugs.webkit.org/show_bug.cgi?id=138786
1061         -and corresponding-
1062         rdar://problem/18944893
1063
1064         Reviewed by Tim Horton.
1065
1066         Whitespace menus should cause the HitTestResult to be focused, and they should set 
1067         the selection based on the HitTest location.
1068
1069         * WebView/WebActionMenuController.mm:
1070         (-[WebActionMenuController isMenuForTextContent]):
1071         (-[WebActionMenuController focusAndSelectHitTestResult]):
1072         (-[WebActionMenuController willOpenMenu:withEvent:]):
1073
1074 2014-11-17  Daniel Bates  <dabates@apple.com>
1075
1076         [iOS] QuartzCore SPI not available in public SDK
1077         https://bugs.webkit.org/show_bug.cgi?id=138751
1078
1079         Reviewed by David Kilzer.
1080
1081         Include header QuartzCoreSPI.h instead of including QuartzCore headers directly.
1082
1083         * WebInspector/WebNodeHighlight.mm:
1084         * WebView/WebIndicateLayer.mm:
1085
1086 2014-11-17  Eric Carlson  <eric.carlson@apple.com>
1087
1088         [iOS] allow host application to opt-out of alternate fullscreen
1089         https://bugs.webkit.org/show_bug.cgi?id=138787
1090
1091         Reviewed by Darin Adler.
1092
1093         * WebView/WebPreferenceKeysPrivate.h:
1094         * WebView/WebPreferences.mm:
1095         (+[WebPreferences initialize]):
1096         (-[WebPreferences allowsAlternateFullscreen]):
1097         (-[WebPreferences setAllowsAlternateFullscreen:]):
1098         * WebView/WebPreferencesPrivate.h:
1099         * WebView/WebView.mm:
1100         (-[WebView _preferencesChanged:]):
1101
1102 2014-11-16  Tim Horton  <timothy_horton@apple.com>
1103
1104         Use TextIndicator instead of the built in Lookup highlight
1105         https://bugs.webkit.org/show_bug.cgi?id=138775
1106         <rdar://problem/18953982>
1107
1108         Reviewed by Anders Carlsson.
1109
1110         * WebCoreSupport/WebSystemInterface.mm:
1111         (InitWebCoreSystemInterface):
1112         Remove a WKSI import.
1113
1114         * WebView/WebActionMenuController.mm:
1115         (-[WebActionMenuController _lookupText:]):
1116         (-[WebActionMenuController _createActionMenuItemForTag:]):
1117         Make use of the new Lookup SPI header.
1118         Disable the Lookup item if lookup is not available.
1119
1120 2014-11-15  Tim Horton  <timothy_horton@apple.com>
1121
1122         Implement data detectors and mailto action menus for WebKit1
1123         https://bugs.webkit.org/show_bug.cgi?id=138765
1124         <rdar://problem/18877535>
1125
1126         Reviewed by Beth Dakin.
1127
1128         * WebView/WebActionMenuController.h:
1129         * WebView/WebActionMenuController.mm:
1130         (-[WebActionMenuController willOpenMenu:withEvent:]):
1131         Tell DataDetectors that the menu is going to open.
1132         Select the text (or not) based on the number of items in the menu, just like WebKit2.
1133
1134         (-[WebActionMenuController didCloseMenu:withEvent:]):
1135         Tell DataDetectors that the menu closed.
1136
1137         (-[WebActionMenuController _defaultMenuItemsForLink]):
1138         Move these checks out of _defaultMenuItemsForLink, because we expect this
1139         to always return a complete link menu.
1140
1141         (-[WebActionMenuController _defaultMenuItemsForMailtoLink]):
1142         Implement. More or less copied from WebKit2.
1143
1144         (-[WebActionMenuController _selectDataDetectedText]):
1145         Select the stashed range.
1146
1147         (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
1148         Implement. More or less copied from WebKit2.
1149         The yellow highlight isn't hooked up yet.
1150         Give the client a chance to override via _webView:actionContextForHitTestResult:range:.
1151
1152         (-[WebActionMenuController _selectLookupText]):
1153         Remove an unnecessary return.
1154
1155         (-[WebActionMenuController _defaultMenuItems]):
1156         Call into the two new menu types.
1157
1158         * WebView/WebUIDelegatePrivate.h:
1159
1160 2014-11-14  Myles C. Maxfield  <mmaxfield@apple.com>
1161
1162         Get rid of WebFontCache
1163         https://bugs.webkit.org/show_bug.cgi?id=134752
1164
1165         Reviewed by Dave Hyatt.
1166
1167         * WebView/WebHTMLView.mm:
1168
1169 2014-11-14  Timothy Horton  <timothy_horton@apple.com>
1170
1171         Update some artwork for the legacy WebKit action menu
1172         https://bugs.webkit.org/show_bug.cgi?id=138758
1173         <rdar://problem/18989840>
1174
1175         * WebView/WebActionMenuController.mm:
1176         (webKitBundleImageNamed): Deleted.
1177         Fix the build.
1178
1179 2014-11-14  Tim Horton  <timothy_horton@apple.com>
1180
1181         Update some artwork for the legacy WebKit action menu
1182         https://bugs.webkit.org/show_bug.cgi?id=138758
1183         <rdar://problem/18989840>
1184
1185         Reviewed by Simon Fraser.
1186
1187         * WebView/WebActionMenuController.mm:
1188         (-[WebActionMenuController _createActionMenuItemForTag:]):
1189
1190 2014-11-14  Daniel Bates  <dabates@apple.com>
1191
1192         [iOS] NSFileManager and QuickLook SPI not available in public SDK
1193         https://bugs.webkit.org/show_bug.cgi?id=138742
1194
1195         Reviewed by Pratik Solanki.
1196
1197         Include header NSFileManagerSPI.h instead of the private header NSFileManager_NSURLExtras.h.
1198
1199         * WebCoreSupport/WebFrameLoaderClient.mm:
1200
1201 2014-11-14  Beth Dakin  <bdakin@apple.com>
1202
1203         WK1: Webpage preview can come up in wrong location
1204         https://bugs.webkit.org/show_bug.cgi?id=138747
1205         -and corresponding-
1206         rdar://problem/18979004
1207
1208         Reviewed by Tim Horton.
1209
1210         Converting to window twice is bad.
1211         * WebView/WebActionMenuController.mm:
1212         (elementBoundingBoxInWindowCoordinatesFromNode):
1213         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1214         (elementBoundingBoxFromNode): Deleted.
1215
1216 2014-11-13  Myles C. Maxfield  <mmaxfield@apple.com>
1217
1218         Move FontMac and FontCacheMac off of WKSI
1219         https://bugs.webkit.org/show_bug.cgi?id=138633
1220
1221         Reviewed by Simon Fraser.
1222
1223         * WebCoreSupport/WebSystemInterface.mm:
1224         (InitWebCoreSystemInterface):
1225         * WebKit.order:
1226
1227 2014-11-13  Beth Dakin  <bdakin@apple.com>
1228
1229         WK1: Clean up WebActionMenuController to use the _hitTestResult ivar
1230         https://bugs.webkit.org/show_bug.cgi?id=138716
1231         -and corresponding-
1232         rdar://problem/18977222
1233
1234         Reviewed by Tim Horton.
1235
1236         It’s not necessary to use the WebElementDictionary for so many things now that we 
1237         are caching the HitTestResult. We should just use the HitTestResult.
1238
1239         * WebView/WebActionMenuController.mm:
1240         (-[WebActionMenuController prepareForMenu:withEvent:]):
1241         (-[WebActionMenuController _openURLFromActionMenu:]):
1242         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
1243         (elementBoundingBoxFromNode):
1244         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1245         (-[WebActionMenuController _defaultMenuItemsForLink]):
1246         (-[WebActionMenuController _defaultMenuItemsForImage]):
1247         (-[WebActionMenuController _defaultMenuItemsForVideo]):
1248         (-[WebActionMenuController _defaultMenuItemsForText]):
1249         (-[WebActionMenuController _defaultMenuItemsForEditableText]):
1250         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions]):
1251         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea]):
1252         (-[WebActionMenuController _createActionMenuItemForTag:]):
1253         (-[WebActionMenuController _defaultMenuItems]):
1254         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]): Deleted.
1255         (-[WebActionMenuController _defaultMenuItemsForLink:]): Deleted.
1256         (-[WebActionMenuController _defaultMenuItemsForImage:]): Deleted.
1257         (-[WebActionMenuController _defaultMenuItemsForVideo:]): Deleted.
1258         (-[WebActionMenuController _defaultMenuItemsForText:]): Deleted.
1259         (-[WebActionMenuController _defaultMenuItemsForEditableText:]): Deleted.
1260         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]): Deleted.
1261         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]): Deleted.
1262         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]): Deleted.
1263         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]): Deleted.
1264
1265 2014-11-13  Daniel Bates  <dabates@apple.com>
1266
1267         [iOS] NSGeometry data types are not available in the public SDK
1268         https://bugs.webkit.org/show_bug.cgi?id=137536
1269
1270         Reviewed by David Kilzer.
1271
1272         Substitute header WAKAppKitStubs.h for NSGeometry.h as the latter is a
1273         private header.
1274
1275         * DOM/WebDOMOperationsPrivate.h:
1276
1277 2014-11-13  Beth Dakin  <bdakin@apple.com>
1278
1279         WK1: Support default actions for video
1280         https://bugs.webkit.org/show_bug.cgi?id=138713
1281         -and corresponding-
1282         rdar://problem/18877520
1283
1284         Reviewed by Tim Horton.
1285
1286         Call setToNonShadowAncestor() for media HitTestResults.
1287         * WebView/WebActionMenuController.mm:
1288         (-[WebActionMenuController performHitTestAtPoint:]):
1289
1290         Default items and actions.
1291         (-[WebActionMenuController _defaultMenuItemsForVideo:]):
1292         (-[WebActionMenuController _copyVideoURL:]):
1293         (-[WebActionMenuController _saveVideoToDownloads:]):
1294         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1295         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1296         * WebView/WebUIDelegatePrivate.h:
1297
1298 2014-11-13  Tim Horton  <timothy_horton@apple.com>
1299
1300         WK1: Update icon for Add to Reading List
1301         https://bugs.webkit.org/show_bug.cgi?id=138710
1302         <rdar://problem/18975774>
1303
1304         Reviewed by Beth Dakin.
1305
1306         * WebView/WebActionMenuController.mm:
1307         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1308         Use the right icon, matching WebKit2.
1309
1310 2014-11-12  Beth Dakin  <bdakin@apple.com>
1311
1312         WK1: Support default actions for images
1313         https://bugs.webkit.org/show_bug.cgi?id=138668
1314         -and corresponding-
1315         rdar://problem/18785434
1316
1317         Reviewed by Tim Horton.
1318
1319         * WebView/WebActionMenuController.h:
1320         * WebView/WebActionMenuController.mm:
1321         (-[WebActionMenuController didCloseMenu:withEvent:]):
1322         (-[WebActionMenuController _defaultMenuItemsForImage:]):
1323         (-[WebActionMenuController _copyImage:]):
1324         (temporaryPhotosDirectoryPath):
1325         (pathToPhotoOnDisk):
1326         (-[WebActionMenuController _canAddMediaToPhotos]):
1327         (-[WebActionMenuController _addImageToPhotos:]):
1328         (-[WebActionMenuController _saveImageToDownloads:]):
1329         (-[WebActionMenuController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1330         (-[WebActionMenuController sharingServicePicker:delegateForSharingService:]):
1331         (-[WebActionMenuController sharingService:sourceWindowForShareItems:sharingContentScope:]):
1332         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1333         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1334         * WebView/WebUIDelegatePrivate.h:
1335
1336 2014-11-11  Beth Dakin  <bdakin@apple.com>
1337
1338         Action menu hit testing is not working properly with all WK1 apps
1339         https://bugs.webkit.org/show_bug.cgi?id=138643
1340         -and corresponding-
1341         rdar://problem/18949376
1342
1343         Reviewed by Tim Horton.
1344
1345         * WebView/WebActionMenuController.mm:
1346         (-[WebActionMenuController prepareForMenu:withEvent:]):
1347         (-[WebActionMenuController _lookupText:]):
1348
1349 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
1350
1351         Finish moving CTFontGetVerticalGlyphsForCharacters and CTLineCreateWithUniCharProvider out from WKSI
1352         https://bugs.webkit.org/show_bug.cgi?id=138623
1353
1354         Reviewed by Geoff Garen.
1355
1356         * WebCoreSupport/WebSystemInterface.mm:
1357         (InitWebCoreSystemInterface):
1358         * WebKit.order:
1359
1360 2014-11-11  Tim Horton  <timothy_horton@apple.com>
1361
1362         Localize strings for action menus
1363         https://bugs.webkit.org/show_bug.cgi?id=138591
1364         <rdar://problem/18815343>
1365
1366         Reviewed by Dan Bates.
1367
1368         * WebView/WebActionMenuController.mm:
1369         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1370         Make use of the new strings.
1371
1372 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
1373
1374         Cleanup from r175379
1375         https://bugs.webkit.org/show_bug.cgi?id=138616
1376
1377         Reviewed by Simon Fraser.
1378
1379         * WebCoreSupport/WebSystemInterface.mm:
1380         (InitWebCoreSystemInterface):
1381         * WebKit.order:
1382
1383 2014-11-11  Myles C. Maxfield  <mmaxfield@apple.com>
1384
1385         Move CTFontTransformGlyphs out from WKSI
1386         https://bugs.webkit.org/show_bug.cgi?id=138599
1387
1388         Reviewed by Simon Fraser.
1389
1390         * WebCoreSupport/WebSystemInterface.mm:
1391         (InitWebCoreSystemInterface):
1392         * WebKit.order:
1393
1394 2014-11-11  Dan Bernstein  <mitz@apple.com>
1395
1396         More iOS build fix.
1397
1398         * WebView/WebHTMLViewInternal.h:
1399
1400 2014-11-11  Dan Bernstein  <mitz@apple.com>
1401
1402         iOS build fix.
1403
1404         * WebView/WebHTMLView.mm:
1405
1406 2014-11-10  Beth Dakin  <bdakin@apple.com>
1407
1408         WK1: Support default actions for editable text with misspelled word
1409         https://bugs.webkit.org/show_bug.cgi?id=138590
1410         -and corresponding-
1411         rdar://problem/18877506
1412
1413         Reviewed by Tim Horton.
1414
1415         If there are misspelled word suggestions for editable text, create a new type of 
1416         menu with a spelling suggestion sub-menu.
1417
1418         * WebView/WebActionMenuController.mm:
1419         (-[WebActionMenuController isMenuForTextContent]):
1420         (-[WebActionMenuController _defaultMenuItemsForEditableTextWithSuggestions:]):
1421         (-[WebActionMenuController _changeSelectionToSuggestion:]):
1422         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1423         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1424         * WebView/WebHTMLView.mm:
1425         (-[WebHTMLView _changeSpellingToWord:]):
1426         * WebView/WebHTMLViewInternal.h:
1427         * WebView/WebUIDelegatePrivate.h:
1428
1429 2014-11-10  Beth Dakin  <bdakin@apple.com>
1430
1431         WK1: Support default actions for editable whitespace
1432         https://bugs.webkit.org/show_bug.cgi?id=138586
1433         -and corresponding-
1434         rdar://problem/18932048
1435
1436         Reviewed by Tim Horton.
1437
1438         New menu type. Just wants paste.
1439
1440         * WebView/WebActionMenuController.mm:
1441         (-[WebActionMenuController isMenuForTextContent]):
1442         (-[WebActionMenuController _defaultMenuItemsForWhitespaceInEditableArea:]):
1443         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1444         * WebView/WebUIDelegatePrivate.h:
1445
1446 2014-11-10  Beth Dakin  <bdakin@apple.com>
1447
1448         WK1: Support default actions for editable text
1449         https://bugs.webkit.org/show_bug.cgi?id=138580
1450         -and corresponding-
1451         rdar://problem/18877497
1452
1453         Reviewed by Tim Horton.
1454
1455         New menu type, and new action type for paste. 
1456
1457         * WebView/WebActionMenuController.mm:
1458         (-[WebActionMenuController isMenuForTextContent]):
1459         (-[WebActionMenuController willOpenMenu:withEvent:]):
1460         (-[WebActionMenuController _defaultMenuItemsForEditableText:]):
1461         (-[WebActionMenuController _paste:]):
1462         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1463         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1464         * WebView/WebUIDelegatePrivate.h:
1465
1466 2014-11-10  Beth Dakin  <bdakin@apple.com>
1467
1468         WK1: Text is getting selected even when an action menu fails to invoke
1469         https://bugs.webkit.org/show_bug.cgi?id=138576
1470         -and corresponding-
1471         rdar://problem/18931330
1472
1473         Reviewed by Tim Horton.
1474
1475         Selection changes should happen in willOpenMenu: instead of prepareForMenu:
1476         * WebView/WebActionMenuController.h:
1477         * WebView/WebActionMenuController.mm:
1478         (-[WebActionMenuController prepareForMenu:withEvent:]):
1479         (-[WebActionMenuController willOpenMenu:withEvent:]):
1480
1481         _selectLookupText no longer needs to return a BOOL indicating success or failure.
1482         (-[WebActionMenuController _selectLookupText]):
1483         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1484
1485         Pass willOpenMenu: on to the controller.
1486         * WebView/WebView.mm:
1487         (-[WebView willOpenMenu:withEvent:]):
1488
1489 2014-11-10  Beth Dakin  <bdakin@apple.com>
1490
1491         Speculative build fix.
1492
1493         * WebView/WebActionMenuController.mm:
1494
1495 2014-11-10  Beth Dakin  <bdakin@apple.com>
1496
1497         Action menu initialization should be moved to _commonInitializationWithFrameName
1498         https://bugs.webkit.org/show_bug.cgi?id=138572
1499         -and corresponding-
1500         rdar://problem/18929733
1501
1502         Reviewed by Tim Horton.
1503
1504         * WebView/WebView.mm:
1505         (-[WebView _commonInitializationWithFrameName:groupName:]):
1506         (-[WebView _initWithFrame:frameName:groupName:]):
1507
1508 2014-11-10  Beth Dakin  <bdakin@apple.com>
1509
1510         WK1: Support default actions for read-only text
1511         https://bugs.webkit.org/show_bug.cgi?id=138552
1512         -and corresponding-
1513         rdar://problem/18877483
1514
1515         Reviewed by Tim Horton.
1516
1517         New WKSystemInterface functions that WebCore needs to use.
1518         * WebCoreSupport/WebSystemInterface.mm:
1519         (InitWebCoreSystemInterface):
1520
1521         WebActionMenuController now keeps an ivar for the WebCore::HitTestResult. This 
1522         makes a lot of things easier.
1523         * WebView/WebActionMenuController.h:
1524         * WebView/WebActionMenuController.mm:
1525
1526         Perform the hit test ourselves instead of calling into WebView so that we can more 
1527         easily save the WebCore::HitTestResult for ourselves.
1528         (-[WebActionMenuController performHitTestAtPoint:]):
1529
1530         Clear selection for non-text menus.
1531         (-[WebActionMenuController prepareForMenu:withEvent:]):
1532
1533         Re-set the _type here just to be safe.
1534         (-[WebActionMenuController didCloseMenu:withEvent:]):
1535
1536         Moving this method to be next to the link actions so they can be within a pragma 
1537         mark.
1538         (-[WebActionMenuController _defaultMenuItemsForLink:]):
1539
1540         New method for default text actions — lookup and copy.
1541         (-[WebActionMenuController _defaultMenuItemsForText:]):
1542         (-[WebActionMenuController _copySelection:]):
1543         (-[WebActionMenuController _lookupText:]):
1544
1545         If there is not already a selection, invoking the action menu on text should 
1546         select the lookup text.
1547         (-[WebActionMenuController _selectLookupText]):
1548         (performDictionaryLookupForSelection):
1549         (performDictionaryLookupForRange):
1550
1551         Handle text now.
1552         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1553         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1554
1555         New enum values.
1556         * WebView/WebUIDelegatePrivate.h:
1557
1558         Pass didCloseMenu on to the controller.
1559         * WebView/WebView.mm:
1560         (-[WebView didCloseMenu:withEvent:]):
1561
1562 2014-11-09  Chris Dumez  <cdumez@apple.com>
1563
1564         Add a more correct way to compare floating point numbers and use it
1565         https://bugs.webkit.org/show_bug.cgi?id=138527
1566
1567         Reviewed by Darin Adler.
1568
1569         Use the new WTF::areEssentuallyEqual() utility function from MathExtras.h
1570         to compare floating-point numbers.
1571
1572         * WebView/WebHTMLView.mm:
1573         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
1574
1575 2014-11-08  Alexey Proskuryakov  <ap@apple.com>
1576
1577         Delete cookies between tests
1578         https://bugs.webkit.org/show_bug.cgi?id=138528
1579
1580         Reviewed by Sam Weinig.
1581
1582         * WebView/WebPreferences.mm: (+[WebPreferences _clearNetworkLoaderSession]):
1583         * WebView/WebPreferencesPrivate.h:
1584         Added an SPI for DumpRenderTree.
1585
1586 2014-11-07  Eric Carlson  <eric.carlson@apple.com>
1587
1588         [iOS] Update optimized fullscreen media controls
1589         https://bugs.webkit.org/show_bug.cgi?id=138493
1590
1591         Reviewed by Brent Fulgham.
1592
1593         * WebCoreSupport/WebSystemInterface.mm:
1594         (InitWebCoreSystemInterface): Initialize GetMediaUIImageData.
1595
1596 2014-11-06  Daniel Jalkut  <jalkut@red-sweater.com>
1597
1598         Wrap the bulk of -[WebView dealloc] with an autorelease pool.
1599         https://bugs.webkit.org/show_bug.cgi?id=138443
1600
1601         Reviewed by Anders Carlsson.
1602
1603         Wrapping the dealloc method in its own autorelease pool avoids the problem of
1604         complex tear-downs leading to the WebView itself being added to an autorelease
1605         pool that is not drained until after the instance has been dealloc'd.
1606  
1607         * WebView/WebView.mm:
1608         (-[WebView dealloc]):
1609
1610 2014-11-05  Jer Noble  <jer.noble@apple.com>
1611
1612         De-templatize Timer
1613         https://bugs.webkit.org/show_bug.cgi?id=138450
1614
1615         Reviewed by Anders Carlsson.
1616
1617         Remove template specifiers from Timer.
1618
1619         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1620         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1621         (WebKit::NetscapePluginInstanceProxy::requestTimerFired):
1622         * Plugins/WebNetscapePluginStream.h:
1623         * Plugins/WebNetscapePluginStream.mm:
1624         (WebNetscapePluginStream::deliverDataTimerFired):
1625
1626 2014-11-05  Dan Bernstein  <mitz@apple.com>
1627
1628         Remove the unused deletion UI feature
1629         https://bugs.webkit.org/show_bug.cgi?id=138442
1630
1631         Rubber-stamped by Alexey Proskuryakov.
1632
1633         * DefaultDelegates/WebDefaultEditingDelegate.m:
1634         (-[WebDefaultEditingDelegate webView:shouldShowDeleteInterfaceForElement:]): Deleted.
1635         * WebCoreSupport/WebEditorClient.h:
1636         * WebCoreSupport/WebEditorClient.mm:
1637         (WebEditorClient::shouldShowDeleteInterface): Deleted.
1638         * WebView/WebEditingDelegatePrivate.h: Removed declaration of
1639         -webView:shouldShowDeleteInterfaceForElement:.
1640
1641 2014-11-03  Dean Jackson  <dino@apple.com>
1642
1643         Add ENABLE_FILTERS_LEVEL_2 feature guard.
1644         https://bugs.webkit.org/show_bug.cgi?id=138362
1645
1646         Reviewed by Tim Horton.
1647
1648         Add a new feature define for Level 2 of CSS Filters.
1649         http://dev.w3.org/fxtf/filters-2/
1650
1651         * Configurations/FeatureDefines.xcconfig:
1652
1653 2014-11-03  Jeremy Jones  <jeremyj@apple.com>
1654
1655         Add button and enable optimized fullscreen.
1656         https://bugs.webkit.org/show_bug.cgi?id=138351
1657
1658         Reviewed by Eric Carlson.
1659
1660         Add IsOptimizedFullscreenSupported to enable the feature only where appropriate.
1661
1662         * WebCoreSupport/WebSystemInterface.mm:
1663         (InitWebCoreSystemInterface): added
1664
1665 2014-11-04  Chris Dumez  <cdumez@apple.com>
1666
1667         Add ptr() method to Ref class
1668         https://bugs.webkit.org/show_bug.cgi?id=138361
1669
1670         Reviewed by Darin Adler.
1671
1672         Use the new Ref::ptr() method.
1673
1674         * WebView/WebFrame.mm:
1675         (-[WebFrame _setTypingStyle:withUndoAction:]):
1676         * WebView/WebHTMLView.mm:
1677         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
1678         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
1679         * WebView/WebView.mm:
1680         (-[WebView applyStyle:]):
1681
1682 2014-11-04  Darin Adler  <darin@apple.com>
1683
1684         Eliminate ResourceBuffer and use SharedBuffer directly instead
1685         https://bugs.webkit.org/show_bug.cgi?id=138174
1686
1687         Reviewed by Antti Koivisto.
1688
1689         * WebView/WebDataSource.mm:
1690         (-[WebDataSource data]): Use SharedBuffer directly.
1691         * WebView/WebHTMLView.mm:
1692         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1693
1694 2014-11-03  Commit Queue  <commit-queue@webkit.org>
1695
1696         Unreviewed, rolling out r175406, r175413, and r175423.
1697         https://bugs.webkit.org/show_bug.cgi?id=138327
1698
1699         Multipart tests are still broken (Requested by ap on #webkit).
1700
1701         Reverted changesets:
1702
1703         "Eliminate ResourceBuffer and use SharedBuffer directly
1704         instead"
1705         https://bugs.webkit.org/show_bug.cgi?id=138174
1706         http://trac.webkit.org/changeset/175406
1707
1708         "Unreviewed, iOS build fix since 175406."
1709         http://trac.webkit.org/changeset/175413
1710
1711         "Fix assertion in CachedResource::addDataBuffer"
1712         http://trac.webkit.org/changeset/175423
1713
1714 2014-10-31  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1715
1716         Use std::unique_ptr for TypeCountSet
1717         https://bugs.webkit.org/show_bug.cgi?id=138242
1718
1719         Reviewed by Andreas Kling.
1720
1721         * Misc/WebCoreStatistics.mm:
1722         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]): Use std::unique_ptr<> instead of OwnPtr.
1723         (+[WebCoreStatistics javaScriptObjectTypeCounts]): ditto.
1724
1725 2014-10-31  Beth Dakin  <bdakin@apple.com>
1726
1727         Use system art for action menus when possible
1728         https://bugs.webkit.org/show_bug.cgi?id=138260
1729
1730         Reviewed by Tim Horton.
1731
1732         * WebView/WebActionMenuController.mm:
1733         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1734
1735 2014-10-30  Darin Adler  <darin@apple.com>
1736
1737         Eliminate ResourceBuffer and use SharedBuffer directly instead
1738         https://bugs.webkit.org/show_bug.cgi?id=138174
1739
1740         Reviewed by Antti Koivisto.
1741
1742         * WebView/WebDataSource.mm:
1743         (-[WebDataSource data]): Use SharedBuffer directly.
1744         * WebView/WebHTMLView.mm:
1745         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1746
1747 2014-10-30  Jer Noble  <jer.noble@apple.com>
1748
1749         [EME] Add Setting for accessing storage location for MediaKeys data
1750         https://bugs.webkit.org/show_bug.cgi?id=138147
1751
1752         Reviewed by Brady Eidson.
1753
1754         * WebView/WebPreferenceKeysPrivate.h:
1755         * WebView/WebPreferences.mm:
1756         (+[WebPreferences initialize]): Set default location.
1757         (-[WebPreferences mediaKeysStorageDirectory]): Simple accessor.
1758         (-[WebPreferences setMediaKeysStorageDirectory:]): Simple setter.
1759         * WebView/WebPreferencesPrivate.h:
1760         * WebView/WebView.mm:
1761         (-[WebView _preferencesChanged:]): Pass location from WebPreferences into Settings.
1762
1763 2014-10-30  Dana Burkart  <dburkart@apple.com>
1764
1765         <rdar://problem/18821260> Prepare for the mysterious future
1766
1767         Reviewed by Lucas Forschler.
1768
1769         * Configurations/Base.xcconfig:
1770         * Configurations/DebugRelease.xcconfig:
1771         * Configurations/FeatureDefines.xcconfig:
1772         * Configurations/Version.xcconfig:
1773
1774 2014-10-28  Jeremy Jones  <jeremyj@apple.com>
1775
1776         Add optimized fullscreen mode.
1777         https://bugs.webkit.org/show_bug.cgi?id=138044
1778
1779         Reviewed by Jer Noble.
1780
1781         Enable different types of fullscreen video behavior.
1782         Add an enum parameter to enterVideoFullscreenForVideoElement for alternate types of fullscreen.
1783
1784         * WebCoreSupport/WebChromeClient.h: Add fullscreenType parameter
1785         * WebCoreSupport/WebChromeClient.mm:
1786         (WebChromeClient::enterVideoFullscreenForVideoElement): ditto
1787         * WebView/WebView.mm:
1788         (-[WebView _enterVideoFullscreenForVideoElement:type:]): ditto
1789         (-[WebView _enterVideoFullscreenForVideoElement:]): Deleted.
1790         * WebView/WebViewInternal.h: ditto
1791
1792 2014-10-27  Beth Dakin  <bdakin@apple.com>
1793
1794         Provide a way for WebKit1 clients to override default action menu items
1795         https://bugs.webkit.org/show_bug.cgi?id=138066
1796         -and corresponding-
1797         rdar://problem/18451638
1798
1799         Reviewed by Anders Carlsson.
1800
1801         WebActionMenuController now has an ivar for the WebActionMenuType so that it can 
1802         send that along to clients customizing the menu.
1803         * WebView/WebActionMenuController.h:
1804         * WebView/WebActionMenuController.mm:
1805         (-[WebActionMenuController prepareForMenu:withEvent:]):
1806         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1807
1808         New enum and new SPI to customize menus.
1809         * WebView/WebUIDelegatePrivate.h:
1810
1811 2014-10-24  Benjamin Poulain  <bpoulain@apple.com>
1812
1813         Fix the iOS build
1814
1815         * Configurations/WebKitLegacy.xcconfig:
1816         * WebView/WebView.mm:
1817
1818 2014-10-24  Beth Dakin  <bdakin@apple.com>
1819
1820         Build fix.
1821
1822         * WebView/WebActionMenuController.mm:
1823         (-[WebActionMenuController _openURLFromActionMenu:]):
1824         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
1825         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1826
1827 2014-10-24  Beth Dakin  <bdakin@apple.com>
1828
1829         WebKit1 should support action menus
1830         https://bugs.webkit.org/show_bug.cgi?id=138032
1831
1832         Reviewed by Tim Horton.
1833
1834         This patch adds basic support for action menus and adds actions for links.
1835
1836         Helper class takes care of all of the action menu work. WebView will forward the 
1837         prepareForMenu: message, and then the helper class takes it from there.
1838         * WebView/WebActionMenuController.h: Added.
1839         * WebView/WebActionMenuController.mm: Added.
1840         (-[WebActionMenuController webViewClosed]):
1841         (-[WebActionMenuController prepareForMenu:withEvent:]):
1842
1843         Selectors for link actions.
1844         (-[WebActionMenuController _openURLFromActionMenu:]):
1845         (-[WebActionMenuController _addToReadingListFromActionMenu:]):
1846         (-[WebActionMenuController _elementBoundingBoxFromDOMElement:]):
1847         (-[WebActionMenuController _quickLookURLFromActionMenu:]):
1848         (-[WebActionMenuController _createActionMenuItemForTag:withHitTestResult:]):
1849         (webKitBundleImageNamed):
1850         (-[WebActionMenuController _defaultMenuItemsForLink:]):
1851         (-[WebActionMenuController _defaultMenuItemsForHitTestResult:]):
1852
1853         Tags for the action menu items.
1854         * WebView/WebUIDelegatePrivate.h:
1855         * WebView/WebView.mm:
1856
1857         Set the action menu if possible and create the controller.
1858         (-[WebView _initWithFrame:frameName:groupName:]):
1859         (-[WebView _close]):
1860         (-[WebView prepareForMenu:withEvent:]):
1861
1862         WebViewData stores the WebActionMenuHelper
1863         * WebView/WebViewData.h:
1864         * WebView/WebViewData.mm:
1865         (-[WebViewPrivate dealloc]):
1866
1867 2014-10-23  Joseph Pecoraro  <pecoraro@apple.com>
1868
1869         Web Inspector: Provide a way to have alternate inspector agents
1870         https://bugs.webkit.org/show_bug.cgi?id=137901
1871
1872         Reviewed by Brian Burg.
1873
1874         * Configurations/FeatureDefines.xcconfig:
1875
1876 2014-10-23  Tim Horton  <timothy_horton@apple.com>
1877
1878         Add some SPI headers for NSExtension and NSSharingService{Picker}
1879         https://bugs.webkit.org/show_bug.cgi?id=138027
1880
1881         Reviewed by Anders Carlsson.
1882
1883         * Misc/WebSharingServicePickerController.h:
1884         * Misc/WebSharingServicePickerController.mm:
1885         * WebCoreSupport/WebSelectionServiceController.mm:
1886         * WebCoreSupport/WebContextMenuClient.mm:
1887         Fix a sorting issue.
1888         Replace redefinitions with SPI header #imports.
1889
1890 2014-10-23  Tim Horton  <timothy_horton@apple.com>
1891
1892         Crashes under WebSelectionServiceController::hasRelevantSelectionServices
1893         https://bugs.webkit.org/show_bug.cgi?id=138013
1894
1895         Reviewed by Dan Bernstein.
1896
1897         * WebCoreSupport/WebSelectionServiceController.mm:
1898         (WebSelectionServiceController::hasRelevantSelectionServices):
1899         Don't adopt this autoreleased object.
1900
1901 2014-10-22  Chris Dumez  <cdumez@apple.com>
1902
1903         [Mac][WK2] Fix applicationIsSafari() detection
1904         https://bugs.webkit.org/show_bug.cgi?id=137893
1905
1906         Reviewed by Alexey Proskuryakov.
1907
1908         Provide an implementation for FrameLoaderClient's new
1909         needsQuickLookResourceCachingQuirks() that returns
1910         a static flag initialized using
1911         QuickLookMac::computeNeedsQuickLookResourceCachingQuirks().
1912
1913         * WebCoreSupport/WebFrameLoaderClient.h:
1914         * WebCoreSupport/WebFrameLoaderClient.mm:
1915
1916 2014-10-20  Chris Dumez  <cdumez@apple.com>
1917
1918         ResourceRequest deserialization unnecessarily calls partitionName() on encoded cache partition
1919         https://bugs.webkit.org/show_bug.cgi?id=137797
1920
1921         Reviewed by Darin Adler.
1922
1923         Call ResourceRequest::setDomainForPartitionName() instead of
1924         setPartitionName() as the argument is a domain, not a valid
1925         partition name.
1926
1927         * Misc/WebCache.mm:
1928         (+[WebCache addImageToCache:forURL:forFrame:]):
1929         (+[WebCache removeImageFromCacheForURL:forFrame:]):
1930
1931 2014-10-20  Andy Estes  <aestes@apple.com>
1932
1933         Fix the iOS build.
1934
1935         * WebView/WebFrame.mm:
1936         (-[WebFrame getDictationResultRanges:andMetadatas:]):
1937         (-[WebFrame dictationResultMetadataForRange:]):
1938
1939 2014-10-19  Chris Dumez  <cdumez@apple.com>
1940
1941         Use is<>() / downcast<>() for all remaining RenderObject subclasses
1942         https://bugs.webkit.org/show_bug.cgi?id=137845
1943
1944         Reviewed by Darin Adler.
1945
1946         Use is<>() / downcast<>() for all remaining RenderObject subclasses and 
1947         clean up the surrounding code.
1948
1949         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1950         (-[WebHostedNetscapePluginView pluginHostDied]):
1951         * Plugins/WebBaseNetscapePluginView.mm:
1952         (-[WebBaseNetscapePluginView _windowClipRect]):
1953         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
1954         * WebCoreSupport/WebFrameLoaderClient.mm:
1955         (WebFrameLoaderClient::createPlugin):
1956         (WebFrameLoaderClient::createJavaAppletWidget):
1957
1958 2014-10-17  Tim Horton  <timothy_horton@apple.com>
1959
1960         Build fix for 32-bit Yosemite
1961
1962         * WebCoreSupport/WebContextMenuClient.mm:
1963         (WebContextMenuClient::contextMenuForEvent):
1964         Avoid using NSItemProvider in 32-bit, because it doesn't exist.
1965
1966 2014-10-17  Chris Dumez  <cdumez@apple.com>
1967
1968         Use is<>() / downcast<>() for RenderBox
1969         https://bugs.webkit.org/show_bug.cgi?id=137804
1970
1971         Reviewed by Andreas Kling.
1972
1973         Use is<>() / downcast<>() for RenderBox and clean up the surrounding
1974         code.
1975
1976         * WebCoreSupport/WebContextMenuClient.mm:
1977         (WebContextMenuClient::clientFloatRectForNode):
1978         * WebView/WebFrame.mm:
1979         (-[WebFrame renderedSizeOfNode:constrainedToWidth:]):
1980
1981 2014-10-17  Tim Horton  <timothy_horton@apple.com>
1982
1983         Fix the build with the public SDK.
1984
1985         * WebCoreSupport/WebSelectionServiceController.mm:
1986         We should transition all this SPI to real SPI headers as soon as possible.
1987
1988 2014-10-16  Tim Horton  <timothy_horton@apple.com>
1989
1990         Implement selection services menu for Legacy WebKit
1991         https://bugs.webkit.org/show_bug.cgi?id=137582
1992         <rdar://problem/18604241>
1993
1994         Reviewed by Brady Eidson.
1995
1996         * Misc/WebSharingServicePickerController.h:
1997         Move SPI into the header (in the near future it will be moved to a modern-style SPI header).
1998         Add WebSharingServicePickerClient, which other classes can implement
1999         instead of tying WebSharingServicePickerController strongly to WebContextMenuClient.
2000         Make initWithData:... -> initWithItems:... instead, taking an array of NSItemProviders.
2001
2002         * Misc/WebSharingServicePickerController.mm:
2003         Pass in NSSharingServicePickerStyle, so that clients can specify the style.
2004
2005         (-[WebSharingServicePickerController clear]):
2006         (-[WebSharingServicePickerController didShareImageData:confirmDataIsValidTIFFData:]):
2007         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
2008         (-[WebSharingServicePickerController sharingService:sourceFrameOnScreenForShareItem:]):
2009         (-[WebSharingServicePickerController sharingService:transitionImageForShareItem:contentRect:]):
2010         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
2011         Make use of WebSharingServicePickerClient.
2012
2013         (-[WebSharingServicePickerController sharingService:didShareItems:]):
2014         If we're returned a NSAttributedString, paste it on top of the current selection,
2015         similar to what the WebKit2 implementation currently does.
2016         
2017         * WebCoreSupport/WebChromeClient.h:
2018         * WebCoreSupport/WebChromeClient.mm:
2019         (WebChromeClient::handleTelephoneNumberClick):
2020         (WebChromeClient::handleSelectionServiceClick):
2021         (WebChromeClient::hasRelevantSelectionServices):
2022         Override the services-related ChromeClient functions, forward them to WebSelectionServiceController.
2023
2024         * WebCoreSupport/WebContextMenuClient.h:
2025         * WebCoreSupport/WebContextMenuClient.mm:
2026         (WebContextMenuClient::sharingServicePickerWillBeDestroyed):
2027         (WebContextMenuClient::pageForSharingServicePicker):
2028         (WebContextMenuClient::windowForSharingServicePicker):
2029         (WebContextMenuClient::screenRectForCurrentSharingServicePickerItem):
2030         (WebContextMenuClient::imageForCurrentSharingServicePickerItem):
2031         (WebContextMenuClient::contextMenuForEvent):
2032         (WebContextMenuClient::screenRectForHitTestNode): Deleted.
2033         (WebContextMenuClient::renderedImageForControlledImage): Deleted.
2034         (WebContextMenuClient::clearSharingServicePickerController): Deleted.
2035         Have WebContextMenuClient implement WebSharingServicePickerClient to avoid
2036         having WebSharingServicePickerController tightly bound to it.
2037         Make an NSItemProvider array when instantiating WebSharingServicePickerController
2038         instead of handing it data directly.
2039
2040         * WebCoreSupport/WebSelectionServiceController.h: Copied from Source/WebKit/mac/WebCoreSupport/WebContextMenuClient.h.
2041         * WebCoreSupport/WebSelectionServiceController.mm: Added.
2042         (WebSelectionServiceController::WebSelectionServiceController):
2043         Add WebSelectionServiceController, which will act as the WebSharingServicePickerClient
2044         for selection services.
2045
2046         (WebSelectionServiceController::handleSelectionServiceClick):
2047         Create a WebSharingSericePickerController with the selection's attributed string, and show its menu.
2048
2049         (hasCompatibleServicesForItems):
2050         (WebSelectionServiceController::hasRelevantSelectionServices):
2051         Determine whether or not services are available.
2052
2053         (WebSelectionServiceController::sharingServicePickerWillBeDestroyed):
2054         (WebSelectionServiceController::pageForSharingServicePicker):
2055         (WebSelectionServiceController::windowForSharingServicePicker):
2056         Implement the rest of the WebSharingServicePickerClient overrides.
2057
2058         (WebSelectionServiceController::screenRectForCurrentSharingServicePickerItem):
2059         (WebSelectionServiceController::imageForCurrentSharingServicePickerItem):
2060         These are only useful for image sharing services, so we don't need to
2061         implement them (WebContextMenuClient does, on the other hand).
2062
2063         * WebView/WebView.mm:
2064         (-[WebView _selectionServiceController]):
2065         * WebView/WebViewData.h:
2066         * WebView/WebViewData.mm:
2067         * WebView/WebViewInternal.h:
2068         Keep a WebSelectionServiceController.
2069
2070 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
2071
2072         Improve debug description of WAKViews
2073         https://bugs.webkit.org/show_bug.cgi?id=137716
2074
2075         Reviewed by Simon Fraser.
2076
2077         * WebView/WebView.mm:
2078         (-[WebView _touchEventRegions]): Adding a comment.
2079
2080 2014-10-14  Myles C. Maxfield  <mmaxfield@apple.com>
2081
2082         Addressing post-review comment.
2083         https://bugs.webkit.org/show_bug.cgi?id=137550
2084
2085         Unreviewed.
2086
2087         * WebView/WebHTMLView.mm:
2088         (fontNameForDescription):
2089         (-[WebHTMLView _addToStyle:fontA:fontB:]):
2090
2091 2014-10-14  Chris Dumez  <cdumez@apple.com>
2092
2093         Use is<>() / downcast<>() for RenderImage
2094         https://bugs.webkit.org/show_bug.cgi?id=137683
2095
2096         Reviewed by Mihnea Ovidenie.
2097
2098         Use is<>() / downcast<>() for RenderImage.
2099
2100         * Misc/WebNSPasteboardExtras.mm:
2101         (imageFromElement):
2102         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
2103
2104 2014-10-10  Daniel Bates  <dabates@apple.com>
2105
2106         Remove unused classes WebRender{Node, Layer}
2107         https://bugs.webkit.org/show_bug.cgi?id=137628
2108
2109         Reviewed by Simon Fraser.
2110
2111         We no longer make use of the WebKit1-specific classes WebRenderNode and WebRenderLayer.
2112         For completeness, there is a WebKit2 analogue of WebRenderLayer by the same name.
2113
2114         * Configurations/WebKitLegacy.xcconfig: Remove file WebRenderNode.mm from the list
2115         of excluded source files when building for iOS.
2116         * WebKit.exp: Remove symbol for WebRenderLayer.
2117         * WebKit.mac.exp: Remove symbol for WebRenderNode.
2118         * WebView/WebRenderLayer.h: Removed.
2119         * WebView/WebRenderLayer.mm: Removed.
2120         * WebView/WebRenderNode.h: Removed.
2121         * WebView/WebRenderNode.mm: Removed.
2122
2123 2014-10-10  Chris Dumez  <cdumez@apple.com>
2124
2125         Use is<>() / downcast<>() for RenderBoxModelObject
2126         https://bugs.webkit.org/show_bug.cgi?id=137587
2127
2128         Reviewed by Mihnea Ovidenie.
2129
2130         Use is<>() / downcast<>() for RenderBoxModelObject and clean up the
2131         surrounding code.
2132
2133         * Plugins/WebBaseNetscapePluginView.mm:
2134         (-[WebBaseNetscapePluginView invalidatePluginContentRect:]):
2135         * WebView/WebRenderLayer.mm:
2136         (-[WebRenderLayer initWithWebFrame:]):
2137
2138 2014-10-09  Dean Jackson  <dino@apple.com>
2139
2140         Remove ENABLE_CSS3_CONDITIONAL_RULES
2141         https://bugs.webkit.org/show_bug.cgi?id=137571
2142
2143         Reviewed by Simon Fraser.
2144
2145         * Configurations/FeatureDefines.xcconfig:
2146
2147 2014-10-09  Tim Horton  <timothy_horton@apple.com>
2148
2149         Add a WebKit1 preference for selection services
2150         https://bugs.webkit.org/show_bug.cgi?id=137498
2151         <rdar://problem/18572699>
2152
2153         Reviewed by Simon Fraser.
2154
2155         * WebView/WebPreferenceKeysPrivate.h:
2156         * WebView/WebPreferences.mm:
2157         (+[WebPreferences initialize]):
2158         (-[WebPreferences serviceControlsEnabled]):
2159         (-[WebPreferences setServiceControlsEnabled:]):
2160         * WebView/WebPreferencesPrivate.h:
2161         * WebView/WebView.mm:
2162         (-[WebView _preferencesChanged:]):
2163         Add and plumb the preference.
2164
2165 2014-10-09  Myles C. Maxfield  <mmaxfield@apple.com>
2166
2167         Remove second-to-last client of WebFontCache
2168         https://bugs.webkit.org/show_bug.cgi?id=137550
2169
2170         Reviewed by Darin Adler.
2171
2172         Use FontCache::getCachedFontData() instead of WebFontCache.
2173
2174         * WebView/WebHTMLView.mm:
2175         (-[WebHTMLView _addToStyle:fontA:fontB:]):
2176
2177 2014-10-09  Chris Dumez  <cdumez@apple.com>
2178
2179         Use is<>() / downcast<>() for Widget subclasses
2180         https://bugs.webkit.org/show_bug.cgi?id=137549
2181
2182         Reviewed by Darin Adler.
2183
2184         Use is<>() / downcast<>() for Widget subclasses and clean up the
2185         surrounding code.
2186
2187         * WebView/WebRenderNode.mm:
2188         (copyRenderNode):
2189         * WebView/WebView.mm:
2190         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
2191
2192 2014-10-07  Christophe Dumez  <cdumez@apple.com>
2193
2194         Use is<>() / downcast<>() for RenderText / RenderTextFragment
2195         https://bugs.webkit.org/show_bug.cgi?id=137476
2196
2197         Reviewed by Darin Adler.
2198
2199         * WebView/WebRenderNode.mm:
2200         (copyRenderNode):
2201
2202 2014-10-06  Dan Bernstein  <mitz@apple.com>
2203
2204         Build fix.
2205
2206         * Misc/WebCache.mm:
2207         (+[WebCache imageForURL:]):
2208
2209 2014-10-06  Chris Dumez  <cdumez@apple.com>
2210
2211         Unreviewed build fix after r174333.
2212
2213         Forgot explicit WebCore:: namespace.
2214
2215         * Misc/WebCache.mm:
2216         (+[WebCache imageForURL:]):
2217
2218 2014-10-05  Christophe Dumez  <cdumez@apple.com>
2219
2220         Use is<>() / downcast<>() for CachedResource subclasses
2221         https://bugs.webkit.org/show_bug.cgi?id=137431
2222
2223         Reviewed by Benjamin Poulain.
2224
2225         Use is<>() / downcast<>() for CachedResource subclasses.
2226
2227         * Misc/WebCache.mm:
2228         (+[WebCache imageForURL:]):
2229
2230 2014-10-02  Daniel Bates  <dabates@apple.com>
2231
2232         Use version number 101000 instead of 10100 for OS X Yosemite
2233         https://bugs.webkit.org/show_bug.cgi?id=137372
2234
2235         Reviewed by Mark Rowe.
2236
2237         The version number for OS X Yosemite is 101000.
2238
2239         * WebView/WebView.mm:
2240         (-[WebView _preferencesChanged:]):
2241
2242 2014-10-02  Tim Horton  <timothy_horton@apple.com>
2243
2244         Move PageOverlay[Controller] to WebCore
2245         https://bugs.webkit.org/show_bug.cgi?id=137164
2246         <rdar://problem/18508258>
2247
2248         Reviewed by Anders Carlsson.
2249
2250         * WebCoreSupport/WebChromeClient.h:
2251         * WebCoreSupport/WebChromeClient.mm:
2252         (WebChromeClient::attachViewOverlayGraphicsLayer):
2253         Add an empty ChromeClient override.
2254
2255 2014-10-01  Christophe Dumez  <cdumez@apple.com>
2256
2257         Have is<>(T*) function do a null check on the pointer argument
2258         https://bugs.webkit.org/show_bug.cgi?id=137333
2259
2260         Reviewed by Gavin Barraclough.
2261
2262         Have is<>(T*) function do a null check on the argument instead of a
2263         simple assertion. This makes sense for 2 reasons:
2264         1. It is more consistent with downcast<>(T*), which will succeed even
2265            if the argument is a nullptr.
2266         2. It simplifies the code a bit as it gets rid of a lot of explicit
2267            null checks.
2268
2269         * WebCoreSupport/WebChromeClient.mm:
2270         (WebChromeClient::focusedElementChanged):
2271         * WebCoreSupport/WebEditorClient.mm:
2272         (WebEditorClient::textFieldDidBeginEditing):
2273         (WebEditorClient::textFieldDidEndEditing):
2274         (WebEditorClient::textDidChangeInTextField):
2275         (WebEditorClient::doTextFieldCommandFromEvent):
2276         (WebEditorClient::textWillBeDeletedInTextField):
2277         (WebEditorClient::textDidChangeInTextArea):
2278         * WebView/WebHTMLRepresentation.mm:
2279         (inputElementFromDOMElement):
2280         (searchForLabelsBeforeElement):
2281         * WebView/WebRenderLayer.mm:
2282         (+[WebRenderLayer nameForLayer:]):
2283
2284 2014-10-01  Mark Rowe  <mrowe@apple.com>
2285
2286         <https://webkit.org/b/137308> WebKit should build on OS X Yosemite for external users
2287
2288         Reviewed by Dan Bernstein.
2289
2290         * Configurations/DebugRelease.xcconfig: Use libWebKitSystemInterfaceYosemite.a on Yosemite.
2291
2292 2014-09-30  Chris Dumez  <cdumez@apple.com>
2293
2294         Use is<>() / downcast<>() for Element
2295         https://bugs.webkit.org/show_bug.cgi?id=137241
2296
2297         Reviewed by Andreas Kling.
2298
2299         Use is<>() / downcast<>() for Element instead of isElementNode() /
2300         toElement().
2301
2302         * WebView/WebRenderLayer.mm:
2303         (+[WebRenderLayer nameForLayer:]):
2304
2305 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2306
2307         Move ColorInputType class to std::unique_ptr
2308         https://bugs.webkit.org/show_bug.cgi?id=137173
2309
2310         Reviewed by Darin Adler.
2311
2312         Replace uses of PassOwnPtr in code under ColorInputType class with std::unique_ptr.
2313         Child classes follow this change as well.
2314
2315         * WebCoreSupport/WebChromeClient.h:
2316         * WebCoreSupport/WebChromeClient.mm:
2317         (WebChromeClient::createColorChooser):
2318
2319 2014-09-24  Christophe Dumez  <cdumez@apple.com>
2320
2321         Add initial is<>() / downcast<>() support for any type of Nodes
2322         https://bugs.webkit.org/show_bug.cgi?id=137056
2323
2324         Reviewed by Benjamin Poulain.
2325
2326         Use is<HTMLFormControlElement>() / downcast<HTMLFormControlElement>()
2327         instead of isFormControlElement() / toHTMLFormControlElement().
2328
2329         * WebView/WebHTMLRepresentation.mm:
2330         (searchForLabelsBeforeElement):
2331
2332 2014-09-24  Christophe Dumez  <cdumez@apple.com>
2333
2334         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
2335         https://bugs.webkit.org/show_bug.cgi?id=137068
2336
2337         Reviewed by Ryosuke Niwa.
2338
2339         Start using is<HTML*Element>() instead of isHTML*Element().
2340         Remaining usages will be updated in a follow-up patch to
2341         reduce the size of the change.
2342
2343         * WebCoreSupport/WebChromeClient.mm:
2344         (WebChromeClient::focusedElementChanged):
2345         * WebCoreSupport/WebEditorClient.mm:
2346         (WebEditorClient::textFieldDidBeginEditing):
2347         (WebEditorClient::textFieldDidEndEditing):
2348         (WebEditorClient::textDidChangeInTextField):
2349         (WebEditorClient::doTextFieldCommandFromEvent):
2350         (WebEditorClient::textWillBeDeletedInTextField):
2351         (WebEditorClient::textDidChangeInTextArea):
2352         * WebView/WebHTMLRepresentation.mm:
2353         (inputElementFromDOMElement):
2354
2355 2014-09-21  Timothy Hatcher  <timothy@apple.com>
2356
2357         Make the Web Inspector use a separate web process.
2358
2359         https://bugs.webkit.org/show_bug.cgi?id=135120
2360
2361         Reviewed by Anders Carlsson.
2362
2363         * WebCoreSupport/WebInspectorClient.h:
2364         * WebCoreSupport/WebInspectorClient.mm:
2365         (WebInspectorClient::WebInspectorClient):
2366         (WebInspectorClient::openInspectorFrontend):
2367         (WebInspectorClient::releaseFrontend):
2368         Own WebInspectorFrontendClient instead of moving it.
2369
2370 2014-09-23  Chris Dumez  <cdumez@apple.com>
2371
2372         Use downcast<HTML*Element>() instead of toHTML*Element()
2373         https://bugs.webkit.org/show_bug.cgi?id=137007
2374
2375         Reviewed by Benjamin Poulain.
2376
2377         Use downcast<HTML*Element>() instead of toHTML*Element().
2378
2379         * DOM/WebDOMOperations.mm:
2380         (-[DOMHTMLInputElement _setAutofilled:]):
2381         * WebCoreSupport/WebChromeClient.mm:
2382         (WebChromeClient::focusedElementChanged):
2383         * WebCoreSupport/WebEditorClient.mm:
2384         (WebEditorClient::textFieldDidBeginEditing):
2385         (WebEditorClient::textFieldDidEndEditing):
2386         (WebEditorClient::textDidChangeInTextField):
2387         (WebEditorClient::doTextFieldCommandFromEvent):
2388         (WebEditorClient::textWillBeDeletedInTextField):
2389         (WebEditorClient::textDidChangeInTextArea):
2390         * WebView/WebHTMLRepresentation.mm:
2391         (inputElementFromDOMElement):
2392
2393 2014-09-21  Chris Dumez  <cdumez@apple.com>
2394
2395         Generate Element casting helper functions
2396         https://bugs.webkit.org/show_bug.cgi?id=136839
2397
2398         Reviewed by Darin Adler.
2399
2400         Use JSXXX::toWrapped() instead of toXXX() function.
2401
2402         * DOM/WebDOMOperations.mm:
2403         * WebView/WebView.mm:
2404         (-[WebView _notificationIDForTesting:]):
2405
2406 2014-09-21  Joseph Pecoraro  <pecoraro@apple.com>
2407
2408         Leak: WebNotificationPrivate ObjC leaks seen on leaks bot
2409         https://bugs.webkit.org/show_bug.cgi?id=136972
2410
2411         Reviewed by Darin Adler.
2412
2413         * WebView/WebNotification.h:
2414         * WebView/WebNotification.mm:
2415         (-[WebNotification initWithCoreNotification:notificationID:]):
2416         Switch to RetainPtr and adopt into _private to ensure when we are
2417         deallocated that _private will get deallocated.
2418
2419 2014-09-19  Dean Jackson  <dino@apple.com>
2420
2421         Multithreaded WebGL is a bad idea - remove it
2422         https://bugs.webkit.org/show_bug.cgi?id=136964
2423         <rdar://problem/18399858>
2424
2425         Reviewed by Brent Fulgham.
2426
2427         Remove the setting to allow multithreaded WebGL.
2428
2429         * WebView/WebPreferenceKeysPrivate.h:
2430         * WebView/WebPreferences.mm:
2431         (+[WebPreferences initialize]):
2432         (-[WebPreferences multithreadedWebGLEnabled]): Deleted.
2433         (-[WebPreferences setMultithreadedWebGLEnabled:]): Deleted.
2434         * WebView/WebPreferencesPrivate.h:
2435         * WebView/WebView.mm:
2436         (-[WebView _preferencesChanged:]):
2437
2438 2014-09-19  Daniel Bates  <dabates@apple.com>
2439
2440         Always assume internal SDK when building configuration Production
2441         https://bugs.webkit.org/show_bug.cgi?id=136925
2442         <rdar://problem/18362399>
2443
2444         Reviewed by Dan Bernstein.
2445
2446         As a side effect of this change we will always enable ENABLE_TOUCH_EVENTS, ENABLE_IOS_{GESTURE, TOUCH}_EVENTS,
2447         and ENABLE_XSLT when either building configuration Production or building with the Internal SDK.
2448
2449         * Configurations/Base.xcconfig:
2450
2451 2014-09-17  Daniel Bates  <dabates@apple.com>
2452
2453         Unreviewed, rolling out r173695.
2454
2455         Broke building third-party Legacy WebKit apps; will
2456         investigate offline
2457
2458         Reverted changeset:
2459
2460         "[iOS] Make WebCore build with public iOS SDK"
2461         https://bugs.webkit.org/show_bug.cgi?id=136487
2462         http://trac.webkit.org/changeset/173695
2463
2464 2014-09-17  Daniel Bates  <dabates@apple.com>
2465
2466         [iOS] Make WebCore build with public iOS SDK
2467         https://bugs.webkit.org/show_bug.cgi?id=136487
2468
2469         Reviewed by David Kilzer.
2470
2471         Update WebKit1 source files to include the wrapper SPI headers instead of the corresponding
2472         actual SPI header(s).
2473
2474         * DOM/WebDOMOperationsPrivate.h:
2475         * MigrateHeaders.make: Modified to only modify the include path of a "<WebCore/"-prefixed header
2476         file if its filename doesn't end in "SPI.h" as an alternative to having MigrateHeaders.make copy
2477         such files into the WebKit framework as private headers.
2478         * WebCoreSupport/WebFrameLoaderClient.mm:
2479         * WebInspector/WebNodeHighlight.mm:
2480         * WebView/WebIndicateLayer.mm:
2481         * WebView/WebRenderLayer.h:
2482         * WebView/WebView.mm:
2483
2484 2014-09-16  Daniel Bates  <dabates@apple.com>
2485
2486         [iOS] Add iOS SDK name and version suffix to WebKitSystemInterface debug/release product name
2487         https://bugs.webkit.org/show_bug.cgi?id=136862
2488
2489         Reviewed by David Kilzer.
2490
2491         * Configurations/DebugRelease.xcconfig:
2492
2493 2014-09-16  Enrica Casucci  <enrica@apple.com>
2494
2495         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2496         https://bugs.webkit.org/show_bug.cgi?id=136474
2497
2498         Reviewed by Benjamin Poulain.
2499
2500         This is the updated version of the patch that was landed in r173340.
2501         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2502         and removes the assumption that EAffinity values match NSSelectionAffinity
2503         values. It also removes the includes in TextAffinity.h, creating the need to
2504         include explicitly the files when necessary.
2505
2506         * WebCoreSupport/WebEditorClient.h:
2507         (kit):
2508         (core):
2509
2510 2014-09-14  Daniel Bates  <dabates@apple.com>
2511
2512         [iOS] Attempt to fix the iOS build after <http://trac.webkit.org/changeset/173606>
2513         (https://bugs.webkit.org/show_bug.cgi?id=136789)
2514
2515         Substitute Node::countChildNodes() for Node::childNodeCount() in more places.
2516
2517         * WebView/WebFrame.mm:
2518         (-[WebFrame focusedNodeHasContent]):
2519
2520 2014-09-14  Chris Dumez  <cdumez@apple.com>
2521
2522         Rename Node::childNodeCount() to countChildNodes() and avoid inefficient uses
2523         https://bugs.webkit.org/show_bug.cgi?id=136789
2524
2525         Reviewed by Darin Adler.
2526
2527         Rename childNodeCount() to countChildNodes().
2528
2529         * WebView/WebHTMLView.mm:
2530         (-[WebHTMLView attributedString]):
2531
2532 2014-09-10  Jon Honeycutt  <jhoneycutt@apple.com>
2533
2534         Re-add the request autocomplete feature
2535
2536         <https://bugs.webkit.org/show_bug.cgi?id=136730>
2537
2538         This feature was rolled out in r148731 because it was only used by
2539         Chromium. As we consider supporting this feature, roll it back in, but
2540         leave it disabled.
2541
2542         This rolls out r148731 (which removed the feature) with small changes
2543         needed to make the code build in ToT, to match modern style, to make
2544         the tests run, and to remove unused code.
2545
2546         Reviewed by Andy Estes.
2547
2548         * Configurations/FeatureDefines.xcconfig:
2549         * WebCoreSupport/WebFrameLoaderClient.h:
2550
2551 2014-09-12  Commit Queue  <commit-queue@webkit.org>
2552
2553         Unreviewed, rolling out r173575.
2554         https://bugs.webkit.org/show_bug.cgi?id=136790
2555
2556         Failing tests (Requested by enrica on #webkit).
2557
2558         Reverted changeset:
2559
2560         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
2561         https://bugs.webkit.org/show_bug.cgi?id=136474
2562         http://trac.webkit.org/changeset/173575
2563
2564 2014-09-12  Enrica Casucci  <enrica@apple.com>
2565
2566         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2567         https://bugs.webkit.org/show_bug.cgi?id=136474
2568
2569         Reviewed by Benjamin Poulain.
2570
2571         This is the updated version of the patch that was landed in r173340.
2572         I changed the use of IntPoint to FloatPoint since it was causing tests
2573         to fail.
2574         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2575         and removes the assumption that EAffinity values match NSSelectionAffinity
2576         values. It also removes the includes in TextAffinity.h, creating the need to
2577         include explicitly the files when necessary. It also removes the unnecessary
2578         use of platform specific types, replacing them with WebCore types.
2579
2580         * WebCoreSupport/WebEditorClient.h:
2581         (kit):
2582         (core):
2583         * WebView/WebFrameView.mm:
2584         (-[WebFrameView _scrollToBeginningOfDocument]):
2585         (-[WebFrameView _scrollToEndOfDocument]):
2586
2587 2014-09-11  Bear Travis  <betravis@adobe.com>
2588
2589         [CSS Font Loading] Enable CSS Font Loading on Mac
2590         https://bugs.webkit.org/show_bug.cgi?id=135473
2591
2592         Reviewed by Antti Koivisto.
2593
2594         Enable CSS Font Loading in FeatureDefines.
2595
2596         * Configurations/FeatureDefines.xcconfig:
2597
2598 2014-09-11  Beth Dakin  <bdakin@apple.com>
2599
2600         Support rubber-banding in sub-frames
2601         https://bugs.webkit.org/show_bug.cgi?id=136726
2602         -and corresponding-
2603         rdar://problem/10011924
2604
2605         Reviewed by Tim Horton.
2606
2607         rubberBandingForOverflowScrollEnabled is re-named to
2608         rubberBandingForSubScrollableRegionsEnabled
2609         * WebView/WebView.mm:
2610         (-[WebView _preferencesChanged:]):
2611
2612 2014-09-09  Benjamin Poulain  <bpoulain@apple.com>
2613
2614         Disable the "unreachable-code" warning
2615         https://bugs.webkit.org/show_bug.cgi?id=136677
2616
2617         Reviewed by Darin Adler.
2618
2619         * Configurations/Base.xcconfig:
2620
2621 2014-09-08  Maciej Stachowiak  <mjs@apple.com>
2622
2623         Fix 32-bit Mac build for new warnings
2624         https://bugs.webkit.org/show_bug.cgi?id=136624
2625
2626         Reviewed by Darin Adler.
2627         
2628         (Jessie already fixed this but my version with typedefs seems a tiny bit cleaner.)
2629
2630         * Carbon/HIViewAdapter.m:
2631         (+[HIViewAdapter bindHIViewToNSView:nsView:]): Need to use explicit casting now.
2632
2633 2014-09-08  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2634
2635         Remove FILTERS flag
2636         https://bugs.webkit.org/show_bug.cgi?id=136571
2637
2638         Reviewed by Darin Adler.
2639
2640         * Configurations/FeatureDefines.xcconfig:
2641
2642 2014-09-08  Jessie Berlin  <jberlin@apple.com>
2643
2644         32-bit build fix after r173364.
2645
2646         * Carbon/HIViewAdapter.m:
2647         (+[HIViewAdapter bindHIViewToNSView:nsView:]):
2648
2649 2014-09-08  Dan Bernstein  <mitz@apple.com>
2650
2651         Build fix.
2652
2653         Added back SPI that is still in use.
2654
2655         * Misc/WebNSURLExtras.h:
2656         * Misc/WebNSURLExtras.mm:
2657         (-[NSURL _webkit_URLByRemovingFragment]):
2658
2659 2014-09-08  Dan Bernstein  <mitz@apple.com>
2660
2661         iOS Simulator build fix.
2662
2663         * Misc/WebKitSystemBits.m:
2664         (WebMemorySize):
2665
2666 2014-09-07  Darin Adler  <darin@apple.com>
2667
2668         Fix build failure seen on Mountain Lion buildbot.
2669
2670         * Misc/WebNSDataExtras.h: Make WEB_GUESS_MIME_TYPE_PEEK_LENGTH an unsigned instead
2671         of an int, to avoid warning about mixing signs.
2672
2673 2014-09-06  Darin Adler  <darin@apple.com>
2674
2675         Make updates suggested by new version of Xcode
2676         https://bugs.webkit.org/show_bug.cgi?id=136603
2677
2678         Reviewed by Mark Rowe.
2679
2680         * Configurations/Base.xcconfig: Added CLANG_WARN_UNREACHABLE_CODE, COMBINE_HIDPI_IMAGES,
2681         and ENABLE_STRICT_OBJC_MSGSEND as suggested by Xcode upgrade check.
2682
2683         * History/WebURLsWithTitles.m:
2684         (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use NSUInteger instead of
2685         unsigned for correctness, and to quiet the 32-to-64-bit compiler warning (which is
2686         not turned on because it gives us too many false positives).
2687         * Misc/WebElementDictionary.mm:
2688         (-[WebElementDictionary objectForKey:]): Ditto.
2689         * Misc/WebNSDataExtras.m:
2690         (-[NSData _webkit_guessedMIMETypeForXML]): Ditto.
2691         (-[NSData _webkit_guessedMIMEType]): Ditto.
2692         (-[NSData _webkit_parseRFC822HeaderFields]): Ditto.
2693         (-[NSData _web_locationAfterFirstBlankLine]): Ditto.
2694
2695         * Misc/WebNSURLExtras.h: Removed unused _web_URLWithLowercasedScheme, _web_hostData,
2696         _webkit_URLByRemovingFragment, _webkit_URLByRemovingResourceSpecifier, _webkit_isFTPDirectoryURL,
2697         _webkit_shouldLoadAsEmptyDocument, _web_hostNameNeedsDecodingWithRange:,
2698         _web_hostNameNeedsEncodingWithRange:, _web_decodeHostNameWithRange:, _web_encodeHostNameWithRange:,
2699         and _webkit_URLFragment methods.
2700
2701         * Misc/WebNSURLExtras.mm:
2702         (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]): Deleted.
2703         (-[NSURL _webkit_URLByRemovingFragment]): Deleted.
2704         (-[NSURL _webkit_URLByRemovingResourceSpecifier]): Deleted.
2705         (-[NSURL _webkit_isFTPDirectoryURL]): Deleted.
2706         (-[NSURL _webkit_shouldLoadAsEmptyDocument]): Deleted.
2707         (-[NSURL _web_URLWithLowercasedScheme]): Deleted.
2708         (-[NSString _webkit_isFTPDirectoryURL]): Deleted.
2709         (-[NSString _web_hostNameNeedsDecodingWithRange:]): Deleted.
2710         (-[NSString _web_hostNameNeedsEncodingWithRange:]): Deleted.
2711         (-[NSString _web_decodeHostNameWithRange:]): Deleted.
2712         (-[NSString _web_encodeHostNameWithRange:]): Deleted.
2713         (-[NSString _webkit_URLFragment]): Deleted.
2714
2715         * Plugins/WebPluginDatabase.mm:
2716         (-[WebPluginDatabase removePluginInstanceViewsFor:]): Use a modern for loop
2717         to iterate an array instead of a loop using the type "unsigned int".
2718
2719         * WebCoreSupport/WebOpenPanelResultListener.mm:
2720         (-[WebOpenPanelResultListener chooseFilenames:]): Use NSUInteger instead of int.
2721
2722         * WebView/WebDelegateImplementationCaching.mm:
2723         (CallDelegate): Use wtfCallIMP in one overload that was instead just calling the
2724         directly without a proper type for the function pointer. This might have been causing
2725         an actual problem on 64-bit systems, and it was different from all the other CallDelegate
2726         functions that were already doing this correctly.
2727
2728         * WebView/WebTextCompletionController.mm:
2729         (-[WebTextCompletionController _placePopupWindow:]): Use NSUInteger instead of int.
2730
2731 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
2732
2733         Web Inspector: convert DockSide to an enum class
2734         https://bugs.webkit.org/show_bug.cgi?id=136601
2735
2736         Reviewed by Timothy Hatcher.
2737
2738         * WebCoreSupport/WebInspectorClient.mm:
2739         (WebInspectorFrontendClient::frontendLoaded):
2740         (-[WebInspectorWindowController attachWindow:]):
2741         (-[WebInspectorWindowController attach]):
2742         (-[WebInspectorWindowController detach]):
2743         * WebInspector/WebInspectorFrontend.mm:
2744         (-[WebInspectorFrontend attach]):
2745
2746 2014-09-05  Commit Queue  <commit-queue@webkit.org>
2747
2748         Unreviewed, rolling out r173340 and r173342.
2749         https://bugs.webkit.org/show_bug.cgi?id=136596
2750
2751         Broke many tests (Requested by ap on #webkit).
2752
2753         Reverted changesets:
2754
2755         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
2756         https://bugs.webkit.org/show_bug.cgi?id=136474
2757         http://trac.webkit.org/changeset/173340
2758
2759         "Build fix after r173340."
2760         http://trac.webkit.org/changeset/173342
2761
2762 2014-09-05  Enrica Casucci  <enrica@apple.com>
2763
2764         Build fix after r173340.
2765
2766         * WebCoreSupport/WebEditorClient.h:
2767         (kit):
2768         (core):
2769
2770 2014-09-05  Enrica Casucci  <enrica@apple.com>
2771
2772         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2773         https://bugs.webkit.org/show_bug.cgi?id=136474
2774
2775         Reviewed by Benjamin Poulain.
2776
2777         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2778         and removes the assumption that EAffinity values match NSSelectionAffinity
2779         values. It also removes the includes in TextAffinity.h, creating the need to
2780         include explicitly the files when necessary. It also removes the unnecessary
2781         use of platform specific types, replacing them with WebCore types.
2782
2783         * WebCoreSupport/WebEditorClient.h: Added kit and core for EAffinity.
2784         * WebView/WebFrameView.mm:
2785         (-[WebFrameView _scrollToBeginningOfDocument]):
2786         (-[WebFrameView _scrollToEndOfDocument]):
2787
2788 2014-09-05  Daniel Bates  <dabates@apple.com>
2789
2790         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
2791         (https://bugs.webkit.org/show_bug.cgi?id=136564)
2792
2793         Move #endif inside -viewDidMoveToWindow up one line such that the closing brace ('}') is after it.
2794
2795         * WebView/WebHTMLView.mm:
2796         (-[WebHTMLView viewDidMoveToWindow]):
2797
2798 2014-09-05  Daniel Bates  <dabates@apple.com>
2799
2800         [iOS] Another attempt to fix the iOS build after <http://trac.webkit.org/changeset/173309>
2801         (https://bugs.webkit.org/show_bug.cgi?id=136564)
2802
2803         Add !PLATFORM(IOS)-guard in -viewDidMoveToWindow around code that references WebHTMLViewPrivate.flagsChangedEventMonitor.
2804         The instance variable WebHTMLViewPrivate.flagsChangedEventMonitor is guarded by !PLATFORM(IOS).
2805
2806         * WebView/WebHTMLView.mm:
2807         (-[WebHTMLView viewDidMoveToWindow]):
2808
2809 2014-09-05  Daniel Bates  <dabates@apple.com>
2810
2811         [iOS] Fix the iOS build after <http://trac.webkit.org/changeset/173309>
2812         (https://bugs.webkit.org/show_bug.cgi?id=136564)
2813
2814         Include more code inside the !PLATFORM(IOS)-guarded section in -setDataSource:.
2815
2816         * WebView/WebHTMLView.mm:
2817         (-[WebHTMLView setDataSource:]):
2818
2819 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
2820
2821         Use tracking areas instead of (SPI) mouse moved notifications, and follow flags changes with an event monitor
2822         https://bugs.webkit.org/show_bug.cgi?id=136564
2823
2824         Reviewed by Dan Bernstein.
2825         
2826         WebKit1 depended on mouse moved event notifications to track mouse
2827         moves, and on being specially called by Safari to track flags
2828         changes. WebKit2 does both these things better - it uses a tracking area
2829         and event monitors. Copy those approaches.
2830
2831         * WebKit.order: Remove reference to obsolete call.
2832         * WebView/WebHTMLView.mm:
2833         (-[WebHTMLViewPrivate dealloc]): No need to deallocate tracking
2834         area, since we now just always have one.
2835         (-[WebHTMLViewPrivate clear]): ditto
2836         (-[WebHTMLView _postFakeMouseMovedEventForFlagsChangedEvent:]):
2837         New method that posts a fake mouse move event in response to
2838         a flags change event, for use by the event monitor.
2839         (+[WebHTMLView _postFlagsChangedEvent:]): Empty this old call,
2840         still kept around for benefit of older Safari.
2841         (-[WebHTMLView _updateMouseoverWithEvent:]): Handle Dashboard's
2842         special mouseover mode (previously handled in a weird way).
2843         (-[WebHTMLView close]): No more need to mess with mouse moved observer.
2844         (-[WebHTMLView viewWillMoveToWindow:]): ditto
2845         (-[WebHTMLView viewDidMoveToWindow]): ditto; but now hook up a flags
2846         changed monitor.
2847         (-[WebHTMLView windowDidBecomeKey:]): No need to handle non-key window
2848         tracking area or mouse moved observer.
2849         (-[WebHTMLView windowDidResignKey:]): ditto
2850         (-[WebHTMLView windowWillOrderOnScreen:]): No need to mess with mouse
2851         moved observer.
2852         (-[WebHTMLView windowWillOrderOffScreen:]): ditto
2853         (-[WebHTMLView mouseMoved:]): Converted from the old mouseMovedNotification:
2854         (-[WebHTMLView setDataSource:]): Change if around body to early return. Hook
2855         up tracking area - we have to do it here, because before this point, the
2856         WebHTMLView does not know its WebView, which is where dashboard settings
2857         live.
2858         (-[WebHTMLView _removeMouseMovedObserverUnconditionally]): Deleted.
2859         (-[WebHTMLView addMouseMovedObserver]): Deleted.
2860         (-[WebHTMLView removeMouseMovedObserver]): Deleted.
2861
2862 2014-09-04  Pratik Solanki  <psolanki@apple.com>
2863
2864         Bring back [WebPreferences setDiskImageCacheEnabled:] for backwards compatibility
2865         https://bugs.webkit.org/show_bug.cgi?id=136560
2866
2867         Reviewed by Joseph Pecoraro.
2868
2869         I removed the disk image caching code in r173265. However, we still have clients that call
2870         setDiskImageCacheEnabled. Add in a stub method until we can wean the clients off this call.
2871
2872         * WebView/WebPreferences.mm:
2873         (-[WebPreferences setDiskImageCacheEnabled:]):
2874         * WebView/WebPreferencesPrivate.h:
2875
2876 2014-09-03  Andy Estes  <aestes@apple.com>
2877
2878         [Cocoa] Some WebKitLegacy headers migrated from WebCore incorrectly contain WEBCORE_EXPORT
2879         https://bugs.webkit.org/show_bug.cgi?id=136521
2880
2881         Reviewed by Anders Carlsson.
2882
2883         Taught MigrateHeaders.make to remove WEBCORE_EXPORT from headers using this sed expression:
2884
2885             s/(^ *)WEBCORE_EXPORT /\1/g
2886
2887         This removes WEBCORE_EXPORT and a single following space character but preserves preceeding spaces.
2888
2889         * MigrateHeaders.make:
2890
2891 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
2892
2893         Remove WebCoreSystemInterface glue for otherwise unused WKSI calls
2894         https://bugs.webkit.org/show_bug.cgi?id=136527
2895
2896         Reviewed by Alexey Proskuryakov.
2897
2898         * WebCoreSupport/WebSystemInterface.mm:
2899         (InitWebCoreSystemInterface):
2900
2901 2014-09-04  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2902
2903         Remove CSS_FILTERS flag
2904         https://bugs.webkit.org/show_bug.cgi?id=136529
2905
2906         Reviewed by Dirk Schulze.
2907
2908         * Configurations/FeatureDefines.xcconfig:
2909
2910 2014-09-04  Pratik Solanki  <psolanki@apple.com>
2911
2912         Remove iOS specific disk image cache
2913         https://bugs.webkit.org/show_bug.cgi?id=136517
2914
2915         Reviewed by Antti Koivisto.
2916
2917         Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
2918         this now since we don't enable it in WebKit2 on iOS.
2919
2920         * Misc/WebCache.mm:
2921         (+[WebCache statistics]):
2922         * WebView/WebDataSource.mm:
2923         (-[WebDataSource _setAllowToBeMemoryMapped]):
2924         (-[WebDataSource setDataSourceDelegate:]):
2925         (-[WebDataSource dataSourceDelegate]):
2926         (-[WebDataSource dealloc]):
2927         (BufferMemoryMapped): Deleted.
2928         * WebView/WebPreferenceKeysPrivate.h:
2929         * WebView/WebPreferences.mm:
2930         (+[WebPreferences initialize]):
2931         (-[WebPreferences diskImageCacheEnabled]): Deleted.
2932         (-[WebPreferences setDiskImageCacheEnabled:]): Deleted.
2933         (-[WebPreferences diskImageCacheMinimumImageSize]): Deleted.
2934         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Deleted.
2935         (-[WebPreferences diskImageCacheMaximumCacheSize]): Deleted.
2936         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Deleted.
2937         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Deleted.
2938         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Deleted.
2939         * WebView/WebPreferencesPrivate.h:
2940         * WebView/WebView.mm:
2941         (-[WebView _commonInitializationWithFrameName:groupName:]):
2942         (+[WebView _handleMemoryWarning]):
2943         (-[WebView _preferencesChanged:]):
2944
2945 2014-09-04  Daniel Bates  <dabates@apple.com>
2946
2947         [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disabled
2948         https://bugs.webkit.org/show_bug.cgi?id=136494
2949
2950         Reviewed by Andy Estes.
2951
2952         * MigrateHeaders.make: Migrate header WebEventRegion.h only when ENABLE_IOS_TOUCH_EVENTS is defined.
2953         * WebView/WebView.mm: Substitute ENABLE(IOS_TOUCH_EVENTS) for ENABLE(TOUCH_EVENTS).
2954
2955 2014-09-02  Brian J. Burg  <burg@cs.washington.edu>
2956
2957         Web Inspector: fix prefixes for subclasses of JSC::ConsoleClient
2958         https://bugs.webkit.org/show_bug.cgi?id=136476
2959
2960         Reviewed by Timothy Hatcher.
2961
2962         * Misc/WebCoreStatistics.mm:
2963         (+[WebCoreStatistics shouldPrintExceptions]):
2964         (+[WebCoreStatistics setShouldPrintExceptions:]):
2965
2966 2014-09-03  Enrica Casucci  <enrica@apple.com>
2967
2968         Remove PLATFORM(IOS) from WebCore/editing (Part 1).
2969         https://bugs.webkit.org/show_bug.cgi?id=136474
2970
2971         Reviewed by Tim Horton.
2972
2973         * WebCoreSupport/WebEditorClient.mm:
2974         (undoNameForEditAction):
2975
2976 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
2977
2978         Clean up naming for and slightly refactor legacy video fullscreen support
2979         https://bugs.webkit.org/show_bug.cgi?id=136446
2980
2981         Reviewed by Jer Noble.
2982
2983         Key changes:
2984         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
2985         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
2986         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
2987         
2988         The old versions had unnecessary parameters, did not clearly distinguish their purpose
2989         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
2990         Also changed many other places to use HTMLVideoElement* instead of Node* or 
2991         HTMLMediaElement* when they were in fact only used for video elements and would only
2992         work for such.
2993
2994         * WebCoreSupport/WebChromeClient.h:
2995         * WebCoreSupport/WebChromeClient.mm:
2996         (WebChromeClient::supportsVideoFullscreen): Adjust for main refactoring.
2997         Also no more need to check for video elementness.
2998         (WebChromeClient::enterVideoFullscreenForVideoElement): Adjust for main refactoring.
2999         (WebChromeClient::exitVideoFullscreen): ditto
3000         * WebView/WebView.mm:
3001         (-[WebView _enterVideoFullscreenForVideoElement:]): Adjust for main
3002         refactoring.
3003         (-[WebView _exitVideoFullscreen]): ditto
3004         (-[WebView _close]): ditto
3005         * WebView/WebViewInternal.h:
3006
3007 2014-09-03  Dan Bernstein  <mitz@apple.com>
3008
3009         Get rid of HIGH_DPI_CANVAS leftovers
3010         https://bugs.webkit.org/show_bug.cgi?id=136491
3011
3012         Reviewed by Benjamin Poulain.
3013
3014         * Configurations/FeatureDefines.xcconfig: Removed definition of ENABLE_HIGH_DPI_CANVAS
3015         and removed it from FEATURE_DEFINES.
3016
3017 2014-08-31  Tim Horton  <timothy_horton@apple.com>
3018
3019         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
3020         https://bugs.webkit.org/show_bug.cgi?id=136416
3021
3022         Reviewed by Dan Bernstein.
3023
3024         * WebView/WebFrameView.mm:
3025         (-[WebFrameView drawRect:]):
3026         We only end up filling, so only set the fill color.
3027
3028 2014-08-26  Maciej Stachowiak  <mjs@apple.com>
3029
3030         Use RetainPtr::autorelease in some places where it seems appropriate
3031         https://bugs.webkit.org/show_bug.cgi?id=136280
3032
3033         Reviewed by Darin Adler.
3034
3035         * WebView/WebHTMLView.mm:
3036         (imageFromRect): Use RetainPtr in this function.
3037         * WebView/WebPDFRepresentation.mm:
3038         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Use RetainPtr
3039         in this method.
3040
3041 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
3042
3043         Unreviwed, remove empty directories.
3044
3045         * ForwardingHeaders/wtf: Removed.
3046
3047 2014-08-27  Zalan Bujtas  <zalan@apple.com>
3048
3049         Subpixel layout: Rename LayoutRect's device pixel snapping functions.
3050         https://bugs.webkit.org/show_bug.cgi?id=136319
3051
3052         Reviewed by Simon Fraser.
3053
3054         From pixelSnappedForPainting() to snapRectToDevicePixels() and 
3055         pixelSnappedIntRect*() to snappedIntRect*().
3056
3057         No change in functionality.
3058
3059         * WebView/WebView.mm:
3060         (-[WebView _dashboardRegions]):
3061         (-[WebView trackedRepaintRects]):
3062
3063 2014-08-25  Maciej Stachowiak  <mjs@apple.com>
3064
3065         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
3066         https://bugs.webkit.org/show_bug.cgi?id=136082
3067
3068         Reviewed by Alexey Proskuryakov.
3069
3070         * Plugins/Hosted/NetscapePluginHostManager.mm:
3071         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
3072         localization name using WebCore helper instead of SPI.
3073         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
3074         file.
3075         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
3076         localization name using WebCore helper instead of SPI.
3077         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
3078         helper no longer pulls its weight.
3079         * WebCoreSupport/WebSystemInterface.mm: 
3080         (InitWebCoreSystemInterface): Remove mention of
3081         WKCopyCFLocalizationPreferredName.
3082         * WebKit.order: ditto
3083
3084 2014-08-25  Daniel Bates  <dabates@apple.com>
3085
3086         Attempt to fix the iOS build after <http://trac.webkit.org/changeset/172889>
3087         (https://bugs.webkit.org/show_bug.cgi?id=109658)
3088
3089         Substitute GraphicsLayer::setContentsToPlatformLayer(..., GraphicsLayer::ContentsLayerForMedia)
3090         for GraphicsLayer::setContentsToMedia(...) because the latter was removed in <http://trac.webkit.org/changeset/172889>.
3091
3092         * WebView/WebView.mm:
3093         (-[WebView _setMediaLayer:forPluginView:]):
3094
3095 2014-08-22  Commit Queue  <commit-queue@webkit.org>
3096
3097         Unreviewed, rolling out r172866.
3098         https://bugs.webkit.org/show_bug.cgi?id=136177
3099
3100         Broke iOS build (Requested by othermaciej on #webkit).
3101
3102         Reverted changeset:
3103
3104         "Replace use of WKCopyCFLocalizationPreferredName with
3105         NSLocale public API"
3106         https://bugs.webkit.org/show_bug.cgi?id=136082
3107         http://trac.webkit.org/changeset/172866
3108
3109 2014-08-22  Simon Fraser  <simon.fraser@apple.com>
3110
3111         Implement paint flashing in the WK1 InspectorOverlay page
3112         https://bugs.webkit.org/show_bug.cgi?id=136138
3113
3114         Reviewed by Sam Weinig, Joseph Pecoraro.
3115
3116         Implement paint flashing for the WebKit1 InspectorOverlay via a second canvas in the overlay page.
3117         We avoid allocating backing store for this canvas until we have paint rects.
3118         
3119         Because this overlay page is weird and doesn't know how to paint itself, InspectorOverlay manages
3120         an array of rects, and pushes them to the page when they change, before forcing a paint.
3121         
3122         Because iOS doesn't use the InspectorOverlay page, stub out setShowPaintRects on its
3123         WebKit WebInspectorClient, but don't yet implement paint flashing there.
3124
3125         * WebCoreSupport/WebInspectorClient.h:
3126         * WebCoreSupport/WebInspectorClient.mm:
3127         (WebInspectorClient::WebInspectorClient):
3128
3129 2014-08-20  Maciej Stachowiak  <mjs@apple.com>
3130
3131         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
3132         https://bugs.webkit.org/show_bug.cgi?id=136082
3133
3134         Reviewed by Alexey Proskuryakov.
3135
3136         * Plugins/Hosted/NetscapePluginHostManager.mm:
3137         (WebKit::NetscapePluginHostManager::spawnPluginHost): Get current
3138         localization name using WebCore helper instead of SPI.
3139         * Plugins/WebBasePluginPackage.mm: Fixed the include style for this 
3140         file.
3141         (-[WebBasePluginPackage getPluginInfoFromPLists]): Get current
3142         localization name using WebCore helper instead of SPI.
3143         (+[WebBasePluginPackage preferredLocalizationName]): Deleted. This
3144         helper no longer pulls its weight.
3145         * WebCoreSupport/WebSystemInterface.mm: 
3146         (InitWebCoreSystemInterface): Remove mention of
3147         WKCopyCFLocalizationPreferredName.
3148         * WebKit.order: ditto
3149
3150 2014-08-22  Daniel Bates  <dabates@apple.com>
3151
3152         [iOS] Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, and temporarily disable ENABLE_TOUCH_EVENTS
3153         and ENABLE_XSLT when building with the iOS public SDK
3154         https://bugs.webkit.org/show_bug.cgi?id=135945
3155
3156         Reviewed by Andy Estes.
3157
3158         * Configurations/FeatureDefines.xcconfig: Disable ENABLE_IOS_{GESTURE, TOUCH}_EVENTS, ENABLE_TOUCH_EVENTS
3159         and ENABLE_XSLT when building with the public SDK.
3160         * MigrateHeaders.make: Conditionally migrate headers for touch and gesture events.
3161
3162 2014-08-22  Jon Lee  <jonlee@apple.com>
3163
3164         Fix iOS build due to r172832 and move RUBBER_BANDING out of FeatureDefines.h
3165         https://bugs.webkit.org/show_bug.cgi?id=136157
3166
3167         Reviewed by Simon Fraser.
3168
3169         * Configurations/FeatureDefines.xcconfig: Add ENABLE(RUBBER_BANDING).
3170         * WebView/WebView.mm:
3171         (-[WebView _preferencesChanged:]): Wrap in ENABLE(RUBBER_BANDING).
3172
3173 2014-08-21  Zalan Bujtas  <zalan@apple.com>
3174
3175         Enable SATURATED_LAYOUT_ARITHMETIC.
3176         https://bugs.webkit.org/show_bug.cgi?id=136106
3177
3178         Reviewed by Simon Fraser.
3179
3180         SATURATED_LAYOUT_ARITHMETIC protects LayoutUnit against arithmetic overflow.
3181         (No measurable performance regression on Mac.)
3182
3183         * Configurations/FeatureDefines.xcconfig:
3184
3185 2014-08-21  Beth Dakin  <bdakin@apple.com>
3186
3187         overflow:scroll elements should support rubber-banding
3188         https://bugs.webkit.org/show_bug.cgi?id=91655
3189
3190         Reviewed by Sam Weinig and Darin Adler.
3191
3192         Disable rubber-banding in overflow areas for now.
3193         * WebView/WebView.mm:
3194         (-[WebView _preferencesChanged:]):
3195
3196 2014-08-19  Pratik Solanki  <psolanki@apple.com>
3197
3198         Remove PurgeableBuffer since it is not very useful any more
3199         https://bugs.webkit.org/show_bug.cgi?id=135939
3200
3201         Reviewed by Andreas Kling.
3202
3203         * Misc/WebCache.mm:
3204         (+[WebCache statistics]):
3205
3206 2014-08-19  Zalan Bujtas  <zalan@apple.com>
3207
3208         Remove ENABLE(SUBPIXEL_LAYOUT).
3209         https://bugs.webkit.org/show_bug.cgi?id=136077
3210
3211         Reviewed by Simon Fraser.
3212
3213         Remove compile time flag SUBPIXEL_LAYOUT. All ports have it enabled for a while now.
3214
3215         * Configurations/FeatureDefines.xcconfig:
3216
3217 2014-08-18  Maciej Stachowiak  <mjs@apple.com>
3218
3219         Use NSURLFileTypeMappings directly instead of depending on WebKitSystemInterface wrappers for it
3220         https://bugs.webkit.org/show_bug.cgi?id=136035
3221
3222         Reviewed by Dan Bernstein.
3223
3224         * Misc/WebNSViewExtras.m:
3225         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]): Remove comment
3226         reference to obsolete WKSI function.
3227         * WebCoreSupport/WebSystemInterface.mm:
3228         (InitWebCoreSystemInterface): Don't initialize the no-longer-used WKGetExtensionsForMIMEType,
3229         WKGetPreferredExtensionForMIMEType, or WKGetMIMETypeForExtension
3230         * Plugins/WebPluginDatabase.mm:
3231         (-[WebPluginDatabase pluginForExtension:]): Include SPI header from WebCore; use
3232         NSURLFileTypeMappings directly instead of via WKSI wrapper.
3233         * WebCoreSupport/WebFrameLoaderClient.mm:
3234         (WebFrameLoaderClient::objectContentType): ditto
3235         * WebView/WebHTMLView.mm:
3236         (-[WebHTMLView _imageExistsAtPaths:]): ditto
3237         * WebView/WebView.mm:
3238         (+[WebView _supportedFileExtensions]): ditto
3239         (+[WebView suggestedFileExtensionForMIMEType:]): ditto
3240         (+[WebView _MIMETypeForFile:]): ditto
3241
3242 2014-08-18  Commit Queue  <commit-queue@webkit.org>
3243
3244         Unreviewed, rolling out r172736.
3245         https://bugs.webkit.org/show_bug.cgi?id=136060
3246
3247         Caused 14% PLT regressions (Requested by rniwa on #webkit).
3248
3249         Reverted changeset:
3250
3251         "Remove PurgeableBuffer since it is not very useful any more"
3252         https://bugs.webkit.org/show_bug.cgi?id=135939
3253         http://trac.webkit.org/changeset/172736
3254
3255 2014-08-18  Pratik Solanki  <psolanki@apple.com>
3256
3257         Remove PurgeableBuffer since it is not very useful any more
3258         https://bugs.webkit.org/show_bug.cgi?id=135939
3259
3260         Reviewed by Geoffrey Garen.
3261
3262         * Misc/WebCache.mm:
3263         (+[WebCache statistics]):
3264
3265 2014-08-18  Andy Estes  <aestes@apple.com>
3266
3267         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
3268         https://bugs.webkit.org/show_bug.cgi?id=136010
3269
3270         Reviewed by Darin Adler.
3271
3272         * Misc/WebKitVersionChecks.h: Removed WEBKIT_FIRST_VERSION_WITH_NAVIGATION_URL_VALIDATION.
3273         * WebView/WebPDFView.mm:
3274         (-[WebPDFView PDFViewWillClickOnLink:withURL:]): Passed AllowNavigationToInvalidURL::Yes to FrameLoader::loadFrameRequest.
3275         * WebView/WebView.mm:
3276         (-[WebView _preferencesChanged:]): Reverted the linked-on-or-after check added in r170120 since it's no longer necessary.
3277
3278 2014-08-18  Andy Estes  <aestes@apple.com>
3279
3280         Revert r172697.
3281
3282         It made several webarchive layout tests flaky and didn't have the correct behavior for non-quick redirects.
3283
3284         * Misc/WebKitVersionChecks.h:
3285         * WebView/WebView.mm:
3286         (-[WebView _preferencesChanged:]):
3287
3288 2014-08-15  Andy Estes  <aestes@apple.com>
3289
3290         REGRESSION (r167856): adobe.com no longer able to launch Create Cloud app using a URL with a custom scheme
3291         https://bugs.webkit.org/show_bug.cgi?id=136010
3292
3293         Reviewed by Darin Adler.
3294
3295         Reverted the linked-on-or-after check added in r170120 since it is no longer necessary.
3296
3297         * Misc/WebKitVersionChecks.h:
3298         * WebView/WebView.mm:
3299         (-[WebView _preferencesChanged:]):
3300
3301 2014-08-16  Maciej Stachowiak  <mjs@apple.com>
3302
3303         Remove the obsolete WebKitEnableCoalescedUpdatesPreferenceKey
3304         https://bugs.webkit.org/show_bug.cgi?id=136024
3305
3306         Reviewed by Filip Pizlo.
3307
3308         * WebView/WebFrameView.mm:
3309         (-[WebFrameView initWithFrame:]): Remove code that respects
3310         this key. It was SPI and is no longer used; also it was
3311         only relevant for versions of OS X that WebKit no longer supports.
3312         * WebView/WebPreferenceKeysPrivate.h: Remove declaration.
3313
3314 2014-08-15  Daniel Bates  <dabates@apple.com>
3315
3316         [iOS] Teach postprocess-headers.sh to remove code guarded by ENABLE_IOS_GESTURE_EVENTS
3317         and ENABLE_TOUCH_EVENTS if applicable
3318         https://bugs.webkit.org/show_bug.cgi?id=135993
3319
3320         Reviewed by Andy Estes.
3321
3322         Add support infrastructure to remove code from public and private API headers that is
3323         guarded by macro define ENABLE_{IOS_GESTURE, TOUCH}_EVENTS when these features are disabled.
3324
3325         We aren't using this functionality yet, but we will soon.
3326
3327         * postprocess-headers.sh:
3328
3329 2014-08-13  Wenson Hsieh  <wenson_hsieh@apple.com>
3330
3331         Enable CSS_SCROLL_SNAP for iOS
3332         https://bugs.webkit.org/show_bug.cgi?id=135915
3333
3334         Turn on CSS_SCROLL_SNAP for iOS and the iOS simulator.
3335
3336         Reviewed by Tim Horton.
3337
3338         * Configurations/FeatureDefines.xcconfig:
3339
3340 2014-08-13  Mark Rowe  <mrowe@apple.com>
3341
3342         <https://webkit.org/b/135911> WebKit should build on Yosemite with the public SDK.
3343
3344         Reviewed by Darin Adler.
3345
3346         * Misc/WebSharingServicePickerController.mm: Forward-declare some details related to NSSharingServicePicker.
3347
3348 2014-08-13  Timothy Hatcher  <timothy@apple.com>
3349
3350         Web Inspector: Workaround a NSWindow change to the title bar.
3351         https://bugs.webkit.org/show_bug.cgi?id=135880
3352
3353         Reviewed by Joseph Pecoraro.
3354
3355         * WebCoreSupport/WebInspectorClient.mm:
3356         (WebInspectorFrontendClient::setToolbarHeight): Only call setContentBorderThickness: on 10.9 and earlier.
3357         (-[WebInspectorWindowController init]): Only call setDrawsBackground: on 10.9 and earlier.
3358         (-[WebInspectorWindowController window]): Set titlebarAppearsTransparent on 10.10.
3359         Only call border thickness APIs on 10.9 and earlier.
3360
3361 2014-08-12  Peyton Randolph  <prandolph@apple.com>
3362
3363         Runtime switch for long mouse press gesture. Part of 135257 - Add long mouse press gesture.           
3364         https://bugs.webkit.org/show_bug.cgi?id=135682
3365
3366         Reviewed by Tim Horton.
3367
3368         * Configurations/FeatureDefines.xcconfig:
3369         Remove LONG_MOUSE_PRESS feature flag.
3370
3371 2014-08-11  Andy Estes  <aestes@apple.com>
3372
3373         [iOS] Get rid of iOS.xcconfig
3374         https://bugs.webkit.org/show_bug.cgi?id=135809
3375
3376         Reviewed by Joseph Pecoraro.
3377
3378         All iOS.xcconfig did was include AspenFamily.xcconfig, so there's no need for the indirection.
3379
3380         * Configurations/Base.xcconfig:
3381         * Configurations/iOS.xcconfig: Removed.
3382
3383 2014-08-10  Timothy Hatcher  <timothy@apple.com>
3384
3385         Web Inspector: new glyphs are visible on OS X 10.9 builds
3386         https://bugs.webkit.org/show_bug.cgi?id=135743
3387
3388         Reviewed by Joseph Pecoraro.
3389
3390         * WebCoreSupport/WebInspectorClient.mm:
3391         (-[WebInspectorWindowController window]): Use 10100 instead of 1090 for the version.
3392
3393 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
3394
3395         Get rid of SCRIPTED_SPEECH
3396         https://bugs.webkit.org/show_bug.cgi?id=135729
3397
3398         Reviewed by Brent Fulgham.
3399
3400         * Configurations/FeatureDefines.xcconfig:
3401
3402 2014-08-07  Benjamin Poulain  <bpoulain@apple.com>
3403
3404         Get rid of INPUT_SPEECH
3405         https://bugs.webkit.org/show_bug.cgi?id=135672
3406
3407         Reviewed by Andreas Kling.
3408
3409         * Configurations/FeatureDefines.xcconfig:
3410
3411 2014-08-07  Timothy Hatcher  <timothy@apple.com>
3412
3413         Web Inspector: Update glyphs to be more like Xcode 6
3414         https://bugs.webkit.org/show_bug.cgi?id=135705
3415
3416         Reviewed by Joseph Pecoraro.
3417
3418         * Resources/Dock.pdf: Added.
3419         * Resources/DockLegacy.pdf: Copied from Source/WebKit/mac/Resources/Dock.pdf.
3420         * WebCoreSupport/WebInspectorClient.mm:
3421         (-[WebInspectorWindowController window]): Use new images.
3422
3423 2014-08-06  Dean Jackson  <dino@apple.com>
3424
3425         ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED is not used anywhere. Remove it.
3426         https://bugs.webkit.org/show_bug.cgi?id=135675
3427
3428         Reviewed by Sam Weinig.
3429
3430         * Configurations/FeatureDefines.xcconfig:
3431
3432 2014-08-06  Wenson Hsieh  <wenson_hsieh@apple.com>
3433
3434         Implement parsing for CSS scroll snap points
3435         https://bugs.webkit.org/show_bug.cgi?id=134301
3436
3437         Reviewed by Dean Jackson.
3438
3439         * Configurations/FeatureDefines.xcconfig: Added ENABLE_CSS_SCROLL_SNAP
3440
3441 2014-08-06  Alexey Proskuryakov  <ap@apple.com>
3442
3443         REGRESSION (WebKit2): iOS Safari default encoding doesn't follow system language
3444         https://bugs.webkit.org/show_bug.cgi?id=135667
3445         <rdar://problem/17862892>
3446
3447         Reviewed by Anders Carlsson.
3448
3449         * WebView/WebPreferences.mm: (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]):
3450         Moved implementation to WebCore, so that it can be shared with WebKit2.
3451
3452         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface):
3453         We now use WKGetWebDefaultCFStringEncoding in WebCore, so it needs to be initialized.
3454
3455 2014-08-05  Peyton Randolph  <prandolph@apple.com>
3456
3457         Rename MAC_LONG_PRESS feature flag to LONG_MOUSE_PRESS.
3458         https://bugs.webkit.org/show_bug.cgi?id=135276
3459
3460         Reviewed by Beth Dakin.
3461
3462         * Configurations/FeatureDefines.xcconfig:
3463
3464 2014-08-04  Benjamin Poulain  <benjamin@webkit.org>
3465
3466         Add a flag for the CSS Selectors level 4 implementation
3467         https://bugs.webkit.org/show_bug.cgi?id=135535
3468
3469         Reviewed by Andreas Kling.
3470
3471         * Configurations/FeatureDefines.xcconfig:
3472
3473 2014-08-04  Benjamin Poulain  <bpoulain@apple.com>
3474
3475         Check for null frame when processing geolocation authorization request
3476         https://bugs.webkit.org/show_bug.cgi?id=135577
3477         <rdar://problem/17896295>
3478
3479         Reviewed by Geoffrey Garen.
3480
3481         * WebCoreSupport/WebGeolocationClient.mm:
3482         (WebGeolocationClient::requestPermission):
3483
3484 2014-08-02  Jeremy Jones  <jeremyj@apple.com>
3485
3486         Support both window and view based video fullscreen.
3487         https://bugs.webkit.org/show_bug.cgi?id=135525
3488
3489         Reviewed by Simon Fraser.
3490
3491         Parenting in the view instead of the window gives the fullscreen implementation more latitude 
3492         in how it implements the animation.
3493
3494         * WebView/WebView.mm:
3495         (-[WebView _enterFullscreenForNode:]): Use view instead of window.
3496
3497 2014-08-01  Dan Bernstein  <mitz@apple.com>
3498
3499         <rdar://problem/17891752> [iOS] WebKit links against libraries it doesn’t use
3500         https://bugs.webkit.org/show_bug.cgi?id=135536
3501
3502         Reviewed by Tim Horton.
3503
3504         * Configurations/WebKitLegacy.xcconfig: Removed -framework MobileAsset from
3505         OTHER_LDFLAGS_iphoneos.
3506
3507 2014-07-30  Andy Estes  <aestes@apple.com>
3508
3509         USE(CONTENT_FILTERING) should be ENABLE(CONTENT_FILTERING)
3510         https://bugs.webkit.org/show_bug.cgi?id=135439
3511
3512         Reviewed by Tim Horton.
3513
3514         We now support two different platform content filters, and will soon support a mock content filter (as part of
3515         webkit.org/b/128858). This makes content filtering a feature of WebKit, not just an adoption of a third-party
3516         library. ENABLE() is the correct macro to use for such a feature.
3517
3518         * Configurations/FeatureDefines.xcconfig:
3519
3520 2014-07-30  Andreas Kling  <akling@apple.com>
3521
3522         Static hash tables no longer need to be coupled with a VM.
3523         <https://webkit.org/b/135421>
3524
3525         Reviewed by Geoffrey Garen.
3526
3527         * Plugins/Hosted/ProxyInstance.mm:
3528         * Plugins/Hosted/ProxyRuntimeObject.mm:
3529
3530 2014-07-30  Dan Bernstein  <mitz@apple.com>
3531
3532         Updated for changes to the WebCore::Credential API.
3533         Work towards fixing https://bugs.webkit.org/show_bug.cgi?id=135327
3534
3535         Reviewed by Alexey Proskuryakov.
3536
3537         * Misc/WebDownload.mm:
3538         (-[WebDownloadInternal download:didReceiveAuthenticationChallenge:]): Use new nsCredential
3539         getter.
3540         * Plugins/WebBaseNetscapePluginView.mm:
3541         (WebKit::getAuthenticationInfo): Ditto.
3542
3543 2014-07-27  Pratik Solanki  <psolanki@apple.com>
3544
3545         Remove unused preference keys
3546         https://bugs.webkit.org/show_bug.cgi?id=135280
3547
3548         Reviewed by Darin Adler.
3549
3550         * WebView/WebPreferenceKeysPrivate.h:
3551         * WebView/WebPreferences.mm:
3552         (+[WebPreferences initialize]):
3553         (-[WebPreferences _setPageCacheSize:]): Deleted.
3554         (-[WebPreferences _pageCacheSize]): Deleted.
3555         (-[WebPreferences _setObjectCacheSize:]): Deleted.
3556         (-[WebPreferences _objectCacheSize]): Deleted.
3557         * WebView/WebPreferencesPrivate.h:
3558
3559 2014-07-27  Filip Pizlo  <fpizlo@apple.com>
3560
3561         Merge r170090, r170092, r170129, r170141, r170161, r170215, r170275, r170375, r170376, r170382, r170383, r170399, r170436, r170489, r170490, r170556 from ftlopt.
3562
3563     2014-07-25  Mark Lam  <mark.lam@apple.com>
3564     
3565    &n