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