Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit...
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-04-30  Anders Carlsson  <andersca@apple.com>
2
3         Move the legacy WebKit API into WebKitLegacy.framework and move it inside WebKit.framework
4         https://bugs.webkit.org/show_bug.cgi?id=132399
5         <rdar://problem/15920046>
6
7         Reviewed by Dan Bernstein.
8
9         * Carbon/CarbonUtils.h:
10         * Carbon/HIViewAdapter.h:
11         * Carbon/HIWebView.h:
12         Import WebKitLegacy headers instead of WebKit headers.
13
14         * Configurations/WebKit.xcconfig:
15         Move the definitions needed for building WebKitLegacy.framework to WebKitLegacy.xcconfig and
16         add the relevant definitions needed for re-exporting WebKitLegacy.framework.
17
18         * Configurations/WebKitLegacy.xcconfig:
19         Add definitions needed for building the "old" WebKit API as WebKitLegacy.framework.
20
21         * DOM/WebDOMOperations.h:
22         * DOM/WebDOMOperations.mm:
23         * DOM/WebDOMOperationsInternal.h:
24         * DOM/WebDOMOperationsPrivate.h:
25         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
26         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
27         * DefaultDelegates/WebDefaultEditingDelegate.m:
28         * History/WebBackForwardListInternal.h:
29         * History/WebBackForwardListPrivate.h:
30         * History/WebHistoryItemPrivate.h:
31         * History/WebHistoryPrivate.h:
32         * History/WebURLsWithTitles.m:
33         Import WebKitLegacy headers instead of WebKit headers.
34
35         * MigrateHeaders.make:
36         Update header paths now that all WebKitLegacy headers are private.
37         Remove migration of WebKit2 headers, that is done by MigrateHeadersFromWebKitLegacy.make now.
38         
39         * Misc/WebCoreStatistics.h:
40         * Misc/WebDownload.h:
41         * Misc/WebDownload.mm:
42         * Misc/WebDownloadInternal.h:
43         * Misc/WebElementDictionary.mm:
44         * Misc/WebIconDatabasePrivate.h:
45         * Misc/WebKit.h:
46         * Misc/WebKitErrors.m:
47         * Misc/WebKitErrorsPrivate.h:
48         * Misc/WebKitNSStringExtras.mm:
49         * Misc/WebLocalizableStrings.mm:
50         * Misc/WebNSDataExtras.m:
51         * Misc/WebNSDictionaryExtras.m:
52         * Misc/WebNSEventExtras.m:
53         * Misc/WebNSFileManagerExtras.mm:
54         * Misc/WebNSImageExtras.m:
55         * Misc/WebNSPasteboardExtras.mm:
56         * Misc/WebNSViewExtras.h:
57         * Misc/WebNSViewExtras.m:
58         * Panels/WebAuthenticationPanel.m:
59         * Panels/WebPanelAuthenticationHandler.m:
60         * Plugins/Hosted/HostedNetscapePluginStream.h:
61         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
62         * Plugins/Hosted/WebKitPluginAgent.defs:
63         * Plugins/Hosted/WebKitPluginAgentReply.defs:
64         * Plugins/Hosted/WebKitPluginClient.defs:
65         * Plugins/Hosted/WebKitPluginHost.defs:
66         * Plugins/Hosted/WebKitPluginHostTypes.defs:
67         * Plugins/WebBaseNetscapePluginView.mm:
68         * Plugins/WebBasePluginPackage.h:
69         * Plugins/WebBasePluginPackage.mm:
70         * Plugins/WebNetscapeContainerCheckPrivate.h:
71         * Plugins/WebNetscapePluginEventHandlerCocoa.h:
72         * Plugins/WebNetscapePluginStream.h:
73         * Plugins/WebNetscapePluginView.h:
74         * Plugins/WebNetscapePluginView.mm:
75         * Plugins/WebPlugin.h:
76         * Plugins/WebPluginController.h:
77         * Plugins/WebPluginDatabase.h:
78         * Plugins/WebPluginPackage.h:
79         * Plugins/WebPluginPackage.mm:
80         * Plugins/WebPluginViewFactory.h:
81         * Plugins/WebPluginViewFactoryPrivate.h:
82         * Plugins/npapi.mm:
83         * Storage/WebDatabaseManagerPrivate.h:
84         * WebCoreSupport/WebContextMenuClient.mm:
85         * WebCoreSupport/WebFrameLoaderClient.mm:
86         * WebCoreSupport/WebFrameNetworkingContext.mm:
87         * WebCoreSupport/WebGeolocationClient.mm:
88         * WebCoreSupport/WebInspectorClient.mm:
89         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
90         * WebCoreSupport/WebKeyGenerator.mm:
91         * WebInspector/WebInspectorPrivate.h:
92         * WebInspector/WebNodeHighlight.h:
93         * WebInspector/WebNodeHighlightView.h:
94         Import WebKitLegacy headers instead of WebKit headers.
95         
96         * WebKitLegacy/MigrateHeadersFromWebKitLegacy.make: Added.
97         New makefile that handles copying WebKitLegacy headers to the WebKit framework, rewriting WebKitLegacy
98         imports to WebKit imports. (On iOS the WebKit headers just forward to the relevant WebKitLegacy headers).
99         On OS X, this also handles copying WebKit2 headers to the WebKit framework, rewriting WebKit2 imports to WebKit imports
100         and getting rid of C SPI imports.
101         
102         * WebKitLegacy/MigrateHeadersToLegacy.make: Removed.
103         This is no longer needed.
104         
105         * WebKitLegacy/WebKit.h: Added.
106         New umbrella header that imports the modern API if available, as well as the legacy API (using WebKit/WebKitLegacy.h).
107
108         * WebKitLegacy/WebKit.m:
109         This is an empty file so we'll have something to link.
110
111         * WebKitLegacy/WebKitPrivate.h:
112         New SPI header that imports the private headers of the modern API.
113
114         * WebView/WebDataSource.h:
115         * WebView/WebDataSource.mm:
116         * WebView/WebDataSourcePrivate.h:
117         * WebView/WebDelegateImplementationCaching.h:
118         * WebView/WebDocument.h:
119         * WebView/WebDocumentInternal.h:
120         * WebView/WebDocumentPrivate.h:
121         * WebView/WebEditingDelegate.h:
122         * WebView/WebEditingDelegatePrivate.h:
123         * WebView/WebFrameLoadDelegate.h:
124         * WebView/WebFrameLoadDelegatePrivate.h:
125         * WebView/WebFramePrivate.h:
126         * WebView/WebFrameView.h:
127         * WebView/WebFrameViewInternal.h:
128         * WebView/WebFrameViewPrivate.h:
129         * WebView/WebHTMLRepresentation.h:
130         * WebView/WebHTMLRepresentation.mm:
131         * WebView/WebHTMLRepresentationPrivate.h:
132         * WebView/WebHTMLView.h:
133         * WebView/WebHTMLView.mm:
134         * WebView/WebHTMLViewPrivate.h:
135         * WebView/WebPDFView.h:
136         * WebView/WebPolicyDelegatePrivate.h:
137         * WebView/WebPreferencesPrivate.h:
138         * WebView/WebResourcePrivate.h:
139         * WebView/WebUIDelegate.h:
140         * WebView/WebUIDelegatePrivate.h:
141         * WebView/WebView.h:
142         * WebView/WebView.mm:
143         * WebView/WebViewPrivate.h:
144         Import WebKitLegacy headers instead of WebKit headers.
145
146         * migrate-headers.sh:
147         Derived sources are put in DerivedSources/WebKitLegacy now.
148
149 2014-04-30  David Hyatt  <hyatt@apple.com>
150
151         [New Multicolumn] Enable new multi-column mode
152         https://bugs.webkit.org/show_bug.cgi?id=131825
153
154         Reviewed by Simon Fraser.
155
156         * WebView/WebPreferences.mm:
157         (+[WebPreferences initialize]):
158
159 2014-04-30  Brian J. Burg  <burg@cs.washington.edu>
160
161         Clean up unnecessary methods in the BackForwardClient interface
162         https://bugs.webkit.org/show_bug.cgi?id=131637
163
164         Reviewed by Andreas Kling.
165
166         BackForwardClient instances now have ownership lifetime semantics, so
167         WebBackForwardList now explicitly deletes its inner BackForwardList.
168
169         Convert uses of WebCore::BackForwardList through backForward().client() to
170         accept references instead of pointers.
171
172         Use BackForwardController methods rather than directly operating with the
173         BackForwardClient where possible.
174
175         Remove page cache-related methods that are not used anywhere and that call
176         BackForwardClient::page(), which is removed by this change.
177
178         * History/WebBackForwardList.mm:
179         (-[WebBackForwardList initWithBackForwardList:]):
180         (-[WebBackForwardList init]):
181         (-[WebBackForwardList dealloc]):
182         (-[WebBackForwardList finalize]):
183         (-[WebBackForwardList setPageCacheSize]): Deleted.
184         (-[WebBackForwardList pageCacheSize]): Deleted.
185         (-[WebBackForwardList itemAtIndex:]): Deleted.
186         * History/WebBackForwardListInternal.h:
187         * WebCoreSupport/WebFrameLoaderClient.mm:
188         (WebFrameLoaderClient::canCachePage):
189         * WebView/WebFrameView.mm:
190         (-[WebFrameView keyDown:keyDown:]):
191         * WebView/WebView.mm:
192         (-[WebView _loadBackForwardListFromOtherView:]):
193         (-[WebView initWithCoder:]):
194         (-[WebView encodeWithCoder:]):
195         (-[WebView backForwardList]):
196         (-[WebView setMaintainsBackForwardList:]):
197
198 2014-04-29  Sam Weinig  <sam@webkit.org>
199
200         [iOS] -[WebHTMLView selectionImageForcingBlackText:] returns blank image on iOS
201         https://bugs.webkit.org/show_bug.cgi?id=132359
202
203         Reviewed by Darin Adler.
204
205         * WebView/WebHTMLView.mm:
206         (imageFromRect):
207         (selectionImage):
208         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
209         Bring back the old FrameSnapshottingMac code for drawing the selection image as drag code for this
210         is still unimplemented on iOS.
211
212         * WebView/WebView.mm:
213         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
214         Set the page scale for "simple HTML documents" (this is already done for the all other documents), 
215         to ensure that the snapshot is the correct size.
216
217 2014-04-30  Manuel Rego Casasnovas  <rego@igalia.com>
218
219         [CSS Grid Layout] Enable runtime feature by default
220         https://bugs.webkit.org/show_bug.cgi?id=132189
221
222         Reviewed by Benjamin Poulain.
223
224         * WebView/WebPreferences.mm:
225         (+[WebPreferences initialize]): Remove unneeded changes that
226         enable/disable the runtime feature depending on the compilation flag.
227         And set it to true by default.
228
229 2014-04-29  Filip Pizlo  <fpizlo@apple.com>
230
231         Use LLVM as a backend for the fourth-tier DFG JIT (a.k.a. the FTL JIT)
232         https://bugs.webkit.org/show_bug.cgi?id=112840
233
234         Rubber stamped by Geoffrey Garen.
235
236         * Configurations/FeatureDefines.xcconfig:
237
238 2014-04-29  Brady Eidson  <beidson@apple.com>
239
240         Change Image Controls replacement to use selection and paste
241         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
242
243         Reviewed by Tim Horton.
244
245         * Misc/WebSharingServicePickerController.mm:
246         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
247           replacement data to a special pasteboard, then replace the current selection from
248           that pasteboard.
249
250 2014-04-27  Sam Weinig  <sam@webkit.org>
251
252         [iOS WebKit2] Add support for text autosizing
253         <rdar://problem/16545245>
254         https://bugs.webkit.org/show_bug.cgi?id=132237
255
256         Reviewed by Tim Horton.
257
258         * WebView/WebFrame.mm:
259         (-[WebFrame _setTextAutosizingWidth:]):
260         Forward setting of the text autosizing width to the Page.
261
262 2014-04-25  Dean Jackson  <dino@apple.com>
263
264         Allow a platform-specific size enumeration to be passed into popup-menu display
265         https://bugs.webkit.org/show_bug.cgi?id=132195
266
267         Reviewed by Brent Fulgham. With some in-person review comments from Sam Weinig.
268
269         Platforms like OS X use a set of predefined sizes for built-in controls
270         used for <select>: normal, small and mini. Expose that information to
271         the PopupMenuClient via the PopupMenuStyle, allowing it to be passed
272         into the platform code in WebKitSystemInterface.
273
274         * WebCoreSupport/PopupMenuMac.mm:
275         (PopupMenuMac::show): Convert the WebCore menu size type into the
276         WebCoreSystemInterface type.
277
278 2014-04-24  Commit Queue  <commit-queue@webkit.org>
279
280         Unreviewed, rolling out r167700.
281         https://bugs.webkit.org/show_bug.cgi?id=132142
282
283         Incorrectly reverted the change in r167547 for
284         webkit.org/b/131898 (Requested by rniwa on #webkit).
285
286         Reverted changeset:
287
288         "Cursor doesn't change back to pointer when leaving the Safari
289         window"
290         https://bugs.webkit.org/show_bug.cgi?id=132038
291         http://trac.webkit.org/changeset/167700
292
293 2014-04-24  Brady Eidson  <beidson@apple.com>
294
295         Rename "IMAGE_CONTROLS" feature to "SERVICE_CONTROLS"
296         https://bugs.webkit.org/show_bug.cgi?id=132155
297
298         Reviewed by Tim Horton.
299
300         * Configurations/FeatureDefines.xcconfig:
301         * Misc/WebSharingServicePickerController.h:
302         * Misc/WebSharingServicePickerController.mm:
303         * WebCoreSupport/WebContextMenuClient.h:
304         * WebCoreSupport/WebContextMenuClient.mm:
305         (WebContextMenuClient::contextMenuForEvent):
306         * WebView/WebPreferences.mm:
307         (+[WebPreferences initialize]):
308         * WebView/WebView.mm:
309         (-[WebView _preferencesChanged:]):
310
311 2014-04-24  Ryosuke Niwa  <rniwa@webkit.org>
312
313         Text caret disappears in Mail after returning from another application
314         https://bugs.webkit.org/show_bug.cgi?id=132111
315
316         Reviewed by Darin Adler.
317
318         The bug was caused by our SPI _windowChangedKeyState not getting called upon deminiaturization.
319
320         Fixed the bug by using the standard NSWindowDidBecomeKeyNotification and NSWindowDidResignKeyNotification
321         notifications as done in WebKit2 since they DO get called upon deminiaturization.
322
323         * WebView/WebView.mm:
324         (-[WebView addWindowObserversForWindow:]):
325         (-[WebView removeWindowObservers]):
326         (-[WebView _windowKeyStateChanged:]):
327         (-[WebView _windowChangedKeyState]): Deleted.
328
329 2014-04-24  Myles C. Maxfield  <mmaxfield@apple.com>
330
331         FontCache::fontCache() never returns nullptr so it can be made to return a reference instead
332         https://bugs.webkit.org/show_bug.cgi?id=132110
333
334         Reviewed by Tim Horton.
335
336         Updates callers to use '.' instead of '->'.
337
338         No new tests are necessary because there should be no behavior change.
339
340         * Misc/WebCoreStatistics.mm:
341         (+[WebCoreStatistics cachedFontDataCount]):
342         (+[WebCoreStatistics cachedFontDataInactiveCount]):
343         (+[WebCoreStatistics purgeInactiveFontData]):
344         * WebView/WebView.mm:
345         (+[WebView purgeInactiveFontData]):
346
347 2014-04-24  Eric Carlson  <eric.carlson@apple.com>
348
349         [iOS] Manage AudioSession category according to media type
350         https://bugs.webkit.org/show_bug.cgi?id=132096
351
352         Reviewed by Jer Noble.
353
354         * WebView/WebView.mm:
355         (-[WebView _commonInitializationWithFrameName:groupName:]): Tell 
356             WebCore to manage the AudioSession when running in MobileSafari.
357
358 2014-04-23  Andreas Kling  <akling@apple.com>
359
360         Remove Apple Dictionary workaround in WebFrameLoaderClient.
361         <https://webkit.org/b/132095>
362
363         Kill a hack to work around a WK1 client bug that got fixed years ago.
364         See <rdar://problem/6471058> for backstory.
365
366         Reviewed by Darin Adler.
367
368         * WebCoreSupport/WebFrameLoaderClient.mm:
369         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
370         (WebFrameLoaderClient::dispatchWillSendRequest):
371         (applyAppleDictionaryApplicationQuirkNonInlinePart): Deleted.
372         (applyAppleDictionaryApplicationQuirk): Deleted.
373
374 2014-04-23  Anders Carlsson  <andersca@apple.com>
375
376         Don't migrate the WKView.h header from WebCore to WebKit
377         https://bugs.webkit.org/show_bug.cgi?id=132086
378
379         Reviewed by Dan Bernstein.
380
381         * MigrateHeaders.make:
382         Remove WKView.h from the list of headers to migrate.
383
384         * WebView/WebView.mm:
385         Import WKView.h.
386
387 2014-04-22  Ryosuke Niwa  <rniwa@webkit.org>
388
389         Cursor doesn't change back to pointer when leaving the Safari window
390         https://bugs.webkit.org/show_bug.cgi?id=132038
391
392         Reviewed by Alexey Proskuryakov.
393
394         Since the cursor type is now updated asynchronously after r147739,
395         [window windowNumber] != [NSWindow windowNumberAtPoint:[NSEvent mouseLocation] belowWindowWithWindowNumber:0]
396         evalutes to false depending on how fast cursor is moving.
397
398         Instead, check whether the NSWindow of the WebView is the key window or not since
399         key window appears to control the cursor style in Cocoa as far as I've tested:
400         https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Concepts/ChangingMainKeyWindow.html
401
402         * WebCoreSupport/WebChromeClient.mm:
403         (WebChromeClient::setCursor):
404
405 2014-04-22  Commit Queue  <commit-queue@webkit.org>
406
407         Unreviewed, rolling out r167674.
408         https://bugs.webkit.org/show_bug.cgi?id=132025
409
410         Going a different way with this (Requested by bradee-oh on
411         #webkit).
412
413         Reverted changeset:
414
415         "Change Image Controls replacement to use selection and paste"
416         https://bugs.webkit.org/show_bug.cgi?id=131992
417         http://trac.webkit.org/changeset/167674
418
419 2014-04-22  Brady Eidson  <beidson@apple.com>
420
421         Change Image Controls replacement to use selection and paste
422         <rdar://problem/16302722> and https://bugs.webkit.org/show_bug.cgi?id=131992
423
424         Reviewed by Tim Horton.
425
426         * Misc/WebSharingServicePickerController.mm:
427         (-[WebSharingServicePickerController sharingService:didShareItems:]): Write the
428           replacement data to a special pasteboard, then replace the current selection from
429           that pasteboard.
430
431 2014-04-21  Eric Carlson  <eric.carlson@apple.com>
432
433         [Mac] implement WebKitDataCue
434         https://bugs.webkit.org/show_bug.cgi?id=131799
435
436         Reviewed by Dean Jackson.
437
438         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
439
440 2014-04-21  Joseph Pecoraro  <pecoraro@apple.com>
441
442         Remove unused WebKitSystemInterface functions
443         https://bugs.webkit.org/show_bug.cgi?id=131938
444
445         Reviewed by Alexey Proskuryakov.
446
447         * WebCoreSupport/WebSystemInterface.mm:
448         (InitWebCoreSystemInterface):
449
450 2014-04-21  Zan Dobersek  <zdobersek@igalia.com>
451
452         Move cross-port Source/WebCore/page/ code to std::unique_ptr
453         https://bugs.webkit.org/show_bug.cgi?id=130534
454
455         Reviewed by Darin Adler.
456
457         * WebView/WebHTMLRepresentation.mm:
458         (searchForLabelsBeforeElement): Pass a RegExp reference to Frame::searchForLabelsAboveCell().
459
460 2014-04-19  Darin Adler  <darin@apple.com>
461
462         [Mac] WebView adjusts the cursor even when another window is in front
463         https://bugs.webkit.org/show_bug.cgi?id=131898
464         rdar://problem/14619911
465
466         Reviewed by Dan Bernstein.
467
468         * WebCoreSupport/WebChromeClient.mm:
469         (WebChromeClient::setCursor): Added a check that the window is under the cursor
470         and do nothing if it's not.
471
472 2014-04-18  Commit Queue  <commit-queue@webkit.org>
473
474         Unreviewed, rolling out r167527.
475         https://bugs.webkit.org/show_bug.cgi?id=131883
476
477         Broke 32-bit build (Requested by ap on #webkit).
478
479         Reverted changeset:
480
481         "[Mac] implement WebKitDataCue"
482         https://bugs.webkit.org/show_bug.cgi?id=131799
483         http://trac.webkit.org/changeset/167527
484
485 2014-04-18  Eric Carlson  <eric.carlson@apple.com>
486
487         [Mac] implement WebKitDataCue
488         https://bugs.webkit.org/show_bug.cgi?id=131799
489
490         Reviewed by Dean Jackson.
491
492         * Configurations/FeatureDefines.xcconfig: Define ENABLE_DATACUE_VALUE.
493
494 2014-04-17  Daniel Bates  <dabates@apple.com>
495
496         [iOS] Hook up screen.{availHeight, availWidth, height, width}
497         https://bugs.webkit.org/show_bug.cgi?id=131821
498         <rdar://problem/16413795>
499
500         Reviewed by Benjamin Poulain and Tim Horton.
501
502         Add declaration for WKGetViewportAvailableScreenSize() to return the available screen size.
503
504         Additionally substitute "ScreenSize" for "ViewportScreenSize" to make the code more understandable.
505
506         * WebCoreSupport/WebSystemInterface.mm:
507         (InitWebCoreSystemInterface):
508
509 2014-04-17  Darin Adler  <darin@apple.com>
510
511         Add separate flag for IndexedDatabase in workers since the current implementation is not threadsafe
512         https://bugs.webkit.org/show_bug.cgi?id=131785
513         rdar://problem/16003108
514
515         Reviewed by Brady Eidson.
516         
517         * Configurations/FeatureDefines.xcconfig: Added INDEXED_DATABASE_IN_WORKERS.
518
519 2014-04-16  Tim Horton  <timothy_horton@apple.com>
520
521         Images dragged from WebKit1 on 2x displays are too big
522         https://bugs.webkit.org/show_bug.cgi?id=131775
523         <rdar://problem/15933525>
524
525         Reviewed by Simon Fraser.
526
527         * WebCoreSupport/WebDragClient.mm:
528         (WebDragClient::startDrag):
529         Scale the drag image's logical size down by the device scale factor
530         in WebKit1 just like we do in WebKit2.
531
532 2014-04-13  Andy Estes  <aestes@apple.com>
533
534         [QuickLook] Move file system-related code into WebKit
535         https://bugs.webkit.org/show_bug.cgi?id=131597
536
537         Reviewed by Dan Bernstein.
538
539         Moved file system and WebKit1-only code from QuickLookHandle into a new
540         QuickLookHandleClient subclass.
541
542         * WebCoreSupport/WebFrameLoaderClient.h:
543         * WebCoreSupport/WebFrameLoaderClient.mm:
544
545 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
546
547         Eliminate DragSession structure
548         https://bugs.webkit.org/show_bug.cgi?id=131465
549
550         Reviewed by Benjamin Poulain.
551
552         * WebView/WebView.mm:
553         (-[WebView draggingEntered:]):
554         (-[WebView draggingUpdated:]):
555
556 2014-04-09  Alexey Proskuryakov  <ap@apple.com>
557
558         Rename some dragging functions
559         https://bugs.webkit.org/show_bug.cgi?id=131460
560
561         Reviewed by Tim Horton.
562
563         Renamed performDrag to performDragOperation.
564
565         * WebView/WebView.mm: (-[WebView performDragOperation:]):
566
567 2014-04-08  Jon Lee  <jonlee@apple.com>
568
569         Turn MSE on by default
570         https://bugs.webkit.org/show_bug.cgi?id=131313
571         <rdar://problem/16525223>
572
573         Reviewed by Jer Noble.
574
575         * Configurations/FeatureDefines.xcconfig:
576         * WebView/WebPreferences.mm:
577         (+[WebPreferences initialize]): Set default to true.
578
579 2014-04-08  Alexey Proskuryakov  <ap@apple.com>
580
581         Rename Clipboard to DataTransfer
582         https://bugs.webkit.org/show_bug.cgi?id=131371
583
584         Reviewed by Anders Carlsson.
585
586         * WebCoreSupport/WebDragClient.h:
587         * WebCoreSupport/WebDragClient.mm:
588         (WebDragClient::willPerformDragSourceAction):
589         (WebDragClient::startDrag):
590         * WebView/WebPDFView.mm:
591
592 2014-04-08  Dan Bernstein  <mitz@apple.com>
593
594         WebKit part of [Cocoa] Add WKFormDelegate
595         https://bugs.webkit.org/show_bug.cgi?id=131343
596
597         Reviewed by Anders Carlsson.
598
599         * MigrateHeaders.make: Added new WebKit2 headers to WEBKIT2_HEADERS.
600
601 2014-04-08  Daniel Bates  <dabates@apple.com>
602
603         Fallback to default storage session when there isn't a valid session ID
604         https://bugs.webkit.org/show_bug.cgi?id=131326
605         <rdar://problem/16231679>
606
607         Reviewed by Alexey Proskuryakov.
608
609         Fixes and issue where we may use the wrong storage session after disabling
610         a private browsing session.
611
612         Currently WebKit1 and WebKit2 without NetworkProcess assume that there
613         is always a non-null private browsing storage session so long as the page
614         has a non-default session ID. Instead we should only use the private browsing
615         storage session when it's non-null and the page has a non-default session ID;
616         otherwise, we should use the default storage session. This change will make
617         the behavior in WebKit1 and WebKit2 without NetworkProcess consistent with
618         the behavior in WebKit2 with NetworkProcess.
619
620         * WebCoreSupport/WebFrameNetworkingContext.mm:
621         (WebFrameNetworkingContext::storageSession):
622
623 2014-04-06  Sam Weinig  <sam@webkit.org>
624
625         Document user content related APIs
626
627         Reviewed by Anders Carlsson.
628
629         * MigrateHeaders.make:
630
631 2014-04-06  Darin Adler  <darin@apple.com>
632
633         Refactor post-attach and HTMLObjectElement-related code
634         https://bugs.webkit.org/show_bug.cgi?id=131282
635
636         Reviewed by Antti Koivisto.
637
638         * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
639         doing a static_cast.
640
641 2014-04-04  Brian J. Burg  <burg@cs.washington.edu>
642
643         Enable WEB_REPLAY for PLATFORM(MAC)
644         https://bugs.webkit.org/show_bug.cgi?id=130700
645
646         Reviewed by Timothy Hatcher.
647
648         * Configurations/FeatureDefines.xcconfig:
649
650 2014-04-03  Sam Weinig  <sam@webkit.org>
651
652         [WebKit2] Promote user script SPI to API
653         https://bugs.webkit.org/show_bug.cgi?id=131181
654
655         Reviewed by Anders Carlsson.
656
657         * MigrateHeaders.make:
658
659 2014-04-02  Benjamin Poulain  <bpoulain@apple.com>
660
661         [iOS] Remove the legacy string drawing code
662         https://bugs.webkit.org/show_bug.cgi?id=131088
663
664         Reviewed by Sam Weinig.
665
666         * Configurations/WebKit.xcconfig:
667
668 2014-04-02  Mark Rowe  <mrowe@apple.com>
669
670         <https://webkit.org/b/131135> Introduce LockHistory and LockBackForwardList enums to use in place of bools.
671
672         These arguments are often passed using literals at the call site, where the use of bools severely hinders
673         the readability of the code.
674
675         Reviewed by Andreas Kling.
676
677         * WebView/WebPDFView.mm:
678         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
679
680 2014-04-02  Stephanie Lewis  <slewis@apple.com>
681
682         Roll out http://trac.webkit.org/changeset/166144
683         <rdar://problem/16481284> PLT stops loading on news.google.com
684         
685         Unreviewed rollout.
686
687         Rollout 166144 since it prevents the PLT from completing.
688
689         * WebCoreSupport/WebFrameLoaderClient.mm:
690
691 2014-04-02  Daniel Bates  <dabates@apple.com>
692
693         Remove Settings::maximumDecodedImageSize()
694         https://bugs.webkit.org/show_bug.cgi?id=131057
695         <rdar://problem/15626368>
696
697         Reviewed by Darin Adler. 
698
699         Remove preferences key WebKitMaximumImageSize.
700
701         * WebView/WebPreferenceKeysPrivate.h:
702         * WebView/WebPreferences.mm:
703         (+[WebPreferences initialize]):
704         (-[WebPreferences _maximumImageSize:]): Deleted.
705         * WebView/WebPreferencesPrivate.h:
706         * WebView/WebView.mm:
707         (-[WebView _preferencesChanged:]):
708
709 2014-04-02  Martin Hock  <mhock@apple.com>
710
711         Unify private browsing with sessions.
712         https://bugs.webkit.org/show_bug.cgi?id=130099
713
714         Reviewed by Alexey Proskuryakov.
715
716         * WebCoreSupport/WebFrameLoaderClient.mm: Change WebCore::Settings::privateBrowsingEnabled() to Page::sessionID().isEphemeral().
717         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
718         * WebCoreSupport/WebFrameNetworkingContext.mm: Ditto.
719         (WebFrameNetworkingContext::storageSession):
720         * WebView/WebView.mm: Change WebCore::Settings::setPrivateBrowsingEnabled() to Page::enableLegacyPrivateBrowsing().
721         (-[WebView _preferencesChanged:]):
722
723 2014-04-01  Anders Carlsson  <andersca@apple.com>
724
725         Migrate more headers
726         https://bugs.webkit.org/show_bug.cgi?id=131068
727
728         Reviewed by Tim Horton.
729
730         * MigrateHeaders.make:
731
732 2014-04-01  Manuel Rego Casasnovas  <rego@igalia.com>
733
734         [CSS Grid Layout] Enable runtime feature if feature flag is enabled
735         https://bugs.webkit.org/show_bug.cgi?id=130013
736
737         Reviewed by Simon Fraser.
738
739         Enable CSS Grid Layout runtime feature when ENABLE_CSS_GRID_LAYOUT flag is true.
740
741         * WebView/WebPreferences.mm:
742         (+[WebPreferences initialize]):
743
744 2014-03-31  Simon Fraser  <simon.fraser@apple.com>
745
746         Enable WEB_TIMING on Mac and iOS
747         https://bugs.webkit.org/show_bug.cgi?id=128064
748
749         Reviewed by Sam Weinig, Brent Fulgham.
750
751         Enable WEB_TIMING.
752
753         * Configurations/FeatureDefines.xcconfig:
754
755 2014-03-31  Dean Jackson  <dino@apple.com>
756
757         Remove WEB_ANIMATIONS
758         https://bugs.webkit.org/show_bug.cgi?id=130989
759
760         Reviewed by Simon Fraser.
761
762         Remove this feature flag until we plan to implement.
763
764         * Configurations/FeatureDefines.xcconfig:
765
766 2014-03-31  Antti Koivisto  <antti@apple.com>
767
768         Rename TileCache to LegacyTileCache
769         https://bugs.webkit.org/show_bug.cgi?id=130986
770
771         Reviewed by Simon Fraser.
772
773         * WebView/WebView.mm:
774         (+[WebView drainLayerPool]):
775         (+[WebView _setTileCacheLayerPoolCapacity:]):
776
777 2014-03-28  Darin Adler  <darin@apple.com>
778
779         Fix recently-introduced off-by-one error in centerTruncateToBuffer
780         https://bugs.webkit.org/show_bug.cgi?id=130889
781
782         Reviewed by Alexey Proskuryakov.
783
784         * Misc/WebStringTruncator.mm:
785         (defaultMenuFont): Changed to use NeverDestroyed since I had to touch this file anyway.
786         (fontFromNSFont): Ditto. Also improved variable names a bit.
787         (+[WebStringTruncator initialize]): Added threading initialization, needed for main
788         thread assertions in string truncator code.
789
790 2014-03-27  Commit Queue  <commit-queue@webkit.org>
791
792         Unreviewed, rolling out r166360.
793         https://bugs.webkit.org/show_bug.cgi?id=130869
794
795         Seems to have broken PLT (Requested by ap on #webkit).
796
797         Reverted changeset:
798
799         "Connection::dispatchOneMessage() can be re-entered while
800         handling Cmd-key menu"
801         https://bugs.webkit.org/show_bug.cgi?id=130767
802         http://trac.webkit.org/changeset/166360
803
804 2014-03-27  Alexey Proskuryakov  <ap@apple.com>
805
806         Connection::dispatchOneMessage() can be re-entered while handling Cmd-key menu
807         equivalents, ASSERT(!_data->_keyDownEventBeingResent)
808         https://bugs.webkit.org/show_bug.cgi?id=130767
809         <rdar://problem/16307487>
810
811         Reviewed by Darin Adler.
812
813         Switched to a WebCore wrapper for RunLoop::initializeMainRunLoop that adds
814         NSModalPanelRunLoopMode to RunLoop event source and timer modes.
815
816         * Carbon/CarbonWindowAdapter.mm: (+[CarbonWindowAdapter initialize]):
817         * History/WebBackForwardList.mm: (+[WebBackForwardList initialize]):
818         * History/WebHistoryItem.mm: (+[WebHistoryItem initialize]):
819         * Misc/WebCache.mm: (+[WebCache initialize]):
820         * Misc/WebElementDictionary.mm: (+[WebElementDictionary initialize]):
821         * Misc/WebIconDatabase.mm: (+[WebIconDatabase initialize]):
822         * Plugins/Hosted/WebHostedNetscapePluginView.mm: (+[WebHostedNetscapePluginView initialize]):
823         * Plugins/WebBaseNetscapePluginView.mm:
824         * Plugins/WebBasePluginPackage.mm:
825         * Plugins/WebNetscapePluginView.mm: (+[WebNetscapePluginView initialize]):
826         * WebCoreSupport/WebEditorClient.mm: (+[WebUndoStep initialize]):
827         * WebCoreSupport/WebFrameLoaderClient.mm:
828         * WebView/WebArchive.mm: (+[WebArchivePrivate initialize]):
829         * WebView/WebDataSource.mm: (+[WebDataSource initialize]):
830         * WebView/WebHTMLView.mm:
831         (+[WebHTMLViewPrivate initialize]):
832         (+[WebHTMLView initialize]):
833         * WebView/WebPreferences.mm: (+[WebPreferences initialize]):
834         * WebView/WebResource.mm: (+[WebResourcePrivate initialize]):
835         * WebView/WebTextIterator.mm: (+[WebTextIteratorPrivate initialize]):
836         * WebView/WebView.mm: (+[WebView initialize]):
837         * WebView/WebViewData.mm: (+[WebViewPrivate initialize]):
838
839 2014-03-26  Timothy Hatcher  <timothy@apple.com>
840
841         Propagate the hiddenFromInspector flag on ResourceRequest in
842         places when a new request a made or passed between processes.
843
844         https://bugs.webkit.org/show_bug.cgi?id=130741
845
846         Reviewed by Joseph Pecoraro.
847
848         * WebCoreSupport/WebFrameLoaderClient.mm:
849         (WebFrameLoaderClient::dispatchWillSendRequest): Copy hiddenFromInspector to
850         the new request.
851
852 2014-03-26  Zoltan Horvath  <zoltan@webkit.org>
853
854         [CSS Shapes] Remove shape-inside support
855         https://bugs.webkit.org/show_bug.cgi?id=130698
856
857         Reviewed by David Hyatt.
858
859         * Configurations/FeatureDefines.xcconfig:
860
861 2014-03-25  Joseph Pecoraro  <pecoraro@apple.com>
862
863         [iOS] Inspector View Indication Support
864         https://bugs.webkit.org/show_bug.cgi?id=130709
865
866         Reviewed by Simon Fraser.
867
868         * WebCoreSupport/WebInspectorClient.h:
869         * WebCoreSupport/WebInspectorClient.mm:
870         (WebInspectorClient::didSetSearchingForNode): Deleted.
871         (WebInspectorClient::releaseFrontend): Deleted.
872         * WebView/WebView.mm:
873         (-[WebView setShowingInspectorIndication:]):
874         * WebView/WebViewPrivate.h:
875         Renamed methods.
876
877 2014-03-24  Brent Fulgham  <bfulgham@apple.com>
878
879         Activate WebVTT Tests Once Merging is Complete
880         https://bugs.webkit.org/show_bug.cgi?id=130420
881
882         Reviewed by Eric Carlson.
883
884         * Configurations/FeatureDefines.xcconfig: Turn on ENABLE(WEBVTT_REGIONS)
885
886 2014-03-24  Andy Estes  <aestes@apple.com>
887
888         [iOS] Download support by CFURLDownloadRef under USE(CFNETWORK).
889         https://bugs.webkit.org/show_bug.cgi?id=129322
890
891         Reviewed by Anders Carlsson.
892
893         * WebCoreSupport/WebFrameLoaderClient.mm:
894         (WebFrameLoaderClient::convertMainResourceLoadToDownload): Use the
895         RetainPtr returned by releaseConnectionForDownload() rather than
896         manually releasing.
897
898 2014-03-24  Jon Lee  <jonlee@apple.com>
899
900         Build fixes.
901
902         Unreviewed.
903
904         * WebInspector/WebNodeHighlightView.mm: Missing include to GeometryUtilities.
905
906 2014-03-23  Sam Weinig  <sam@webkit.org>
907
908         Remove some unnecessary .get()s that Darin noticed.
909
910         * WebView/WebHTMLRepresentation.mm:
911         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
912         * WebView/WebHTMLView.mm:
913         (-[WebHTMLView attributedString]):
914
915 2014-03-23  Sam Weinig  <sam@webkit.org>
916
917         Simplify the HTMLConverter interface (Part 2)
918         https://bugs.webkit.org/show_bug.cgi?id=130654
919
920         Reviewed by Darin Adler.
921
922         * WebView/WebHTMLRepresentation.mm:
923         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
924         * WebView/WebHTMLView.mm:
925         (-[WebHTMLView attributedSubstringFromRange:]):
926         (-[WebHTMLView attributedString]):
927         (-[WebHTMLView selectedAttributedString]):
928
929 2014-03-23  Darin Adler  <darin@apple.com>
930
931         Remove code in HTMLObjectElement attribute parsing that forces style resolution and layout
932         https://bugs.webkit.org/show_bug.cgi?id=130653
933
934         Reviewed by Antti Koivisto.
935
936         * WebCoreSupport/WebFrameLoaderClient.mm: Call toHTMLPlugInImageElement instead of
937         doing a static_cast.
938
939 2014-03-21  Simon Fraser  <simon.fraser@apple.com>
940
941         Don't flush compositing layers within FrameView::willPaintContents()
942         https://bugs.webkit.org/show_bug.cgi?id=130627
943
944         Reviewed by Sam Weinig.
945         
946         Make _flushCompositingChanges private so DRT can call it;
947         moved it into the Private category.
948
949         * WebView/WebView.mm:
950         (-[WebView _flushCompositingChanges]):
951         * WebView/WebViewPrivate.h:
952
953 2014-03-21  Simon Fraser  <simon.fraser@apple.com>
954
955         Remove duplicate line added during merging
956         https://bugs.webkit.org/show_bug.cgi?id=130623
957
958         Reviewed by Beth Dakin.
959         
960         Remove a duplicate call to -_viewWillDrawInternal which
961         was added during merges.
962
963         * WebView/WebView.mm:
964         (LayerFlushController::flushLayers):
965
966 2014-03-21  Darin Adler  <darin@apple.com>
967
968         Improve idiom used for string building in a few places
969         https://bugs.webkit.org/show_bug.cgi?id=130561
970
971         Reviewed by Andreas Kling.
972
973         * WebView/WebHTMLRepresentation.mm:
974         (regExpForLabels): Use StringBuilder.
975
976 2014-03-21  Darin Adler  <darin@apple.com>
977
978         Add a combined decodeAndFlush to TextResourceDecoder
979         https://bugs.webkit.org/show_bug.cgi?id=130560
980
981         Reviewed by Andreas Kling.
982
983         * WebView/WebView.mm:
984         (+[WebView _decodeData:]): Use decodeAndFlush.
985
986 2014-03-20  Anders Carlsson  <andersca@apple.com>
987
988         Fix build.
989
990         * MigrateHeaders.make:
991
992 2014-03-20  Pratik Solanki  <psolanki@apple.com>
993
994         [iOS] Get code to compile on older iOS versions
995         https://bugs.webkit.org/show_bug.cgi?id=130142
996         <rdar://problem/16302908>
997
998         Reviewed by Darin Adler.
999
1000         * History/WebHistory.mm:
1001         (getDayBoundaries):
1002         * Plugins/WebPluginController.h:
1003         * Plugins/WebPluginController.mm:
1004         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
1005         * WebCoreSupport/WebFrameLoaderClient.mm:
1006         (pluginView):
1007         * WebView/WebPreferences.mm:
1008         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
1009         * WebView/WebPreferencesPrivate.h:
1010
1011 2014-03-20  Lucas Forschler  <lforschler@apple.com>
1012
1013     Rollout r165944.  Build break.
1014     
1015 2014-03-19  Pratik Solanki  <psolanki@apple.com>
1016
1017         [iOS] Get code to compile on older iOS versions
1018         https://bugs.webkit.org/show_bug.cgi?id=130142
1019         <rdar://problem/16302908>
1020
1021         Reviewed by Darin Adler.
1022
1023         * History/WebHistory.mm:
1024         (getDayBoundaries):
1025         * Plugins/WebPluginController.h:
1026         * Plugins/WebPluginController.mm:
1027         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
1028         * WebCoreSupport/WebFrameLoaderClient.mm:
1029         (pluginView):
1030         * WebView/WebPreferences.mm:
1031         (-[WebPreferences _setAllowCompositingLayerVisualDegradation:]):
1032         * WebView/WebPreferencesPrivate.h:
1033
1034 2014-03-19  Jer Noble  <jer.noble@apple.com>
1035
1036         [Mac][EME] Query whether decoder support exists before creating a new MediaKeys object.
1037         https://bugs.webkit.org/show_bug.cgi?id=130459
1038
1039         Reviewed by Eric Carlson.
1040
1041         * WebCoreSupport/WebSystemInterface.mm:
1042         (InitWebCoreSystemInterface): Initialize the new WCSI method.
1043
1044 2014-03-19  Brady Eidson  <beidson@apple.com>
1045
1046         Filter out editable services from image menu for non-contenteditable images
1047         <rdar://problem/16319645> and https://bugs.webkit.org/show_bug.cgi?id=130437
1048
1049         Reviewed by Tim Horton.
1050
1051         * Misc/WebSharingServicePickerController.h:
1052         * Misc/WebSharingServicePickerController.mm:
1053         (-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
1054           Filter out editing services based on the includeEditorServices flag.
1055         * WebCoreSupport/WebContextMenuClient.mm:
1056         (WebContextMenuClient::contextMenuForEvent):
1057
1058 2014-03-19  Jer Noble  <jer.noble@apple.com>
1059
1060         [iOS] Disable the video plugin proxy by default on WK1.
1061         https://bugs.webkit.org/show_bug.cgi?id=130460
1062
1063         Reviewed by Eric Carlson.
1064
1065         Update the defaults to universally enable the AVFoundationEnabled preference, disable the
1066         VideoPluginProxyEnabled preference, and on iOS only enable the AVKitEnabled preference.
1067
1068         * WebView/WebPreferences.mm:
1069         (+[WebPreferences initialize]):
1070
1071 2014-03-18  Samuel White  <samuel_white@apple.com>
1072
1073         AX: Not able to use arrow keys to read text with VoiceOver before selection is set someplace (anyplace).
1074         https://bugs.webkit.org/show_bug.cgi?id=130250
1075
1076         Reviewed by Chris Fleizach.
1077
1078         Added ability to toggle enhanced accessibility on and off to support tests that require it.
1079
1080         * WebView/WebFrame.mm:
1081         (-[WebFrame enhancedAccessibilityEnabled]):
1082         (-[WebFrame setEnhancedAccessibility:]):
1083         * WebView/WebFramePrivate.h:
1084
1085 2014-03-17  Filip Pizlo  <fpizlo@apple.com>
1086
1087         More FTL enabling.
1088
1089         Rubber stamped by Dan Bernstein.
1090
1091         * Configurations/FeatureDefines.xcconfig:
1092
1093 2014-03-17  Andy Estes  <aestes@apple.com>
1094
1095         Remove staging code added for <http://webkit.org/b/129358> [iOS] Support network state notification using CPNetworkObserver
1096
1097         Reviewed by Enrica Casucci.
1098
1099         * WebView/WebView.mm:
1100
1101 2014-03-17  Anders Carlsson  <andersca@apple.com>
1102
1103         WebKitLegacy headers should #import the relevant WebKit headers
1104         https://bugs.webkit.org/show_bug.cgi?id=130372
1105         <rdar://problem/16349094>
1106
1107         Reviewed by Dan Bernstein.
1108
1109         Create forwarding headers instead.
1110
1111         * WebKitLegacy/MigrateHeadersToLegacy.make:
1112
1113 2014-03-17  Tim Horton  <timothy_horton@apple.com>
1114
1115         Rename WKThumbnailView to _WKThumbnailView
1116         https://bugs.webkit.org/show_bug.cgi?id=130361
1117
1118         Reviewed by Anders Carlsson.
1119
1120         * MigrateHeaders.make:
1121
1122 2014-03-17  David Farler  <dfarler@apple.com>
1123
1124         REGRESSION: WebKitLegacy causes ASan build to fail
1125         <rdar://problem/16344326>
1126
1127         Reviewed by David Kilzer.
1128
1129         * Configurations/DebugRelease.xcconfig: Remove $(inherited) from
1130         OTHER_CFLAGS, OTHER_CPLUSPLUSFLAGS, OTHER_LDFLAGS to prevent
1131         double complete ASAN flags.
1132
1133 2014-03-16  Brent Fulgham  <bfulgham@apple.com>
1134
1135         Provide preference to enable additional AVFoundation options
1136         https://bugs.webkit.org/show_bug.cgi?id=130275
1137
1138         Reviewed by Eric Carlson.
1139
1140         * WebView/WebPreferenceKeysPrivate.h: Added new preference.
1141         * WebView/WebPreferences.mm:
1142         (+[WebPreferences initialize]): Initialize preference to false.
1143         (-[WebPreferences isInheritURIQueryComponentEnabled]): Added.
1144         (-[WebPreferences setEnableInheritURIQueryComponent:]): Added.
1145         * WebView/WebPreferencesPrivate.h:
1146         * WebView/WebView.mm:
1147         (-[WebView _preferencesChanged:]): Handle new preference.
1148
1149 2014-03-16  Darin Adler  <darin@apple.com>
1150
1151         Remove all deprecatedCharacters use from WebKit directory
1152         https://bugs.webkit.org/show_bug.cgi?id=130305
1153
1154         Reviewed by Andreas Kling.
1155
1156         * History/BinaryPropertyList.cpp:
1157         (BinaryPropertyListSerializer::appendStringObject): Use operator[]
1158         instead of deprecatedCharacters.
1159
1160 2014-03-14  Mark Rowe  <mrowe@apple.com>
1161
1162         Fix the production build.
1163
1164         Don't rely on USE_INTERNAL_SDK being set for the Production configuration since UseInternalSDK.xcconfig won't
1165         be at the expected relative path when working from installed source.
1166
1167         * Configurations/Base.xcconfig:
1168
1169 2014-03-14  Maciej Stachowiak  <mjs@apple.com>
1170
1171         Replace "Apple Computer, Inc." with "Apple Inc." in copyright headers
1172         https://bugs.webkit.org/show_bug.cgi?id=130276
1173         <rdar://problem/16266927>
1174         
1175         Reviewed by Simon Fraser.
1176
1177         * Carbon/CarbonUtils.h:
1178         * Carbon/CarbonUtils.m:
1179         * Carbon/CarbonWindowAdapter.h:
1180         * Carbon/CarbonWindowAdapter.mm:
1181         * Carbon/CarbonWindowContentView.h:
1182         * Carbon/CarbonWindowContentView.m:
1183         * Carbon/CarbonWindowFrame.h:
1184         * Carbon/CarbonWindowFrame.m:
1185         * Carbon/HIViewAdapter.h:
1186         * Carbon/HIViewAdapter.m:
1187         * Carbon/HIWebView.h:
1188         * Carbon/HIWebView.mm:
1189         * DOM/WebDOMOperations.h:
1190         * DOM/WebDOMOperations.mm:
1191         * DOM/WebDOMOperationsInternal.h:
1192         * DOM/WebDOMOperationsPrivate.h:
1193         * DefaultDelegates/WebDefaultContextMenuDelegate.h:
1194         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1195         * DefaultDelegates/WebDefaultEditingDelegate.h:
1196         * DefaultDelegates/WebDefaultEditingDelegate.m:
1197         * DefaultDelegates/WebDefaultPolicyDelegate.h:
1198         * DefaultDelegates/WebDefaultPolicyDelegate.m:
1199         * DefaultDelegates/WebDefaultUIDelegate.h:
1200         * DefaultDelegates/WebDefaultUIDelegate.m:
1201         * History/WebBackForwardList.h:
1202         * History/WebBackForwardList.mm:
1203         * History/WebBackForwardListInternal.h:
1204         * History/WebBackForwardListPrivate.h:
1205         * History/WebHistory.h:
1206         * History/WebHistory.mm:
1207         * History/WebHistoryInternal.h:
1208         * History/WebHistoryItem.h:
1209         * History/WebHistoryItem.mm:
1210         * History/WebHistoryItemInternal.h:
1211         * History/WebHistoryItemPrivate.h:
1212         * History/WebHistoryPrivate.h:
1213         * History/WebURLsWithTitles.h:
1214         * History/WebURLsWithTitles.m:
1215         * MigrateHeaders.make:
1216         * Misc/OldWebAssertions.c:
1217         * Misc/WebCache.h:
1218         * Misc/WebCache.mm:
1219         * Misc/WebCoreStatistics.h:
1220         * Misc/WebCoreStatistics.mm:
1221         * Misc/WebDownload.h:
1222         * Misc/WebDownload.mm:
1223         * Misc/WebDownloadInternal.h:
1224         * Misc/WebElementDictionary.h:
1225         * Misc/WebElementDictionary.mm:
1226         * Misc/WebIconDatabase.h:
1227         * Misc/WebIconDatabase.mm:
1228         * Misc/WebIconDatabaseDelegate.h:
1229         * Misc/WebIconDatabaseInternal.h:
1230         * Misc/WebIconDatabasePrivate.h:
1231         * Misc/WebKit.h:
1232         * Misc/WebKitErrors.h:
1233         * Misc/WebKitErrors.m:
1234         * Misc/WebKitErrorsPrivate.h:
1235         * Misc/WebKitLogging.h:
1236         * Misc/WebKitLogging.m:
1237         * Misc/WebKitNSStringExtras.h:
1238         * Misc/WebKitNSStringExtras.mm:
1239         * Misc/WebKitStatistics.h:
1240         * Misc/WebKitStatistics.m:
1241         * Misc/WebKitStatisticsPrivate.h:
1242         * Misc/WebKitSystemBits.h:
1243         * Misc/WebKitSystemBits.m:
1244         * Misc/WebKitVersionChecks.h:
1245         * Misc/WebKitVersionChecks.m:
1246         * Misc/WebLocalizableStrings.h:
1247         * Misc/WebLocalizableStrings.mm:
1248         * Misc/WebNSArrayExtras.h:
1249         * Misc/WebNSArrayExtras.m:
1250         * Misc/WebNSControlExtras.h:
1251         * Misc/WebNSControlExtras.m:
1252         * Misc/WebNSDataExtras.h:
1253         * Misc/WebNSDataExtras.m:
1254         * Misc/WebNSDataExtrasPrivate.h:
1255         * Misc/WebNSDictionaryExtras.h:
1256         * Misc/WebNSDictionaryExtras.m:
1257         * Misc/WebNSEventExtras.h:
1258         * Misc/WebNSEventExtras.m:
1259         * Misc/WebNSFileManagerExtras.h:
1260         * Misc/WebNSFileManagerExtras.mm:
1261         * Misc/WebNSImageExtras.h:
1262         * Misc/WebNSImageExtras.m:
1263         * Misc/WebNSObjectExtras.h:
1264         * Misc/WebNSObjectExtras.mm:
1265         * Misc/WebNSPasteboardExtras.h:
1266         * Misc/WebNSPasteboardExtras.mm:
1267         * Misc/WebNSPrintOperationExtras.h:
1268         * Misc/WebNSPrintOperationExtras.m:
1269         * Misc/WebNSURLExtras.h:
1270         * Misc/WebNSURLExtras.mm:
1271         * Misc/WebNSURLRequestExtras.h:
1272         * Misc/WebNSURLRequestExtras.m:
1273         * Misc/WebNSUserDefaultsExtras.h:
1274         * Misc/WebNSUserDefaultsExtras.mm:
1275         * Misc/WebNSViewExtras.h:
1276         * Misc/WebNSViewExtras.m:
1277         * Misc/WebNSWindowExtras.h:
1278         * Misc/WebNSWindowExtras.m:
1279         * Misc/WebStringTruncator.h:
1280         * Misc/WebStringTruncator.mm:
1281         * Misc/WebTypesInternal.h:
1282         * Panels/WebAuthenticationPanel.h:
1283         * Panels/WebAuthenticationPanel.m:
1284         * Panels/WebPanelAuthenticationHandler.h:
1285         * Panels/WebPanelAuthenticationHandler.m:
1286         * Plugins/Hosted/ProxyRuntimeObject.h:
1287         * Plugins/Hosted/ProxyRuntimeObject.mm:
1288         * Plugins/WebBaseNetscapePluginView.h:
1289         * Plugins/WebBaseNetscapePluginView.mm:
1290         * Plugins/WebBasePluginPackage.h:
1291         * Plugins/WebBasePluginPackage.mm:
1292         * Plugins/WebJavaPlugIn.h:
1293         * Plugins/WebNetscapeContainerCheckContextInfo.h:
1294         * Plugins/WebNetscapeContainerCheckPrivate.h:
1295         * Plugins/WebNetscapeContainerCheckPrivate.mm:
1296         * Plugins/WebNetscapePluginPackage.h:
1297         * Plugins/WebNetscapePluginPackage.mm:
1298         * Plugins/WebNetscapePluginStream.h:
1299         * Plugins/WebNetscapePluginStream.mm:
1300         * Plugins/WebNetscapePluginView.h:
1301         * Plugins/WebNetscapePluginView.mm:
1302         * Plugins/WebPlugin.h:
1303         * Plugins/WebPluginContainer.h:
1304         * Plugins/WebPluginContainerCheck.h:
1305         * Plugins/WebPluginContainerCheck.mm:
1306         * Plugins/WebPluginContainerPrivate.h:
1307         * Plugins/WebPluginController.h:
1308         * Plugins/WebPluginController.mm:
1309         * Plugins/WebPluginDatabase.h:
1310         * Plugins/WebPluginDatabase.mm:
1311         * Plugins/WebPluginPackage.h:
1312         * Plugins/WebPluginPackage.mm:
1313         * Plugins/WebPluginRequest.h:
1314         * Plugins/WebPluginRequest.m:
1315         * Plugins/WebPluginViewFactory.h:
1316         * Plugins/WebPluginViewFactoryPrivate.h:
1317         * Plugins/WebPluginsPrivate.h:
1318         * Plugins/WebPluginsPrivate.m:
1319         * Plugins/npapi.mm:
1320         * Storage/WebDatabaseManager.mm:
1321         * Storage/WebDatabaseManagerInternal.h:
1322         * Storage/WebDatabaseManagerPrivate.h:
1323         * WebCoreSupport/SearchPopupMenuMac.mm:
1324         * WebCoreSupport/WebAlternativeTextClient.h:
1325         * WebCoreSupport/WebAlternativeTextClient.mm:
1326         * WebCoreSupport/WebCachedFramePlatformData.h:
1327         * WebCoreSupport/WebChromeClient.h:
1328         * WebCoreSupport/WebChromeClient.mm:
1329         * WebCoreSupport/WebContextMenuClient.h:
1330         * WebCoreSupport/WebContextMenuClient.mm:
1331         * WebCoreSupport/WebDragClient.h:
1332         * WebCoreSupport/WebDragClient.mm:
1333         * WebCoreSupport/WebEditorClient.h:
1334         * WebCoreSupport/WebEditorClient.mm:
1335         * WebCoreSupport/WebFrameLoaderClient.h:
1336         * WebCoreSupport/WebFrameLoaderClient.mm:
1337         * WebCoreSupport/WebIconDatabaseClient.h:
1338         * WebCoreSupport/WebIconDatabaseClient.mm:
1339         * WebCoreSupport/WebInspectorClient.h:
1340         * WebCoreSupport/WebInspectorClient.mm:
1341         * WebCoreSupport/WebJavaScriptTextInputPanel.h:
1342         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1343         * WebCoreSupport/WebSecurityOrigin.mm:
1344         * WebCoreSupport/WebSecurityOriginInternal.h:
1345         * WebCoreSupport/WebSecurityOriginPrivate.h:
1346         * WebCoreSupport/WebSystemInterface.h:
1347         * WebCoreSupport/WebSystemInterface.mm:
1348         * WebInspector/WebInspector.h:
1349         * WebInspector/WebInspector.mm:
1350         * WebInspector/WebInspectorPrivate.h:
1351         * WebInspector/WebNodeHighlight.h:
1352         * WebInspector/WebNodeHighlight.mm:
1353         * WebInspector/WebNodeHighlightView.h:
1354         * WebInspector/WebNodeHighlightView.mm:
1355         * WebInspector/WebNodeHighlighter.h:
1356         * WebInspector/WebNodeHighlighter.mm:
1357         * WebKitLegacy/MigrateHeadersToLegacy.make:
1358         * WebKitPrefix.h:
1359         * WebView/WebArchive.h:
1360         * WebView/WebArchive.mm:
1361         * WebView/WebArchiveInternal.h:
1362         * WebView/WebClipView.h:
1363         * WebView/WebClipView.mm:
1364         * WebView/WebDashboardRegion.h:
1365         * WebView/WebDashboardRegion.mm:
1366         * WebView/WebDataSource.h:
1367         * WebView/WebDataSource.mm:
1368         * WebView/WebDataSourceInternal.h:
1369         * WebView/WebDataSourcePrivate.h:
1370         * WebView/WebDelegateImplementationCaching.h:
1371         * WebView/WebDelegateImplementationCaching.mm:
1372         * WebView/WebDocument.h:
1373         * WebView/WebDocumentInternal.h:
1374         * WebView/WebDocumentLoaderMac.h:
1375         * WebView/WebDocumentLoaderMac.mm:
1376         * WebView/WebDocumentPrivate.h:
1377         * WebView/WebDynamicScrollBarsViewInternal.h:
1378         * WebView/WebEditingDelegate.h:
1379         * WebView/WebEditingDelegatePrivate.h:
1380         * WebView/WebFormDelegate.h:
1381         * WebView/WebFormDelegate.m:
1382         * WebView/WebFormDelegatePrivate.h:
1383         * WebView/WebFrame.h:
1384         * WebView/WebFrame.mm:
1385         * WebView/WebFrameInternal.h:
1386         * WebView/WebFrameLoadDelegate.h:
1387         * WebView/WebFrameLoadDelegatePrivate.h:
1388         * WebView/WebFramePrivate.h:
1389         * WebView/WebFrameView.h:
1390         * WebView/WebFrameView.mm:
1391         * WebView/WebFrameViewInternal.h:
1392         * WebView/WebFrameViewPrivate.h:
1393         * WebView/WebHTMLRepresentation.h:
1394         * WebView/WebHTMLRepresentation.mm:
1395         * WebView/WebHTMLRepresentationPrivate.h:
1396         * WebView/WebHTMLView.h:
1397         * WebView/WebHTMLView.mm:
1398         * WebView/WebHTMLViewInternal.h:
1399         * WebView/WebHTMLViewPrivate.h:
1400         * WebView/WebNotification.h:
1401         * WebView/WebNotification.mm:
1402         * WebView/WebNotificationInternal.h:
1403         * WebView/WebPDFRepresentation.h:
1404         * WebView/WebPDFRepresentation.mm:
1405         * WebView/WebPDFView.h:
1406         * WebView/WebPDFView.mm:
1407         * WebView/WebPolicyDelegate.h:
1408         * WebView/WebPolicyDelegate.mm:
1409         * WebView/WebPolicyDelegatePrivate.h:
1410         * WebView/WebPreferenceKeysPrivate.h:
1411         * WebView/WebPreferences.h:
1412         * WebView/WebPreferences.mm:
1413         * WebView/WebPreferencesPrivate.h:
1414         * WebView/WebRenderLayer.h:
1415         * WebView/WebRenderLayer.mm:
1416         * WebView/WebRenderNode.h:
1417         * WebView/WebRenderNode.mm:
1418         * WebView/WebResource.h:
1419         * WebView/WebResource.mm:
1420         * WebView/WebResourceInternal.h:
1421         * WebView/WebResourceLoadDelegate.h:
1422         * WebView/WebResourceLoadDelegatePrivate.h:
1423         * WebView/WebResourcePrivate.h:
1424         * WebView/WebScriptDebugDelegate.h:
1425         * WebView/WebScriptDebugDelegate.mm:
1426         * WebView/WebScriptDebugger.h:
1427         * WebView/WebScriptDebugger.mm:
1428         * WebView/WebTextCompletionController.mm:
1429         * WebView/WebUIDelegate.h:
1430         * WebView/WebUIDelegatePrivate.h:
1431         * WebView/WebView.h:
1432         * WebView/WebView.mm:
1433         * WebView/WebViewData.h:
1434         * WebView/WebViewData.mm:
1435         * WebView/WebViewInternal.h:
1436         * WebView/WebViewPrivate.h:
1437
1438 2014-03-14  Ryosuke Niwa  <rniwa@webkit.org>
1439
1440         REGRESSION(r165385): [WebTextIterator currentRange] crashes
1441         https://bugs.webkit.org/show_bug.cgi?id=130271
1442
1443         Reviewed by Anders Carlsson.
1444
1445         After r165385, TextIterator::range no longer checked the nullity of m_positionNode. As a result,
1446         [WebTextIterator currentRange] which simply calls TextIterator::range crashes when an application
1447         that embeds WebKit doesn't check [WebTextIterator atEnd] first.
1448
1449         Preserve the old public API behavior by checking atEnd in [WebTextIterator currentRange].
1450
1451         * WebView/WebTextIterator.mm:
1452         (-[WebTextIterator currentRange]):
1453
1454 2014-03-12  Sergio Villar Senin  <svillar@igalia.com>
1455
1456         Rename DEFINE_STATIC_LOCAL to DEPRECATED_DEFINE_STATIC_LOCAL
1457         https://bugs.webkit.org/show_bug.cgi?id=129612
1458
1459         Reviewed by Darin Adler.
1460
1461         For new code use static NeverDestroyed<T> instead.
1462
1463         * History/WebBackForwardList.mm:
1464         (backForwardLists):
1465         * History/WebHistoryItem.mm:
1466         (historyItemWrappers):
1467         * Misc/WebNSPasteboardExtras.mm:
1468         (+[NSPasteboard _web_writableTypesForURL]):
1469         (_writableTypesForImageWithoutArchive):
1470         (_writableTypesForImageWithArchive):
1471         * Misc/WebStringTruncator.mm:
1472         (fontFromNSFont):
1473         * Plugins/Hosted/NetscapePluginHostManager.mm:
1474         (WebKit::NetscapePluginHostManager::shared):
1475         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1476         (WebKit::pluginProxyMap):
1477         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1478         (WebKit::globalExceptionString):
1479         * Plugins/Hosted/ProxyInstance.mm:
1480         (WebKit::proxyClass):
1481         * Plugins/WebNetscapePluginStream.mm:
1482         (streams):
1483         * Storage/WebDatabaseManager.mm:
1484         (transactionBackgroundTaskIdentifierLock):
1485         * WebCoreSupport/WebUserMediaClient.mm:
1486         (userMediaRequestsMap):
1487         * WebView/WebHTMLRepresentation.mm:
1488         (regExpForLabels):
1489         * WebView/WebView.mm:
1490         (aeDescFromJSValue):
1491
1492 2014-03-13  Tim Horton  <timothy_horton@apple.com>
1493
1494         Fix relative paths to UseInternalSDK.xcconfig for ANGLE and WebKit/mac
1495
1496         Rubber-stamped by Mark Rowe.
1497
1498         One-too-few "..".
1499
1500         * Configurations/Base.xcconfig:
1501
1502 2014-03-13  Anders Carlsson  <andersca@apple.com>
1503
1504         Fix build.
1505
1506         * Misc/WebSharingServicePickerController.mm:
1507
1508 2014-03-13  Radu Stavila  <stavila@adobe.com>
1509
1510         Webkit not building on XCode 5.1 due to garbage collection no longer being supported
1511         https://bugs.webkit.org/show_bug.cgi?id=130087
1512
1513         Reviewed by Mark Rowe.
1514
1515         Disable garbage collection on macosx when not using internal SDK.
1516
1517         * Configurations/Base.xcconfig:
1518
1519 2014-03-10  Darin Adler  <darin@apple.com>
1520
1521         Avoid copy-prone idiom "for (auto item : collection)"
1522         https://bugs.webkit.org/show_bug.cgi?id=129990
1523
1524         Reviewed by Geoffrey Garen.
1525
1526         * WebView/WebFrame.mm:
1527         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
1528         Use auto*. Also removed uneeded ASSERT_NO_EXCEPTION, which is already
1529         the default without specifying it explicitly.
1530
1531 2014-03-12  Brian Burg  <bburg@apple.com>
1532
1533         Web Inspector: Remove unused callId parameter from evaluateInWebInspector
1534         https://bugs.webkit.org/show_bug.cgi?id=129744
1535
1536         Reviewed by Timothy Hatcher.
1537
1538         * WebInspector/WebInspector.mm:
1539         (-[WebInspector evaluateInFrontend:script:]):
1540         * WebInspector/WebInspectorPrivate.h:
1541
1542 2014-03-12  Dean Jackson  <dino@apple.com>
1543
1544         [WebGL] WebKit1 + WebKit2 iOS clients should check load policy
1545         https://bugs.webkit.org/show_bug.cgi?id=130162
1546
1547         Reviewed by Simon Fraser.
1548
1549         Implement the webGLPolicyForURL methods, calling into WebKitSystemInterface.
1550
1551         * Configurations/WebKit.xcconfig: Add MobileAsset to iOS config.
1552         * WebCoreSupport/WebFrameLoaderClient.h:
1553         * WebCoreSupport/WebFrameLoaderClient.mm:
1554
1555 2014-03-12  Joseph Pecoraro  <pecoraro@apple.com>
1556
1557         Web Inspector: Disable REMOTE_INSPECTOR in earlier OS X releases
1558         https://bugs.webkit.org/show_bug.cgi?id=130118
1559
1560         Reviewed by Timothy Hatcher.
1561
1562         * Configurations/FeatureDefines.xcconfig:
1563
1564         * WebCoreSupport/WebInspectorClient.mm:
1565         (WebInspectorClient::indicate):
1566         (WebInspectorClient::hideIndication):
1567         Properly guard REMOTE_INSPECTOR only calls.
1568
1569 2014-03-12  Tim Horton  <timothy_horton@apple.com>
1570
1571         Build fix for ENABLE(IMAGE_CONTROLS) after 165479
1572
1573         * Misc/WebSharingServicePickerController.h:
1574         * Misc/WebSharingServicePickerController.mm:
1575         Don't use new-runtime features in code that has to build 32-bit.
1576
1577 2014-03-12  Anders Carlsson  <andersca@apple.com>
1578
1579         <rdar://problem/16307346> Add new WebKitLegacy.framework.
1580
1581         Reviewed by Dan Bernstein.
1582
1583         * Configurations/WebKitLegacy.xcconfig:
1584         Add xcconfig file for the new framework.
1585
1586         * WebKitLegacy/Info.plist:
1587         Add Info.plist for WebKitLegacy.framework.
1588
1589         * WebKitLegacy/MigrateHeadersToLegacy.make:
1590         Add makefile that copies headers from WebKit to WebKitLegacy and rewrites includes from WebKit/ to WebKitLegacy/
1591         * WebKitLegacy/WebKitLegacy.cpp:
1592         Add an empty file so we'll have something to link.
1593
1594 2014-03-12  Tim Horton  <timothy_horton@apple.com>
1595
1596         Hook up image controls for WebKit1
1597         https://bugs.webkit.org/show_bug.cgi?id=130062
1598         <rdar://problem/15964809>
1599
1600         Reviewed by Brady Eidson.
1601
1602         * Misc/WebSharingServicePickerController.h: Added.
1603         * Misc/WebSharingServicePickerController.mm: Added.
1604         (-[WebSharingServicePickerController initWithImage:menuClient:]):
1605         (-[WebSharingServicePickerController menu]):
1606         (-[WebSharingServicePickerController sharingServicePicker:delegateForSharingService:]):
1607         (-[WebSharingServicePickerController sharingServicePicker:didChooseSharingService:]):
1608         (-[WebSharingServicePickerController sharingService:didShareItems:]):
1609         (-[WebSharingServicePickerController sharingService:didFailToShareItems:error:]):
1610         (-[WebSharingServicePickerController sharingService:sourceWindowForShareItems:sharingContentScope:]):
1611         Add a NSSharingServiceDelegate and NSSharingServicePickerDelegate, which will also
1612         provide a NSMenu instance for WebContextMenuClient to pop up when image controls are needed.
1613         When data is returned from the service, it is re-inserted into the image via replaceControlledImage.
1614
1615         * WebCoreSupport/WebContextMenuClient.h:
1616         * WebCoreSupport/WebContextMenuClient.mm:
1617         (WebContextMenuClient::contextMenuForEvent):
1618         Factor out code to decide which NSMenu to use, so that we can use early-returns to simplify it.
1619         If we hit an image with image controls, use the WebSharingServicePickerController's menu.
1620
1621         (WebContextMenuClient::showContextMenu):
1622         (WebContextMenuClient::clearSharingServicePickerController):
1623
1624 2014-03-10  Jer Noble  <jer.noble@apple.com>
1625
1626         [iOS][WK1] Crash in HTMLMediaElement::createElementRenderer() - "-[NSSet addObject:]: object cannot be nil"
1627         https://bugs.webkit.org/show_bug.cgi?id=129634
1628
1629         Reviewed by Eric Carlson.
1630
1631         If a plugin fails to create a NSView, a nil object is inserted into the WebPluginController's
1632         pluginViews set. This is an exceptional case, so add an ASSERT so that this error will continue
1633         to occur in debug builds, but also add an early return so as not to crash release builds.
1634
1635         * Plugins/WebPluginController.mm:
1636         (+[WebPluginController addPlugInView:]):
1637
1638 2014-03-06  Alexey Proskuryakov  <ap@apple.com>
1639
1640         [Mac] Don't perform a round-trip through WebProcess before interpreting key events
1641         https://bugs.webkit.org/show_bug.cgi?id=129812
1642
1643         Reviewed by Darin Adler.
1644
1645         * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::handleInputMethodKeydown):
1646         Added a FIXME. WebKit1/mac is the only port that uses this roundabout way to
1647         interpret events, so it would simplify code if we switched it to WebKit2/mac model.
1648
1649 2014-03-08  Simon Fraser  <simon.fraser@apple.com>
1650
1651         [iOS Wk2] Can't scroll after going back to page in page cache
1652         https://bugs.webkit.org/show_bug.cgi?id=129989
1653         <rdar://problem/16217588>
1654
1655         Reviewed by Dan Bernstein.
1656
1657         iOS has a special FrameLoader::forceLayoutWithoutRecalculatingStyle()
1658         function that is called instead of FrameView::forceLayout(). This was unimplemented
1659         for the WK2 FrameLoaderClient, so no layout was forced, with the result
1660         that the contentSize was never updated and scrolling was broken.
1661         
1662         Fix by renaming the client function to forceLayoutOnRestoreFromPageCache()
1663         and having it return a bool to say whether the default forceLayout()
1664         should be done. WK1 can then continue to have its custom behavior,
1665         and Wk2 will simply do a forceLayout().
1666         
1667         Also remove FrameLaoderClient::forceLayout(), which was never called.
1668
1669         * WebCoreSupport/WebFrameLoaderClient.h:
1670         * WebCoreSupport/WebFrameLoaderClient.mm:
1671         (WebFrameLoaderClient::forceLayoutOnRestoreFromPageCache):
1672
1673 2014-03-07  Anders Carlsson  <andersca@apple.com>
1674
1675         Add the remaining WebKit2 headers to WEBKIT2_HEADERS
1676         https://bugs.webkit.org/show_bug.cgi?id=129942
1677         <rdar://problem/15920020>
1678
1679         Reviewed by Tim Horton.
1680
1681         * MigrateHeaders.make:
1682
1683 2014-03-07  Anders Carlsson  <andersca@apple.com>
1684
1685         MigrateHeaders.make should remove C SPI includes from WebKit2 headers
1686         https://bugs.webkit.org/show_bug.cgi?id=129937
1687         <rdar://problem/15920020>
1688
1689         Reviewed by Tim Horton.
1690
1691         * MigrateHeaders.make:
1692         Add WKPreferences.h to WEBKIT2_HEADERS. 
1693         Add a sed rule that deletes all lines that start with a # and contain <WebKit/*Ref.h>.
1694
1695 2014-03-07  Anders Carlsson  <andersca@apple.com>
1696
1697         Make it possible to copy WebKit2 headers to WebKit.framework
1698         https://bugs.webkit.org/show_bug.cgi?id=129935
1699         <rdar://problem/15920020>
1700
1701         Reviewed by Dan Bernstein.
1702
1703         * MigrateHeaders.make:
1704         Gather a list of public and private WebKit2 headers and filter them against the WEBKIT2_HEADERS list.
1705         The matching headers are copied to the respective Headers or PrivateHeaders directories under WebKit.framework,
1706         and also have their #imports rewritten to reference WebKit instead of WebKit2.
1707
1708         * migrate-headers.sh: Added.
1709         Set up the WEBKIT2_FRAMEWORKS_DIR if needed.
1710
1711 2014-03-07  Anders Carlsson  <andersca@apple.com>
1712
1713         Fix a typo
1714         <rdar://problem/15920020>
1715
1716         Rubber-stamped by Dan Bernstein.
1717
1718         * Configurations/WebKit.xcconfig:
1719
1720 2014-03-07  Anders Carlsson  <andersca@apple.com>
1721
1722         Tweak the WebKit2 frameworks directories
1723         https://bugs.webkit.org/show_bug.cgi?id=129910
1724         <rdar://problem/15920020>
1725
1726         Reviewed by Dan Bernstein.
1727
1728         Use an SDK relative directory for production builds.
1729
1730         * Configurations/WebKit.xcconfig:
1731
1732 2014-03-07  Anders Carlsson  <andersca@apple.com>
1733
1734         Link WebKit.framework against WebKit2.framework and re-export all WebKit2 symbols
1735         https://bugs.webkit.org/show_bug.cgi?id=129901
1736         <rdar://problem/15920020>
1737
1738         Reviewed by Andreas Kling.
1739
1740         * Configurations/WebKit.xcconfig:
1741
1742 2014-03-06  Joseph Pecoraro  <pecoraro@apple.com>
1743
1744         Web Inspector: Expose the console object in JSContexts to interact with Web Inspector
1745         https://bugs.webkit.org/show_bug.cgi?id=127944
1746
1747         Reviewed by Geoffrey Garen.
1748
1749         * WebCoreSupport/WebChromeClient.h:
1750         * WebCoreSupport/WebChromeClient.mm:
1751         Update namespaces.
1752
1753 2014-03-05  Eric Carlson  <eric.carlson@apple.com>
1754
1755         [iOS] Show external device name/type in placeholder
1756         https://bugs.webkit.org/show_bug.cgi?id=129723
1757
1758         Reviewed by Jer Noble.
1759
1760         * WebCoreSupport/WebSystemInterface.mm:
1761         (InitWebCoreSystemInterface):
1762
1763 2014-03-05  Simon Fraser  <simon.fraser@apple.com>
1764
1765         ObjC exception when dropping files into a WKView: drag and drop uses code from WebKit.framework
1766         https://bugs.webkit.org/show_bug.cgi?id=129752
1767
1768         Reviewed by Enrica Casucci.
1769         
1770         Call URLByCanonicalizingURL() which is implemented in WebCore.
1771
1772         * Misc/WebNSURLExtras.mm:
1773         (-[NSURL _webkit_canonicalize]):
1774
1775 2014-03-04  Zalan Bujtas  <zalan@apple.com>
1776
1777         Enable device pixel repaint rect tracking.
1778         https://bugs.webkit.org/show_bug.cgi?id=129712
1779
1780         Reviewed by Simon Fraser.
1781
1782         Tracked repaint rects are device pixel snapped now to support hiDPI test cases.
1783
1784         * WebView/WebView.mm:
1785         (-[WebView trackedRepaintRects]): Keep existing behavior for now.
1786
1787 2014-03-04  Simon Fraser  <simon.fraser@apple.com>
1788
1789         Allow iOS DumpRenderTree crashes to show application-specific information
1790         https://bugs.webkit.org/show_bug.cgi?id=129705
1791
1792         Reviewed by David Kilzer.
1793
1794         Make the WKSI function SetCrashReportApplicationSpecificInformation available
1795         in iOS simulator builds.
1796
1797         * WebCoreSupport/WebSystemInterface.mm:
1798         (InitWebCoreSystemInterface):
1799
1800 2014-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
1801
1802         Merge API shims and JSLock
1803         https://bugs.webkit.org/show_bug.cgi?id=129650
1804
1805         Reviewed by Mark Lam.
1806
1807         JSLock is now taking on all of APIEntryShim's responsibilities since there is never a reason 
1808         to take just the JSLock. Ditto for DropAllLocks and APICallbackShim.
1809
1810         * WebView/WebFrame.mm:
1811         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1812
1813 2014-03-02  Darin Adler  <darin@apple.com>
1814
1815         Sort Mac platform export files so they merge better
1816         https://bugs.webkit.org/show_bug.cgi?id=129581
1817
1818         Reviewed by Sam Weinig.
1819
1820         * WebKit.exp: Ran the new sort-export-file on this.
1821
1822 2014-03-02  Darin Adler  <darin@apple.com>
1823
1824         Change public text iterator API implementations to not depend on 16-bit character pointers
1825         https://bugs.webkit.org/show_bug.cgi?id=129566
1826
1827         Reviewed by Anders Carlsson.
1828
1829         * WebView/WebTextIterator.mm:
1830         (-[WebTextIterator initWithRange:]): Use make_unique instead of adoptPtr.
1831         (-[WebTextIterator advance]): Clear out the upconverted text since we are moving on to the
1832         next text.
1833         (-[WebTextIterator currentTextPointer]): Upconvert if we have 8-bit text.
1834         (-[WebTextIterator currentTextLength]): Call TextIterator::text().length() since we will
1835         probably be removing TextIterator::length eventually.
1836
1837 2014-03-01  Pratik Solanki  <psolanki@apple.com>
1838
1839         [iOS] selectionImageForcingBlackText should return autoreleased object
1840         https://bugs.webkit.org/show_bug.cgi?id=129437
1841         <rdar://problem/15810384>
1842
1843         Reviewed by Darin Adler.
1844
1845         * WebView/WebHTMLView.mm:
1846         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]):
1847
1848 2014-02-28  Dan Bernstein  <mitz@apple.com>
1849
1850         [Mac] Remove MailQuirksUserScript.js
1851         https://bugs.webkit.org/show_bug.cgi?id=129536
1852
1853         Reviewed by Andy Estes.
1854
1855         * Configurations/WebKit.xcconfig: Removed from EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
1856         * Misc/MailQuirksUserScript.js: Removed. This file has been unused since r147447.
1857
1858 2014-02-28  Timothy Hatcher  <timothy@apple.com>
1859
1860         Properly handle when Test.html is not present in Production builds.
1861
1862         https://bugs.webkit.org/show_bug.cgi?id=129506
1863
1864         Reviewed by Joseph Pecoraro.
1865
1866         * WebCoreSupport/WebInspectorClient.mm:
1867         (-[WebInspectorWindowController inspectorTestPagePath]):
1868         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
1869
1870 2014-02-27  Brian Burg  <bburg@apple.com>
1871
1872         Web Inspector: model tests should use a special Test.html inspector page
1873         https://bugs.webkit.org/show_bug.cgi?id=129190
1874
1875         Reviewed by Timothy Hatcher.
1876
1877         Support creating a separate test inspector page, based on the value of
1878         InspectorController::isUnderTest(). Modify the navigation policy to check
1879         the URL against both normal and test inspector pages.
1880
1881         * WebCoreSupport/WebInspectorClient.mm:
1882         (WebInspectorClient::openInspectorFrontend):
1883         (-[WebInspectorWindowController init]):
1884         (-[WebInspectorWindowController initWithInspectedWebView:isUnderTest:]):
1885         Move the initial navigation of the inspector page to this method, and change
1886         the URL based on the value of InspectorController::isUnderTest().
1887
1888         (-[WebInspectorWindowController inspectorTestPagePath]): Added.
1889         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]):
1890
1891 2014-02-27  Pratik Solanki  <psolanki@apple.com>
1892
1893         Assertion failure at CachedResource.h:196: ASSERT(!m_purgeableData)
1894         https://bugs.webkit.org/show_bug.cgi?id=129349
1895         <rdar://problem/14871837>
1896
1897         Reviewed by Joseph Pecoraro.
1898
1899         The code for clearing out memory mapped notification callbacks is only needed when loading
1900         PDFs. And in such cases, we always have dataSourceDelegate object. So make this code
1901         conditional on its presence so that we don't trigger the assert for non-PDF main resources.
1902
1903         * WebView/WebDataSource.mm:
1904         (-[WebDataSource dealloc]):
1905
1906 2014-02-26  Andy Estes  <aestes@apple.com>
1907
1908         [iOS] Support network state notification using CPNetworkObserver
1909         https://bugs.webkit.org/show_bug.cgi?id=129358
1910
1911         Reviewed by Dan Bernstein.
1912
1913         * WebView/WebView.mm:
1914         (-[WebView _setNetworkStateIsOnline:]): Retained an empty
1915         implementation for binary compatibility for UIKit.
1916         (+[WebView _doNotStartObservingNetworkReachability]): Called
1917         Settings::setShouldOptOutOfNetworkStateObservation(true).
1918         * WebView/WebViewPrivate.h: Removed declaration of
1919         _setNetworkStateIsOnline: and declared
1920         _doNotStartObservingNetworkReachability.
1921
1922 2014-02-25  Anders Carlsson  <andersca@apple.com>
1923
1924         Get rid of VisitedLinkStrategy
1925         https://bugs.webkit.org/show_bug.cgi?id=129324
1926
1927         Reviewed by Dan Bernstein.
1928
1929         * WebCoreSupport/WebPlatformStrategies.h:
1930         * WebCoreSupport/WebPlatformStrategies.mm:
1931
1932 2014-02-25  Sergio Villar Senin  <svillar@igalia.com>
1933
1934         [CSS Grid Layout] Add ENABLE flag
1935         https://bugs.webkit.org/show_bug.cgi?id=129153
1936
1937         Reviewed by Simon Fraser.
1938
1939         Added ENABLE_CSS_GRID_LAYOUT feature flag.
1940
1941         * Configurations/FeatureDefines.xcconfig:
1942
1943 2014-02-24  Anders Carlsson  <andersca@apple.com>
1944
1945         Add WebViewGroup
1946         https://bugs.webkit.org/show_bug.cgi?id=129280
1947
1948         Reviewed by Dan Bernstein.
1949
1950         This is a first step towards getting rid of page groups in WebCore. The idea is that
1951         everything that is per page group in WebCore will be per page. In order to retain WebKit1 compatibility
1952         WebViewGroup is going to take over more and more responsibility from WebCore::PageGroup.
1953
1954         * WebCoreSupport/WebViewGroup.h: Added.
1955         * WebCoreSupport/WebViewGroup.mm: Added.
1956         (webViewGroups):
1957         (WebViewGroup::getOrCreate):
1958         (WebViewGroup::WebViewGroup):
1959         (WebViewGroup::~WebViewGroup):
1960         (WebViewGroup::addWebView):
1961         (WebViewGroup::removeWebView):
1962         * WebView/WebView.mm:
1963         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
1964         (-[WebView _close]):
1965         (-[WebView setGroupName:]):
1966         * WebView/WebViewData.h:
1967         * WebView/WebViewData.mm:
1968
1969 2014-02-24  Tamas Gergely  <tgergely.u-szeged@partner.samsung.com>
1970
1971         Code cleanup: remove leftover ENABLE(WORKERS) macros and support.
1972         https://bugs.webkit.org/show_bug.cgi?id=129255
1973
1974         Reviewed by Csaba Osztrogonác.
1975
1976         ENABLE_WORKERS macro was removed in r159679.
1977         Support is now also removed from xcconfig files.
1978
1979         * Configurations/FeatureDefines.xcconfig:
1980
1981 2014-02-24  David Kilzer  <ddkilzer@apple.com>
1982
1983         Remove redundant setting in FeatureDefines.xcconfig
1984
1985         * Configurations/FeatureDefines.xcconfig:
1986
1987 2014-02-23  Sam Weinig  <sam@webkit.org>
1988
1989         Update FeatureDefines.xcconfig
1990
1991         Rubber-stamped by Anders Carlsson.
1992
1993         * Configurations/FeatureDefines.xcconfig:
1994
1995 2014-02-23  Sam Weinig  <sam@webkit.org>
1996
1997         Move telephone number detection behind its own ENABLE macro
1998         https://bugs.webkit.org/show_bug.cgi?id=129236
1999
2000         Reviewed by Dean Jackson.
2001
2002         * Configurations/FeatureDefines.xcconfig:
2003         Add ENABLE_TELEPHONE_NUMBER_DETECTION.
2004
2005 2014-02-21  Sam Weinig  <sam@webkit.org>
2006
2007         Expose phase and momentum phase as SPI on DOMWheelEvent
2008         <rdar://problem/16110871>
2009         https://bugs.webkit.org/show_bug.cgi?id=129184
2010
2011         Reviewed by Anders Carlsson.
2012
2013         * DOM/WebDOMOperations.mm:
2014         (toNSEventPhase):
2015         (-[DOMWheelEvent _phase]):
2016         (-[DOMWheelEvent _momentumPhase]):
2017         * DOM/WebDOMOperationsPrivate.h:
2018         Expose _phase and _momentumPhase as SPI.
2019
2020         * MigrateHeaders.make:
2021         Make DOMWheelEventInternal.h to WebKit.
2022
2023 2014-02-22  David Kilzer  <ddkilzer@apple.com>
2024
2025         Revert r164434 since it actually broke ASan builds
2026         <http://webkit.org/b/128871>
2027
2028         * Configurations/WebKit.xcconfig: This caused -asan-blacklist to
2029         be included twice on every compiler command, which caused clang
2030         to error out.
2031
2032 2014-02-21  Brent Fulgham  <bfulgham@apple.com>
2033
2034         Extend media support for WebVTT sources
2035         https://bugs.webkit.org/show_bug.cgi?id=129156
2036
2037         Reviewed by Eric Carlson.
2038
2039         * Configurations/FeatureDefines.xcconfig: Add new feature define for AVF_CAPTIONS
2040
2041 2014-02-20  Brady Eidson  <beidson@apple.com>
2042
2043         Add very basic image control rendering
2044         https://bugs.webkit.org/show_bug.cgi?id=129080
2045
2046         Reviewed by Tim Horton.
2047
2048         Expose the imageControlsEnabled setting to WebKit1 so DRT can use it.
2049
2050         * WebView/WebPreferenceKeysPrivate.h:
2051         * WebView/WebPreferences.mm:
2052         (+[WebPreferences initialize]):
2053         (-[WebPreferences imageControlsEnabled]):
2054         (-[WebPreferences setImageControlsEnabled:]):
2055         * WebView/WebPreferencesPrivate.h:
2056
2057         * WebView/WebView.mm:
2058         (-[WebView _preferencesChanged:]):
2059
2060 2014-02-20  David Kilzer  <ddkilzer@apple.com>
2061
2062         [ASan] WebKit1 sources are not compiled using ASAN macros
2063         <http://webkit.org/b/128871>
2064
2065         Reviewed by Brent Fulgham.
2066
2067         * Configurations/WebKit.xcconfig: Use $inherited for
2068         OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS so that ASAN_OTHER_CFLAGS
2069         and ASAN_OTHER_CPLUSPLUSFLAGS are inherited from
2070         DebugRelease.xcconfig.
2071
2072 2014-02-19  Brady Eidson  <beidson@apple.com>
2073
2074         Add FeatureDefines for image controls
2075         https://bugs.webkit.org/show_bug.cgi?id=129022
2076
2077         Reviewed by Jer Noble.
2078
2079         * Configurations/FeatureDefines.xcconfig:
2080
2081 2014-02-18  Sam Weinig  <sam@webkit.org>
2082
2083         Simplify HTML tokenizer parameterization down to what is used
2084         https://bugs.webkit.org/show_bug.cgi?id=128977
2085
2086         Reviewed by Alexey Proskuryakov.
2087
2088         Remove unused _setCustomHTMLTokenizerTimeDelay and _setCustomHTMLTokenizerChunkSize SPI.
2089
2090         * WebView/WebView.mm:
2091         * WebView/WebViewPrivate.h:
2092
2093 2014-02-17  Anders Carlsson  <andersca@apple.com>
2094
2095         Remove view source code
2096         https://bugs.webkit.org/show_bug.cgi?id=127233
2097
2098         Reviewed by Antti Koivisto.
2099
2100         * WebView/WebView.mm:
2101         * WebView/WebViewPrivate.h:
2102
2103 2014-02-17  Sergio Correia  <sergio.correia@openbossa.org>
2104
2105         Replace uses of PassOwnPtr/OwnPtr with std::unique_ptr in WebCore/inspector
2106         https://bugs.webkit.org/show_bug.cgi?id=128681
2107
2108         Reviewed by Timothy Hatcher.
2109
2110         Another step towards getting rid of PassOwnPtr/OwnPtr, now targeting
2111         WebCore/inspector/*. Besides files in there, a few other files in
2112         JavaScriptCore/inspector, WebKit/, WebKit2/WebProcess/WebCoreSupport/
2113         and WebCore/testing were touched.
2114
2115         * WebCoreSupport/WebInspectorClient.h:
2116         * WebCoreSupport/WebInspectorClient.mm:
2117
2118 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
2119
2120         [Mac] Remove WebSerializedJSValue SPI
2121         https://bugs.webkit.org/show_bug.cgi?id=128720
2122
2123         Reviewed by Anders Carlsson.
2124
2125         * WebKit.exp:
2126         * WebView/WebSerializedJSValue.h: Removed.
2127         * WebView/WebSerializedJSValue.mm: Removed.
2128         * WebView/WebSerializedJSValuePrivate.h: Removed.
2129
2130 2014-02-15  Alexey Proskuryakov  <ap@apple.com>
2131
2132         [Mac] All WebKit clients should encrypt WebCrypto keys automatically
2133         https://bugs.webkit.org/show_bug.cgi?id=128852
2134
2135         Reviewed by Oliver Hunt.
2136
2137         * WebCoreSupport/WebChromeClient.mm:
2138         (WebChromeClient::wrapCryptoKey):
2139         (WebChromeClient::unwrapCryptoKey):
2140         Call the default implementation if key is not provided by a client.
2141
2142 2014-02-14  Anders Carlsson  <andersca@apple.com>
2143
2144         Control tints don't update inside WebViews
2145         https://bugs.webkit.org/show_bug.cgi?id=128862
2146
2147         Reviewed by Ryosuke Niwa.
2148
2149         * WebView/WebView.mm:
2150         (-[WebView _windowChangedKeyState]):
2151         Call [super _windowChangedKeyState].
2152
2153 2014-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
2154
2155         During a copy, position:fixed gets converted to position:absolute even if only part of the document is selected
2156         https://bugs.webkit.org/show_bug.cgi?id=128688
2157
2158         Reviewed by Ryosuke Niwa.
2159
2160         Renames the ConvertPositionStyleOnCopy setting to ShouldConvertPositionStyleOnCopy
2161
2162         * WebView/WebPreferenceKeysPrivate.h:
2163         * WebView/WebPreferences.mm:
2164         (-[WebPreferences shouldConvertPositionStyleOnCopy]):
2165         (-[WebPreferences setShouldConvertPositionStyleOnCopy:]):
2166         * WebView/WebPreferencesPrivate.h:
2167         * WebView/WebView.mm:
2168         (-[WebView _preferencesChanged:]):
2169
2170 2014-02-13  Alexey Proskuryakov  <ap@apple.com>
2171
2172         [Mac] Add a WebKit1 SPI to get WebCrypto master key from a client
2173         https://bugs.webkit.org/show_bug.cgi?id=128725
2174
2175         Reviewed by Anders Carlsson.
2176
2177         * WebCoreSupport/WebChromeClient.mm:
2178         (WebChromeClient::wrapCryptoKey):
2179         (WebChromeClient::unwrapCryptoKey):
2180         * WebView/WebUIDelegatePrivate.h:
2181         Looks like UIDelegate is the closest we have to a reasonable place.
2182
2183 2014-02-13  Dan Bernstein  <mitz@apple.com>
2184
2185         iOS build fix.
2186
2187         * WebView/WebView.mm:
2188         (+[WebView registerForMemoryNotifications]):
2189
2190 2014-02-12  Alexey Proskuryakov  <ap@apple.com>
2191
2192         Wrap WebCrypto keys in SerializedScriptValue
2193         https://bugs.webkit.org/show_bug.cgi?id=128680
2194
2195         Reviewed by Anders Carlsson.
2196
2197         Retrieve a master key (placeholder code for now), and use it to wrap key data.
2198
2199         * WebCoreSupport/WebChromeClient.mm:
2200         (WebChromeClient::wrapCryptoKey):
2201         (WebChromeClient::unwrapCryptoKey):
2202
2203 2014-02-11  Ryosuke Niwa  <rniwa@webkit.org>
2204
2205         Frame::rectForSelection shouldn't instantiate FrameSelection
2206         https://bugs.webkit.org/show_bug.cgi?id=128587
2207
2208         Reviewed by Enrica Casucci.
2209
2210         * WebCoreSupport/WebEditorClient.h:
2211         * WebCoreSupport/WebEditorClient.mm:
2212         (WebEditorClient::WebEditorClient):
2213         (WebEditorClient::respondToChangedSelection):
2214
2215 2014-02-10  Myles C. Maxfield  <mmaxfield@apple.com>
2216
2217         Convert position:sticky and position:fixed properties to position:static and position:absolute upon copy
2218         https://bugs.webkit.org/show_bug.cgi?id=128194
2219
2220         Reviewed by Simon Fraser.
2221
2222         * WebView/WebPreferenceKeysPrivate.h:
2223         * WebView/WebPreferences.mm:
2224         (-[WebPreferences convertPositionStyleOnCopy]):
2225         (-[WebPreferences setConvertPositionStyleOnCopy:]):
2226         * WebView/WebPreferencesPrivate.h: Opt-in to new behavior
2227         * WebView/WebView.mm:
2228         (-[WebView _preferencesChanged:]):
2229
2230 2014-02-11  Andy Estes  <aestes@apple.com>
2231
2232         [Mac] connection:willStopBufferingData: no longer exists in NSURLConnectionDelegate
2233         https://bugs.webkit.org/show_bug.cgi?id=128583
2234
2235         Reviewed by Anders Carlsson.
2236
2237         The delegate method was removed in Snow Leopard.
2238
2239         * Misc/WebDownload.mm:
2240
2241 2014-02-11  Alexey Proskuryakov  <ap@apple.com>
2242
2243         iOS build fix.
2244
2245         * WebCoreSupport/WebChromeClient.mm: Fixed incorrectly nested ifdefs.
2246
2247 2014-02-10  Alexey Proskuryakov  <ap@apple.com>
2248
2249         Add hooks for wrapping CryptoKeys in SerializedScriptValue
2250         https://bugs.webkit.org/show_bug.cgi?id=128567
2251
2252         Reviewed by Anders Carlsson.
2253
2254         * WebCoreSupport/WebChromeClient.h:
2255         * WebCoreSupport/WebChromeClient.mm:
2256         (WebChromeClient::wrapCryptoKey):
2257         (WebChromeClient::unwrapCryptoKey):
2258         Dummy implementation, to be filled in later.
2259
2260 2014-02-08  Ryosuke Niwa  <rniwa@webkit.org>
2261
2262         Cleanup the interface of FrameSelection
2263         https://bugs.webkit.org/show_bug.cgi?id=128481
2264
2265         Reviewed by Andreas Kling.
2266
2267         * WebView/WebHTMLView.mm:
2268         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2269         (-[WebHTMLView selectionRect]):
2270         (-[WebHTMLView selectionImageRect]):
2271
2272 2014-02-08  Dan Bernstein  <mitz@apple.com>
2273
2274         Remove use of PLATFORM(MAC) from WebKit/mac
2275         https://bugs.webkit.org/show_bug.cgi?id=128476
2276
2277         Reviewed by Anders Carlsson.
2278
2279         * WebCoreSupport/WebFrameLoaderClient.h:
2280         * WebCoreSupport/WebSystemInterface.mm:
2281         (InitWebCoreSystemInterface):
2282
2283 2014-02-08  Dan Bernstein  <mitz@apple.com>
2284
2285         Remove client-drawn highlights (-webkit-highlight, WebHTMLHighlighter)
2286         https://bugs.webkit.org/show_bug.cgi?id=128456
2287
2288         Reviewed by Anders Carlsson.
2289
2290         * WebCoreSupport/WebChromeClient.h:
2291         * WebCoreSupport/WebChromeClient.mm: Removed customHighlightRect and paintCustomHighlight.
2292         * WebView/WebHTMLView.mm:
2293         (-[WebHTMLViewPrivate dealloc]): Removed highlighters ivar.
2294         (-[WebHTMLViewPrivate clear]): Ditto.
2295         * WebView/WebHTMLViewInternal.h: Removed declaration.
2296         * WebView/WebHTMLViewPrivate.h: Removed WebHTMLHighlighter protocol and method declarations.
2297
2298 2014-02-08  Dan Bernstein  <mitz@apple.com>
2299
2300         iOS build fix after r163712.
2301
2302         * WebCoreSupport/WebEditorClient.h:
2303         * WebCoreSupport/WebEditorClient.mm:
2304
2305 2014-02-08  Darin Adler  <darin@apple.com>
2306
2307         Change TextIterator to use StringView, preparing to wean it from deprecatedCharacters
2308         https://bugs.webkit.org/show_bug.cgi?id=128233
2309
2310         Reviewed by Anders Carlsson.
2311
2312         * WebCoreSupport/WebEditorClient.h: Made most data members private. Moved inlines
2313         for iOS out of the class definition. Fixed formatting. Added missing virtual keyword.
2314         Changed interfaces to use StringView.
2315
2316         * WebCoreSupport/WebEditorClient.mm:
2317         (WebEditorClient::checkTextOfParagraph): Use the new StringView::createNSStringWithoutCopying
2318         function instead of a similar function that was local in this file.
2319         (WebEditorClient::ignoreWordInSpellDocument): Tweaked formatting.
2320         (WebEditorClient::checkSpellingOfString): Changed to take a StringView.
2321         (WebEditorClient::checkGrammarOfString): Ditto.
2322
2323         * WebView/WebTextIterator.mm:
2324         (-[WebTextIterator currentTextPointer]): Call TextIterator::deprecatedTextIteratorCharacters.
2325         (-[WebTextIterator currentText]): Convert a the text to an NSString with TextIterator::text
2326         instead of with TextIterator::characters/length.
2327
2328 2014-02-07  Gavin Barraclough  <barraclough@apple.com>
2329
2330         Remove isInitialState flag from Page::setViewState
2331         https://bugs.webkit.org/show_bug.cgi?id=128428
2332
2333         Reviewed by Sam Weinig.
2334
2335         * WebView/WebView.mm:
2336         (-[WebView _commonInitializationWithFrameName:groupName:]):
2337         (-[WebView _updateVisibilityState]):
2338         (-[WebView _setIsVisible:]):
2339         (-[WebView _setVisibilityState:isInitialState:]):
2340         (-[WebView _windowWillOrderOnScreen:]):
2341         (-[WebView _windowWillOrderOffScreen:]):
2342             - don't pass isInitialState to setViewState.
2343
2344 2014-02-06  Filip Pizlo  <fpizlo@apple.com>
2345
2346         More FTL build scaffolding
2347         https://bugs.webkit.org/show_bug.cgi?id=128330
2348
2349         Reviewed by Geoffrey Garen.
2350
2351         * Configurations/FeatureDefines.xcconfig:
2352
2353 2014-02-07  Dan Bernstein  <mitz@apple.com>
2354
2355         iOS build fix.
2356
2357         * Misc/WebElementDictionary.mm:
2358         (+[WebElementDictionary initializeLookupTable]):
2359         (-[WebElementDictionary _image]):
2360         (-[WebElementDictionary _imageRect]):
2361
2362 2014-02-06  Joseph Pecoraro  <pecoraro@apple.com>
2363
2364         Web Inspector: Add Console support to JSContext Inspection
2365         https://bugs.webkit.org/show_bug.cgi?id=127941
2366
2367         Reviewed by Geoffrey Garen.
2368
2369         * WebCoreSupport/WebChromeClient.h:
2370         * WebCoreSupport/WebChromeClient.mm:
2371         (stringForMessageSource):
2372         (stringForMessageLevel):
2373         (WebChromeClient::addMessageToConsole):
2374
2375 2014-02-05  Gavin Barraclough  <barraclough@apple.com>
2376
2377         Change Page, FocusController to use ViewState
2378         https://bugs.webkit.org/show_bug.cgi?id=126533
2379
2380         Reviewed by Tim Horton.
2381
2382         These classes currently maintain a set of separate fields to represent the view state;
2383         combine these into a single field, and allow WebPage to send the combined update rather
2384         than individual changes.
2385
2386         Maintain existing interface for WebKit1 clients.
2387
2388         * WebView/WebView.mm:
2389         (-[WebView _windowWillOrderOnScreen:]):
2390         (-[WebView _windowWillOrderOffScreen:]):
2391             - remove calls to FocusController::setContentIsVisible, these are redundant
2392               (this is handled when page visibility is set).
2393
2394 2014-02-05  Andreas Kling  <akling@apple.com>
2395
2396         Remove ENABLE(DIRECTORY_UPLOAD).
2397         <https://webkit.org/b/128275>
2398
2399         Rubber-stamped by Ryosuke Niwa.
2400
2401         * Configurations/FeatureDefines.xcconfig:
2402
2403 2014-02-05  Csaba Osztrogonác  <ossy@webkit.org>
2404
2405         Remove ENABLE(SVG) guards
2406         https://bugs.webkit.org/show_bug.cgi?id=127991
2407
2408         Reviewed by Sam Weinig.
2409
2410         * Configurations/FeatureDefines.xcconfig:
2411
2412 2014-02-04  Andreas Kling  <akling@apple.com>
2413
2414         Remove <iframe seamless> support.
2415         <https://webkit.org/b/128213>
2416
2417         Rubber-stamped by Antti Koivisto.
2418
2419         * Configurations/FeatureDefines.xcconfig:
2420         * WebView/WebPreferenceKeysPrivate.h:
2421         * WebView/WebPreferences.mm:
2422         * WebView/WebPreferencesPrivate.h:
2423         * WebView/WebView.mm:
2424         (-[WebView _preferencesChanged:]):
2425
2426 2014-02-03  Dean Jackson  <dino@apple.com>
2427
2428         Feature flag for shape-inside
2429         https://bugs.webkit.org/show_bug.cgi?id=128001
2430
2431         Reviewed by Simon Fraser.
2432
2433         Add CSS_SHAPE_INSIDE flag.
2434
2435         * Configurations/FeatureDefines.xcconfig:
2436
2437 2014-01-31  Ryosuke Niwa  <rniwa@webkit.org>
2438
2439         Remove inline member functions of FrameSelection that access m_selection
2440         https://bugs.webkit.org/show_bug.cgi?id=127986
2441
2442         Reviewed by Enrica Casucci.
2443
2444         * WebView/WebFrame.mm:
2445         (-[WebFrame hasEditableSelection]):
2446         (-[WebFrame selectionAffinity]):
2447         (-[WebFrame getDictationResultRanges:andMetadatas:]):
2448         (-[WebFrame hasRichlyEditableSelection]):
2449         (-[WebFrame focusedNodeHasContent]):
2450         * WebView/WebHTMLView.mm:
2451         (-[WebHTMLView readSelectionFromPasteboard:]):
2452         (-[WebHTMLView _hasSelection]):
2453         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
2454         (-[WebHTMLView _hasInsertionPoint]):
2455         (-[WebHTMLView _isEditable]):
2456         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2457         (-[WebHTMLView maintainsInactiveSelection]):
2458         (isTextInput):
2459         (isInPasswordField):
2460         * WebView/WebView.mm:
2461         (-[WebView selectionAffinity]):
2462
2463 2014-01-31  Tim Horton  <timothy_horton@apple.com>
2464
2465         [wk2] PlatformCALayerRemoteCustom doesn't work on iOS
2466         https://bugs.webkit.org/show_bug.cgi?id=128025
2467         <rdar://problem/15950271>
2468
2469         Reviewed by Simon Fraser.
2470
2471         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2472         (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
2473         Use the new macro name.
2474
2475 2014-01-30  David Kilzer  <ddkilzer@apple.com>
2476
2477         Add security-checked cast for WebCore::CachedImage
2478         <http://webkit.org/b/127967>
2479
2480         Reviewed by Darin Adler.
2481
2482         * Misc/WebCache.mm:
2483         (+[WebCache imageForURL:]):
2484         - Use WebCore::toCachedImage().
2485
2486 2014-01-30  David Kilzer  <ddkilzer@apple.com>
2487
2488         De-virtual-ize CachedResource::isImage()
2489         <http://webkit.org/b/127936>
2490
2491         Reviewed by Andreas Kling.
2492
2493         Also replace explicit type() checks with isImage().
2494
2495         * Misc/WebCache.mm:
2496         (+[WebCache imageForURL:]): Use !isImage().
2497
2498 2014-01-30  Beth Dakin  <bdakin@apple.com>
2499
2500         https://bugs.webkit.org/show_bug.cgi?id=127371
2501         Explore new API that could be used to help build infinitely scrolling websites
2502         -and corresponding-
2503         <rdar://problem/15244768>
2504
2505         Reviewed by Sam Weinig.
2506
2507         FrameView::scrollPositionChangedViaPlatformWidget() now take two parameters 
2508         representing the old scroll position and the new position.
2509         * WebView/WebHTMLView.mm:
2510         (-[WebHTMLView _frameOrBoundsChanged]):
2511
2512 2014-01-30  Andrei Bucur  <abucur@adobe.com>
2513
2514         Remove the ACCELERATED_COMPOSITING flag
2515         https://bugs.webkit.org/show_bug.cgi?id=127833
2516
2517         Reviewed by Antti Koivisto.
2518
2519         Remove the USE(ACCELERATED_COMPOSITING) conditionals from the code base and make AC
2520         mandatory.
2521
2522         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2523         (-[WebHostedNetscapePluginView createPlugin]):
2524         (-[WebHostedNetscapePluginView createPluginLayer]):
2525         * Plugins/WebNetscapePluginView.mm:
2526         (-[WebNetscapePluginView createPlugin]):
2527         (-[WebNetscapePluginView getVariable:value:]):
2528         * Plugins/WebPluginController.mm:
2529         (-[WebPluginController superlayerForPluginView:]):
2530         * WebCoreSupport/WebChromeClient.h:
2531         (WebChromeClient::allowedCompositingTriggers):
2532         * WebCoreSupport/WebChromeClient.mm:
2533         * WebCoreSupport/WebFrameLoaderClient.mm:
2534         (PluginWidgetIOS::detachPluginLayer):
2535         (NetscapePluginWidget::platformLayer):
2536         * WebView/WebClipView.mm:
2537         (-[WebClipView _immediateScrollToPoint:]):
2538         * WebView/WebHTMLView.mm:
2539         (setNeedsDisplayInRect):
2540         (+[WebHTMLViewPrivate initialize]):
2541         (-[WebHTMLViewPrivate clear]):
2542         (-[WebHTMLView _setAsideSubviews]):
2543         (-[WebHTMLView hitTest:]):
2544         (-[WebHTMLView _isUsingAcceleratedCompositing]):
2545         (-[WebHTMLView _compositingLayersHostingView]):
2546         (-[WebHTMLView viewDidMoveToSuperview]):
2547         (-[WebHTMLView drawRect:]):
2548         * WebView/WebHTMLViewInternal.h:
2549         * WebView/WebRenderLayer.mm:
2550         (+[WebRenderLayer compositingInfoForLayer:]):
2551         * WebView/WebView.mm:
2552         (-[WebView _close]):
2553         (-[WebView _setMediaLayer:forPluginView:]):
2554         (-[WebView _postsAcceleratedCompositingNotifications]):
2555         (-[WebView _setPostsAcceleratedCompositingNotifications:]):
2556         (-[WebView _isUsingAcceleratedCompositing]):
2557         (-[WebView _isSoftwareRenderable]):
2558         (-[WebView close]):
2559         * WebView/WebViewData.h:
2560         * WebView/WebViewData.mm:
2561         (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
2562         * WebView/WebViewInternal.h:
2563
2564 2014-01-29  Csaba Osztrogonác  <ossy@webkit.org>
2565
2566         Remove ENABLE(JAVASCRIPT_DEBUGGER) leftovers
2567         https://bugs.webkit.org/show_bug.cgi?id=127845
2568
2569         Reviewed by Joseph Pecoraro.
2570
2571         * Configurations/FeatureDefines.xcconfig:
2572
2573 2014-01-29  Dan Bernstein  <mitz@apple.com>
2574
2575         Moved linking against common frameworks and a library from the .xcconfig file into the target.
2576
2577         Reviewed by Tim Horton.
2578
2579         * Configurations/WebKit.xcconfig:
2580
2581 2014-01-29  Ryosuke Niwa  <rniwa@webkit.org>
2582
2583         checkTextOfParagraph releases NSString twice
2584         https://bugs.webkit.org/show_bug.cgi?id=127881
2585         <rdar://problem/15937446>
2586
2587         Reviewed by Anders Carlsson.
2588
2589         textString is released once by an explicit call to release and again by it going out of scope.
2590         Don't do the explicit release.
2591
2592         The bug was spotted by Sam Weinig.
2593
2594         * WebCoreSupport/WebEditorClient.mm:
2595         (WebEditorClient::checkTextOfParagraph):
2596
2597 2014-01-29  Anders Carlsson  <andersca@apple.com>
2598
2599         Fix build.
2600
2601         * WebView/WebPDFView.mm:
2602         (_applicationInfoForMIMEType):
2603
2604 2014-01-28  Mark Rowe  <mrowe@apple.com>
2605
2606         <https://webkit.org/b/127767> Disable some deprecation warnings to fix the build.
2607
2608         Reviewed by Ryosuke Niwa.
2609
2610         * WebCoreSupport/PopupMenuMac.mm:
2611         (PopupMenuMac::populate):
2612
2613 2014-01-27  Joseph Pecoraro  <pecoraro@apple.com>
2614
2615         WebKit1: Enable -Wimplicit-fallthrough and add FALLTHROUGH annotation where needed
2616         https://bugs.webkit.org/show_bug.cgi?id=127664
2617
2618         Reviewed by Darin Adler.
2619
2620         * Configurations/Base.xcconfig:
2621         * History/BinaryPropertyList.cpp:
2622         (BinaryPropertyListSerializer::appendObjectReference):
2623         (BinaryPropertyListSerializer::startObject):
2624         (BinaryPropertyListSerializer::addAggregateObjectReference):
2625         * WebView/WebPDFView.mm:
2626         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2627
2628 2014-01-27  Andy Estes  <aestes@apple.com>
2629
2630         Scrub WebKit API headers of WTF macros
2631         https://bugs.webkit.org/show_bug.cgi?id=127706
2632
2633         Reviewed by David Kilzer.
2634
2635         * Configurations/FeatureDefines.xcconfig: Added ENABLE_INSPECTOR.
2636         * WebView/WebPreferenceKeysPrivate.h: Changed ENABLE(REMOTE_INSPECTOR)
2637         to !defined(ENABLE_REMOTE_INSPECTOR) || ENABLE_REMOTE_INSPECTOR. We are
2638         in a TARGET_OS_IPHONE block, and ENABLE_REMOTE_INSPECTOR is enabled by
2639         default on iOS, so include this block unless the feature is explicitly
2640         disabled.
2641         * postprocess-headers.sh: Stopped processing ENABLE_IOS_TOUCH_EVENTS
2642         and ENABLE_IOS_GESTURE_EVENTS. These are now defined in DOMEvents.h.
2643
2644 2014-01-27  Tim Horton  <timothy_horton@apple.com>
2645
2646         Another iOS build fix.
2647
2648         * Misc/WebElementDictionary.mm:
2649         (-[WebElementDictionary _image]):
2650         We were apparently depending on Image::getNSImage() being defined
2651         (yet always returning nullptr) on iOS.
2652
2653 2014-01-26  David Kilzer  <ddkilzer@apple.com>
2654
2655         Remove duplicate settings for ENABLE(DISK_IMAGE_CACHE)
2656         <http://webkit.org/b/127669>
2657
2658         Reviewed by Joseph Pecoraro.
2659
2660         * WebView/WebPreferences.mm:
2661         (+[WebPreferences initialize]): Remove duplicate code.
2662
2663 2014-01-24  Andy Estes  <aestes@apple.com>
2664
2665         [iOS] Upstream changes in Tools/DumpRenderTree
2666         https://bugs.webkit.org/show_bug.cgi?id=127412
2667
2668         Reviewed by Simon Fraser.
2669
2670         * Misc/WebCoreStatistics.h: Included CGContext.h.
2671
2672 2014-01-26  Anders Carlsson  <andersca@apple.com>
2673
2674         Move history item visit count handling to WebKit
2675         https://bugs.webkit.org/show_bug.cgi?id=127659
2676
2677         Reviewed by Dan Bernstein.
2678
2679         Move code to deal with visit count and visit dates here from WebCore.
2680
2681         * History/HistoryPropertyList.mm:
2682         (HistoryPropertyListWriter::writeHistoryItem):
2683         * History/WebHistoryItem.mm:
2684         (-[WebHistoryItem initWithURLString:title:lastVisitedTimeInterval:]):
2685         (-[WebHistoryItem copyWithZone:]):
2686         (-[WebHistoryItem lastVisitedTimeInterval]):
2687         (-[WebHistoryItem initWithURLString:title:displayTitle:lastVisitedTimeInterval:]):
2688         (-[WebHistoryItem setVisitCount:]):
2689         (-[WebHistoryItem _mergeAutoCompleteHints:]):
2690         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2691         (-[WebHistoryItem _visitedWithTitle:increaseVisitCount:]):
2692         (-[WebHistoryItem _recordInitialVisit]):
2693         (timeToDay):
2694         (-[WebHistoryItem _padDailyCountsForNewVisit:]):
2695         (-[WebHistoryItem _collapseDailyVisitsToWeekly]):
2696         (-[WebHistoryItem _recordVisitAtTime:increaseVisitCount:]):
2697         (-[WebHistoryItem _setLastVisitedTimeInterval:]):
2698         * History/WebHistoryItemInternal.h:
2699
2700 2014-01-26  Anders Carlsson  <andersca@apple.com>
2701
2702         Fix build.
2703
2704         Pass a WebHistoryItem to writeHistoryItem so we can extract _lastVisitWasHTTPNonGet from it.
2705
2706         * History/HistoryPropertyList.h:
2707         * History/HistoryPropertyList.mm:
2708         (HistoryPropertyListWriter::HistoryPropertyListWriter):
2709         (HistoryPropertyListWriter::buffer):
2710         (HistoryPropertyListWriter::releaseData):
2711         (HistoryPropertyListWriter::writeObjects):
2712         (HistoryPropertyListWriter::writeHistoryItem):
2713         * History/WebHistory.mm:
2714         (WebHistoryWriter::writeHistoryItems):
2715         * History/WebHistoryItem.mm:
2716
2717 2014-01-26  Anders Carlsson  <andersca@apple.com>
2718
2719         Move lastVisitWasHTTPNonGet out to WebHistoryItem
2720         https://bugs.webkit.org/show_bug.cgi?id=127657
2721
2722         Reviewed by Dan Bernstein.
2723
2724         Keep track of _lastVisitWasHTTPNonGet inside WebHistoryItem.
2725
2726         * History/WebHistory.mm:
2727         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
2728         Set entry->_private->_lastVisitWasHTTPNonGet.
2729
2730         * History/WebHistoryItem.h:
2731         Change @private to @package so we can get at WebHistoryItemPrivate from WebHistory.
2732
2733         * History/WebHistoryItem.mm:
2734         (-[WebHistoryItem copyWithZone:]):
2735         Assign _private->_lastVisitWasHTTPNonGet.
2736
2737         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2738         Set _private->_lastVisitWasHTTPNonGet.
2739
2740         * History/WebHistoryItemInternal.h:
2741         Move WebHistoryItemPrivate interface here.
2742
2743 2014-01-26  Anders Carlsson  <andersca@apple.com>
2744
2745         Turn WebHistoryItemPrivate back into a real Objective-C class
2746         https://bugs.webkit.org/show_bug.cgi?id=127653
2747
2748         Reviewed by Sam Weinig.
2749
2750         This is a first step towards moving some history specific code from WebCore::HistoryItem back into WebKit.
2751
2752         * History/WebHistoryItem.mm:
2753         (-[WebHistoryItem dealloc]):
2754         (-[WebHistoryItem finalize]):
2755         (-[WebHistoryItem initWithWebCoreHistoryItem:]):
2756
2757 2014-01-25  Sam Weinig  <sam@webkit.org>
2758
2759         Remove unused support for DRAGGABLE_REGION
2760         https://bugs.webkit.org/show_bug.cgi?id=127642
2761
2762         Reviewed by Simon Fraser.
2763
2764         * Configurations/FeatureDefines.xcconfig:
2765
2766 2014-01-25  Anders Carlsson  <andersca@apple.com>
2767
2768         Remove an unused FrameLoaderClient function
2769         https://bugs.webkit.org/show_bug.cgi?id=127628
2770
2771         Reviewed by Andreas Kling.
2772
2773         * WebCoreSupport/WebFrameLoaderClient.h:
2774         * WebCoreSupport/WebFrameLoaderClient.mm:
2775
2776 2014-01-25  Anders Carlsson  <andersca@apple.com>
2777
2778         Build fix.
2779
2780         * WebView/WebViewData.h:
2781
2782 2014-01-25  Anders Carlsson  <andersca@apple.com>
2783
2784         Get rid of BackForwardController::isActive()
2785         https://bugs.webkit.org/show_bug.cgi?id=127604
2786
2787         Reviewed by Sam Weinig.
2788
2789         * WebCoreSupport/WebFrameLoaderClient.mm:
2790         (WebFrameLoaderClient::canCachePage):
2791         Move isActive logic here.
2792
2793 2014-01-24  Anders Carlsson  <andersca@apple.com>
2794
2795         Remove back/forward list related functions from Page
2796         https://bugs.webkit.org/show_bug.cgi?id=127596
2797
2798         Reviewed by Andreas Kling.
2799
2800         * WebView/WebFrameView.mm:
2801         (-[WebFrameView keyDown:keyDown:]):
2802         * WebView/WebView.mm:
2803         (-[WebView _loadBackForwardListFromOtherView:]):
2804         (-[WebView initWithCoder:]):
2805         (-[WebView encodeWithCoder:]):
2806         (-[WebView backForwardList]):
2807         (-[WebView setMaintainsBackForwardList:]):
2808         (-[WebView goBack]):
2809         (-[WebView goForward]):
2810         (-[WebView canGoBack]):
2811         (-[WebView canGoForward]):
2812
2813 2014-01-24  Anders Carlsson  <andersca@apple.com>
2814
2815         Get rid of monotonicallyIncreasingTimeMS and start using std::chrono instead
2816         https://bugs.webkit.org/show_bug.cgi?id=127571
2817
2818         Reviewed by Antti Koivisto.
2819
2820         * WebView/WebView.mm:
2821         (-[WebView _preferencesChanged:]):
2822         Convert the layout interval to std::chrono::milliseconds.
2823
2824 2014-01-24  Zan Dobersek  <zdobersek@igalia.com>
2825
2826         Move HistoryItem to std::unique_ptr
2827         https://bugs.webkit.org/show_bug.cgi?id=127275
2828
2829         Reviewed by Darin Adler.
2830
2831         * History/WebHistoryItem.mm: The Vector object that's passed to HistoryItem::setRedirectURLs
2832         should now be handled by std::unique_ptr and passed on through move semantics.
2833         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2834
2835 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
2836
2837         Move RegularExpression into JavaScriptCore for inspector
2838         https://bugs.webkit.org/show_bug.cgi?id=127526
2839
2840         Reviewed by Geoffrey Garen.
2841
2842         * WebView/WebHTMLRepresentation.mm:
2843
2844 2014-01-23  Benjamin Poulain  <bpoulain@apple.com>
2845
2846         Remote Inspector uses the Page pointer before the page is created on iOS
2847         https://bugs.webkit.org/show_bug.cgi?id=127534
2848
2849         Reviewed by Joseph Pecoraro.
2850
2851         * WebView/WebView.mm:
2852         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
2853
2854 2014-01-23  Jon Honeycutt  <jhoneycutt@apple.com>
2855
2856         Assertion failure in WebCore::PseudoElement::didRecalcStyle()
2857         <https://bugs.webkit.org/show_bug.cgi?id=126761>
2858         <rdar://problem/15793540>
2859
2860         Some areas of code were erroneously checking the value of
2861         RenderObject::isImage() rather than RenderObject::isRenderImage()
2862         before casting the object to RenderImage.
2863
2864         This could lead to an assertion failure for RenderListMarkers, which
2865         may return true for isImage(), but are not RenderImages.
2866
2867         Reviewed by Andy Estes.
2868
2869         * Misc/WebNSPasteboardExtras.mm:
2870         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
2871         Check isRenderImage() rather than isImage() before casting to
2872         RenderImage.
2873
2874 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
2875
2876         Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
2877         https://bugs.webkit.org/show_bug.cgi?id=127409
2878
2879         Reviewed by Geoffrey Garen.
2880
2881         * WebCoreSupport/WebInspectorClient.mm:
2882         (-[WebInspectorWindowController destroyInspectorView:]):
2883         Include InspectorDisconnectReason.
2884
2885 2014-01-23  Max Vujovic  <mvujovic@adobe.com>
2886
2887         Remove CSS Custom Filters code and tests
2888         https://bugs.webkit.org/show_bug.cgi?id=127382
2889
2890         Reviewed by Simon Fraser.
2891
2892         * Configurations/FeatureDefines.xcconfig:
2893         * WebView/WebPreferenceKeysPrivate.h:
2894         * WebView/WebPreferences.mm:
2895         (+[WebPreferences initialize]):
2896         * WebView/WebPreferencesPrivate.h:
2897         * WebView/WebView.mm:
2898         (-[WebView _preferencesChanged:]):
2899
2900 2014-01-22  Myles C. Maxfield  <mmaxfield@apple.com>
2901
2902         Remove CSS3_TEXT_DECORATION define
2903         https://bugs.webkit.org/show_bug.cgi?id=127333
2904
2905         Reviewed by Simon Fraser.
2906
2907         This is required for unprefixing the text-decoration-* CSS properties.
2908
2909         * Configurations/FeatureDefines.xcconfig:
2910
2911 2014-01-22  Dan Bernstein  <mitz@apple.com>
2912
2913         Build fix for iOS clients of WebUIDelegatePrivate.h.
2914
2915         * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
2916
2917 2014-01-21  Dan Bernstein  <mitz@apple.com>
2918
2919         Added a method declaration that was missed in r161185.
2920
2921         Reviewed by Sam Weinig.
2922
2923         * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
2924
2925 2014-01-21  Commit Queue  <commit-queue@webkit.org>
2926
2927         Unreviewed, rolling out r162452.
2928         http://trac.webkit.org/changeset/162452
2929         https://bugs.webkit.org/show_bug.cgi?id=127366
2930
2931         broke a few tests on all Mac WebKit1 bots (Requested by
2932         thorton on #webkit).
2933
2934         * WebView/WebView.mm:
2935         (-[WebView _windowWillOrderOnScreen:]):
2936         (-[WebView _windowWillOrderOffScreen:]):
2937
2938 2014-01-21  Gavin Barraclough  <barraclough@apple.com>
2939
2940         Change Page, FocusController to use ViewState
2941         https://bugs.webkit.org/show_bug.cgi?id=126533
2942
2943         Reviewed by Tim Horton.
2944
2945         These classes currently maintain a set of separate fields to represent the view state;
2946         combine these into a single field, and allow WebPage to send the combined update rather
2947         than individual changes.
2948
2949         Maintain existing interface for WebKit1 clients.
2950
2951         * WebView/WebView.mm:
2952         (-[WebView _windowWillOrderOnScreen:]):
2953         (-[WebView _windowWillOrderOffScreen:]):
2954             - remove calls to FocusController::setContentIsVisible, these are redundant
2955               (this is handled when page visibility is set).
2956
2957 2014-01-20  Jeremy Jones  <jeremyj@apple.com>
2958
2959         Add AVKit fullscreen video interface.
2960         https://bugs.webkit.org/show_bug.cgi?id=126818
2961
2962         Reviewed by Eric Carlson.
2963
2964         * WebCoreSupport/WebChromeClient.h:
2965         * WebCoreSupport/WebChromeClient.mm:
2966         (WebChromeClient::supportsFullscreenForNode):
2967         Enable *FullscreenForNode for HTMLMediaElement for iOS
2968
2969         * WebView/WebPreferenceKeysPrivate.h:
2970         * WebView/WebPreferences.mm:
2971         (+[WebPreferences initialize]):
2972         (-[WebPreferences mediaPlaybackFullscreenAVKit]):
2973         (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
2974         * WebView/WebPreferencesPrivate.h:
2975         * WebView/WebView.mm:
2976         (-[WebView _preferencesChanged:]):
2977         (-[WebView _enterFullscreenForNode:WebCore::]):
2978         * WebView/WebViewInternal.h:
2979         Add a disabled pref mediaPlaybackFullscreenAVKit.
2980         Use WebVideoFullscreenControllerAVKit on iOS
2981
2982 2014-01-18  Brian Burg  <bburg@apple.com>
2983
2984         Web Inspector: Page should use std::unique_ptr for InspectorController
2985         https://bugs.webkit.org/show_bug.cgi?id=127068
2986
2987         Reviewed by Joseph Pecoraro.
2988
2989         Convert call sites to use a InspectorController reference.
2990         Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
2991
2992         * WebCoreSupport/WebInspectorClient.mm:
2993         (WebInspectorClient::openInspectorFrontend):
2994         (-[WebInspectorWindowController destroyInspectorView:]):
2995         * WebInspector/WebInspector.mm:
2996         (-[WebInspector showWindow]):
2997         (-[WebInspector isJavaScriptProfilingEnabled]):
2998         (-[WebInspector setJavaScriptProfilingEnabled:]):
2999         (-[WebInspector close:]):
3000         (-[WebInspector evaluateInFrontend:callId:script:]):
3001         * WebInspector/WebNodeHighlighter.mm:
3002         (-[WebNodeHighlighter highlight]):
3003
3004 2014-01-18  Anders Carlsson  <andersca@apple.com>
3005
3006         Remove ENABLE_THREADED_HTML_PARSER defines everywhere
3007         https://bugs.webkit.org/show_bug.cgi?id=127225
3008
3009         Reviewed by Andreas Kling.
3010
3011         This concludes the removal of over 8.8 million lines of threaded parser code.
3012
3013         * Configurations/FeatureDefines.xcconfig:
3014
3015 2014-01-17  Anders Carlsson  <andersca@apple.com>
3016
3017         Clean up PageCache classes
3018         https://bugs.webkit.org/show_bug.cgi?id=127202
3019
3020         Reviewed by Andreas Kling.
3021
3022         * WebCoreSupport/WebFrameLoaderClient.mm:
3023         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
3024         (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
3025
3026 2014-01-17  Anders Carlsson  <andersca@apple.com>
3027
3028         Remove another unused FrameLoaderClient callback
3029         https://bugs.webkit.org/show_bug.cgi?id=127192
3030
3031         Reviewed by Dan Bernstein.
3032
3033         * WebCoreSupport/WebFrameLoaderClient.h:
3034         * WebCoreSupport/WebFrameLoaderClient.mm:
3035
3036 2014-01-17  Anders Carlsson  <andersca@apple.com>
3037
3038         Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
3039         https://bugs.webkit.org/show_bug.cgi?id=127189
3040
3041         Reviewed by Dan Bernstein.
3042
3043         This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
3044         
3045         * WebCoreSupport/WebFrameLoaderClient.h:
3046         * WebCoreSupport/WebFrameLoaderClient.mm:
3047         Remove didPerformFirstNavigation() implementation.
3048
3049         * WebView/WebView.mm:
3050         (-[WebView _checkDidPerformFirstNavigation]):
3051         Check if we have both a current item and a previous item which indicates that we've navigated once.
3052         The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
3053         we have to check that there's a current item as well.
3054
3055         (-[WebView _didCommitLoadForFrame:]):
3056         Call _didCommitLoadForFrame.
3057
3058         * WebView/WebViewData.h:
3059         Add new ivar.
3060
3061 2014-01-17  Alexey Proskuryakov  <ap@apple.com>
3062
3063         More iOS build fix.
3064
3065         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
3066         NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
3067
3068 2014-01-16  Daniel Bates  <dabates@apple.com>
3069
3070         [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
3071
3072         For now, add mainFrameIconURL() to WebView.h. We should further investigate its
3073         usage and API/SPI status.
3074
3075         * WebView/WebView.h:
3076
3077 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
3078
3079         [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
3080         https://bugs.webkit.org/show_bug.cgi?id=127139
3081
3082         Reviewed by Brady Eidson.
3083
3084         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
3085         Handle the new case.
3086
3087 2014-01-16  Daniel Bates  <dabates@apple.com>
3088
3089         [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
3090
3091         * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
3092
3093 2014-01-16  Anders Carlsson  <andersca@apple.com>
3094
3095         Change all uses of FINAL to final now that all our compilers support it
3096         https://bugs.webkit.org/show_bug.cgi?id=127142
3097
3098         Reviewed by Benjamin Poulain.
3099
3100         * WebCoreSupport/WebUserMediaClient.h:
3101         * WebView/WebScriptDebugger.h:
3102
3103 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
3104
3105         Remove workaround for compilers not supporting explicit override control
3106         https://bugs.webkit.org/show_bug.cgi?id=127111
3107
3108         Reviewed by Anders Carlsson.
3109
3110         Now all compilers support explicit override control, this workaround can be removed.
3111
3112         * Storage/WebDatabaseManagerClient.h:
3113         * Storage/WebStorageTrackerClient.h:
3114         * WebCoreSupport/WebAlternativeTextClient.h:
3115         * WebCoreSupport/WebChromeClient.h:
3116         * WebCoreSupport/WebContextMenuClient.h:
3117         * WebCoreSupport/WebDeviceOrientationClient.h:
3118         * WebCoreSupport/WebDragClient.h:
3119         * WebCoreSupport/WebEditorClient.h:
3120         * WebCoreSupport/WebFrameLoaderClient.h:
3121         * WebCoreSupport/WebFrameNetworkingContext.h:
3122         * WebCoreSupport/WebGeolocationClient.h:
3123         * WebCoreSupport/WebIconDatabaseClient.h:
3124         * WebCoreSupport/WebInspectorClient.h:
3125         * WebCoreSupport/WebNotificationClient.h:
3126         * WebCoreSupport/WebPlatformStrategies.h:
3127         * WebCoreSupport/WebProgressTrackerClient.h:
3128         * WebCoreSupport/WebUserMediaClient.h:
3129         * WebView/WebScriptDebugger.h:
3130         * WebView/WebViewData.h:
3131
3132 2014-01-16  Andy Estes  <aestes@apple.com>
3133
3134         [iOS] Fix build issues with exported headers
3135
3136         * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
3137         TARGET_OS_IPHONE.
3138         * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
3139         rules so that WebCoreFrameScrollView won't inadvertently get changed to
3140         WebKitFrameScrollView.
3141         * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
3142         order to maintain source compatibility.
3143         * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
3144         * Plugins/WebPluginPrivate.h: Removed.
3145         * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
3146         with ENABLE_SQL_DATABASE.
3147         * WebView/WebViewPrivate.h: Added declaration of
3148         -[WebView _touchEventRegions] for source compatibility.
3149
3150 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
3151
3152         Fix the iOS build after r162114
3153
3154         Unreviewed.
3155
3156         * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
3157
3158 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
3159
3160         Move user agent code to WebCore and unify some code between OS X and iOS
3161         https://bugs.webkit.org/show_bug.cgi?id=127080
3162
3163         Reviewed by Sam Weinig.
3164
3165         * WebCoreSupport/WebSystemInterface.mm:
3166         (InitWebCoreSystemInterface):
3167         * WebView/WebView.mm:
3168         (userVisibleWebKitVersionString):
3169         (+[WebView _standardUserAgentWithApplicationName:]):
3170         (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
3171
3172 2014-01-15  Joseph Pecoraro  <pecoraro@apple.com>
3173
3174         [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
3175         https://bugs.webkit.org/show_bug.cgi?id=127069
3176
3177         Reviewed by Timothy Hatcher.
3178
3179         * WebView/WebView.mm:
3180         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3181         (+[WebView _enableRemoteInspector]):
3182         (+[WebView _disableRemoteInspector]):
3183         (+[WebView _disableAutoStartRemoteInspector]):
3184         (+[WebView _isRemoteInspectorEnabled]):
3185         (+[WebView _hasRemoteInspectorSession]):
3186         (-[WebView allowsRemoteInspection]):
3187         Implement with RemoteInspector.h SPIs.
3188
3189         (-[WebView setAllowsRemoteInspection:]):
3190         (-[WebView setHostApplicationBundleId:name:]):
3191         Still unimplemented, update comment.
3192
3193         (-[WebView _didCommitLoadForFrame:]):
3194         Remove dead path, WebCore now pushes updates on navigations.
3195
3196         * WebView/WebViewData.h:
3197         * WebView/WebViewData.mm:
3198         (-[WebViewPrivate init]):
3199         Remove now unused ivar.
3200
3201 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3202
3203         More iOS build fixing.
3204
3205         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
3206         Removed a now unused local variable.
3207
3208 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3209
3210         Build fix for iOS.
3211
3212         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
3213         Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
3214
3215 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3216
3217         Crash when multiple WebView instances have different PrivateBrowsing settings
3218         https://bugs.webkit.org/show_bug.cgi?id=127019
3219
3220         * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
3221         Added a null check to fix Safari crash on startup when extensions are enabled.
3222
3223 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
3224
3225         Crash when multiple WebView instances have different PrivateBrowsing settings
3226         https://bugs.webkit.org/show_bug.cgi?id=127019
3227
3228         Reviewed by Sam Weinig.
3229
3230         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
3231         browsing session simply because one preferences object doesn't use private browsing.
3232         There could be others that do.
3233
3234         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
3235         browsing, and only delete the private session when there are none any more.
3236
3237 2014-01-15  David Kilzer  <ddkilzer@apple.com>
3238
3239         [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
3240
3241         Fixes the following linker error:
3242
3243             Undefined symbols for architecture x86_64:
3244               "__ZNK7WebCore12RenderObject5styleEv", referenced from:
3245                   -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
3246
3247         * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
3248         RenderObject.h since the inline RenderObject::style() method
3249         moved to the former header.
3250
3251 2014-01-15  Commit Queue  <commit-queue@webkit.org>
3252
3253         Unreviewed, rolling out r162054.
3254         http://trac.webkit.org/changeset/162054
3255         https://bugs.webkit.org/show_bug.cgi?id=127053
3256
3257         Causes assertion failures in DumpRenderTree (Requested by ap
3258         on #webkit).
3259
3260         * WebView/WebPreferences.mm:
3261         (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
3262         (-[WebPreferences initWithCoder:]):
3263         (+[WebPreferences standardPreferences]):
3264         (-[WebPreferences dealloc]):
3265         (-[WebPreferences setPrivateBrowsingEnabled:]):
3266         (-[WebPreferences _invalidateCachedPreferences]):
3267         * WebView/WebView.mm:
3268         (-[WebView _preferencesChanged:]):
3269
3270 2014-01-14  Alexey Proskuryakov  <ap@apple.com>
3271
3272         Crash when multiple WebView instances have different PrivateBrowsing settings
3273         https://bugs.webkit.org/show_bug.cgi?id=127019
3274
3275         Reviewed by Sam Weinig.
3276
3277         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
3278         browsing session simply because one preferences object doesn't use private browsing.
3279         There could be others that do.
3280
3281         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
3282         browsing, and only delete the private session when there are none any more.
3283
3284 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3285
3286         Fix the iOS build after r162034.
3287
3288         * WebCoreSupport/WebProgressTrackerClient.mm:
3289         * WebView/WebView.mm:
3290         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3291
3292 2014-01-14  Mark Rowe  <mrowe@apple.com>
3293
3294         Stop cmp from spewing useless info during postprocess-headers.sh.
3295
3296         * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
3297         exit status.
3298
3299 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
3300
3301         [iOS] Crash in NavigatorBase::vendor loading apple.com
3302         https://bugs.webkit.org/show_bug.cgi?id=127028
3303
3304         Reviewed by Daniel Bates.
3305
3306         Fill in iOS WebKitSystemInterface functions.
3307
3308         * WebCoreSupport/WebSystemInterface.mm:
3309         (InitWebCoreSystemInterface):
3310
3311 2014-01-14  Anders Carlsson  <andersca@apple.com>
3312
3313         Create separate progress tracker clients
3314         https://bugs.webkit.org/show_bug.cgi?id=127025
3315
3316         Reviewed by Sam Weinig.
3317
3318         * WebCoreSupport/WebFrameLoaderClient.h:
3319         * WebCoreSupport/WebFrameLoaderClient.mm:
3320         * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
3321         * WebCoreSupport/WebProgressTrackerClient.mm: Added.
3322         (WebProgressTrackerClient::WebProgressTrackerClient):
3323         (WebProgressTrackerClient::progressTrackerDestroyed):
3324         (WebProgressTrackerClient::willChangeEstimatedProgress):
3325         (WebProgressTrackerClient::didChangeEstimatedProgress):
3326         (WebProgressTrackerClient::progressStarted):
3327         (WebProgressTrackerClient::progressEstimateChanged):
3328         (WebProgressTrackerClient::progressFinished):
3329         * WebView/WebView.mm:
3330         (-[WebView _commonInitializationWithFrameName:groupName:]):
3331         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
3332
3333 2014-01-14  Dean Jackson  <dino@apple.com>
3334
3335         Correct grave mistake in updating the pbxproj file rather than xcconfig.
3336
3337         * Configurations/WebKit.xcconfig:
3338
3339 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3340
3341         #define ENABLE_DASHBOARD_SUPPORT for iOS.
3342
3343         * WebView/WebViewPrivate.h:
3344
3345 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3346
3347         Clean up exports and headers for iOS.
3348         
3349         Need to export WebArchivePboardType on Mac and iOS.
3350
3351         * WebKit.exp:
3352         * WebKit.mac.exp:
3353
3354 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3355
3356         Fix header availability checks on iOS
3357         https://bugs.webkit.org/show_bug.cgi?id=127016
3358
3359         Reviewed by Andy Estes.
3360
3361         Make DOMTouch* and DOMGesture* headers public headers on iOS,
3362         and fix MigrateHeaders.make to skip availability checks when
3363         building for iOS.
3364
3365         * MigrateHeaders.make:
3366
3367 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3368
3369         Need to #import <WebCore/QuickLook.h>.
3370
3371         * WebView/WebDataSource.mm:
3372
3373 2014-01-14  Daniel Bates  <dabates@apple.com>
3374
3375         [iOS] Enable QuickLook
3376         https://bugs.webkit.org/show_bug.cgi?id=126954
3377
3378         Reviewed by David Kilzer.
3379
3380         Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.
3381
3382         * WebView/WebView.mm:
3383         (-[WebView quickLookContentForURL:]):
3384
3385 2014-01-14  Dean Jackson  <dino@apple.com>
3386
3387         Move some Mac-only exports to WebKit.mac.exp for iOS build.
3388
3389         * WebKit.exp:
3390         * WebKit.mac.exp:
3391
3392 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3393
3394         Move some Mac-only exports to WebKit.mac.exp for iOS build.
3395
3396         * WebKit.exp:
3397         * WebKit.mac.exp:
3398
3399 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3400
3401         Fix iOS WK1 linking.
3402
3403         * Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
3404         on iOS.
3405         * WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>
3406
3407 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
3408
3409         iOS build fixing: link WebKit against Security.framework on iOS.
3410
3411         * Configurations/WebKit.xcconfig:
3412
3413 2014-01-14  Dean Jackson  <dino@apple.com>
3414
3415         [WK1] Allow generated export files on iOS
3416         https://bugs.webkit.org/show_bug.cgi?id=127008
3417
3418         Reviewed by Simon Fraser.
3419
3420         Add a new Mac-only symbol file.
3421
3422         * WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
3423         * WebKit.mac.exp: Added. New file holds Mac-only symbols.
3424
3425 2014-01-14  Brian J. Burg  <burg@cs.washington.edu>
3426
3427         Add ENABLE(WEB_REPLAY) feature flag to the build system
3428         https://bugs.webkit.org/show_bug.cgi?id=126949
3429
3430         Reviewed by Joseph Pecoraro.
3431
3432         * Configurations/FeatureDefines.xcconfig:
3433
3434 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3435
3436         Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
3437         for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
3438         which we are confused about.
3439
3440         * WebView/WebView.mm:
3441         (-[WebView quickLookContentForURL:]):
3442         * WebView/WebViewPrivate.h:
3443
3444 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3445
3446         Fix the remaining compiler errors in iOS WK1.
3447
3448         * WebView/WebFrame.mm:
3449         (vectorForDictationPhrasesArray): Need this function on iOS.
3450         (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
3451         a huge if PLATFORM(IOS) block.
3452         (-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
3453         * WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
3454         * WebView/WebView.mm: #import cleanup for iOS.
3455         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
3456         here but this needs cleaning up (<rdar://problem/15810991>).
3457         (-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
3458         (-[WebView _didCommitLoadForFrame:]): Ditto.
3459         * WebView/WebViewData.h: Add allowsRemoteInspection.
3460         * WebView/WebViewData.mm: Initialize allowsRemoteInspection
3461         (-[WebViewPrivate init]):
3462         * WebView/WebViewPrivate.h: Fumbled #ifdef.
3463
3464 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3465
3466         More work towards getting iOS WK1 building.
3467
3468         * DOM/WebDOMOperations.mm: Need RenderObject.h.
3469         * DOM/WebDOMOperationsPrivate.h:
3470         * History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
3471         (-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
3472         other code.
3473         * Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
3474         * Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
3475         * WebCoreSupport/WebFrameLoaderClient.mm:
3476         (WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
3477         handle the error case.
3478         * WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
3479         * WebView/WebHTMLView.mm: Ditto.
3480         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
3481         different return type of createDragImageForSelection().
3482         * WebView/WebPolicyDelegatePrivate.h:
3483         * WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>
3484
3485 2014-01-13  Daniel Bates  <dabates@apple.com>
3486
3487         [iOS] Remove duplicate inclusions of header WAKView.h
3488         following <http://trac.webkit.org/changeset/161910>
3489
3490         * WebView/WebFrameView.h:
3491         * WebView/WebHTMLView.h:
3492
3493 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3494
3495         Various iOS WebKit1 build fixes.
3496
3497         * Configurations/WebKit.xcconfig: Add more Mac-only files
3498         to the excluded files list for iOS.
3499         * DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
3500         on iOS
3501         * History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
3502         * Misc/WebDownload.h: Need WAKAppKitStubs.h
3503         * Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
3504         * Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
3505         in including it for all platforms.
3506         * WebCoreSupport/WebEditorClient.h: Remove useless comment.
3507         * WebCoreSupport/WebEditorClient.mm:
3508         (nsStringWithoutCopying): Moved
3509         (WebEditorClient::checkTextOfParagraph): Modernized.
3510         * WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
3511         * WebView/WebDataSource.mm: Need WebFrameViewInternal.h
3512         * WebView/WebDocument.h: Needs WAKView.h.
3513         * WebView/WebFrameView.h: Ditto.
3514         * WebView/WebHTMLView.h: Ditto.
3515         * WebView/WebPDFDocumentExtras.mm:
3516         (allScriptsInPDFDocument): No PDFDocument on iOS.
3517         * WebView/WebPolicyDelegate.h:
3518         * WebView/WebView.h: Fix incorrect #if.
3519
3520 2014-01-13  Daniel Bates  <dabates@apple.com>
3521
3522         [iOS] More build fixes for WebKit
3523
3524         * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
3525         * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
3526         CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
3527         HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
3528         PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
3529         WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
3530         WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
3531         nature of each of these files. We may be able to reduce this list upon further investigation.
3532         * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
3533         * WebView/WebFrameView.h: Ditto.
3534         * WebView/WebUIDelegate.h: Ditto.
3535         * WebView/WebView.h: Ditto.
3536
3537 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3538
3539         Include WAKAppKitStubs.h to get NSSelectionAffinity.
3540
3541         * WebView/WebEditingDelegate.h:
3542
3543 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
3544
3545         DOMTouch* etc should not be public headers on iOS.
3546         
3547         * MigrateHeaders.make:
3548
3549 2014-01-13  Andy Estes  <aestes@apple.com>
3550
3551         [iOS] Build Fix: switch back to calling postprocess-headers.sh
3552
3553         * postprocess-headers.sh:
3554
3555 2014-01-13  Zalan Bujtas  <zalan@apple.com>
3556
3557         Enable SUBPIXEL_LAYOUT on Mac
3558         <https://webkit.org/b/126283>
3559
3560         Reviewed by Simon Fraser.
3561
3562         * Configurations/FeatureDefines.xcconfig:
3563
3564 2014-01-12  Darin Adler  <darin@apple.com>
3565
3566         Add deprecatedCharacters as a synonym for characters and convert most call sites
3567         https://bugs.webkit.org/show_bug.cgi?id=126858
3568
3569         Reviewed by Anders Carlsson.
3570
3571         * History/BinaryPropertyList.cpp:
3572         (BinaryPropertyListSerializer::appendStringObject):
3573         Use deprecatedCharacters instead of characters.
3574
3575 2014-01-12  Darin Adler  <darin@apple.com>
3576
3577         Add type checking to isEqual methods
3578         https://bugs.webkit.org/show_bug.cgi?id=126862
3579
3580         Reviewed by Anders Carlsson.
3581
3582         * WebCoreSupport/WebSecurityOrigin.mm:
3583         (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
3584         override. Tweaked formatting.