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