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