Assertion failure in WebCore::PseudoElement::didRecalcStyle()
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-01-23  Jon Honeycutt  <jhoneycutt@apple.com>
2
3         Assertion failure in WebCore::PseudoElement::didRecalcStyle()
4         <https://bugs.webkit.org/show_bug.cgi?id=126761>
5         <rdar://problem/15793540>
6
7         Some areas of code were erroneously checking the value of
8         RenderObject::isImage() rather than RenderObject::isRenderImage()
9         before casting the object to RenderImage.
10
11         This could lead to an assertion failure for RenderListMarkers, which
12         may return true for isImage(), but are not RenderImages.
13
14         Reviewed by Andy Estes.
15
16         * Misc/WebNSPasteboardExtras.mm:
17         (-[NSPasteboard _web_declareAndWriteDragImageForElement:URL:title:archive:source:]):
18         Check isRenderImage() rather than isImage() before casting to
19         RenderImage.
20
21 2014-01-23  Joseph Pecoraro  <pecoraro@apple.com>
22
23         Web Inspector: Remove recompileAllJSFunctions timer in ScriptDebugServer
24         https://bugs.webkit.org/show_bug.cgi?id=127409
25
26         Reviewed by Geoffrey Garen.
27
28         * WebCoreSupport/WebInspectorClient.mm:
29         (-[WebInspectorWindowController destroyInspectorView:]):
30         Include InspectorDisconnectReason.
31
32 2014-01-23  Max Vujovic  <mvujovic@adobe.com>
33
34         Remove CSS Custom Filters code and tests
35         https://bugs.webkit.org/show_bug.cgi?id=127382
36
37         Reviewed by Simon Fraser.
38
39         * Configurations/FeatureDefines.xcconfig:
40         * WebView/WebPreferenceKeysPrivate.h:
41         * WebView/WebPreferences.mm:
42         (+[WebPreferences initialize]):
43         * WebView/WebPreferencesPrivate.h:
44         * WebView/WebView.mm:
45         (-[WebView _preferencesChanged:]):
46
47 2014-01-22  Myles C. Maxfield  <mmaxfield@apple.com>
48
49         Remove CSS3_TEXT_DECORATION define
50         https://bugs.webkit.org/show_bug.cgi?id=127333
51
52         Reviewed by Simon Fraser.
53
54         This is required for unprefixing the text-decoration-* CSS properties.
55
56         * Configurations/FeatureDefines.xcconfig:
57
58 2014-01-22  Dan Bernstein  <mitz@apple.com>
59
60         Build fix for iOS clients of WebUIDelegatePrivate.h.
61
62         * WebView/WebUIDelegatePrivate.h: Ensure that ENABLE_DASHBOARD_SUPPORT is defined on iOS.
63
64 2014-01-21  Dan Bernstein  <mitz@apple.com>
65
66         Added a method declaration that was missed in r161185.
67
68         Reviewed by Sam Weinig.
69
70         * WebView/WebViewPrivate.h: Declared -removeVisitedLink:.
71
72 2014-01-21  Commit Queue  <commit-queue@webkit.org>
73
74         Unreviewed, rolling out r162452.
75         http://trac.webkit.org/changeset/162452
76         https://bugs.webkit.org/show_bug.cgi?id=127366
77
78         broke a few tests on all Mac WebKit1 bots (Requested by
79         thorton on #webkit).
80
81         * WebView/WebView.mm:
82         (-[WebView _windowWillOrderOnScreen:]):
83         (-[WebView _windowWillOrderOffScreen:]):
84
85 2014-01-21  Gavin Barraclough  <barraclough@apple.com>
86
87         Change Page, FocusController to use ViewState
88         https://bugs.webkit.org/show_bug.cgi?id=126533
89
90         Reviewed by Tim Horton.
91
92         These classes currently maintain a set of separate fields to represent the view state;
93         combine these into a single field, and allow WebPage to send the combined update rather
94         than individual changes.
95
96         Maintain existing interface for WebKit1 clients.
97
98         * WebView/WebView.mm:
99         (-[WebView _windowWillOrderOnScreen:]):
100         (-[WebView _windowWillOrderOffScreen:]):
101             - remove calls to FocusController::setContentIsVisible, these are redundant
102               (this is handled when page visibility is set).
103
104 2014-01-20  Jeremy Jones  <jeremyj@apple.com>
105
106         Add AVKit fullscreen video interface.
107         https://bugs.webkit.org/show_bug.cgi?id=126818
108
109         Reviewed by Eric Carlson.
110
111         * WebCoreSupport/WebChromeClient.h:
112         * WebCoreSupport/WebChromeClient.mm:
113         (WebChromeClient::supportsFullscreenForNode):
114         Enable *FullscreenForNode for HTMLMediaElement for iOS
115
116         * WebView/WebPreferenceKeysPrivate.h:
117         * WebView/WebPreferences.mm:
118         (+[WebPreferences initialize]):
119         (-[WebPreferences mediaPlaybackFullscreenAVKit]):
120         (-[WebPreferences setMediaPlaybackFullscreenAVKit:]):
121         * WebView/WebPreferencesPrivate.h:
122         * WebView/WebView.mm:
123         (-[WebView _preferencesChanged:]):
124         (-[WebView _enterFullscreenForNode:WebCore::]):
125         * WebView/WebViewInternal.h:
126         Add a disabled pref mediaPlaybackFullscreenAVKit.
127         Use WebVideoFullscreenControllerAVKit on iOS
128
129 2014-01-18  Brian Burg  <bburg@apple.com>
130
131         Web Inspector: Page should use std::unique_ptr for InspectorController
132         https://bugs.webkit.org/show_bug.cgi?id=127068
133
134         Reviewed by Joseph Pecoraro.
135
136         Convert call sites to use a InspectorController reference.
137         Convert instantiations of InspectorFrontendClient to use std::unique_ptr.
138
139         * WebCoreSupport/WebInspectorClient.mm:
140         (WebInspectorClient::openInspectorFrontend):
141         (-[WebInspectorWindowController destroyInspectorView:]):
142         * WebInspector/WebInspector.mm:
143         (-[WebInspector showWindow]):
144         (-[WebInspector isJavaScriptProfilingEnabled]):
145         (-[WebInspector setJavaScriptProfilingEnabled:]):
146         (-[WebInspector close:]):
147         (-[WebInspector evaluateInFrontend:callId:script:]):
148         * WebInspector/WebNodeHighlighter.mm:
149         (-[WebNodeHighlighter highlight]):
150
151 2014-01-18  Anders Carlsson  <andersca@apple.com>
152
153         Remove ENABLE_THREADED_HTML_PARSER defines everywhere
154         https://bugs.webkit.org/show_bug.cgi?id=127225
155
156         Reviewed by Andreas Kling.
157
158         This concludes the removal of over 8.8 million lines of threaded parser code.
159
160         * Configurations/FeatureDefines.xcconfig:
161
162 2014-01-17  Anders Carlsson  <andersca@apple.com>
163
164         Clean up PageCache classes
165         https://bugs.webkit.org/show_bug.cgi?id=127202
166
167         Reviewed by Andreas Kling.
168
169         * WebCoreSupport/WebFrameLoaderClient.mm:
170         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
171         (WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
172
173 2014-01-17  Anders Carlsson  <andersca@apple.com>
174
175         Remove another unused FrameLoaderClient callback
176         https://bugs.webkit.org/show_bug.cgi?id=127192
177
178         Reviewed by Dan Bernstein.
179
180         * WebCoreSupport/WebFrameLoaderClient.h:
181         * WebCoreSupport/WebFrameLoaderClient.mm:
182
183 2014-01-17  Anders Carlsson  <andersca@apple.com>
184
185         Move didPerformFirstNavigation() logic to -[WebView _didCommitLoadForFrame:]
186         https://bugs.webkit.org/show_bug.cgi?id=127189
187
188         Reviewed by Dan Bernstein.
189
190         This is a first step towards completely eliminating the didPerformFirstNavigation() client callback.
191         
192         * WebCoreSupport/WebFrameLoaderClient.h:
193         * WebCoreSupport/WebFrameLoaderClient.mm:
194         Remove didPerformFirstNavigation() implementation.
195
196         * WebView/WebView.mm:
197         (-[WebView _checkDidPerformFirstNavigation]):
198         Check if we have both a current item and a previous item which indicates that we've navigated once.
199         The old code was called before there was a current item but since this is called from _didCommitLoadForFrame
200         we have to check that there's a current item as well.
201
202         (-[WebView _didCommitLoadForFrame:]):
203         Call _didCommitLoadForFrame.
204
205         * WebView/WebViewData.h:
206         Add new ivar.
207
208 2014-01-17  Alexey Proskuryakov  <ap@apple.com>
209
210         More iOS build fix.
211
212         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
213         NSHTTPCookieAcceptPolicyExclusivelyFromMainDocumentDomain is not part of NSHTTPCookieAcceptPolicy enum.
214
215 2014-01-16  Daniel Bates  <dabates@apple.com>
216
217         [iOS] MobileSafari build fix. Declare iOS-specific method mainFrameIconURL
218
219         For now, add mainFrameIconURL() to WebView.h. We should further investigate its
220         usage and API/SPI status.
221
222         * WebView/WebView.h:
223
224 2014-01-16  Alexey Proskuryakov  <ap@apple.com>
225
226         [Mac] [iOS] Add support for CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain
227         https://bugs.webkit.org/show_bug.cgi?id=127139
228
229         Reviewed by Brady Eidson.
230
231         * WebView/WebPreferences.mm: (-[WebPreferences _synchronizeWebStoragePolicyWithCookiePolicy]):
232         Handle the new case.
233
234 2014-01-16  Daniel Bates  <dabates@apple.com>
235
236         [iOS] Fix UIKit build warning about undefined macro ENABLE_NETSCAPE_PLUGIN_API
237
238         * WebView/WebFramePrivate.h: Wrap use of ENABLE_NETSCAPE_PLUGIN_API in TARGET_OS_IPHONE.
239
240 2014-01-16  Anders Carlsson  <andersca@apple.com>
241
242         Change all uses of FINAL to final now that all our compilers support it
243         https://bugs.webkit.org/show_bug.cgi?id=127142
244
245         Reviewed by Benjamin Poulain.
246
247         * WebCoreSupport/WebUserMediaClient.h:
248         * WebView/WebScriptDebugger.h:
249
250 2014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
251
252         Remove workaround for compilers not supporting explicit override control
253         https://bugs.webkit.org/show_bug.cgi?id=127111
254
255         Reviewed by Anders Carlsson.
256
257         Now all compilers support explicit override control, this workaround can be removed.
258
259         * Storage/WebDatabaseManagerClient.h:
260         * Storage/WebStorageTrackerClient.h:
261         * WebCoreSupport/WebAlternativeTextClient.h:
262         * WebCoreSupport/WebChromeClient.h:
263         * WebCoreSupport/WebContextMenuClient.h:
264         * WebCoreSupport/WebDeviceOrientationClient.h:
265         * WebCoreSupport/WebDragClient.h:
266         * WebCoreSupport/WebEditorClient.h:
267         * WebCoreSupport/WebFrameLoaderClient.h:
268         * WebCoreSupport/WebFrameNetworkingContext.h:
269         * WebCoreSupport/WebGeolocationClient.h:
270         * WebCoreSupport/WebIconDatabaseClient.h:
271         * WebCoreSupport/WebInspectorClient.h:
272         * WebCoreSupport/WebNotificationClient.h:
273         * WebCoreSupport/WebPlatformStrategies.h:
274         * WebCoreSupport/WebProgressTrackerClient.h:
275         * WebCoreSupport/WebUserMediaClient.h:
276         * WebView/WebScriptDebugger.h:
277         * WebView/WebViewData.h:
278
279 2014-01-16  Andy Estes  <aestes@apple.com>
280
281         [iOS] Fix build issues with exported headers
282
283         * DOM/WebDOMOperationsPrivate.h: Changed PLATFORM(IOS) to
284         TARGET_OS_IPHONE.
285         * MigrateHeaders.make: Excluded WAKScrollView.h from normal replacement
286         rules so that WebCoreFrameScrollView won't inadvertently get changed to
287         WebKitFrameScrollView.
288         * Plugins/WebPlugin.h: Moved contents of WebPluginPrivate.h to here in
289         order to maintain source compatibility.
290         * Plugins/WebPluginController.mm: Removed an import of WebPluginPrivate.h.
291         * Plugins/WebPluginPrivate.h: Removed.
292         * Storage/WebDatabaseManagerPrivate.h: Replaced ENABLE(SQL_DATABASE)
293         with ENABLE_SQL_DATABASE.
294         * WebView/WebViewPrivate.h: Added declaration of
295         -[WebView _touchEventRegions] for source compatibility.
296
297 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
298
299         Fix the iOS build after r162114
300
301         Unreviewed.
302
303         * WebView/WebViewPrivate.h: I forgot to remove the declaration, fix that.
304
305 2014-01-15  Benjamin Poulain  <bpoulain@apple.com>
306
307         Move user agent code to WebCore and unify some code between OS X and iOS
308         https://bugs.webkit.org/show_bug.cgi?id=127080
309
310         Reviewed by Sam Weinig.
311
312         * WebCoreSupport/WebSystemInterface.mm:
313         (InitWebCoreSystemInterface):
314         * WebView/WebView.mm:
315         (userVisibleWebKitVersionString):
316         (+[WebView _standardUserAgentWithApplicationName:]):
317         (-[WebView _setUIWebViewUserAgentWithBuildVersion:]):
318
319 2014-01-15  Joseph Pecoraro  <pecoraro@apple.com>
320
321         [iOS] Clean up REMOTE_INSPECTOR code in OpenSource after the iOS merge
322         https://bugs.webkit.org/show_bug.cgi?id=127069
323
324         Reviewed by Timothy Hatcher.
325
326         * WebView/WebView.mm:
327         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
328         (+[WebView _enableRemoteInspector]):
329         (+[WebView _disableRemoteInspector]):
330         (+[WebView _disableAutoStartRemoteInspector]):
331         (+[WebView _isRemoteInspectorEnabled]):
332         (+[WebView _hasRemoteInspectorSession]):
333         (-[WebView allowsRemoteInspection]):
334         Implement with RemoteInspector.h SPIs.
335
336         (-[WebView setAllowsRemoteInspection:]):
337         (-[WebView setHostApplicationBundleId:name:]):
338         Still unimplemented, update comment.
339
340         (-[WebView _didCommitLoadForFrame:]):
341         Remove dead path, WebCore now pushes updates on navigations.
342
343         * WebView/WebViewData.h:
344         * WebView/WebViewData.mm:
345         (-[WebViewPrivate init]):
346         Remove now unused ivar.
347
348 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
349
350         More iOS build fixing.
351
352         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
353         Removed a now unused local variable.
354
355 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
356
357         Build fix for iOS.
358
359         * WebView/WebPreferences.mm: (-[WebPreferences _invalidateCachedPreferences]):
360         Update a remaining call site of _updatePrivateBrowsingStateFram:to:.
361
362 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
363
364         Crash when multiple WebView instances have different PrivateBrowsing settings
365         https://bugs.webkit.org/show_bug.cgi?id=127019
366
367         * WebView/WebPreferences.mm: (-[WebPreferences _updatePrivateBrowsingStateTo:]):
368         Added a null check to fix Safari crash on startup when extensions are enabled.
369
370 2014-01-15  Alexey Proskuryakov  <ap@apple.com>
371
372         Crash when multiple WebView instances have different PrivateBrowsing settings
373         https://bugs.webkit.org/show_bug.cgi?id=127019
374
375         Reviewed by Sam Weinig.
376
377         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
378         browsing session simply because one preferences object doesn't use private browsing.
379         There could be others that do.
380
381         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
382         browsing, and only delete the private session when there are none any more.
383
384 2014-01-15  David Kilzer  <ddkilzer@apple.com>
385
386         [iOS] Missing RenderObject::style() symbol in WebDOMOperations.mm
387
388         Fixes the following linker error:
389
390             Undefined symbols for architecture x86_64:
391               "__ZNK7WebCore12RenderObject5styleEv", referenced from:
392                   -[DOMNode(WebDOMNodeOperations) isHorizontalWritingMode] in WebDOMOperations.o
393
394         * DOM/WebDOMOperations.mm: Include RenderElement.h instead of
395         RenderObject.h since the inline RenderObject::style() method
396         moved to the former header.
397
398 2014-01-15  Commit Queue  <commit-queue@webkit.org>
399
400         Unreviewed, rolling out r162054.
401         http://trac.webkit.org/changeset/162054
402         https://bugs.webkit.org/show_bug.cgi?id=127053
403
404         Causes assertion failures in DumpRenderTree (Requested by ap
405         on #webkit).
406
407         * WebView/WebPreferences.mm:
408         (-[WebPreferences initWithIdentifier:sendChangeNotification:initWithIdentifier:]):
409         (-[WebPreferences initWithCoder:]):
410         (+[WebPreferences standardPreferences]):
411         (-[WebPreferences dealloc]):
412         (-[WebPreferences setPrivateBrowsingEnabled:]):
413         (-[WebPreferences _invalidateCachedPreferences]):
414         * WebView/WebView.mm:
415         (-[WebView _preferencesChanged:]):
416
417 2014-01-14  Alexey Proskuryakov  <ap@apple.com>
418
419         Crash when multiple WebView instances have different PrivateBrowsing settings
420         https://bugs.webkit.org/show_bug.cgi?id=127019
421
422         Reviewed by Sam Weinig.
423
424         * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Don't delete a private
425         browsing session simply because one preferences object doesn't use private browsing.
426         There could be others that do.
427
428         * WebView/WebPreferences.mm: Track how many WebPreferences objects use private
429         browsing, and only delete the private session when there are none any more.
430
431 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
432
433         Fix the iOS build after r162034.
434
435         * WebCoreSupport/WebProgressTrackerClient.mm:
436         * WebView/WebView.mm:
437         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
438
439 2014-01-14  Mark Rowe  <mrowe@apple.com>
440
441         Stop cmp from spewing useless info during postprocess-headers.sh.
442
443         * postprocess-headers.sh: Pass -s to silence cmp since we only care about the
444         exit status.
445
446 2014-01-14  Joseph Pecoraro  <pecoraro@apple.com>
447
448         [iOS] Crash in NavigatorBase::vendor loading apple.com
449         https://bugs.webkit.org/show_bug.cgi?id=127028
450
451         Reviewed by Daniel Bates.
452
453         Fill in iOS WebKitSystemInterface functions.
454
455         * WebCoreSupport/WebSystemInterface.mm:
456         (InitWebCoreSystemInterface):
457
458 2014-01-14  Anders Carlsson  <andersca@apple.com>
459
460         Create separate progress tracker clients
461         https://bugs.webkit.org/show_bug.cgi?id=127025
462
463         Reviewed by Sam Weinig.
464
465         * WebCoreSupport/WebFrameLoaderClient.h:
466         * WebCoreSupport/WebFrameLoaderClient.mm:
467         * WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
468         * WebCoreSupport/WebProgressTrackerClient.mm: Added.
469         (WebProgressTrackerClient::WebProgressTrackerClient):
470         (WebProgressTrackerClient::progressTrackerDestroyed):
471         (WebProgressTrackerClient::willChangeEstimatedProgress):
472         (WebProgressTrackerClient::didChangeEstimatedProgress):
473         (WebProgressTrackerClient::progressStarted):
474         (WebProgressTrackerClient::progressEstimateChanged):
475         (WebProgressTrackerClient::progressFinished):
476         * WebView/WebView.mm:
477         (-[WebView _commonInitializationWithFrameName:groupName:]):
478         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):
479
480 2014-01-14  Dean Jackson  <dino@apple.com>
481
482         Correct grave mistake in updating the pbxproj file rather than xcconfig.
483
484         * Configurations/WebKit.xcconfig:
485
486 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
487
488         #define ENABLE_DASHBOARD_SUPPORT for iOS.
489
490         * WebView/WebViewPrivate.h:
491
492 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
493
494         Clean up exports and headers for iOS.
495         
496         Need to export WebArchivePboardType on Mac and iOS.
497
498         * WebKit.exp:
499         * WebKit.mac.exp:
500
501 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
502
503         Fix header availability checks on iOS
504         https://bugs.webkit.org/show_bug.cgi?id=127016
505
506         Reviewed by Andy Estes.
507
508         Make DOMTouch* and DOMGesture* headers public headers on iOS,
509         and fix MigrateHeaders.make to skip availability checks when
510         building for iOS.
511
512         * MigrateHeaders.make:
513
514 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
515
516         Need to #import <WebCore/QuickLook.h>.
517
518         * WebView/WebDataSource.mm:
519
520 2014-01-14  Daniel Bates  <dabates@apple.com>
521
522         [iOS] Enable QuickLook
523         https://bugs.webkit.org/show_bug.cgi?id=126954
524
525         Reviewed by David Kilzer.
526
527         Remove empty implementation for quickLookContentForURL: since we always enable QuickLook on iOS.
528
529         * WebView/WebView.mm:
530         (-[WebView quickLookContentForURL:]):
531
532 2014-01-14  Dean Jackson  <dino@apple.com>
533
534         Move some Mac-only exports to WebKit.mac.exp for iOS build.
535
536         * WebKit.exp:
537         * WebKit.mac.exp:
538
539 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
540
541         Move some Mac-only exports to WebKit.mac.exp for iOS build.
542
543         * WebKit.exp:
544         * WebKit.mac.exp:
545
546 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
547
548         Fix iOS WK1 linking.
549
550         * Configurations/WebKit.xcconfig: We do need WebOpenPanelResultListener
551         on iOS.
552         * WebCoreSupport/WebOpenPanelResultListener.mm: Need <WebCore/Icon.h>
553
554 2014-01-14  Simon Fraser  <simon.fraser@apple.com>
555
556         iOS build fixing: link WebKit against Security.framework on iOS.
557
558         * Configurations/WebKit.xcconfig:
559
560 2014-01-14  Dean Jackson  <dino@apple.com>
561
562         [WK1] Allow generated export files on iOS
563         https://bugs.webkit.org/show_bug.cgi?id=127008
564
565         Reviewed by Simon Fraser.
566
567         Add a new Mac-only symbol file.
568
569         * WebKit.exp: To begin, move the WebIcon* into the Mac-specific exports.
570         * WebKit.mac.exp: Added. New file holds Mac-only symbols.
571
572 2014-01-14  Brian J. Burg  <burg@cs.washington.edu>
573
574         Add ENABLE(WEB_REPLAY) feature flag to the build system
575         https://bugs.webkit.org/show_bug.cgi?id=126949
576
577         Reviewed by Joseph Pecoraro.
578
579         * Configurations/FeatureDefines.xcconfig:
580
581 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
582
583         Fix the Mac build. WebViewPrivate.h declares quickLookContentForURL:
584         for iOS, but the implementation conditionalizes on USE(QUICK_LOOK),
585         which we are confused about.
586
587         * WebView/WebView.mm:
588         (-[WebView quickLookContentForURL:]):
589         * WebView/WebViewPrivate.h:
590
591 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
592
593         Fix the remaining compiler errors in iOS WK1.
594
595         * WebView/WebFrame.mm:
596         (vectorForDictationPhrasesArray): Need this function on iOS.
597         (-[WebFrame setSelectedDOMRange:affinity:closeTyping:]): We're already inside
598         a huge if PLATFORM(IOS) block.
599         (-[WebFrame resetTextAutosizingBeforeLayout]): Document now exposes RenderView.
600         * WebView/WebFrameInternal.h: Declare vectorForDictationPhrasesArray() (not a good place for it!)
601         * WebView/WebView.mm: #import cleanup for iOS.
602         (-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]): Declare autoStartRemoteInspector
603         here but this needs cleaning up (<rdar://problem/15810991>).
604         (-[WebView setHostApplicationBundleId:name:]): No [WebView sharedWebInspectorServer] any more.
605         (-[WebView _didCommitLoadForFrame:]): Ditto.
606         * WebView/WebViewData.h: Add allowsRemoteInspection.
607         * WebView/WebViewData.mm: Initialize allowsRemoteInspection
608         (-[WebViewPrivate init]):
609         * WebView/WebViewPrivate.h: Fumbled #ifdef.
610
611 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
612
613         More work towards getting iOS WK1 building.
614
615         * DOM/WebDOMOperations.mm: Need RenderObject.h.
616         * DOM/WebDOMOperationsPrivate.h:
617         * History/WebBackForwardList.mm: Need Foundation/NSGeometry.h for NSRect
618         (-[WebBackForwardList dictionaryRepresentation]): Fix array iteration to match
619         other code.
620         * Misc/WebIconDatabase.h: #ifdef out functions that return NSImages.
621         * Plugins/WebPluginController.mm: Need <WebCore/AudioSession.h>
622         * WebCoreSupport/WebFrameLoaderClient.mm:
623         (WebFrameLoaderClient::transitionToCommittedForNewPage): Some new code to
624         handle the error case.
625         * WebView/WebFrameView.mm: Avoid including some headers which pull in AppKit classes.
626         * WebView/WebHTMLView.mm: Ditto.
627         (-[WebHTMLView selectionImageForcingBlackText:selectionImageForcingBlackText:]): Handle
628         different return type of createDragImageForSelection().
629         * WebView/WebPolicyDelegatePrivate.h:
630         * WebView/WebPreferences.mm: <WebCore/AudioSession.h> and <AudioToolbox/AudioSession.h>
631
632 2014-01-13  Daniel Bates  <dabates@apple.com>
633
634         [iOS] Remove duplicate inclusions of header WAKView.h
635         following <http://trac.webkit.org/changeset/161910>
636
637         * WebView/WebFrameView.h:
638         * WebView/WebHTMLView.h:
639
640 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
641
642         Various iOS WebKit1 build fixes.
643
644         * Configurations/WebKit.xcconfig: Add more Mac-only files
645         to the excluded files list for iOS.
646         * DefaultDelegates/WebDefaultUIDelegate.m: Don't include WebJavaScriptTextInputPanel.h
647         on iOS
648         * History/WebHistory.h: NSCalendarDate doesn't exist on iOS.
649         * Misc/WebDownload.h: Need WAKAppKitStubs.h
650         * Misc/WebNSViewExtras.m: No WebNSPasteboardExtras on iOS
651         * Storage/WebDatabaseManagerClient.mm: Need DatabaseTracker.h, no harm
652         in including it for all platforms.
653         * WebCoreSupport/WebEditorClient.h: Remove useless comment.
654         * WebCoreSupport/WebEditorClient.mm:
655         (nsStringWithoutCopying): Moved
656         (WebEditorClient::checkTextOfParagraph): Modernized.
657         * WebInspector/WebNodeHighlightView.mm: Need FloatQuad.h.
658         * WebView/WebDataSource.mm: Need WebFrameViewInternal.h
659         * WebView/WebDocument.h: Needs WAKView.h.
660         * WebView/WebFrameView.h: Ditto.
661         * WebView/WebHTMLView.h: Ditto.
662         * WebView/WebPDFDocumentExtras.mm:
663         (allScriptsInPDFDocument): No PDFDocument on iOS.
664         * WebView/WebPolicyDelegate.h:
665         * WebView/WebView.h: Fix incorrect #if.
666
667 2014-01-13  Daniel Bates  <dabates@apple.com>
668
669         [iOS] More build fixes for WebKit
670
671         * Configurations/Base.xcconfig: Removed extraneous definition of SUPPORTED_PLATFORMS.
672         * Configurations/WebKit.xcconfig: Exclude more Mac-specific files when building for iOS:
673         CarbonUtils.m, CarbonWindowAdapter.mm, CarbonWindowContentView.m, CarbonWindowFrame.m,
674         HIViewAdapter.m, HIWebView.mm, MailQuirksUserScript.js, OutlookQuirksUserScript.js,
675         PopupMenuMac.mm, SearchPopupMenuMac.mm, WebClipView.mm, WebInspectorClient.mm,
676         WebNetscapeContainerCheckContextInfo.mm, WebNetscapeContainerCheckPrivate.mm, WebRenderNode.mm,
677         WebStringTruncator.mm, and WebTextCompletionController.mm. I haven't verified the Mac-specific
678         nature of each of these files. We may be able to reduce this list upon further investigation.
679         * WebView/WebDocument.h: Include header <WebKit/WAKView.h> for definition of WAKView.
680         * WebView/WebFrameView.h: Ditto.
681         * WebView/WebUIDelegate.h: Ditto.
682         * WebView/WebView.h: Ditto.
683
684 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
685
686         Include WAKAppKitStubs.h to get NSSelectionAffinity.
687
688         * WebView/WebEditingDelegate.h:
689
690 2014-01-13  Simon Fraser  <simon.fraser@apple.com>
691
692         DOMTouch* etc should not be public headers on iOS.
693         
694         * MigrateHeaders.make:
695
696 2014-01-13  Andy Estes  <aestes@apple.com>
697
698         [iOS] Build Fix: switch back to calling postprocess-headers.sh
699
700         * postprocess-headers.sh:
701
702 2014-01-13  Zalan Bujtas  <zalan@apple.com>
703
704         Enable SUBPIXEL_LAYOUT on Mac
705         <https://webkit.org/b/126283>
706
707         Reviewed by Simon Fraser.
708
709         * Configurations/FeatureDefines.xcconfig:
710
711 2014-01-12  Darin Adler  <darin@apple.com>
712
713         Add deprecatedCharacters as a synonym for characters and convert most call sites
714         https://bugs.webkit.org/show_bug.cgi?id=126858
715
716         Reviewed by Anders Carlsson.
717
718         * History/BinaryPropertyList.cpp:
719         (BinaryPropertyListSerializer::appendStringObject):
720         Use deprecatedCharacters instead of characters.
721
722 2014-01-12  Darin Adler  <darin@apple.com>
723
724         Add type checking to isEqual methods
725         https://bugs.webkit.org/show_bug.cgi?id=126862
726
727         Reviewed by Anders Carlsson.
728
729         * WebCoreSupport/WebSecurityOrigin.mm:
730         (-[WebSecurityOrigin isEqual:]): Added a FIXME about the lack of a hash method
731         override. Tweaked formatting.
732
733         * WebView/WebDashboardRegion.mm:
734         (-[WebDashboardRegion isEqual:]): Added type checking on the argument. Added a
735         FIXME about the lack of a hash method override.
736
737 2014-01-11  Alexey Proskuryakov  <ap@apple.com>
738
739         [Mac] [Windows] Stop scheduling network requests in WebCore
740         https://bugs.webkit.org/show_bug.cgi?id=126789
741         <rdar://problem/15114727>
742
743         Reviewed by Sam Weinig.
744
745         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Updated
746         for new WKSI function names.
747
748 2014-01-10  Anders Carlsson  <andersca@apple.com>
749
750         Tweak ProgressTrackerClient functions
751         https://bugs.webkit.org/show_bug.cgi?id=126808
752
753         Reviewed by Sam Weinig.
754
755         * WebCoreSupport/WebFrameLoaderClient.h:
756         * WebCoreSupport/WebFrameLoaderClient.mm:
757         (WebFrameLoaderClient::progressStarted):
758         (WebFrameLoaderClient::progressEstimateChanged):
759         (WebFrameLoaderClient::progressFinished):
760
761 2014-01-10  Anders Carlsson  <andersca@apple.com>
762
763         Move progress tracking functions from FrameLoaderClient to a new ProgressTrackerClient
764         https://bugs.webkit.org/show_bug.cgi?id=126801
765
766         Reviewed by Sam Weinig.
767
768         * WebCoreSupport/WebFrameLoaderClient.h:
769         * WebView/WebView.mm:
770         (-[WebView _commonInitializationWithFrameName:groupName:]):
771
772 2014-01-10  David Kilzer  <ddkilzer@apple.com>
773
774         Clean up architectures in xcconfig files
775         <http://webkit.org/b/126794>
776
777         Reviewed by Andy Estes.
778
779         * Configurations/WebKit.xcconfig: Remove armv6, armv7f, ppc.
780         - Add new arch.
781
782 2014-01-10  Yongjun Zhang  <yongjun_zhang@apple.com>
783
784         Clear unparented tiled layers on memory pressure.
785         https://bugs.webkit.org/show_bug.cgi?id=126737
786
787         Reviewed by Simon Fraser.
788
789         * WebView/WebView.mm:
790         (+[WebView _handleMemoryWarning]): Clear all unparented tiles when under memory pressure.
791
792 2014-01-10  Daniel Bates  <dabates@apple.com>
793
794         Fix the WebCore, WebKit build targets following <http://trac.webkit.org/changeset/161638>
795         (https://bugs.webkit.org/show_bug.cgi?id=126698)
796
797         Tell Xcode that the supported platforms for all WebCore targets are iOS and OS X.
798
799         * Configurations/Base.xcconfig:
800
801 2014-01-09  Andy Estes  <aestes@apple.com>
802
803         [iOS] Upstream iOS changes to MigrateHeaders.make
804         https://bugs.webkit.org/show_bug.cgi?id=126731
805
806         Reviewed by David Kilzer.
807
808         * MigrateHeaders.make: Migrate iOS-specific headers when building for iOS.
809
810 2014-01-10  Daniel Bates  <dabates@apple.com>
811
812         [iOS] Upstream WebCore and Tools miscellaneous changes
813         https://bugs.webkit.org/show_bug.cgi?id=126698
814
815         Reviewed by David Kilzer.
816
817         * MigrateHeaders.make:
818
819 2014-01-08  Anders Carlsson  <andersca@apple.com>
820
821         Add WTF::StringView and use it for grammar checking
822         https://bugs.webkit.org/show_bug.cgi?id=126644
823
824         Reviewed by Antti Koivisto.
825
826         * WebCoreSupport/WebEditorClient.h:
827         * WebCoreSupport/WebEditorClient.mm:
828         (WebEditorClient::checkTextOfParagraph):
829         Update to match the new signature.
830
831         (nsStringWithoutCopying):
832         New function that creates an NSString that references StringView data
833         without copying the data. (If this function proves to be useful elsewhere, it could
834         potentially be added to StringView).
835
836 2014-01-02  Andy Estes  <aestes@apple.com>
837
838         [iOS] Clean up some exported headers
839         https://bugs.webkit.org/show_bug.cgi?id=126403
840
841         Reviewed by Simon Fraser.
842
843         Public header files that are completely excluded on iOS don't need
844         !TARGET_OS_IPHONE guards since they are already listed in
845         EXCLUDED_SOURCE_FILE_NAMES.
846
847         I also took the opportunity to sort EXCLUDED_SOURCE_FILE_NAMES and to
848         clean up some #imports.
849
850         * Configurations/WebKit.xcconfig:
851         * Misc/WebCache.h:
852         * Misc/WebIconDatabasePrivate.h:
853         * Misc/WebLocalizableStrings.h:
854         * Misc/WebNSEventExtras.h:
855         * Misc/WebNSPasteboardExtras.h:
856         * Misc/WebNSWindowExtras.h:
857         * Panels/WebPanelAuthenticationHandler.h:
858         * Plugins/WebPluginsPrivate.h:
859         * Storage/WebDatabaseManagerPrivate.h:
860         * WebCoreSupport/WebJavaScriptTextInputPanel.h:
861         * WebCoreSupport/WebKeyGenerator.h:
862         * WebCoreSupport/WebSecurityOriginPrivate.h:
863         * WebView/WebDashboardRegion.h:
864         * WebView/WebDynamicScrollBarsView.h:
865         * WebView/WebFrameView.h:
866         * WebView/WebPreferenceKeysPrivate.h:
867         * WebView/WebResourceLoadDelegatePrivate.h:
868         * WebView/WebView.h:
869
870 2014-01-07  Seokju Kwon  <seokju@webkit.org>
871
872         Web Inspector: Remove leftover 'device metrics' code
873         https://bugs.webkit.org/show_bug.cgi?id=126607
874
875         Reviewed by Joseph Pecoraro.
876
877         * WebKit.order: Update after removing InspectorClient::overrideDeviceMetrics().
878
879 2014-01-02  Andy Estes  <aestes@apple.com>
880
881         [iOS] Upstream WebKit support for various features
882         https://bugs.webkit.org/show_bug.cgi?id=126413
883
884         Reviewed by Sam Weinig.
885
886         Upstream iOS WebKit changes needed for these features:
887
888         - ENABLE(DELETION_UI)
889         - ENABLE(TOUCH_EVENTS)
890         - USE(QUICK_LOOK)
891         - USE(UIKIT_EDITING)
892         - ENABLE(DISK_IMAGE_CACHE)
893         - ENABLE(IOS_TEXT_AUTOSIZING)
894         - ENABLE(ICONDATABASE)
895         - ENABLE(DASHBOARD_SUPPORT)
896
897         * DefaultDelegates/WebDefaultEditingDelegate.m:
898         * Misc/WebCache.mm:
899         * WebCoreSupport/WebChromeClient.h:
900         * WebView/WebDataSource.mm:
901         (-[WebDataSource dealloc]):
902         * WebView/WebEditingDelegatePrivate.h:
903         * WebView/WebFrame.mm:
904         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
905         * WebView/WebHTMLView.mm:
906         (-[WebHTMLView maintainsInactiveSelection]):
907         (-[WebHTMLView touch:]):
908         * WebView/WebPreferences.mm:
909         (+[WebPreferences initialize]):
910         * WebView/WebPreferencesPrivate.h:
911         * WebView/WebView.mm:
912         (-[WebView _preferencesChanged:]):
913         (-[WebView _cacheFrameLoadDelegateImplementations]):
914         (-[WebView quickLookContentForURL:]):
915         (-[WebView _touchEventRegions]):
916         * WebView/WebViewPrivate.h:
917
918 2014-01-02  Andy Estes  <aestes@apple.com>
919
920         [iOS] Upstream a bug fix for plugin-backed media elements
921         https://bugs.webkit.org/show_bug.cgi?id=126412
922
923         Reviewed by Eric Carlson.
924
925         Media elements backed by plug-ins should outlive being removed from the
926         document, like their native counterparts do.
927
928         * Plugins/WebPluginController.h:
929         * Plugins/WebPluginController.mm:
930         (-[NSView isMediaPlugInProxyView]):
931         (-[NSView setIsMediaPlugInProxyView:]):
932         (-[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
933         (-[WebPluginController mediaPlugInProxyViewCreated:]):
934         (-[WebPluginController destroyPlugin:]):
935         * WebCoreSupport/WebFrameLoaderClient.mm:
936         (pluginView):
937
938 2014-01-07  Mark Rowe  <mrowe@apple.com>
939
940         <https://webkit.org/b/126562> DOMProgressEvent has unspecified availability
941
942         Reviewed by Ryosuke Niwa.
943
944         * MigrateHeaders.make: Ensure that public DOM headers do not have unspecified availability.
945
946 2014-01-06  Mark Rowe  <mrowe@apple.com>
947
948         Mountain Lion build fix after r161332.
949
950         * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
951         argument so remove it.
952
953 2014-01-06  Mark Rowe  <mrowe@apple.com>
954
955         <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros
956
957         The legacy WebKit availability macros are verbose, confusing, and provide no benefit
958         over using the system availability macros directly. The original vision was that
959         they'd serve a cross-platform purpose but that never came to be.
960
961         Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
962         availability macros to allow the headers to advertise the API as unavailable on OS X
963         without interfering with the ability to build on iOS. This is achieved by defining
964         WEBKIT-prefixed versions of the Foundation availability macros that are defined to
965         their NS-prefixed equivalents. The installed headers are post-processed to map these
966         macros back to their Foundation equivalents.
967
968         Part of <rdar://problem/15512304>.
969
970         The OS X version used in the new availability macros is based on the mapping in
971         JavaScriptCore/WebKitAvailability.h.
972
973         Reviewed by Sam Weinig.
974
975         * Carbon/CarbonUtils.h:
976         * Carbon/HIWebView.h:
977         * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
978         * Plugins/WebPlugin.h:
979         * Plugins/WebPluginViewFactory.h:
980         * WebView/WebFrameLoadDelegate.h:
981         * WebView/WebResourceLoadDelegatePrivate.h:
982         * WebView/WebUIDelegate.h:
983         * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
984         WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
985
986 2014-01-04  Zan Dobersek  <zdobersek@igalia.com>
987
988         Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
989         https://bugs.webkit.org/show_bug.cgi?id=126439
990
991         Reviewed by Andreas Kling.
992
993         Instead of relying on std::pair and std::make_pair symbols being present in the current scope
994         through the pair and make_pair symbols, the std:: specifier should be used explicitly.
995
996         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
997         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
998         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
999         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
1000         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
1001         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1002
1003 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
1004
1005         Remove WindowIsVisible
1006         https://bugs.webkit.org/show_bug.cgi?id=126270
1007
1008         Reviewed by Tim Horton.
1009
1010         We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
1011         The latter detects that the content is hidden in fewer cases than the former, and as such, the
1012         former is always preferable.
1013
1014         This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
1015         Plugin::windowVisibilityChanged.
1016
1017         * WebView/WebView.mm:
1018         (-[WebView _windowWillOrderOnScreen:]):
1019         (-[WebView _windowWillOrderOffScreen:]):
1020             - rename ContainingWindowIsVisible -> ContentIsVisible.
1021
1022 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
1023
1024         Merge didMoveOnscreen / page visibility to isVisible
1025         https://bugs.webkit.org/show_bug.cgi?id=126268
1026
1027         Reviewed by Tim Horton.
1028
1029         The onscreen state most closely tracks view visibility (though currently
1030         also tracks a mix of in-window state). Make more consistent, simplify,
1031         and move all animation suspension logic to Page, so it can be controlled
1032         by the PageThrottler.
1033
1034         * WebView/WebView.mm:
1035         (-[WebView _commonInitializationWithFrameName:groupName:]):
1036         (-[WebView _updateVisibilityState]):
1037             - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
1038         (-[WebView _setIsVisible:isInitialState:]):
1039             - added.
1040         (-[WebView _setVisibilityState:isInitialState:]):
1041             - setVisibilityState -> setIsVisible/setIsPrerender.
1042         (-[WebView viewWillMoveToWindow:]):
1043         (-[WebView viewDidMoveToWindow]):
1044             - remove redundant calls to willMoveOffscreen/didMoveOnscreen
1045               (this is handled by _updateVisibilityState).
1046
1047 2013-12-23  Oliver Hunt  <oliver@apple.com>
1048
1049         Refactor PutPropertySlot to be aware of custom properties
1050         https://bugs.webkit.org/show_bug.cgi?id=126187
1051
1052         Reviewed by Antti Koivisto.
1053
1054         Update for new method signatures.
1055
1056         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1057         (WebKit::NetscapePluginInstanceProxy::setProperty):
1058
1059 2013-12-31  Andy Estes  <aestes@apple.com>
1060
1061         [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
1062         https://bugs.webkit.org/show_bug.cgi?id=125746
1063
1064         Reviewed by David Kilzer.
1065
1066         This is a straight upstreaming of the various PLATFORM(IOS) changes
1067         made to Source/WebKit/ with the following modifications:
1068
1069         - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
1070         of <Foundation/Foundation.h> followed by an include of
1071         <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
1072         relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
1073
1074         - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
1075         removed from files that include WebKitPrefix.h.
1076
1077         - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
1078         other sensitive terms were elided.
1079
1080         - Various PLATFORM(IOS) blocks were simplified. For instance:
1081
1082             #if !PLATFORM(IOS)
1083             ...
1084             #endif
1085             #if PLATFORM(IOS)
1086             ...
1087             #endif
1088
1089         Was simplified to:
1090
1091             #if !PLATFORM(IOS)
1092             ...
1093             #else
1094             ...
1095             #endif
1096
1097         * Configurations/Base.xcconfig:
1098         * Configurations/DebugRelease.xcconfig:
1099         * Configurations/Version.xcconfig:
1100         * Configurations/WebKit.xcconfig:
1101         * Configurations/iOS.xcconfig: Added.
1102         * DOM/WebDOMOperations.mm:
1103         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1104         * DefaultDelegates/WebDefaultEditingDelegate.m:
1105         * DefaultDelegates/WebDefaultPolicyDelegate.m:
1106         * DefaultDelegates/WebDefaultUIDelegate.h:
1107         * DefaultDelegates/WebDefaultUIDelegate.m:
1108         * History/WebBackForwardList.mm:
1109         * History/WebHistory.mm:
1110         * History/WebHistoryItem.mm:
1111         * History/WebURLsWithTitles.m:
1112         * Misc/WebCache.mm:
1113         * Misc/WebDownload.mm:
1114         * Misc/WebElementDictionary.mm:
1115         * Misc/WebIconDatabase.mm:
1116         * Misc/WebIconDatabaseInternal.h:
1117         * Misc/WebKitNSStringExtras.mm:
1118         * Misc/WebKitSystemBits.m:
1119         * Misc/WebKitVersionChecks.h:
1120         * Misc/WebKitVersionChecks.m:
1121         * Misc/WebLocalizableStrings.mm:
1122         * Misc/WebNSArrayExtras.h:
1123         * Misc/WebNSArrayExtras.m:
1124         * Misc/WebNSControlExtras.h:
1125         * Misc/WebNSControlExtras.m:
1126         * Misc/WebNSDictionaryExtras.h:
1127         * Misc/WebNSDictionaryExtras.m:
1128         * Misc/WebNSEventExtras.m:
1129         * Misc/WebNSFileManagerExtras.mm:
1130         * Misc/WebNSImageExtras.h:
1131         * Misc/WebNSImageExtras.m:
1132         * Misc/WebNSPasteboardExtras.mm:
1133         * Misc/WebNSPrintOperationExtras.h:
1134         * Misc/WebNSPrintOperationExtras.m:
1135         * Misc/WebNSURLExtras.mm:
1136         * Misc/WebNSViewExtras.m:
1137         * Misc/WebNSWindowExtras.m:
1138         * Panels/WebAuthenticationPanel.h:
1139         * Panels/WebAuthenticationPanel.m:
1140         * Panels/WebPanelAuthenticationHandler.m:
1141         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1142         * Plugins/WebBasePluginPackage.h:
1143         * Plugins/WebBasePluginPackage.mm:
1144         * Plugins/WebJavaPlugIn.h:
1145         * Plugins/WebPluginContainerCheck.mm:
1146         * Plugins/WebPluginController.h:
1147         * Plugins/WebPluginController.mm:
1148         * Plugins/WebPluginDatabase.mm:
1149         * Plugins/WebPluginPackage.mm:
1150         * Plugins/WebPluginsPrivate.m:
1151         * Storage/WebDatabaseManager.mm:
1152         * Storage/WebDatabaseManagerClient.h:
1153         * Storage/WebDatabaseManagerClient.mm:
1154         * Storage/WebDatabaseManagerInternal.h: Added.
1155         * Storage/WebStorageManager.mm:
1156         * WebCoreSupport/CorrectionPanel.h:
1157         * WebCoreSupport/WebAlternativeTextClient.h:
1158         * WebCoreSupport/WebApplicationCache.mm:
1159         * WebCoreSupport/WebChromeClient.h:
1160         * WebCoreSupport/WebChromeClient.mm:
1161         * WebCoreSupport/WebContextMenuClient.mm:
1162         * WebCoreSupport/WebEditorClient.h:
1163         * WebCoreSupport/WebEditorClient.mm:
1164         * WebCoreSupport/WebFrameLoaderClient.h:
1165         * WebCoreSupport/WebFrameLoaderClient.mm:
1166         * WebCoreSupport/WebFrameNetworkingContext.h:
1167         * WebCoreSupport/WebFrameNetworkingContext.mm:
1168         * WebCoreSupport/WebGeolocationClient.h:
1169         * WebCoreSupport/WebGeolocationClient.mm:
1170         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
1171         * WebCoreSupport/WebKeyGenerator.mm:
1172         * WebCoreSupport/WebNotificationClient.mm:
1173         * WebCoreSupport/WebOpenPanelResultListener.mm:
1174         * WebCoreSupport/WebSecurityOrigin.mm:
1175         * WebCoreSupport/WebSystemInterface.mm:
1176         * WebKitPrefix.h:
1177         * WebView/WebArchive.mm:
1178         * WebView/WebClipView.h:
1179         * WebView/WebDataSource.mm:
1180         * WebView/WebDelegateImplementationCaching.h:
1181         * WebView/WebDelegateImplementationCaching.mm:
1182         * WebView/WebDeviceOrientation.mm:
1183         * WebView/WebDocumentInternal.h:
1184         * WebView/WebDocumentLoaderMac.mm:
1185         * WebView/WebDynamicScrollBarsViewInternal.h:
1186         * WebView/WebFormDelegate.m:
1187         * WebView/WebFrame.mm:
1188         * WebView/WebFrameInternal.h:
1189         * WebView/WebFrameView.mm:
1190         * WebView/WebFullScreenController.h:
1191         * WebView/WebFullScreenController.mm:
1192         * WebView/WebHTMLRepresentation.mm:
1193         * WebView/WebHTMLView.mm:
1194         * WebView/WebHTMLViewInternal.h:
1195         * WebView/WebPDFDocumentExtras.h:
1196         * WebView/WebPDFDocumentExtras.mm:
1197         * WebView/WebPDFRepresentation.h:
1198         * WebView/WebPDFRepresentation.mm:
1199         * WebView/WebPDFView.h:
1200         * WebView/WebPDFView.mm:
1201         * WebView/WebPreferences.mm:
1202         * WebView/WebResource.mm:
1203         * WebView/WebTextCompletionController.h:
1204         * WebView/WebTextIterator.mm:
1205         * WebView/WebView.mm:
1206         * WebView/WebViewData.h:
1207         * WebView/WebViewData.mm:
1208         * WebView/WebViewInternal.h:
1209
1210 2013-12-25  Commit Queue  <commit-queue@webkit.org>
1211
1212         Unreviewed, rolling out r161033 and r161074.
1213         http://trac.webkit.org/changeset/161033
1214         http://trac.webkit.org/changeset/161074
1215         https://bugs.webkit.org/show_bug.cgi?id=126240
1216
1217         Oliver says that a rollout would be better (Requested by ap on
1218         #webkit).
1219
1220         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1221         (WebKit::NetscapePluginInstanceProxy::setProperty):
1222
1223 2013-12-23  Oliver Hunt  <oliver@apple.com>
1224
1225         Refactor PutPropertySlot to be aware of custom properties
1226         https://bugs.webkit.org/show_bug.cgi?id=126187
1227
1228         Reviewed by msaboff.
1229
1230         Update for new method signatures.
1231
1232         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1233         (WebKit::NetscapePluginInstanceProxy::setProperty):
1234
1235 2013-12-23  Lucas Forschler  <lforschler@apple.com>
1236
1237         <rdar://problem/15682948> Update copyright strings
1238
1239         Reviewed by Dan Bernstein.
1240
1241         * Info.plist:
1242
1243 2013-12-19  Andy Estes  <aestes@apple.com>
1244
1245         Remove WebFilterEvaluator wrappers from WebKitSystemInterface
1246         https://bugs.webkit.org/show_bug.cgi?id=126028
1247
1248         Reviewed by Anders Carlsson.
1249
1250         * WebCoreSupport/WebSystemInterface.mm:
1251         (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
1252
1253 2013-12-17  Gavin Barraclough  <barraclough@apple.com>
1254
1255         Remove PageVisibilityStateUnloaded
1256         https://bugs.webkit.org/show_bug.cgi?id=125869
1257
1258         Reviewed by Anders Carlsson.
1259
1260         This is not currently supported by WebKit, remove this enum value.
1261         We can always add this back later if/when we add support for this state.
1262
1263         * WebView/WebView.mm:
1264         (core):
1265         (kit):
1266         * WebView/WebViewPrivate.h:
1267             - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
1268
1269 2013-12-14  Andy Estes  <aestes@apple.com>
1270
1271         [iOS] Upstream changes to WebKit Public and Private headers
1272         https://bugs.webkit.org/show_bug.cgi?id=125745
1273
1274         Reviewed by Dan Bernstein.
1275
1276         * Configurations/WebKit.xcconfig: Ignore headers that are completely
1277         excluded on iOS. This prevents empty headers from being installed into
1278         the iOS SDK.
1279         * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
1280         * History/WebBackForwardListPrivate.h: Ditto.
1281         * History/WebHistoryItem.h: Ditto.
1282         * History/WebHistoryItemPrivate.h: Ditto.
1283         * Misc/WebCache.h: Ditto.
1284         * Misc/WebIconDatabase.h: Ditto.
1285         * Misc/WebIconDatabasePrivate.h: Ditto.
1286         * Misc/WebKitNSStringExtras.h: Ditto.
1287         * Misc/WebLocalizableStrings.h: Ditto.
1288         * Misc/WebNSEventExtras.h: Ditto.
1289         * Misc/WebNSFileManagerExtras.h: Ditto.
1290         * Misc/WebNSPasteboardExtras.h: Ditto.
1291         * Misc/WebNSURLExtras.h: Ditto.
1292         * Misc/WebNSViewExtras.h: Ditto.
1293         * Misc/WebNSWindowExtras.h: Ditto.
1294         * Panels/WebPanelAuthenticationHandler.h: Ditto.
1295         * Plugins/WebPlugin.h: Ditto.
1296         * Plugins/WebPluginContainer.h: Ditto.
1297         * Plugins/WebPluginContainerPrivate.h: Ditto.
1298         * Plugins/WebPluginDatabase.h: Ditto.
1299         * Plugins/WebPluginPrivate.h: Ditto.
1300         * Plugins/WebPluginViewFactory.h: Ditto.
1301         * Plugins/WebPluginsPrivate.h: Ditto.
1302         * Storage/WebDatabaseManagerPrivate.h: Ditto.
1303         * WebCoreSupport/WebApplicationCache.h: Ditto.
1304         * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
1305         * WebCoreSupport/WebKeyGenerator.h: Ditto.
1306         * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
1307         * WebView/WebDashboardRegion.h: Ditto.
1308         * WebView/WebDataSource.h: Ditto.
1309         * WebView/WebDataSourcePrivate.h: Ditto.
1310         * WebView/WebDocument.h: Ditto.
1311         * WebView/WebDocumentPrivate.h: Ditto.
1312         * WebView/WebDynamicScrollBarsView.h: Ditto.
1313         * WebView/WebEditingDelegate.h: Ditto.
1314         * WebView/WebEditingDelegatePrivate.h: Ditto.
1315         * WebView/WebFormDelegate.h: Ditto.
1316         * WebView/WebFrameLoadDelegate.h: Ditto.
1317         * WebView/WebFramePrivate.h: Ditto.
1318         * WebView/WebFrameView.h: Ditto.
1319         * WebView/WebFrameViewPrivate.h: Ditto.
1320         * WebView/WebHTMLRepresentation.h: Ditto.
1321         * WebView/WebHTMLView.h: Ditto.
1322         * WebView/WebHTMLViewPrivate.h: Ditto.
1323         * WebView/WebPolicyDelegate.h: Ditto.
1324         * WebView/WebPreferenceKeysPrivate.h: Ditto.
1325         * WebView/WebPreferences.h: Ditto.
1326         * WebView/WebPreferencesPrivate.h: Ditto.
1327         * WebView/WebRenderLayer.h: Ditto.
1328         * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
1329         * WebView/WebResourcePrivate.h: Ditto.
1330         * WebView/WebUIDelegate.h: Ditto.
1331         * WebView/WebUIDelegatePrivate.h: Ditto.
1332         * WebView/WebView.h: Ditto.
1333         * WebView/WebViewPrivate.h: Ditto.
1334
1335 2013-12-15  Andy Estes  <aestes@apple.com>
1336
1337         [iOS] Upstream changes to FeatureDefines.xcconfig
1338         https://bugs.webkit.org/show_bug.cgi?id=125742
1339
1340         Reviewed by Dan Bernstein.
1341
1342         * Configurations/FeatureDefines.xcconfig:
1343
1344 2013-12-14  Andy Estes  <aestes@apple.com>
1345
1346         Unify FeatureDefines.xcconfig
1347         https://bugs.webkit.org/show_bug.cgi?id=125741
1348
1349         Rubber-stamped by Dan Bernstein.
1350
1351         * Configurations/FeatureDefines.xcconfig: Remove a stray space in
1352         FEATURE_DEFINES.
1353
1354 2013-12-11  Joseph Pecoraro  <pecoraro@apple.com>
1355
1356         Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
1357         https://bugs.webkit.org/show_bug.cgi?id=125324
1358
1359         Reviewed by Timothy Hatcher.
1360
1361         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1362         * WebCoreSupport/WebInspectorClient.mm:
1363         * WebView/WebFrame.mm:
1364         * WebView/WebView.mm:
1365
1366 2013-12-03  Mark Rowe  <mrowe@apple.com>
1367
1368         <https://webkit.org/b/125139> Modernize the WebKit API headers
1369         <rdar://problem/15540175>
1370
1371         This consists of three main changes:
1372         1) Converting the return type of initializer methods to instancetype.
1373         2) Declaring properties rather than getters and setters.
1374         3) Declaring explicitly sized enums.
1375
1376         Changing the declarations from getters and setters to properties also required
1377         updating the headerdoc in a number of places.
1378
1379         Reviewed by Anders Carlsson.
1380
1381         * DOM/WebDOMOperations.h:
1382         * History/WebBackForwardList.h:
1383         * History/WebHistory.h:
1384         * History/WebHistoryItem.h:
1385         * History/WebHistoryItem.mm:
1386         * Plugins/WebPlugin.h:
1387         * Plugins/WebPluginContainer.h:
1388         * WebView/WebArchive.h:
1389         * WebView/WebArchive.mm:
1390         * WebView/WebDataSource.h:
1391         * WebView/WebDataSource.mm:
1392         * WebView/WebEditingDelegate.h:
1393         * WebView/WebFrame.h:
1394         * WebView/WebFrame.mm:
1395         * WebView/WebFrameView.h:
1396         * WebView/WebPolicyDelegate.h:
1397         * WebView/WebPreferences.h:
1398         * WebView/WebPreferences.mm:
1399         (-[WebPreferences cacheModel]): Cast to the enum.
1400         * WebView/WebResource.h:
1401         * WebView/WebResource.mm:
1402         * WebView/WebUIDelegate.h:
1403         * WebView/WebView.h:
1404         * WebView/WebView.mm:
1405         (+[WebView _didSetCacheModel]): Fix the return type.
1406
1407 2013-12-10  Mark Rowe  <mrowe@apple.com>
1408
1409         <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
1410         <rdar://problem/15634192>
1411
1412         Reviewed by Dan Bernstein.
1413
1414         * WebView/WebView.mm:
1415         (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
1416         bring the major component of the version down to 3 digits.
1417
1418 2013-12-09  Sam Weinig  <sam@webkit.org>
1419
1420         Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
1421
1422         Rubber-stamped by Dan Bernstein.
1423
1424         * WebView/WebAllowDenyPolicyListener.h:
1425         Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
1426
1427 2013-12-05  Jer Noble  <jer.noble@apple.com>
1428
1429         [MSE] Add a runtime-setting for the MediaSource constructor.
1430         https://bugs.webkit.org/show_bug.cgi?id=125336
1431
1432         Reviewed by Eric Carlson.
1433
1434         Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
1435
1436         * WebView/WebPreferenceKeysPrivate.h:
1437         * WebView/WebPreferences.mm:
1438         (+[WebPreferences initialize]):
1439         (-[WebPreferences mediaSourceEnabled]):
1440         (-[WebPreferences setMediaSourceEnabled:]):
1441         * WebView/WebPreferencesPrivate.h:
1442         * WebView/WebView.mm:
1443         (-[WebView _preferencesChanged:]):
1444
1445 2013-12-05  Mark Lam  <mark.lam@apple.com>
1446
1447         C Loop LLINT layout test regressions.
1448         https://bugs.webkit.org/show_bug.cgi?id=125314.
1449
1450         Reviewed by Geoffrey Garen.
1451
1452         The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
1453         in the build of the WebKit and WebKit2 components. As a result, some fields
1454         in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
1455         WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
1456         offsets depending on whether it is accessed from WebCore and JSC or from
1457         WebKit and WebKit2, and chaos ensued.
1458
1459         This issue will manifest when we pass --cloop to build-webkit.
1460         The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
1461         and WebKit2.
1462
1463         * Configurations/FeatureDefines.xcconfig:
1464
1465 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
1466
1467         Consolidate various frame snapshot capabilities.
1468         https://bugs.webkit.org/show_bug.cgi?id=124325
1469
1470         Reviewed by Darin Adler.
1471
1472         Use new platform-independent methods instead of Mac methods.
1473
1474         * WebView/WebHTMLView.mm:
1475         (-[WebHTMLView _selectionDraggingImage]):
1476         (-[WebHTMLView selectionImageForcingBlackText:]):
1477
1478 2013-12-04  Andy Estes  <aestes@apple.com>
1479
1480         [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
1481         https://bugs.webkit.org/show_bug.cgi?id=125236
1482
1483         Reviewed by Sam Weinig.
1484
1485         $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
1486
1487         * Configurations/DebugRelease.xcconfig:
1488
1489 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
1490
1491         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
1492         https://bugs.webkit.org/show_bug.cgi?id=124613
1493
1494         Reviewed by Timothy Hatcher.
1495
1496         Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
1497
1498         * WebCoreSupport/WebInspectorClient.h:
1499         * WebCoreSupport/WebInspectorClient.mm:
1500         (WebInspectorClient::indicate):
1501         (WebInspectorClient::hideIndicate):
1502         Hook up WebView indication through this new path.
1503
1504         * WebCoreSupport/WebFrameLoaderClient.mm:
1505         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1506         * WebCoreSupport/WebInspectorClient.h:
1507         * WebCoreSupport/WebInspectorClient.mm:
1508         (WebInspectorClient::WebInspectorClient):
1509         (WebInspectorClient::inspectorDestroyed):
1510         * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
1511         * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
1512         * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
1513         * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
1514         * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
1515         * WebInspector/remote/WebInspectorServer.h: Removed.
1516         * WebInspector/remote/WebInspectorServer.mm: Removed.
1517         * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
1518         * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
1519         * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
1520         * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
1521         * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
1522         * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
1523         * WebKit.exp:
1524         * WebView/WebView.mm:
1525         (-[WebView _commonInitializationWithFrameName:groupName:]):
1526         (+[WebView _enableRemoteInspector]):
1527         (+[WebView _disableRemoteInspector]):
1528         (+[WebView _disableAutoStartRemoteInspector]):
1529         (+[WebView _isRemoteInspectorEnabled]):
1530         (+[WebView _hasRemoteInspectorSession]):
1531         (-[WebView allowsRemoteInspection]):
1532         (-[WebView setAllowsRemoteInspection:]):
1533         (-[WebView setIndicatingForRemoteInspector:]):
1534         (-[WebView setHostApplicationBundleId:name:]):
1535         (-[WebView _didCommitLoadForFrame:]):
1536         * WebView/WebViewData.h:
1537         * WebView/WebViewData.mm:
1538         (-[WebViewPrivate init]):
1539         (-[WebViewPrivate dealloc]):
1540         * WebView/WebViewInternal.h:
1541         * WebView/WebViewPrivate.h:
1542         Remove old REMOTE_INSPECTOR.
1543
1544 2013-12-02  Chris Fleizach  <cfleizach@apple.com>
1545
1546         AX: Crash in accessibilityRoot when Document goes away
1547         https://bugs.webkit.org/show_bug.cgi?id=125113
1548
1549         Reviewed by Tim Horton.
1550
1551         The AXObjectCache can sometimes be null if the render tree has been detached from the document.
1552
1553         * WebView/WebFrame.mm:
1554         (-[WebFrame accessibilityRoot]):
1555
1556 2013-11-28  Antti Koivisto  <antti@apple.com>
1557
1558         Remove feature: CSS variables
1559         https://bugs.webkit.org/show_bug.cgi?id=114119
1560
1561         Reviewed by Andreas Kling.
1562
1563         * Configurations/FeatureDefines.xcconfig:
1564
1565 2013-11-27  Sam Weinig  <sam@webkit.org>
1566
1567         Fix the iOS build.
1568
1569         * WebView/WebAllowDenyPolicyListener.h: Added.
1570         * WebView/WebUIDelegatePrivate.h:
1571         Move the WebAllowDenyPolicyListener protocol to its own file.
1572
1573 2013-11-21  Mark Rowe  <mrowe@apple.com>
1574
1575         <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
1576
1577         All modern versions of Xcode set it appropriately for our needs.
1578
1579         Reviewed by Alexey Proskuryakov.
1580
1581         * Configurations/Base.xcconfig:
1582
1583 2013-11-21  Mark Rowe  <mrowe@apple.com>
1584
1585         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
1586
1587         Reviewed by Alexey Proskuryakov.
1588
1589         * Configurations/Base.xcconfig:
1590
1591 2013-11-21  Mark Rowe  <mrowe@apple.com>
1592
1593         <https://webkit.org/b/124700> Fix some deprecation warnings.
1594
1595         Reviewed by Anders Carlsson.
1596
1597         * Plugins/WebNetscapePluginStream.mm:
1598         (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
1599         * WebView/WebDataSource.mm:
1600         (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
1601         * WebView/WebHTMLView.mm:
1602         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
1603
1604 2013-11-20  Mark Lam  <mark.lam@apple.com>
1605
1606         Introducing VMEntryScope to update the VM stack limit.
1607         https://bugs.webkit.org/show_bug.cgi?id=124634.
1608
1609         Reviewed by Geoffrey Garen.
1610
1611         * WebView/WebScriptDebugger.mm:
1612         (WebScriptDebugger::sourceParsed):
1613
1614 2013-11-19  Ryosuke Niwa  <rniwa@webkit.org>
1615
1616         Enable HTMLTemplateElement on Mac port
1617         https://bugs.webkit.org/show_bug.cgi?id=124637
1618
1619         Reviewed by Tim Horton.
1620
1621         * Configurations/FeatureDefines.xcconfig:
1622
1623 2013-11-18  Commit Queue  <commit-queue@webkit.org>
1624
1625         Unreviewed, rolling out r159455.
1626         http://trac.webkit.org/changeset/159455
1627         https://bugs.webkit.org/show_bug.cgi?id=124568
1628
1629         broke two api tests (see bug 124564) (Requested by thorton on
1630         #webkit).
1631
1632         * WebView/WebHTMLView.mm:
1633         (-[WebHTMLView _selectionDraggingImage]):
1634         (-[WebHTMLView selectionImageForcingBlackText:]):
1635
1636 2013-11-18  Mark Rowe  <mrowe@apple.com>
1637
1638         Disable deprecation warnings related to NSCalendarDate in WebHistory.
1639
1640         Reviewed by Anders Carlsson.
1641
1642         * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
1643         a system header, even when not included from a system location. This has the effect
1644         of suppressing warnings when including this header. It's a more general effect than
1645         we're after but is also less invasive than disabling deprecation warnings around
1646         the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
1647         in the future.
1648         * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
1649
1650 2013-11-18  David Hyatt  <hyatt@apple.com>
1651
1652         Add a quirk to not respect center text-align when positioning
1653
1654         <rdar://problem/15427571>
1655         https://bugs.webkit.org/show_bug.cgi?id=124522
1656
1657         Reviewed by Simon Fraser.
1658
1659         Added fast/block/legacy-text-align-position-quirk.html
1660
1661         * WebView/WebPreferenceKeysPrivate.h:
1662         * WebView/WebPreferences.mm:
1663         (+[WebPreferences initialize]):
1664         (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
1665         (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
1666         * WebView/WebPreferencesPrivate.h:
1667         * WebView/WebView.mm:
1668         (-[WebView _preferencesChanged:]):
1669
1670 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
1671
1672         Consolidate various frame snapshot capabilities.
1673         https://bugs.webkit.org/show_bug.cgi?id=124325
1674
1675         Reviewed by Timothy Hatcher.
1676
1677         Use new platform-independent methods instead of Mac methods.
1678
1679         * WebView/WebHTMLView.mm:
1680         (-[WebHTMLView _selectionDraggingImage]):
1681         (-[WebHTMLView selectionImageForcingBlackText:]):
1682
1683 2013-11-18  Anders Carlsson  <andersca@apple.com>
1684
1685         Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
1686         https://bugs.webkit.org/show_bug.cgi?id=124523
1687
1688         Reviewed by Dan Bernstein.
1689
1690         * Plugins/Hosted/NetscapePluginHostManager.mm:
1691         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1692         (WebKit::NetscapePluginHostManager::didCreateWindow):
1693         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1694         (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
1695         (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
1696         (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
1697
1698 2013-11-18  Anders Carlsson  <andersca@apple.com>
1699
1700         Ignore deprecation warnings for now.
1701
1702         * History/WebHistory.h:
1703
1704 2013-11-14  Anders Carlsson  <andersca@apple.com>
1705
1706         Reimplement getDayBoundaries using NSCalendar on 10.9
1707         https://bugs.webkit.org/show_bug.cgi?id=124379
1708
1709         Reviewed by Dan Bernstein.
1710
1711         * History/WebHistory.mm:
1712         (getDayBoundaries):
1713
1714 2013-11-14  Anders Carlsson  <andersca@apple.com>
1715
1716         Stop using deprecated NSPropertyListSerialization methods
1717         https://bugs.webkit.org/show_bug.cgi?id=124377
1718
1719         Reviewed by Mark Rowe.
1720
1721         * History/WebHistory.mm:
1722         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
1723         * Plugins/Hosted/NetscapePluginHostManager.mm:
1724         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1725         (WebKit::NetscapePluginHostManager::instantiatePlugin):
1726         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1727         (WKPCIdentifierInfo):
1728         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1729         (WebKit::NetscapePluginInstanceProxy::enumerate):
1730         (WebKit::NetscapePluginInstanceProxy::marshalValue):
1731         (WebKit::NetscapePluginInstanceProxy::marshalValues):
1732         (WebKit::NetscapePluginInstanceProxy::demarshalValue):
1733         (WebKit::NetscapePluginInstanceProxy::demarshalValues):
1734         * Plugins/Hosted/ProxyInstance.mm:
1735         (WebKit::ProxyInstance::getPropertyNames):
1736
1737 2013-11-13  Joseph Pecoraro  <pecoraro@apple.com>
1738
1739         Unreviewed rollout of r159271, broke Mountain Lion build.
1740
1741         * History/WebHistory.h:
1742         * History/WebHistory.mm:
1743
1744 2013-11-13  Anders Carlsson  <andersca@apple.com>
1745
1746         Deprecate WebHistory methods that use NSCalendarDate
1747         https://bugs.webkit.org/show_bug.cgi?id=124329
1748         <rdar://problem/15441122>
1749
1750         Reviewed by Mark Rowe.
1751
1752         * History/WebHistory.h:
1753         Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
1754         In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
1755         
1756         * History/WebHistory.mm:
1757         Ignore deprecation warnings in methods where NSCalendarDate is used.
1758
1759 2013-11-13  Gordon Sheridan  <gordon_sheridan@apple.com>
1760
1761         Removed deprecated download delegates.
1762         https://bugs.webkit.org/show_bug.cgi?id=124309
1763         <rdar://problem/13570414>
1764
1765         Reviewed by Anders Carlsson.
1766
1767         * Misc/WebDownload.mm:
1768         (-[WebDownloadInternal respondsToSelector:]):
1769         Removed download:shouldBeginChildDownloadOfSource:delegate and
1770         download:didBeginChildDownload.
1771
1772 2013-11-12  Alexey Proskuryakov  <ap@apple.com>
1773
1774         Disable WebCrypto on Mountain Lion
1775         https://bugs.webkit.org/show_bug.cgi?id=124261
1776
1777         Rubber-stamped by Sam Weinig.
1778
1779         * Configurations/FeatureDefines.xcconfig:
1780
1781 2013-11-12  Andy Estes  <aestes@apple.com>
1782
1783         [Mac] Fix some deprecation warnings
1784         https://bugs.webkit.org/show_bug.cgi?id=124252
1785
1786         Reviewed by Mark Rowe.
1787
1788         * Plugins/WebBasePluginPackage.mm:
1789         (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
1790
1791 2013-11-12  Anders Carlsson  <andersca@apple.com>
1792
1793         Remove -[WebHistoryItem _lastVisitedDate]
1794         https://bugs.webkit.org/show_bug.cgi?id=124250
1795
1796         Reviewed by Mark Rowe.
1797
1798         This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
1799
1800         * History/WebHistoryItem.mm:
1801         * History/WebHistoryItemPrivate.h:
1802
1803 2013-11-11  Anders Carlsson  <andersca@apple.com>
1804
1805         FrameFilter can just be an std::function instead
1806         https://bugs.webkit.org/show_bug.cgi?id=124176
1807
1808         Reviewed by Tim Horton.
1809
1810         * DOM/WebDOMOperations.mm:
1811         (-[DOMNode webArchiveByFilteringSubframes:]):
1812
1813 2013-11-11  Dan Bernstein  <mitz@apple.com>
1814
1815         [Mac] .exp files are not source code
1816         https://bugs.webkit.org/show_bug.cgi?id=124154
1817
1818         Reviewed by Andy Estes.
1819
1820         * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
1821         EXCLUDED_SOURCE_FILE_NAMES_macosx.
1822
1823 2013-11-09  Patrick Gansterer  <paroga@webkit.org>
1824
1825         Move RunLoop from WebCore to WTF
1826         https://bugs.webkit.org/show_bug.cgi?id=116606
1827
1828         Reviewed by Anders Carlsson.
1829
1830         * Carbon/CarbonWindowAdapter.mm:
1831         (+[CarbonWindowAdapter initialize]):
1832         * History/WebBackForwardList.mm:
1833         (+[WebBackForwardList initialize]):
1834         * History/WebHistoryItem.mm:
1835         (+[WebHistoryItem initialize]):
1836         * Misc/WebCache.mm:
1837         (+[WebCache initialize]):
1838         * Misc/WebElementDictionary.mm:
1839         (+[WebElementDictionary initialize]):
1840         * Misc/WebIconDatabase.mm:
1841         (+[WebIconDatabase initialize]):
1842         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1843         (+[WebHostedNetscapePluginView initialize]):
1844         * Plugins/WebBaseNetscapePluginView.mm:
1845         * Plugins/WebBasePluginPackage.mm:
1846         * Plugins/WebNetscapePluginView.mm:
1847         (+[WebNetscapePluginView initialize]):
1848         * WebCoreSupport/WebEditorClient.mm:
1849         (+[WebUndoStep initialize]):
1850         * WebCoreSupport/WebFrameLoaderClient.mm:
1851         * WebView/WebArchive.mm:
1852         (+[WebArchivePrivate initialize]):
1853         * WebView/WebDataSource.mm:
1854         (+[WebDataSource initialize]):
1855         * WebView/WebHTMLView.mm:
1856         (+[WebHTMLViewPrivate initialize]):
1857         (+[WebHTMLView initialize]):
1858         * WebView/WebPreferences.mm:
1859         (+[WebPreferences initialize]):
1860         * WebView/WebResource.mm:
1861         (+[WebResourcePrivate initialize]):
1862         * WebView/WebTextIterator.mm:
1863         (+[WebTextIteratorPrivate initialize]):
1864         * WebView/WebView.mm:
1865         (+[WebView initialize]):
1866         * WebView/WebViewData.mm:
1867         (+[WebViewPrivate initialize]):
1868
1869 2013-11-08  Mark Lam  <mark.lam@apple.com>
1870
1871         Move breakpoint (and exception break) functionality into JSC::Debugger.
1872         https://bugs.webkit.org/show_bug.cgi?id=121796.
1873
1874         Reviewed by Geoffrey Garen.
1875
1876         * WebView/WebScriptDebugger.h:
1877         * WebView/WebScriptDebugger.mm:
1878         (WebScriptDebugger::WebScriptDebugger):
1879         (WebScriptDebugger::handlePause):
1880
1881 2013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
1882
1883         Remove a PLATFORM(IOS) from WebKit Private Header
1884         https://bugs.webkit.org/show_bug.cgi?id=124014
1885
1886         Reviewed by Timothy Hatcher.
1887
1888         Make the previously iOS only WebInspectorDidStartSearchingForNode
1889         and WebInspectorDidStopSearchingForNode notifications non iOS specific.
1890
1891         * WebCoreSupport/WebInspectorClient.h:
1892         * WebCoreSupport/WebInspectorClient.mm:
1893         (WebInspectorClient::didSetSearchingForNode):
1894         * WebInspector/WebInspector.h:
1895         * WebInspector/WebInspector.mm:
1896         * WebKit.exp:
1897
1898 2013-11-07  Mark Lam  <mark.lam@apple.com>
1899
1900         Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
1901         https://bugs.webkit.org/show_bug.cgi?id=123945.
1902
1903         Reviewed by Geoffrey Garen.
1904
1905         * WebView/WebScriptDebugger.mm:
1906         (WebScriptDebugger::exception):
1907
1908 2013-11-06  Daniel Bates  <dabates@apple.com>
1909
1910         [iOS] Upstream Letterpress effect
1911         https://bugs.webkit.org/show_bug.cgi?id=123932
1912
1913         Reviewed by Sam Weinig.
1914
1915         Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
1916         letterpress on iOS.
1917
1918         * Configurations/FeatureDefines.xcconfig:
1919
1920 2013-11-04  Alexey Proskuryakov  <ap@apple.com>
1921
1922         DumpRenderTree should reset its preferences file on launch
1923         https://bugs.webkit.org/show_bug.cgi?id=29751
1924
1925         Reviewed by Dan Bernstein.
1926
1927         * WebView/WebView.mm:
1928         (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1929         Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
1930         domain meant that current application's domain was explcitly ignored, and the only
1931         way to override the setting in DRT was through argument domain.
1932
1933 2013-11-01  Jer Noble  <jer.noble@apple.com>
1934
1935         [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
1936         https://bugs.webkit.org/show_bug.cgi?id=123621
1937
1938         Reviewed by Eric Carlson.
1939
1940         Add a new isVideoPluginProxyEnabled setting.
1941
1942         * WebView/WebPreferenceKeysPrivate.h:
1943         * WebView/WebPreferences.mm:
1944         (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
1945         (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
1946         * WebView/WebPreferencesPrivate.h:
1947         * WebView/WebView.mm:
1948         (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
1949
1950 2013-11-01  Andy Estes  <aestes@apple.com>
1951
1952         [iOS] Make some headers Private
1953         https://bugs.webkit.org/show_bug.cgi?id=123626
1954
1955         Reviewed by Andreas Kling.
1956
1957         * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
1958
1959 2013-10-31  Alexey Proskuryakov  <ap@apple.com>
1960
1961         Enable WebCrypto on Mac
1962         https://bugs.webkit.org/show_bug.cgi?id=123587
1963
1964         Reviewed by Anders Carlsson.
1965
1966         * Configurations/FeatureDefines.xcconfig: Do it.
1967
1968 2013-10-30  Ryosuke Niwa  <rniwa@webkit.org>
1969
1970         Remove code for Mac Lion
1971         https://bugs.webkit.org/show_bug.cgi?id=123542
1972
1973         Reviewed by Anders Carlsson.
1974
1975         * WebView/WebHTMLView.mm:
1976         (-[WebHTMLView attachRootLayer:]):
1977         * WebView/WebView.mm:
1978
1979 2013-10-29  Andy Estes  <aestes@apple.com>
1980
1981         [iOS] Upstream Source/WebKit/ios/
1982         https://bugs.webkit.org/show_bug.cgi?id=123470
1983
1984         Reviewed by Sam Weinig.
1985
1986         * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
1987
1988 2013-10-29  Alexey Proskuryakov  <ap@apple.com>
1989
1990         Result of focus-option-control-on-page.html depends on system preferences
1991         https://bugs.webkit.org/show_bug.cgi?id=123304
1992
1993         Reviewed by Simon Fraser.
1994
1995         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1996         Read the preference from its correct domain. This doesn't affect behavior in practice
1997         and isn't part of the fix, but it's a good opportunity to correct this code.
1998
1999 2013-10-29  Jer Noble  <jer.noble@apple.com>
2000
2001         [MSE] [Mac] Enable MediaSource on the Mac
2002         https://bugs.webkit.org/show_bug.cgi?id=122484
2003
2004         Reviewed by Darin Adler.
2005
2006         Enable ENABLE_MEDIA_SOURCE.
2007
2008         * Configurations/FeatureDefines.xcconfig:
2009
2010 2013-10-28  Joseph Pecoraro  <pecoraro@apple.com>
2011
2012         Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
2013         https://bugs.webkit.org/show_bug.cgi?id=123411
2014
2015         Reviewed by Timothy Hatcher.
2016
2017         Upstream iOS node highlighting and view indication.
2018
2019         * WebCoreSupport/WebInspectorClient.h:
2020         * WebInspector/WebInspector.h:
2021         * WebInspector/WebInspector.mm:
2022         * WebInspector/WebNodeHighlight.h:
2023         * WebInspector/WebNodeHighlight.mm:
2024         (-[WebHighlightLayer initWithHighlightView:webView:]):
2025         (-[WebHighlightLayer layoutSublayers]):
2026         (-[WebHighlightLayer actionForKey:]):
2027         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
2028         (-[WebNodeHighlight dealloc]):
2029         (-[WebNodeHighlight attach]):
2030         * WebInspector/WebNodeHighlightView.h:
2031         * WebInspector/WebNodeHighlightView.mm:
2032         (-[WebNodeHighlightView initWithWebNodeHighlight:]):
2033         (-[WebNodeHighlightView dealloc]):
2034         (-[WebNodeHighlightView _attach:numLayers:]):
2035         (findIntersectionOnLineBetweenPoints):
2036         (quadIntersection):
2037         (layerPathWithHole):
2038         (layerPath):
2039         (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
2040         (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
2041         (-[WebNodeHighlightView layoutSublayers:]):
2042         * WebInspector/WebNodeHighlighter.mm:
2043         (-[WebNodeHighlighter highlight]):
2044         * WebView/WebIndicateLayer.h: Added.
2045         * WebView/WebIndicateLayer.mm: Added.
2046         (-[WebIndicateLayer layoutSublayers]):
2047         (-[WebIndicateLayer actionForKey:]):
2048         * WebView/WebView.mm:
2049         (-[WebView setIndicatingForRemoteInspector:]):
2050         (-[WebView setHostApplicationBundleId:name:]):
2051         (-[WebView hostApplicationBundleId]):
2052         (-[WebView hostApplicationName]):
2053         * WebView/WebViewData.h:
2054         * WebView/WebViewData.mm:
2055         (-[WebViewPrivate dealloc]):
2056
2057 2013-10-28  Myles C. Maxfield  <mmaxfield@apple.com>
2058
2059         Parsing support for -webkit-text-decoration-skip: ink
2060         https://bugs.webkit.org/show_bug.cgi?id=123358
2061
2062         Reviewed by Dean Jackson.
2063
2064         Adding ENABLE(CSS3_TEXT_DECORATION)
2065
2066         * Configurations/FeatureDefines.xcconfig:
2067
2068 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
2069
2070         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
2071         https://bugs.webkit.org/show_bug.cgi?id=123111
2072
2073         Reviewed by Timothy Hatcher.
2074
2075         The actual implementation at the WebCoreSupport/WebInspectorClient level
2076         is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
2077
2078         * Configurations/FeatureDefines.xcconfig:
2079         * Misc/WebKitLogging.h:
2080         Misc.
2081
2082         * WebCoreSupport/WebInspectorClient.h:
2083         (WebInspectorClient::pageId):
2084         (WebInspectorClient::setPageId):
2085         Give WebInspectorClient's a page identifier.
2086
2087         * WebCoreSupport/WebInspectorClient.mm:
2088         (WebInspectorClient::WebInspectorClient):
2089         (WebInspectorClient::inspectorDestroyed):
2090         (WebInspectorClient::sendMessageToFrontend):
2091         (WebInspectorClient::sendMessageToBackend):
2092         (WebInspectorClient::setupRemoteConnection):
2093         (WebInspectorClient::teardownRemoteConnection):
2094         (WebInspectorClient::hasLocalSession):
2095         (WebInspectorClient::canBeRemotelyInspected):
2096         (WebInspectorClient::inspectedWebView):
2097         A WebInspectorClient can be either local or remote. Add handling
2098         for remote connections.
2099
2100         * WebInspector/remote/WebInspectorClientRegistry.h: Added.
2101         * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
2102         (+[WebInspectorClientRegistry sharedRegistry]):
2103         (-[WebInspectorClientRegistry init]):
2104         (-[WebInspectorClientRegistry _getNextAvailablePageId]):
2105         (-[WebInspectorClientRegistry registerClient:]):
2106         (-[WebInspectorClientRegistry unregisterClient:]):
2107         (-[WebInspectorClientRegistry clientForPageId:]):
2108         (-[WebInspectorClientRegistry inspectableWebViews]):
2109         Registry for all potentially debuggable pages. All WebInspectorClient instances.
2110
2111         * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
2112         Constants (message keys) shared between WebKit and the XPC process.
2113
2114         * WebInspector/remote/WebInspectorServer.h: Added.
2115         * WebInspector/remote/WebInspectorServer.mm: Added.
2116         (-[WebInspectorServer init]):
2117         (-[WebInspectorServer dealloc]):
2118         (-[WebInspectorServer start]):
2119         (-[WebInspectorServer stop]):
2120         (-[WebInspectorServer isEnabled]):
2121         (-[WebInspectorServer xpcConnection]):
2122         (-[WebInspectorServer setupXPCConnectionIfNeeded]):
2123         (-[WebInspectorServer pushListing]):
2124         (-[WebInspectorServer hasActiveDebugSession]):
2125         (-[WebInspectorServer setHasActiveDebugSession:]):
2126         (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
2127         (-[WebInspectorServer xpcConnectionFailed:]):
2128         (-[WebInspectorServer didRegisterClient:]):
2129         (-[WebInspectorServer didUnregisterClient:]):
2130         Singleton to start/stop remote inspection. Handles the connection to the XPC
2131         and hands off connections to the connection controller.
2132
2133         * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
2134         * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
2135         (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
2136         (-[WebInspectorServerWebViewConnection setupChannel]):
2137         (-[WebInspectorServerWebViewConnection dealloc]):
2138         (-[WebInspectorServerWebViewConnection connectionIdentifier]):
2139         (-[WebInspectorServerWebViewConnection identifier]):
2140         (-[WebInspectorServerWebViewConnection clearChannel]):
2141         (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
2142         (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
2143         (-[WebInspectorServerWebViewConnection receivedData:]):
2144         (-[WebInspectorServerWebViewConnection receivedDidClose:]):
2145         An individual remote debug session connection.
2146
2147         * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
2148         * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
2149         (-[WebInspectorServerWebViewConnectionController initWithServer:]):
2150         (-[WebInspectorServerWebViewConnectionController dealloc]):
2151         (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
2152         (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
2153         (-[WebInspectorServerWebViewConnectionController _pushListing:]):
2154         (-[WebInspectorServerWebViewConnectionController pushListing:]):
2155         (-[WebInspectorServerWebViewConnectionController pushListing]):
2156         (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
2157         (-[WebInspectorServerWebViewConnectionController _receivedData:]):
2158         (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
2159         (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
2160         (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
2161         (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
2162         (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
2163         (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
2164         (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
2165         ConnectionController:
2166           - Holds all the current ongoing remote debug connections.
2167           - Simplifies multi-threaded work on iOS.
2168           - Dispatches incoming messages from the remote connection.
2169
2170         * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
2171         * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
2172         (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
2173         (-[WebInspectorRemoteChannel initWithRemote:local:]):
2174         (-[WebInspectorRemoteChannel closeFromLocalSide]):
2175         (-[WebInspectorRemoteChannel closeFromRemoteSide]):
2176         (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
2177         (-[WebInspectorRemoteChannel sendMessageToBackend:]):
2178         Thin interface between the remote connection and web inspector client.
2179         This simplifies breaking the connection from either side, e.g. the
2180         page closing, or the remote connection disconnecting.
2181
2182         * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
2183         * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
2184         (-[WebInspectorXPCWrapper initWithConnection:]):
2185         (-[WebInspectorXPCWrapper close]):
2186         (-[WebInspectorXPCWrapper dealloc]):
2187         (-[WebInspectorXPCWrapper _deserializeMessage:]):
2188         (-[WebInspectorXPCWrapper _handleEvent:]):
2189         (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
2190         (-[WebInspectorXPCWrapper available]):
2191         * WebKit.exp:
2192         XPC Connection wrapper handling a simple message format.
2193
2194         * WebView/WebViewData.h:
2195         * WebView/WebViewData.mm:
2196         (-[WebViewPrivate init]):
2197         (-[WebViewPrivate dealloc]):
2198         * WebView/WebViewInternal.h:
2199         * WebView/WebViewPrivate.h:
2200         * WebView/WebView.mm:
2201         (-[WebView _commonInitializationWithFrameName:groupName:]):
2202         (+[WebView sharedWebInspectorServer]):
2203         (+[WebView _enableRemoteInspector]):
2204         (+[WebView _disableRemoteInspector]):
2205         (+[WebView _disableAutoStartRemoteInspector]):
2206         (+[WebView _isRemoteInspectorEnabled]):
2207         (+[WebView _hasRemoteInspectorSession]):
2208         (-[WebView canBeRemotelyInspected]):
2209         (-[WebView allowsRemoteInspection]):
2210         (-[WebView setAllowsRemoteInspection:]):
2211         (-[WebView setIndicatingForRemoteInspector:]):
2212         (-[WebView setRemoteInspectorUserInfo:]):
2213         (-[WebView remoteInspectorUserInfo]):
2214         Remote inspector private API.
2215           - Enable / disable globally
2216           - Allow / disallow per webview
2217           - Optionally attach a userInfo dictionary on the WebView that is published with listing.
2218           - Indicate a WebView (implementation to land later)
2219
2220         (-[WebView _didCommitLoadForFrame:]):
2221         * WebCoreSupport/WebFrameLoaderClient.mm:
2222         (WebFrameLoaderClient::dispatchDidReceiveTitle):
2223         Pages changed, pushed page listing.
2224
2225 2013-10-25  Mark Rowe  <mrowe@apple.com>
2226
2227         Fix or disable some deprecation warnings.
2228
2229         Reviewed by Darin Adler.
2230
2231         * Panels/WebAuthenticationPanel.m:
2232         (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
2233         (-[WebAuthenticationPanel logIn:]): Ditto.
2234         (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
2235         response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
2236         * WebView/WebClipView.mm:
2237         (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
2238         how to avoid calling -releaseGState here.
2239
2240 2013-10-24  Mark Rowe  <mrowe@apple.com>
2241
2242         Remove references to OS X 10.7 from Xcode configuration settings.
2243
2244         Now that we're not building for OS X 10.7 they're no longer needed.
2245
2246         Reviewed by Anders Carlsson.
2247
2248         * Configurations/Base.xcconfig:
2249         * Configurations/DebugRelease.xcconfig:
2250         * Configurations/FeatureDefines.xcconfig:
2251         * Configurations/Version.xcconfig:
2252
2253 2013-10-24  Mark Rowe  <mrowe@apple.com>
2254
2255         <rdar://problem/15312643> Prepare for the mysterious future.
2256
2257         Reviewed by David Kilzer.
2258
2259         * Configurations/Base.xcconfig:
2260         * Configurations/DebugRelease.xcconfig:
2261         * Configurations/FeatureDefines.xcconfig:
2262         * Configurations/Version.xcconfig:
2263
2264 2013-10-24  Anders Carlsson  <andersca@apple.com>
2265
2266         Stop bringing in the std namespace
2267         https://bugs.webkit.org/show_bug.cgi?id=123273
2268
2269         Reviewed by Andreas Kling.
2270
2271         * WebView/WebFrameView.mm:
2272         (-[WebFrameView _verticalPageScrollDistance]):
2273         (-[WebFrameView _horizontalPageScrollDistance]):
2274         * WebView/WebHTMLView.mm:
2275         (-[WebHTMLView _scaleFactorForPrintOperation:]):
2276         * WebView/WebView.mm:
2277         (+[WebView _setCacheModel:]):
2278         (+[WebView _maxCacheModelInAnyInstance]):
2279         (+[WebView _cacheModelChangedNotification:]):
2280         (+[WebView _preferencesRemovedNotification:]):
2281
2282 2013-10-22  Dean Jackson  <dino@apple.com>
2283
2284         [WebGL] Implement a software rendering option on Mac
2285         https://bugs.webkit.org/show_bug.cgi?id=123177
2286
2287         Reviewed by Tim Horton.
2288
2289         Implement a way to force software OpenGL rendering
2290         for WebGL, via a Setting/Preference.
2291
2292         * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
2293         * WebView/WebPreferences.mm:
2294         (+[WebPreferences initialize]):
2295         (-[WebPreferences forceSoftwareWebGLRendering]):
2296         (-[WebPreferences setForceSoftwareWebGLRendering:]):
2297         * WebView/WebPreferencesPrivate.h:
2298         * WebView/WebView.mm:
2299         (-[WebView _preferencesChanged:]):
2300
2301 2013-10-21  Mark Rowe  <mrowe@apple.com>
2302
2303         Add a version of WebKitSystemInterface for Mavericks.
2304
2305         Reviewed by Ryosuke Niwa.
2306
2307         * Configurations/DebugRelease.xcconfig:
2308
2309 2013-10-21  Daniel Bates  <dabates@apple.com>
2310
2311         Remove platform #ifdefs from WebDataSourcePrivate.h
2312         https://bugs.webkit.org/show_bug.cgi?id=123120
2313         <rdar://problem/15275533>
2314
2315         Reviewed by Anders Carlsson.
2316
2317         * WebView/WebDataSource.mm:
2318         (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
2319         disk image cache enabled.
2320         (-[WebDataSource setDataSourceDelegate:]): Ditto.
2321         (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
2322         enabled on iOS.
2323         * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
2324         <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
2325
2326 2013-10-20  Mark Lam  <mark.lam@apple.com>
2327
2328         Avoid JSC debugger overhead unless needed.
2329         https://bugs.webkit.org/show_bug.cgi?id=123084.
2330
2331         Reviewed by Geoffrey Garen.
2332
2333         * WebView/WebScriptDebugger.mm:
2334         (WebScriptDebugger::WebScriptDebugger):
2335
2336 2013-10-19  Jer Noble  <jer.noble@apple.com>
2337
2338         Unreviewed roll out of r157695; broke Mac builds.
2339
2340         * Configurations/FeatureDefines.xcconfig:
2341
2342 2013-10-07  Jer Noble  <jer.noble@apple.com>
2343
2344         [MSE] [Mac] Enable MediaSource on the Mac
2345         https://bugs.webkit.org/show_bug.cgi?id=122484
2346
2347         Reviewed by Darin Adler.
2348
2349         Enable ENABLE_MEDIA_SOURCE.
2350
2351         * Configurations/FeatureDefines.xcconfig:
2352
2353 2013-10-19  Andreas Kling  <akling@apple.com>
2354
2355         Attempt to get Lion building.
2356
2357         * WebView/WebDataSource.mm:
2358
2359 2013-10-18  Anders Carlsson  <andersca@apple.com>
2360
2361         Remove spaces between template angle brackets
2362         https://bugs.webkit.org/show_bug.cgi?id=123040
2363
2364         Reviewed by Andreas Kling.
2365
2366         * History/WebHistory.mm:
2367         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
2368         * History/WebHistoryItem.mm:
2369         (-[WebHistoryItem initFromDictionaryRepresentation:]):
2370         * Plugins/Hosted/NetscapePluginHostProxy.h:
2371         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2372         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2373         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
2374         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
2375         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
2376         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
2377         (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
2378         * Plugins/WebNetscapePluginView.h:
2379         * Plugins/WebNetscapePluginView.mm:
2380         (-[WebNetscapePluginView destroyPlugin]):
2381         * Storage/WebDatabaseManager.mm:
2382         (-[WebDatabaseManager origins]):
2383         * Storage/WebStorageManager.mm:
2384         (-[WebStorageManager origins]):
2385         * WebCoreSupport/WebApplicationCache.mm:
2386         (+[WebApplicationCache originsWithCache]):
2387         * WebCoreSupport/WebEditorClient.h:
2388         * WebCoreSupport/WebEditorClient.mm:
2389         (WebEditorClient::getClientPasteboardDataForRange):
2390         (WebEditorClient::documentFragmentFromAttributedString):
2391         * WebCoreSupport/WebFrameLoaderClient.h:
2392         * WebCoreSupport/WebNotificationClient.h:
2393         * WebCoreSupport/WebNotificationClient.mm:
2394         (WebNotificationClient::show):
2395         (WebNotificationClient::clearNotifications):
2396         * WebView/WebArchive.mm:
2397         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2398         (-[WebArchive subresources]):
2399         (-[WebArchive subframeArchives]):
2400         * WebView/WebDataSource.mm:
2401         (-[WebDataSource subresources]):
2402         * WebView/WebViewData.h:
2403
2404 2013-10-16  Jochen Eisinger  <jochen@chromium.org>
2405
2406         A page should exit fullscreen mode if it opens a new popup
2407         https://bugs.webkit.org/show_bug.cgi?id=122865
2408
2409         Reviewed by Jer Noble.
2410
2411         If a fullscreen page opens a popup, the popup would be hidden and
2412         therefore invisible to the user. To avoid this, exit fullscreen mode
2413         before opening a new window.
2414
2415         * WebCoreSupport/WebChromeClient.mm:
2416         (WebChromeClient::createWindow):
2417
2418 2013-10-15  Dean Jackson  <dino@apple.com>
2419
2420         Add ENABLE_WEB_ANIMATIONS flag
2421         https://bugs.webkit.org/show_bug.cgi?id=122871
2422
2423         Reviewed by Tim Horton.
2424
2425         Eventually might be http://dev.w3.org/fxtf/web-animations/
2426         but this is just engine-internal work at the moment.
2427
2428         * Configurations/FeatureDefines.xcconfig:
2429
2430 2013-10-15  Andy Estes  <aestes@apple.com>
2431
2432         Expose -[WebPluginPackage bundle] as SPI
2433         https://bugs.webkit.org/show_bug.cgi?id=122814
2434
2435         Reviewed by Anders Carlsson.
2436
2437         * Plugins/WebPluginPackage.mm:
2438         (-[WebPluginPackage bundle]): Defined.
2439         * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
2440         category on NSObject.
2441
2442 2013-10-12  Darin Adler  <darin@apple.com>
2443
2444         Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
2445         https://bugs.webkit.org/show_bug.cgi?id=122713
2446
2447         Reviewed by Sam Weinig.
2448
2449         * WebView/WebHTMLRepresentation.mm:
2450         (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
2451         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
2452
2453 2013-10-12  Adam Roben  <aroben@webkit.org>
2454
2455         WebViews inside OS X screen savers have large caches, but should not
2456         https://bugs.webkit.org/show_bug.cgi?id=122604
2457
2458         We use WebCacheModelDocumentViewer by default for apps linked against
2459         modern WebKit, and WebCacheModelDocumentBrowser for apps linked
2460         against legacy WebKit. ScreenSaverEngine.app doesn't link against
2461         WebKit at all, and thus falls into the legacy case by accident because
2462         NSVersionOfLinkTimeLibrary("WebKit") returns -1.
2463
2464         But WebViews inside screen savers are almost certainly not being used
2465         as browsers, so this large-ish cache specified by
2466         WebCacheModelDocumentBrowser is wasteful. This is likely true for all
2467         apps that don't directly link against WebKit, so now we use
2468         WebCacheModelDocumentViewer by default for those apps.
2469
2470         Reviewed by Darin Adler.
2471
2472         * WebView/WebPreferences.mm:
2473         (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
2474         for apps that don't link against WebKit directly. Also converted to
2475         use @autoreleasepool {} and early returns while I was in here.
2476
2477 2013-10-12  Alexey Proskuryakov  <ap@apple.com>
2478
2479         Add a feature define for SubtleCrypto
2480         https://bugs.webkit.org/show_bug.cgi?id=122683
2481
2482         Reviewed by Anders Carlsson.
2483
2484         * Configurations/FeatureDefines.xcconfig:
2485
2486 2013-10-12  Darin Adler  <darin@apple.com>
2487
2488         Use unique_ptr instead of delete in a few places
2489         https://bugs.webkit.org/show_bug.cgi?id=122639
2490
2491         Reviewed by Anders Carlsson.
2492
2493         * History/WebHistory.mm:
2494         (-[WebHistoryPrivate init]): Use make_unique.
2495         (-[WebHistoryPrivate dealloc]): Don't delete.
2496         (-[WebHistoryPrivate finalize]): Don't delete.
2497         (-[WebHistoryPrivate data]): Use get.
2498
2499         * WebCoreSupport/WebFrameNetworkingContext.mm:
2500         (privateSession): Use NeverDestroyed here instead of a raw pointer.
2501         (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
2502         new function instead of direct global variable access.
2503         (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
2504         (WebFrameNetworkingContext::storageSession): Ditto.
2505
2506         * WebView/WebFrame.mm:
2507         (-[WebFramePrivate dealloc]): Don't delete.
2508         (-[WebFramePrivate finalize]): Don't delete.
2509         (-[WebFrame _attachScriptDebugger]): Use make_unique.
2510         (-[WebFrame _detachScriptDebugger]): Don't delete.
2511         * WebView/WebFrameInternal.h: Use unique_ptr.
2512
2513 2013-10-11  Timothy Hatcher  <timothy@apple.com>
2514
2515         Remove preference support for picking the old Web Inspector.
2516         https://bugs.webkit.org/show_bug.cgi?id=122655
2517
2518         Reviewed by Alexey Proskuryakov.
2519
2520         * WebCoreSupport/WebInspectorClient.mm:
2521         (WebInspectorFrontendClient::localizedStringsURL):
2522         (-[WebInspectorWindowController inspectorPagePath]):
2523
2524 2013-10-10  Simon Fraser  <simon.fraser@apple.com>
2525
2526         Always force layout before flushing compositing layers
2527         https://bugs.webkit.org/show_bug.cgi?id=122626
2528
2529         Reviewed by Tim Horton.
2530         
2531         [m_webView _flushCompositingChanges] only actually flushes compositing
2532         layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
2533         returns in this case). In this situation, flushLayers() does actually try
2534         to force a layout, but on some platforms it's possible for something else
2535         to dirty layout before the runloop observer fires again. This can result
2536         in flushLayers() never actually managing to flush, which stalls visual
2537         updates.
2538         
2539         Fix by always calling -viewWillDraw (which updates layout) before flushing
2540         layers. This now matches WebKit2 behavior.
2541
2542         * WebView/WebView.mm:
2543         (LayerFlushController::flushLayers):
2544
2545 2013-10-10  Andy Estes  <aestes@apple.com>
2546
2547         Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
2548         https://bugs.webkit.org/show_bug.cgi?id=122608
2549
2550         Reviewed by Dan Bernstein.
2551
2552         Based on patches by Dan Bernstein.
2553
2554         * WebView/WebView.mm:
2555         (-[WebView _setFontFallbackPrefersPictographs:]): Called
2556         WebCore::Settings::setFontFallbackPrefersPictographs().
2557         * WebView/WebViewPrivate.h:
2558
2559 2013-10-10  Mark Rowe  <mrowe@apple.com>
2560
2561         <rdar://problem/13341666> WebKit should always build against an SDK.
2562
2563         Have all projects default to building against the OS X Internal SDK for the Production
2564         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
2565         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
2566
2567         Reviewed by Dan Bernstein.
2568
2569         * Configurations/Base.xcconfig:
2570         * Configurations/DebugRelease.xcconfig:
2571
2572 2013-10-08  Darin Adler  <darin@apple.com>
2573
2574         WebNetscapePluginView should no longer use deleteAllValues
2575         https://bugs.webkit.org/show_bug.cgi?id=122495
2576
2577         Reviewed by Anders Carlsson.
2578
2579         * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
2580         the timers hash table, and for the values in the hash table.
2581
2582         * Plugins/WebNetscapePluginView.mm:
2583         (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
2584         (-[WebNetscapePluginView startTimers]): Ditto.
2585         (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
2586         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
2587         the timers hash table with make-unique. Fixed the loop that chooses the timer
2588         ID so it won't ever try to use a deleted value, although that never happens
2589         in practice. Use HashMap::add instead of using both contains and set.
2590         Rearranged code so we don't need to make a raw pointer for the timer.
2591         (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
2592         since remove takes care of the deletion automatically since we are using the
2593         unique_ptr class.
2594
2595 2013-10-08  Darin Adler  <darin@apple.com>
2596
2597         Eliminate use of deleteAllValues in ProxyInstance
2598         https://bugs.webkit.org/show_bug.cgi?id=122499
2599
2600         Reviewed by Anders Carlsson.
2601
2602         * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
2603
2604         * Plugins/Hosted/ProxyInstance.mm:
2605         (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
2606         (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
2607         that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
2608         already had an entry with a null in it. We would call the plug-in, but eventually
2609         isNewEntry would be false so we would return null.
2610         (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
2611         that are unique_ptr.
2612
2613 2013-10-08  Darin Adler  <darin@apple.com>
2614
2615         Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
2616         https://bugs.webkit.org/show_bug.cgi?id=122492
2617
2618         Reviewed by Andreas Kling.
2619
2620         * Plugins/Hosted/NetscapePluginHostManager.mm:
2621         (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
2622         unique_ptr instead of auto_ptr.
2623         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2624         (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
2625         (WKPCBooleanReply): Ditto.
2626         (WKPCBooleanAndDataReply): Ditto.
2627         (WKPCInstantiatePluginReply): Ditto.
2628         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
2629         instead of to a raw pointer.
2630         (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
2631         instead of a raw pointer since this takes ownership of the pointer.
2632         (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
2633         instead of a auto_ptr because that's better. Use unique_ptr inside the function
2634         too to avoid the need for an explicit delete.
2635         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2636         (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
2637         deleteAllValues.
2638         (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
2639         of a local variable that was already set in all code paths.
2640         (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
2641         instead of auto_ptr.
2642         (WebKit::NetscapePluginInstanceProxy::print): Ditto.
2643         (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
2644         (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
2645         a unique_ptr. Also removed an unneeded assertion.
2646         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
2647         with unique_ptr instead of auto_ptr.
2648
2649         * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
2650
2651         * Plugins/Hosted/ProxyInstance.mm:
2652         (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
2653         (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
2654         (WebKit::ProxyInstance::supportsConstruct): Ditto.
2655         (WebKit::ProxyInstance::getPropertyNames): Ditto.
2656         (WebKit::ProxyInstance::methodNamed): Ditto.
2657         (WebKit::ProxyInstance::fieldNamed): Ditto.
2658         (WebKit::ProxyInstance::fieldValue): Ditto.
2659         (WebKit::ProxyInstance::setFieldValue): Ditto.
2660
2661 2013-10-07  Sam Weinig  <sam@webkit.org>
2662
2663         CTTE: Use references in and around DragController
2664         https://bugs.webkit.org/show_bug.cgi?id=122427
2665
2666         Reviewed by Andreas Kling.
2667
2668         * WebCoreSupport/WebDragClient.h:
2669         * WebCoreSupport/WebDragClient.mm:
2670         (WebDragClient::actionMaskForDrag):
2671         (WebDragClient::willPerformDragDestinationAction):
2672         (WebDragClient::willPerformDragSourceAction):
2673         (WebDragClient::startDrag):
2674         (WebDragClient::declareAndWriteDragImage):
2675         * WebView/WebFrame.mm:
2676         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
2677         * WebView/WebHTMLView.mm:
2678         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
2679         * WebView/WebView.mm:
2680         (-[WebView draggingEntered:]):
2681         (-[WebView draggingUpdated:]):
2682         (-[WebView draggingExited:]):
2683         (-[WebView performDragOperation:]):
2684
2685 2013-10-05  Sam Weinig  <sam@webkit.org>
2686
2687         CTTE: Thread references through markup.h
2688         https://bugs.webkit.org/show_bug.cgi?id=122403
2689
2690         Reviewed by Darin Adler and Andreas Kling.
2691
2692         * DOM/WebDOMOperations.mm:
2693         (-[DOMNode markupString]):
2694         (-[DOMRange markupString]):
2695         * WebView/WebFrame.mm:
2696         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
2697         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
2698
2699 2013-10-05  Sam Weinig  <sam@webkit.org>
2700
2701         CTTE: Pass DocumentWriter around as a reference
2702         https://bugs.webkit.org/show_bug.cgi?id=122396
2703
2704         Reviewed by Andreas Kling.
2705
2706         * WebView/WebFrame.mm:
2707         (-[WebFrame _canProvideDocumentSource]):
2708
2709 2013-10-04  Alexey Proskuryakov  <ap@apple.com>
2710
2711         Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
2712         https://bugs.webkit.org/show_bug.cgi?id=122329
2713
2714         Reviewed by Darin Adler.
2715
2716         * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
2717         work if preference didn't change (continuousSpellCheckingEnabled is a static that
2718         starts with false).
2719
2720 2013-10-04  Anders Carlsson  <andersca@apple.com>
2721
2722         FramePolicyFunction should be an std::function
2723         https://bugs.webkit.org/show_bug.cgi?id=122362
2724
2725         Reviewed by Darin Adler.
2726
2727         * WebCoreSupport/WebFrameLoaderClient.h:
2728         * WebCoreSupport/WebFrameLoaderClient.mm:
2729         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2730         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2731         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2732         (WebFrameLoaderClient::dispatchWillSubmitForm):
2733
2734 2013-10-04  Mark Lam  <mark.lam@apple.com>
2735
2736         Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
2737         https://bugs.webkit.org/show_bug.cgi?id=121969.
2738
2739         Reviewed by Geoffrey Garen.
2740
2741         1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
2742            DebuggerCallFrame now tracks whether it is valid instead of needing
2743            JavaScriptCallFrame do it.
2744         2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
2745            just before it pauses and calls back to its client, and then invalidates
2746            it immediately when the callback returns. Every subsequent callback to
2747            the client will use a new instance of the DebuggerCallFrame.
2748         3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
2749            it "pauses".
2750         4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
2751            it is needed i.e. when the client calls callerFrame(). Similarly,
2752            JavaScriptCallFrame only creates its caller when it's requested.
2753         5. DebuggerCallFrame's line() and column() now returns a base-zero int.
2754         6. WebScriptDebugDelegate now only caches the functionName of the frame
2755            instead of the entire DebuggerCallFrame because that is all that is
2756            needed.
2757         7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
2758
2759         * WebView/WebScriptDebugDelegate.mm:
2760         (-[WebScriptCallFramePrivate dealloc]):
2761         (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
2762         (-[WebScriptCallFrame functionName]):
2763         (-[WebScriptCallFrame exception]):
2764         * WebView/WebScriptDebugger.mm:
2765         (WebScriptDebugger::exception):
2766
2767 2013-10-04  Anders Carlsson  <andersca@apple.com>
2768
2769         Remove some unneeded code from WidgetMac
2770         https://bugs.webkit.org/show_bug.cgi?id=122355
2771
2772         Reviewed by Dan Bernstein.
2773
2774         Remove code to handle the visible rect changing, it's not needed anymore since we always put Netscape plug-ins into their own layers now.
2775
2776         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2777         * Plugins/WebBaseNetscapePluginView.h:
2778         * Plugins/WebBaseNetscapePluginView.mm:
2779
2780 2013-10-04  Daniel Bates  <dabates@apple.com>
2781
2782         [iOS] Upstream disk image cache
2783         https://bugs.webkit.org/show_bug.cgi?id=121985
2784
2785         Reviewed by Joseph Pecoraro.
2786
2787         * Misc/WebCache.mm:
2788         (+[WebCache statistics]):
2789         * WebView/WebDataSource.mm:
2790         (BufferMemoryMapped): Added.
2791         (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
2792         (-[WebDataSource setDataSourceDelegate:]): Added.
2793         (-[WebDataSource dataSourceDelegate]): Added.
2794         (-[WebDataSource dealloc]):
2795         * WebView/WebDataSourcePrivate.h: Declared private delegate
2796         protocol, WebDataSourcePrivateDelegate.
2797         * WebView/WebPreferenceKeysPrivate.h:
2798         * WebView/WebPreferences.mm:
2799         (+[WebPreferences initialize]):
2800         (-[WebPreferences diskImageCacheEnabled]): Added.
2801         (-[WebPreferences setDiskImageCacheEnabled:]): Added.
2802         (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
2803         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
2804         (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
2805         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
2806         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
2807         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
2808         * WebView/WebView.mm:
2809         (-[WebView _commonInitializationWithFrameName:groupName:]):
2810         (-[WebView _preferencesChanged:]):
2811
2812 2013-10-04  Anders Carlsson  <andersca@apple.com>
2813
2814         Remove WebAssertions.h
2815         https://bugs.webkit.org/show_bug.cgi?id=122328
2816
2817         Reviewed by Jessie Berlin.
2818
2819         * Misc/WebAssertions.h: Removed.
2820
2821 2013-10-03  Anders Carlsson  <andersca@apple.com>
2822
2823         Remove WebNSNotificationCenterExtras
2824         https://bugs.webkit.org/show_bug.cgi?id=122316
2825
2826         Reviewed by Dan Bernstein.
2827
2828         Use dispatch_async to ensure that notifications are posted on the main thread.
2829
2830         * Misc/WebIconDatabase.mm:
2831         (-[WebIconDatabase _sendNotificationForURL:]):
2832         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
2833         * Misc/WebNSNotificationCenterExtras.h: Removed.
2834         * Misc/WebNSNotificationCenterExtras.m: Removed.
2835
2836 2013-10-03  Sam Weinig  <sam@webkit.org>
2837
2838         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
2839         https://bugs.webkit.org/show_bug.cgi?id=122309
2840
2841         Reviewed by Andreas Kling.
2842
2843         * WebCoreSupport/WebChromeClient.h:
2844
2845 2013-10-03  Anders Carlsson  <andersca@apple.com>
2846
2847         Ignore deprecation warnings
2848         https://bugs.webkit.org/show_bug.cgi?id=122302
2849
2850         Reviewed by Mark Rowe.
2851
2852         * Misc/WebIconDatabase.mm:
2853         (-[WebIconDatabase _scaleIcon:toSize:]):
2854         (webGetNSImage):
2855         * Misc/WebNSImageExtras.m:
2856         (-[NSImage _web_scaleToMaxSize:]):
2857         (-[NSImage _web_dissolveToFraction:]):
2858         * Misc/WebNSViewExtras.m:
2859         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
2860         (-[NSView _web_convertRect:toView:]):
2861         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2862         (WebKit::NetscapePluginInstanceProxy::mouseEvent):
2863         * Plugins/Hosted/WebTextInputWindowController.m:
2864         (-[WebTextInputPanel _interpretKeyEvent:string:]):
2865         * Plugins/WebBaseNetscapePluginView.mm:
2866         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
2867         * WebCoreSupport/WebDragClient.mm:
2868         (WebDragClient::startDrag):
2869         * WebInspector/WebNodeHighlight.mm:
2870         (-[WebNodeHighlight _computeHighlightWindowFrame]):
2871         * WebView/WebFullScreenController.mm:
2872         (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
2873         (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
2874         * WebView/WebHTMLView.mm:
2875         (+[WebHTMLView _postFlagsChangedEvent:]):
2876         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
2877         (-[WebHTMLView _autoscroll]):
2878         (-[WebHTMLView mouseDown:]):
2879         (-[WebHTMLView mouseDragged:]):
2880         (-[WebHTMLView mouseUp:]):
2881         (-[WebHTMLView accessibilityHitTest:]):
2882         (-[WebHTMLView _executeSavedKeypressCommands]):
2883         (-[WebHTMLView attachRootLayer:]):
2884         (-[WebHTMLView textStorage]):
2885         (-[WebHTMLView _updateSelectionForInputManager]):
2886         * WebView/WebTextCompletionController.mm:
2887         (-[WebTextCompletionController _buildUI]):
2888         (-[WebTextCompletionController _placePopupWindow:]):
2889
2890 2013-10-01  Sam Weinig  <sam@webkit.org>
2891
2892         CTTE: DOMWrapperWorlds should be passed around by reference
2893         https://bugs.webkit.org/show_bug.cgi?id=122206
2894
2895         Reviewed by Andreas Kling.
2896
2897         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2898         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
2899         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
2900         (WebKit::NetscapePluginInstanceProxy::evaluate):
2901         * WebCoreSupport/WebFrameLoaderClient.h:
2902         * WebCoreSupport/WebFrameLoaderClient.mm:
2903         * WebView/WebFrame.mm:
2904         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2905         (-[WebFrame _globalContextForScriptWorld:]):
2906         (-[WebFrame jsWrapperForNode:inScriptWorld:]):
2907         * WebView/WebScriptWorld.mm:
2908         (+[WebScriptWorld standardWorld]):
2909         (+[WebScriptWorld findOrCreateWorld:]):
2910         * WebView/WebScriptWorldInternal.h:
2911         * WebView/WebView.mm:
2912         (-[WebView _injectOutlookQuirksScript]):
2913         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
2914         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
2915         (+[WebView _removeUserScriptFromGroup:world:url:]):
2916         (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
2917         (+[WebView _removeUserScriptsFromGroup:world:]):
2918         (+[WebView _removeUserStyleSheetsFromGroup:world:]):
2919
2920 2013-09-30  Sam Weinig  <sam@webkit.org>
2921
2922         Remove support for DOMFileSystem
2923         https://bugs.webkit.org/show_bug.cgi?id=122137
2924
2925         Reviewed by Anders Carlsson.
2926
2927         * Configurations/FeatureDefines.xcconfig:
2928
2929 2013-09-30  Benjamin Poulain  <benjamin@webkit.org>
2930
2931         Remove the code guarded by STYLE_SCOPED
2932         https://bugs.webkit.org/show_bug.cgi?id=122123
2933
2934         Reviewed by Anders Carlsson.
2935
2936         * Configurations/FeatureDefines.xcconfig:
2937
2938 2013-09-30  Mark Rowe  <mrowe@apple.com>
2939
2940         Fix the build when building against an SDK.
2941
2942         Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
2943         the compiler command lines. It can't know to do this for the system framework search paths
2944         we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
2945
2946         * Configurations/WebKit.xcconfig:
2947
2948 2013-09-29  Mark Rowe  <mrowe@apple.com>
2949
2950         Fix the Lion build.
2951
2952         Ensure that C++ and Objective-C++ files build with the right compiler flags.
2953
2954         * Configurations/WebKit.xcconfig:
2955
2956 2013-09-28  Mark Rowe  <mrowe@apple.com>
2957
2958         Fix some failures with newer versions of clang.
2959
2960         Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
2961         usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
2962         as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
2963         flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
2964         in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
2965
2966         Reviewed by Dan Bernstein.
2967
2968         * Configurations/DebugRelease.xcconfig:
2969         * Configurations/WebKit.xcconfig:
2970
2971 2013-09-28  Mark Rowe  <mrowe@apple.com>
2972
2973         Take Xcode's advice and enable some extra warnings.
2974
2975         Reviewed by Sam Weinig.
2976
2977         * Configurations/Base.xcconfig:
2978
2979 2013-09-28  Darin Adler  <darin@apple.com>
2980
2981         Add Frame::mainFrame and Frame::isMainFrame
2982         https://bugs.webkit.org/show_bug.cgi?id=122064
2983
2984         Reviewed by Andreas Kling.
2985
2986         * WebCoreSupport/WebFrameLoaderClient.mm:
2987         (WebFrameLoaderClient::canHandleRequest):
2988         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2989         * WebView/WebFrameView.mm:
2990         (-[WebFrameView _install]):
2991         Call isMainFrame.
2992
2993 2013-09-28  Mark Rowe  <mrowe@apple.com>
2994
2995         WebKit fails to build with newer versions of clang.
2996
2997         Reviewed by Sam Weinig.
2998
2999         * Carbon/HIWebView.mm: Remove an unused function.
3000         * History/BinaryPropertyList.cpp: #if a constant that's only used in 64-bit.
3001         * Misc/WebIconDatabase.mm: Remove two unused constants.
3002         * Plugins/WebBaseNetscapePluginView.mm: Remove an unused constant.
3003         * WebCoreSupport/WebEditorClient.mm: Ditto.
3004
3005 2013-09-27  Enrica Casucci  <enrica@apple.com>
3006
3007         Upstream changes to Pasteboard implementation for iOS.
3008         https://bugs.webkit.org/show_bug.cgi?id=121818
3009
3010         Reviewed by Benjamin Poulain.
3011
3012         * WebCoreSupport/WebPlatformStrategies.h:
3013         * WebCoreSupport/WebPlatformStrategies.mm:
3014         (WebPlatformStrategies::writeToPasteboard):
3015         (WebPlatformStrategies::getPasteboardItemsCount):
3016         (WebPlatformStrategies::readBufferFromPasteboard):
3017         (WebPlatformStrategies::readURLFromPasteboard):
3018         (WebPlatformStrategies::readStringFromPasteboard):
3019         (WebPlatformStrategies::changeCount):
3020
3021 2013-09-26  Darin Adler  <darin@apple.com>
3022
3023         rename KURL to URL
3024         https://bugs.webkit.org/show_bug.cgi?id=16214
3025
3026         Reviewed by Andreas Kling.
3027
3028         * many files: Renamed, using script.
3029
3030 2013-09-06  Jer Noble  <jer.noble@apple.com>
3031
3032         [Mac] Implement the media controls in JavaScript.
3033         https://bugs.webkit.org/show_bug.cgi?id=120895
3034
3035         Reviewed by Dean Jackson.
3036
3037         Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
3038
3039         * Configurations/FeatureDefines.xcconfig:
3040
3041 2013-09-27  Darin Adler  <darin@apple.com>
3042
3043         Add empty MainFrame class
3044         https://bugs.webkit.org/show_bug.cgi?id=121770
3045
3046         Reviewed by Andreas Kling.
3047
3048         * WebCoreSupport/WebDragClient.mm:
3049         * WebCoreSupport/WebInspectorClient.mm:
3050         * WebCoreSupport/WebPlatformStrategies.mm:
3051         * WebView/WebFrame.mm:
3052         * WebView/WebHTMLView.mm:
3053         * WebView/WebView.mm:
3054         Include MainFrame.h instead of Frame.h as needed.
3055
3056 2013-09-26  Eric Carlson  <eric.carlson@apple.com>
3057
3058         [MediaStream] make MediaStream testable
3059         https://bugs.webkit.org/show_bug.cgi?id=121967
3060
3061         Reviewed by Dean Jackson.
3062
3063         * WebCoreSupport/WebUserMediaClient.h: Added.
3064         * WebCoreSupport/WebUserMediaClient.mm: Added.
3065
3066         * WebView/WebUIDelegatePrivate.h: Declare decidePolicyForUserMediaRequestFromOrigin:listener:
3067
3068         * WebView/WebView.mm:
3069         (-[WebView _commonInitializationWithFrameName:groupName:]): Register WebUserMediaClient.
3070         (-[WebView _setUserMediaClient:]): New.
3071         (-[WebView _userMediaClient]): New.
3072         * WebView/WebViewData.h:
3073         * WebView/WebViewPrivate.h:
3074
3075 2013-09-25  Sam Weinig  <sam@webkit.org>
3076
3077         Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState*
3078         https://bugs.webkit.org/show_bug.cgi?id=121934
3079
3080         Reviewed by Geoffrey Garen.
3081
3082         * Plugins/Hosted/ProxyInstance.mm:
3083         (WebKit::ProxyInstance::newRuntimeObject):
3084         * Plugins/Hosted/ProxyRuntimeObject.h:
3085         (WebKit::ProxyRuntimeObject::create):
3086         * Plugins/Hosted/ProxyRuntimeObject.mm:
3087         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
3088         (WebKit::ProxyRuntimeObject::finishCreation):
3089
3090 2013-09-25  Brady Eidson  <beidson@apple.com>
3091
3092         Enable the IndexedDB build on Mac, but leave the feature non-functional
3093         https://bugs.webkit.org/show_bug.cgi?id=121918
3094
3095         Reviewed by Alexey Proskuryakov.
3096
3097         * Configurations/FeatureDefines.xcconfig:
3098
3099 2013-09-25  Commit Queue  <commit-queue@webkit.org>
3100
3101         Unreviewed, rolling out r156432.
3102         http://trac.webkit.org/changeset/156432
3103         https://bugs.webkit.org/show_bug.cgi?id=121932
3104
3105         some integer conversion things that need brady to fix
3106         (Requested by thorton on #webkit).
3107
3108         * Configurations/FeatureDefines.xcconfig:
3109
3110 2013-09-25  Brady Eidson  <beidson@apple.com>
3111
3112         Enable the IndexedDB build on Mac, but leave the feature non-functional
3113         https://bugs.webkit.org/show_bug.cgi?id=121918
3114
3115         Reviewed by Alexey Proskuryakov.
3116
3117         * Configurations/FeatureDefines.xcconfig:
3118
3119 2013-09-25  Brent Fulgham  <bfulgham@apple.com>
3120
3121         Refactor RuntimeEnabledFeatures as a Singleton.
3122         https://bugs.webkit.org/show_bug.cgi?id=121883.
3123
3124         Reviewed by Jer Noble.
3125
3126         * WebView/WebView.mm:
3127         (-[WebView _preferencesChanged:]): Use singleton accessor.
3128         (-[WebView _setDashboardBehavior:to:]): Ditto.
3129
3130 2013-09-25  Brady Eidson  <beidson@apple.com>
3131
3132         FeatureDefine.xcconfig cleanup (They should all be identical).
3133         https://bugs.webkit.org/show_bug.cgi?id=121921
3134
3135         Reviewed by Mark Rowe.
3136
3137         * Configurations/FeatureDefines.xcconfig:
3138
3139 2013-09-24  Mark Lam  <mark.lam@apple.com>
3140
3141         Change JSC debug hooks to pass a CallFrame* instead of a DebuggerCallFrame.
3142         https://bugs.webkit.org/show_bug.cgi?id=121867.
3143
3144         Reviewed by Geoffrey Garen.
3145
3146         * WebView/WebScriptDebugDelegate.mm:
3147         (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:exceptionValue:JSC::]):
3148         (-[WebScriptCallFrame exception]):
3149         * WebView/WebScriptDebugger.h:
3150         * WebView/WebScriptDebugger.mm:
3151         (WebScriptDebugger::exception):
3152
3153 2013-09-24  Enrica Casucci  <enrica@apple.com>
3154
3155         Upstream changes to Pasteboard implementation for iOS.
3156         https://bugs.webkit.org/show_bug.cgi?id=121818
3157
3158         Reviewed by Darin Adler.
3159
3160         * WebCoreSupport/WebPlatformStrategies.h:
3161         * WebCoreSupport/WebPlatformStrategies.mm:
3162         (WebPlatformStrategies::writeToPasteboard):
3163
3164 2013-09-24  Mark Rowe  <mrowe@apple.com>
3165
3166         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
3167
3168         Reviewed by Dan Bernstein.
3169
3170         * Configurations/Base.xcconfig:
3171
3172 2013-09-21  Mark Lam  <mark.lam@apple.com>
3173
3174         Remove unused code in WebKit/mac's WebScriptDebugDelegate.
3175         https://bugs.webkit.org/show_bug.cgi?id=121706.
3176
3177         Reviewed by Timothy Hatcher.
3178
3179         WebScriptDebugDelegate's didEnterCallFrame, willExecuteStatement,
3180         and willLeaveCallFrame are not in use. Removed them and all methods
3181         and fields used for supporting them.
3182
3183         * WebView/WebDelegateImplementationCaching.h:
3184         * WebView/WebScriptDebugDelegate.h:
3185         * WebView/WebScriptDebugDelegate.mm:
3186         (-[WebScriptCallFramePrivate dealloc]):
3187         (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:]):
3188         * WebView/WebScriptDebugger.h:
3189         (WebScriptDebugger::globalObject):
3190         (WebScriptDebugger::callEvent):
3191         (WebScriptDebugger::atStatement):
3192         (WebScriptDebugger::returnEvent):
3193         (WebScriptDebugger::willExecuteProgram):
3194         (WebScriptDebugger::didExecuteProgram):
3195         (WebScriptDebugger::didReachBreakpoint):
3196         * WebView/WebScriptDebugger.mm:
3197         (WebScriptDebugger::WebScriptDebugger):
3198         (WebScriptDebugger::exception):
3199         * WebView/WebView.mm:
3200         (-[WebView _cacheScriptDebugDelegateImplementations]):
3201
3202 2013-09-18  Anders Carlsson  <andersca@apple.com>
3203
3204         RefPtrHashMap should work with move only types
3205         https://bugs.webkit.org/show_bug.cgi?id=121564
3206
3207         Reviewed by Andreas Kling.
3208
3209         * Plugins/Hosted/ProxyInstance.mm:
3210         (WebKit::ProxyInstance::methodNamed):
3211         (WebKit::ProxyInstance::fieldNamed):
3212
3213 2013-09-16  Enrica Casucci  <enrica@apple.com>
3214
3215         Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
3216         https://bugs.webkit.org/show_bug.cgi?id=121464
3217
3218         Reviewed by Darin Adler.
3219
3220         This method was only implemented in WebEditorClient.mm for Mac where it was
3221         calling a private delegate that is no longer in use.
3222
3223         * DefaultDelegates/WebDefaultEditingDelegate.m:
3224         * WebCoreSupport/WebEditorClient.h:
3225         * WebCoreSupport/WebEditorClient.mm:
3226         * WebView/WebEditingDelegatePrivate.h:
3227
3228 2013-09-13  Anders Carlsson  <andersca@apple.com>
3229
3230         Use nullptr instead of 0 in calls to HashMap::add
3231         https://bugs.webkit.org/show_bug.cgi?id=121322
3232
3233         Reviewed by Sam Weinig.
3234
3235         * Plugins/Hosted/NetscapePluginHostManager.mm:
3236         (WebKit::NetscapePluginHostManager::hostForPlugin):
3237
3238 2013-09-13  Dan Bernstein  <mitz@apple.com>
3239
3240         [mac WK1] Introduce WebViewWillCloseNotification
3241         https://bugs.webkit.org/show_bug.cgi?id=121321
3242
3243         Reviewed by Sam Weinig.
3244
3245         * WebKit.exp: Exported WebViewWillCloseNotification.
3246         * WebView/WebView.mm:
3247         (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
3248         * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
3249
3250 2013-09-13  Tim Horton  <timothy_horton@apple.com>
3251
3252         REGRESSION (r155615): Lots of reftests fail with single line or single pixel differences
3253         https://bugs.webkit.org/show_bug.cgi?id=121245
3254
3255         Reviewed by Darin Adler.
3256
3257         Similar to https://bugs.webkit.org/show_bug.cgi?id=120963,
3258         we need to manually ensure that some pieces of persistent
3259         CoreGraphics state are restored after PDFKit changes them.
3260
3261         In this case, we bookend our restoration around the various
3262         _recursiveDisplay... functions that we also use in WebHTMLView.
3263
3264         * WebView/WebPDFView.mm:
3265         (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
3266         (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
3267         (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
3268         (-[WebPDFView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3269
3270 2013-09-12  Anders Carlsson  <andersca@apple.com>
3271
3272         SharedBuffer::createNSData should return a RetainPtr<NSData>
3273         https://bugs.webkit.org/show_bug.cgi?id=121237
3274
3275         Reviewed by Darin Adler.
3276
3277         Update for WebCore changes. This also fixes a leak where we'd create an NSFileWrapper from NSData but never release the data.
3278
3279         * WebView/WebDataSource.mm:
3280         (-[WebDataSource data]):
3281         * WebView/WebHTMLRepresentation.mm:
3282         (-[WebHTMLRepresentation documentSource]):
3283         * WebView/WebHTMLView.mm:
3284         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3285         * WebView/WebResource.mm:
3286         (-[WebResource encodeWithCoder:]):
3287         (-[WebResource data]):
3288
3289 2013-09-12  Mark Lam  <mark.lam@apple.com>
3290
3291         Change debug hooks to pass sourceID and position info via the DebuggerCallFrame.
3292         https://bugs.webkit.org/show_bug.cgi?id=121214.
3293
3294         Reviewed by Geoffrey Garen.
3295
3296         * webview/WebScriptDebugger.h:
3297         * WebView/WebScriptDebugger.mm:
3298         (WebScriptDebugger::WebScriptDebugger):
3299         (WebScriptDebugger::callEvent):
3300         (WebScriptDebugger::atStatement):
3301         (WebScriptDebugger::returnEvent):
3302         (WebScriptDebugger::exception):
3303         (WebScriptDebugger::willExecuteProgram):
3304         (WebScriptDebugger::didExecuteProgram):
3305         (WebScriptDebugger::didReachBreakpoint):
3306
3307 2013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3308
3309         Generate more HTML type checks and casting
3310         https://bugs.webkit.org/show_bug.cgi?id=121080
3311
3312         Reviewed by Andreas Kling.
3313
3314         Clean-up remained functions of HTML elements using auto-generated isFooElement(),
3315         and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
3316
3317         Besides this patch clean-up unnecessary checks which are being supported by
3318         auto-generated isFooElement().
3319
3320         No new tests, no behavior change.
3321
3322         * Plugins/WebPluginController.mm:
3323         * WebCoreSupport/WebChromeClient.mm:
3324         (WebChromeClient::supportsFullscreenForNode):
3325         * WebView/WebView.mm:
3326         (-[WebView _enterFullscreenForNode:WebCore::]):
3327
3328 2013-09-10  Daniel Bates  <dabates@apple.com>
3329
3330         [iOS] Upstream text autosizing
3331         https://bugs.webkit.org/show_bug.cgi?id=121111
3332
3333         Reviewed by Andy Estes and Sam Weinig.
3334
3335         * WebView/WebFrame.mm:
3336         (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
3337         (-[WebFrame _setVisibleSize:]): Added.
3338         (-[WebFrame _setTextAutosizingWidth:]): Added.
3339         * WebView/WebFramePrivate.h:
3340         * WebView/WebPreferenceKeysPrivate.h:
3341         * WebView/WebPreferences.mm:
3342         (+[WebPreferences initialize]):
3343         (-[WebPreferences _setMinimumZoomFontSize:]): Added.
3344         (-[WebPreferences _minimumZoomFontSize]): Added.
3345
3346 2013-09-09  Dean Jackson  <dino@apple.com>
3347
3348         [WebGL] Allow multithreaded OpenGL contexts
3349         https://bugs.webkit.org/show_bug.cgi?id=121062
3350
3351         Reviewed by Simon Fraser.
3352
3353         Expose a new preference "multithreadedWebGLEnabled".
3354
3355         * WebView/WebPreferenceKeysPrivate.h:
3356         * WebView/WebPreferences.mm:
3357         (+[WebPreferences initialize]):
3358         (-[WebPreferences multithreadedWebGLEnabled]):
3359         (-[WebPreferences setMultithreadedWebGLEnabled:]):
3360         * WebView/WebPreferencesPrivate.h:
3361         * WebView/WebView.mm:
3362         (-[WebView _preferencesChanged:]):
3363
3364 2013-09-09  Dean Jackson  <dino@apple.com>
3365
3366         Enable WebGL for OS X nightlies
3367         https://bugs.webkit.org/show_bug.cgi?id=121040
3368
3369         Reviewed by Beth Dakin.
3370
3371         * WebView/WebPreferences.mm:
3372         (+[WebPreferences initialize]): Set WebPreference to YES.
3373
3374 2013-09-06  Ryosuke Niwa  <rniwa@webkit.org>
3375
3376         Range::ownerDocument should return Document&
3377         https://bugs.webkit.org/show_bug.cgi?id=120908
3378
3379         Reviewed by Andreas Kling.
3380
3381         * WebView/WebPDFView.mm:
3382         (isFrameInRange):
3383
3384 2013-09-05  Andreas Kling  <akling@apple.com>
3385
3386         ScrollView::children() should return a reference.
3387         <https://webkit.org/b/120795>
3388
3389         Reviewed by Anders Carlsson.
3390
3391         * WebView/WebView.mm:
3392         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
3393
3394 2013-09-04  Mark Rowe  <mrowe@apple.com>
3395
3396         <https://webkit.org/b/120707> Make WebKit's localizable strings mechanism usable under ARC
3397
3398         WebKit's localizable strings mechanism is also used outside of WebKit so it needs to work
3399         both with and without ARC.
3400
3401         Reviewed by Anders Carlsson.
3402
3403         * Misc/WebLocalizableStrings.h: Mark the bundle member as unretained. This matches how the
3404         member is used within WebLocalizableStrings.mm.
3405
3406 2013-09-02  Darin Adler  <darin@apple.com>
3407
3408         [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
3409         https://bugs.webkit.org/show_bug.cgi?id=120569
3410
3411         Reviewed by Andy Estes.
3412
3413         * Misc/WebNSFileManagerExtras.mm:
3414         (-[NSFileManager _webkit_startupVolumeName]): Removed some unneeded locals.
3415         Got rid of the pointless ref/leakRef/HardAutorelease dance, and replaced it
3416         with a [[x copy] autorelease].
3417
3418         * Misc/WebNSURLExtras.mm:
3419         (-[NSURL _web_URLWithLowercasedScheme]): Use CFBridgingRelease, and got rid
3420         of unneeded type casts.
3421
3422         * Plugins/WebBasePluginPackage.mm:
3423         (+[WebBasePluginPackage preferredLocalizationName]): Use CFBridgingRelease.
3424         * WebView/WebPDFRepresentation.mm:
3425         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Ditto.
3426
3427         * WebView/WebView.mm:
3428         (+[WebView _setCacheModel:]): Use CFBridgingRelease and got rid of unneeded
3429         type cast.
3430
3431 2013-08-30  Antti Koivisto  <antti@apple.com>
3432
3433         Remove code behind ENABLE(DIALOG_ELEMENT)
3434         https://bugs.webkit.org/show_bug.cgi?id=120467
3435
3436         Reviewed by Darin Adler.
3437
3438         * Configurations/FeatureDefines.xcconfig:
3439
3440 2013-08-29  Sam Weinig  <sam@webkit.org>
3441
3442         Add ENABLE gaurds for Promises
3443         https://bugs.webkit.org/show_bug.cgi?id=120488
3444
3445         Reviewed by Andreas Kling.
3446
3447         * Configurations/FeatureDefines.xcconfig:
3448
3449 2013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
3450
3451         Web Inspector: Download Web Archive of Inspected Page
3452         https://bugs.webkit.org/show_bug.cgi?id=119774
3453
3454         Reviewed by Timothy Hatcher.
3455
3456         Update to support InspectorFrontendHost.save's new base64Encoded
3457         parameter. It means the incoming content is binary data, not a string.
3458
3459         * WebCoreSupport/WebInspectorClient.h:
3460         * WebCoreSupport/WebInspectorClient.mm:
3461         (WebInspectorFrontendClient::save):
3462
3463 2013-08-28  Chris Curtis  <chris_curtis@apple.com>
3464
3465         https://bugs.webkit.org/show_bug.cgi?id=119548
3466         Refactoring Exception throws.
3467
3468         Reviewed by Geoffrey Garen.
3469         
3470         Moved setting an exception into the vm, These functions changed to use the new functionality.
3471
3472         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3473         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
3474         * Plugins/Hosted/ProxyInstance.mm:
3475         (WebKit::ProxyInstance::invokeMethod):
3476
3477 2013-08-27  Anders Carlsson  <andersca@apple.com>
3478
3479         Fix build.
3480
3481         * Plugins/Hosted/ProxyInstance.h:
3482         * Plugins/Hosted/ProxyInstance.mm:
3483         (WebKit::ProxyInstance::methodNamed):
3484         (WebKit::ProxyInstance::fieldNamed):
3485
3486 2013-08-23  Andy Estes  <aestes@apple.com>
3487
3488         Fix issues found by the Clang Static Analyzer
3489         https://bugs.webkit.org/show_bug.cgi?id=120230
3490
3491         Reviewed by Darin Adler.
3492
3493         * Misc/WebNSFileManagerExtras.mm:
3494         (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
3495         instead of WebCFAutorelease().
3496         * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
3497         * Misc/WebNSURLExtras.mm:
3498         (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
3499         instead of WebCFAutorelease().
3500         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3501         (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
3502         CGColors (CALayer retains its backgroundColor property despite the
3503         property attributes claiming otherwise).
3504         * Plugins/WebBasePluginPackage.mm:
3505         (+[WebBasePluginPackage preferredLocalizationName]): Used
3506         HardAutorelease() instead of WebCFAutorelease().
3507         * WebView/WebDeviceOrientationProviderMock.mm:
3508         (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
3509         leaking WebDeviceOrientations.
3510         * WebView/WebPDFRepresentation.mm:
3511         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
3512         HardAutorelease() instead of WebCFAutorelease().
3513         * WebView/WebView.mm:
3514         (+[WebView _setCacheModel:]): Ditto.
3515         (-[WebView _removeObjectForIdentifier:]): Ditto.
3516
3517 2013-08-26  Alexey Proskuryakov  <ap@apple.com>
3518
3519         [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
3520         https://bugs.webkit.org/show_bug.cgi?id=113094
3521
3522         Reviewed by Darin Adler.
3523
3524         Return new pasteboard change count from all functions that change it.
3525
3526         * WebCoreSupport/WebPlatformStrategies.h:
3527         * WebCoreSupport/WebPlatformStrategies.mm:
3528         (WebPlatformStrategies::copy):
3529         (WebPlatformStrategies::changeCount):
3530         (WebPlatformStrategies::addTypes):
3531         (WebPlatformStrategies::setTypes):
3532         (WebPlatformStrategies::setBufferForType):
3533         (WebPlatformStrategies::setPathnamesForType):
3534         (WebPlatformStrategies::setStringForType):
3535
3536 2013-08-26  Andreas Kling  <akling@apple.com>
3537
3538         Unreviewed build fix.
3539
3540         * WebView/WebFrame.mm: