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