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