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