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