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