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