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