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