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