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