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