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