2b78543641a60f0bd613ed059d32c056008a095c
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2014-01-04  Zan Dobersek  <zdobersek@igalia.com>
2
3         Explicitly use the std:: nested name specifier when using std::pair, std::make_pair
4         https://bugs.webkit.org/show_bug.cgi?id=126439
5
6         Reviewed by Andreas Kling.
7
8         Instead of relying on std::pair and std::make_pair symbols being present in the current scope
9         through the pair and make_pair symbols, the std:: specifier should be used explicitly.
10
11         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
12         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
13         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
14         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
15         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
16         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
17
18 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
19
20         Remove WindowIsVisible
21         https://bugs.webkit.org/show_bug.cgi?id=126270
22
23         Reviewed by Tim Horton.
24
25         We currently track visibility in two ways - ViewState::IsVisible and ViewState::WindowIsVisible.
26         The latter detects that the content is hidden in fewer cases than the former, and as such, the
27         former is always preferable.
28
29         This affects the hidden state provided to FocusController::contentAreaDidShowOrHide and to
30         Plugin::windowVisibilityChanged.
31
32         * WebView/WebView.mm:
33         (-[WebView _windowWillOrderOnScreen:]):
34         (-[WebView _windowWillOrderOffScreen:]):
35             - rename ContainingWindowIsVisible -> ContentIsVisible.
36
37 2014-01-02  Gavin Barraclough  <barraclough@apple.com>
38
39         Merge didMoveOnscreen / page visibility to isVisible
40         https://bugs.webkit.org/show_bug.cgi?id=126268
41
42         Reviewed by Tim Horton.
43
44         The onscreen state most closely tracks view visibility (though currently
45         also tracks a mix of in-window state). Make more consistent, simplify,
46         and move all animation suspension logic to Page, so it can be controlled
47         by the PageThrottler.
48
49         * WebView/WebView.mm:
50         (-[WebView _commonInitializationWithFrameName:groupName:]):
51         (-[WebView _updateVisibilityState]):
52             - _setVisibilityState:isInitialState: -> _setIsVisibile:isInitialState:.
53         (-[WebView _setIsVisible:isInitialState:]):
54             - added.
55         (-[WebView _setVisibilityState:isInitialState:]):
56             - setVisibilityState -> setIsVisible/setIsPrerender.
57         (-[WebView viewWillMoveToWindow:]):
58         (-[WebView viewDidMoveToWindow]):
59             - remove redundant calls to willMoveOffscreen/didMoveOnscreen
60               (this is handled by _updateVisibilityState).
61
62 2013-12-23  Oliver Hunt  <oliver@apple.com>
63
64         Refactor PutPropertySlot to be aware of custom properties
65         https://bugs.webkit.org/show_bug.cgi?id=126187
66
67         Reviewed by Antti Koivisto.
68
69         Update for new method signatures.
70
71         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
72         (WebKit::NetscapePluginInstanceProxy::setProperty):
73
74 2013-12-31  Andy Estes  <aestes@apple.com>
75
76         [iOS] Upstream PLATFORM(IOS) changes to Source/WebKit/
77         https://bugs.webkit.org/show_bug.cgi?id=125746
78
79         Reviewed by David Kilzer.
80
81         This is a straight upstreaming of the various PLATFORM(IOS) changes
82         made to Source/WebKit/ with the following modifications:
83
84         - Includes of <Cocoa/Cocoa.h> were generally replaced with an include
85         of <Foundation/Foundation.h> followed by an include of
86         <AppKit/AppKit.h> on non-iOS platforms. This assumes that nobody was
87         relying on <Cocoa/Cocoa.h>'s inclusion of <CoreData/CoreData.h>.
88
89         - Includes of <Cocoa/Cocoa.h> and <Foundation/Foundation.h> were
90         removed from files that include WebKitPrefix.h.
91
92         - Instances of 'iPhone (OS)' in comments were replaced with 'iOS', and
93         other sensitive terms were elided.
94
95         - Various PLATFORM(IOS) blocks were simplified. For instance:
96
97             #if !PLATFORM(IOS)
98             ...
99             #endif
100             #if PLATFORM(IOS)
101             ...
102             #endif
103
104         Was simplified to:
105
106             #if !PLATFORM(IOS)
107             ...
108             #else
109             ...
110             #endif
111
112         * Configurations/Base.xcconfig:
113         * Configurations/DebugRelease.xcconfig:
114         * Configurations/Version.xcconfig:
115         * Configurations/WebKit.xcconfig:
116         * Configurations/iOS.xcconfig: Added.
117         * DOM/WebDOMOperations.mm:
118         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
119         * DefaultDelegates/WebDefaultEditingDelegate.m:
120         * DefaultDelegates/WebDefaultPolicyDelegate.m:
121         * DefaultDelegates/WebDefaultUIDelegate.h:
122         * DefaultDelegates/WebDefaultUIDelegate.m:
123         * History/WebBackForwardList.mm:
124         * History/WebHistory.mm:
125         * History/WebHistoryItem.mm:
126         * History/WebURLsWithTitles.m:
127         * Misc/WebCache.mm:
128         * Misc/WebDownload.mm:
129         * Misc/WebElementDictionary.mm:
130         * Misc/WebIconDatabase.mm:
131         * Misc/WebIconDatabaseInternal.h:
132         * Misc/WebKitNSStringExtras.mm:
133         * Misc/WebKitSystemBits.m:
134         * Misc/WebKitVersionChecks.h:
135         * Misc/WebKitVersionChecks.m:
136         * Misc/WebLocalizableStrings.mm:
137         * Misc/WebNSArrayExtras.h:
138         * Misc/WebNSArrayExtras.m:
139         * Misc/WebNSControlExtras.h:
140         * Misc/WebNSControlExtras.m:
141         * Misc/WebNSDictionaryExtras.h:
142         * Misc/WebNSDictionaryExtras.m:
143         * Misc/WebNSEventExtras.m:
144         * Misc/WebNSFileManagerExtras.mm:
145         * Misc/WebNSImageExtras.h:
146         * Misc/WebNSImageExtras.m:
147         * Misc/WebNSPasteboardExtras.mm:
148         * Misc/WebNSPrintOperationExtras.h:
149         * Misc/WebNSPrintOperationExtras.m:
150         * Misc/WebNSURLExtras.mm:
151         * Misc/WebNSViewExtras.m:
152         * Misc/WebNSWindowExtras.m:
153         * Panels/WebAuthenticationPanel.h:
154         * Panels/WebAuthenticationPanel.m:
155         * Panels/WebPanelAuthenticationHandler.m:
156         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
157         * Plugins/WebBasePluginPackage.h:
158         * Plugins/WebBasePluginPackage.mm:
159         * Plugins/WebJavaPlugIn.h:
160         * Plugins/WebPluginContainerCheck.mm:
161         * Plugins/WebPluginController.h:
162         * Plugins/WebPluginController.mm:
163         * Plugins/WebPluginDatabase.mm:
164         * Plugins/WebPluginPackage.mm:
165         * Plugins/WebPluginsPrivate.m:
166         * Storage/WebDatabaseManager.mm:
167         * Storage/WebDatabaseManagerClient.h:
168         * Storage/WebDatabaseManagerClient.mm:
169         * Storage/WebDatabaseManagerInternal.h: Added.
170         * Storage/WebStorageManager.mm:
171         * WebCoreSupport/CorrectionPanel.h:
172         * WebCoreSupport/WebAlternativeTextClient.h:
173         * WebCoreSupport/WebApplicationCache.mm:
174         * WebCoreSupport/WebChromeClient.h:
175         * WebCoreSupport/WebChromeClient.mm:
176         * WebCoreSupport/WebContextMenuClient.mm:
177         * WebCoreSupport/WebEditorClient.h:
178         * WebCoreSupport/WebEditorClient.mm:
179         * WebCoreSupport/WebFrameLoaderClient.h:
180         * WebCoreSupport/WebFrameLoaderClient.mm:
181         * WebCoreSupport/WebFrameNetworkingContext.h:
182         * WebCoreSupport/WebFrameNetworkingContext.mm:
183         * WebCoreSupport/WebGeolocationClient.h:
184         * WebCoreSupport/WebGeolocationClient.mm:
185         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
186         * WebCoreSupport/WebKeyGenerator.mm:
187         * WebCoreSupport/WebNotificationClient.mm:
188         * WebCoreSupport/WebOpenPanelResultListener.mm:
189         * WebCoreSupport/WebSecurityOrigin.mm:
190         * WebCoreSupport/WebSystemInterface.mm:
191         * WebKitPrefix.h:
192         * WebView/WebArchive.mm:
193         * WebView/WebClipView.h:
194         * WebView/WebDataSource.mm:
195         * WebView/WebDelegateImplementationCaching.h:
196         * WebView/WebDelegateImplementationCaching.mm:
197         * WebView/WebDeviceOrientation.mm:
198         * WebView/WebDocumentInternal.h:
199         * WebView/WebDocumentLoaderMac.mm:
200         * WebView/WebDynamicScrollBarsViewInternal.h:
201         * WebView/WebFormDelegate.m:
202         * WebView/WebFrame.mm:
203         * WebView/WebFrameInternal.h:
204         * WebView/WebFrameView.mm:
205         * WebView/WebFullScreenController.h:
206         * WebView/WebFullScreenController.mm:
207         * WebView/WebHTMLRepresentation.mm:
208         * WebView/WebHTMLView.mm:
209         * WebView/WebHTMLViewInternal.h:
210         * WebView/WebPDFDocumentExtras.h:
211         * WebView/WebPDFDocumentExtras.mm:
212         * WebView/WebPDFRepresentation.h:
213         * WebView/WebPDFRepresentation.mm:
214         * WebView/WebPDFView.h:
215         * WebView/WebPDFView.mm:
216         * WebView/WebPreferences.mm:
217         * WebView/WebResource.mm:
218         * WebView/WebTextCompletionController.h:
219         * WebView/WebTextIterator.mm:
220         * WebView/WebView.mm:
221         * WebView/WebViewData.h:
222         * WebView/WebViewData.mm:
223         * WebView/WebViewInternal.h:
224
225 2013-12-25  Commit Queue  <commit-queue@webkit.org>
226
227         Unreviewed, rolling out r161033 and r161074.
228         http://trac.webkit.org/changeset/161033
229         http://trac.webkit.org/changeset/161074
230         https://bugs.webkit.org/show_bug.cgi?id=126240
231
232         Oliver says that a rollout would be better (Requested by ap on
233         #webkit).
234
235         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
236         (WebKit::NetscapePluginInstanceProxy::setProperty):
237
238 2013-12-23  Oliver Hunt  <oliver@apple.com>
239
240         Refactor PutPropertySlot to be aware of custom properties
241         https://bugs.webkit.org/show_bug.cgi?id=126187
242
243         Reviewed by msaboff.
244
245         Update for new method signatures.
246
247         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
248         (WebKit::NetscapePluginInstanceProxy::setProperty):
249
250 2013-12-23  Lucas Forschler  <lforschler@apple.com>
251
252         <rdar://problem/15682948> Update copyright strings
253
254         Reviewed by Dan Bernstein.
255
256         * Info.plist:
257
258 2013-12-19  Andy Estes  <aestes@apple.com>
259
260         Remove WebFilterEvaluator wrappers from WebKitSystemInterface
261         https://bugs.webkit.org/show_bug.cgi?id=126028
262
263         Reviewed by Anders Carlsson.
264
265         * WebCoreSupport/WebSystemInterface.mm:
266         (InitWebCoreSystemInterface): Don't INIT() removed function pointers.
267
268 2013-12-17  Gavin Barraclough  <barraclough@apple.com>
269
270         Remove PageVisibilityStateUnloaded
271         https://bugs.webkit.org/show_bug.cgi?id=125869
272
273         Reviewed by Anders Carlsson.
274
275         This is not currently supported by WebKit, remove this enum value.
276         We can always add this back later if/when we add support for this state.
277
278         * WebView/WebView.mm:
279         (core):
280         (kit):
281         * WebView/WebViewPrivate.h:
282             - removed PageVisibilityStateUnloaded/WebPageVisibilityStateUnloade
283
284 2013-12-14  Andy Estes  <aestes@apple.com>
285
286         [iOS] Upstream changes to WebKit Public and Private headers
287         https://bugs.webkit.org/show_bug.cgi?id=125745
288
289         Reviewed by Dan Bernstein.
290
291         * Configurations/WebKit.xcconfig: Ignore headers that are completely
292         excluded on iOS. This prevents empty headers from being installed into
293         the iOS SDK.
294         * DOM/WebDOMOperationsPrivate.h: Upstream iOS changes.
295         * History/WebBackForwardListPrivate.h: Ditto.
296         * History/WebHistoryItem.h: Ditto.
297         * History/WebHistoryItemPrivate.h: Ditto.
298         * Misc/WebCache.h: Ditto.
299         * Misc/WebIconDatabase.h: Ditto.
300         * Misc/WebIconDatabasePrivate.h: Ditto.
301         * Misc/WebKitNSStringExtras.h: Ditto.
302         * Misc/WebLocalizableStrings.h: Ditto.
303         * Misc/WebNSEventExtras.h: Ditto.
304         * Misc/WebNSFileManagerExtras.h: Ditto.
305         * Misc/WebNSPasteboardExtras.h: Ditto.
306         * Misc/WebNSURLExtras.h: Ditto.
307         * Misc/WebNSViewExtras.h: Ditto.
308         * Misc/WebNSWindowExtras.h: Ditto.
309         * Panels/WebPanelAuthenticationHandler.h: Ditto.
310         * Plugins/WebPlugin.h: Ditto.
311         * Plugins/WebPluginContainer.h: Ditto.
312         * Plugins/WebPluginContainerPrivate.h: Ditto.
313         * Plugins/WebPluginDatabase.h: Ditto.
314         * Plugins/WebPluginPrivate.h: Ditto.
315         * Plugins/WebPluginViewFactory.h: Ditto.
316         * Plugins/WebPluginsPrivate.h: Ditto.
317         * Storage/WebDatabaseManagerPrivate.h: Ditto.
318         * WebCoreSupport/WebApplicationCache.h: Ditto.
319         * WebCoreSupport/WebJavaScriptTextInputPanel.h: Ditto.
320         * WebCoreSupport/WebKeyGenerator.h: Ditto.
321         * WebCoreSupport/WebSecurityOriginPrivate.h: Ditto.
322         * WebView/WebDashboardRegion.h: Ditto.
323         * WebView/WebDataSource.h: Ditto.
324         * WebView/WebDataSourcePrivate.h: Ditto.
325         * WebView/WebDocument.h: Ditto.
326         * WebView/WebDocumentPrivate.h: Ditto.
327         * WebView/WebDynamicScrollBarsView.h: Ditto.
328         * WebView/WebEditingDelegate.h: Ditto.
329         * WebView/WebEditingDelegatePrivate.h: Ditto.
330         * WebView/WebFormDelegate.h: Ditto.
331         * WebView/WebFrameLoadDelegate.h: Ditto.
332         * WebView/WebFramePrivate.h: Ditto.
333         * WebView/WebFrameView.h: Ditto.
334         * WebView/WebFrameViewPrivate.h: Ditto.
335         * WebView/WebHTMLRepresentation.h: Ditto.
336         * WebView/WebHTMLView.h: Ditto.
337         * WebView/WebHTMLViewPrivate.h: Ditto.
338         * WebView/WebPolicyDelegate.h: Ditto.
339         * WebView/WebPreferenceKeysPrivate.h: Ditto.
340         * WebView/WebPreferences.h: Ditto.
341         * WebView/WebPreferencesPrivate.h: Ditto.
342         * WebView/WebRenderLayer.h: Ditto.
343         * WebView/WebResourceLoadDelegatePrivate.h: Ditto.
344         * WebView/WebResourcePrivate.h: Ditto.
345         * WebView/WebUIDelegate.h: Ditto.
346         * WebView/WebUIDelegatePrivate.h: Ditto.
347         * WebView/WebView.h: Ditto.
348         * WebView/WebViewPrivate.h: Ditto.
349
350 2013-12-15  Andy Estes  <aestes@apple.com>
351
352         [iOS] Upstream changes to FeatureDefines.xcconfig
353         https://bugs.webkit.org/show_bug.cgi?id=125742
354
355         Reviewed by Dan Bernstein.
356
357         * Configurations/FeatureDefines.xcconfig:
358
359 2013-12-14  Andy Estes  <aestes@apple.com>
360
361         Unify FeatureDefines.xcconfig
362         https://bugs.webkit.org/show_bug.cgi?id=125741
363
364         Rubber-stamped by Dan Bernstein.
365
366         * Configurations/FeatureDefines.xcconfig: Remove a stray space in
367         FEATURE_DEFINES.
368
369 2013-12-11  Joseph Pecoraro  <pecoraro@apple.com>
370
371         Web Inspector: Push More Inspector Required Classes Down into JavaScriptCore
372         https://bugs.webkit.org/show_bug.cgi?id=125324
373
374         Reviewed by Timothy Hatcher.
375
376         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
377         * WebCoreSupport/WebInspectorClient.mm:
378         * WebView/WebFrame.mm:
379         * WebView/WebView.mm:
380
381 2013-12-03  Mark Rowe  <mrowe@apple.com>
382
383         <https://webkit.org/b/125139> Modernize the WebKit API headers
384         <rdar://problem/15540175>
385
386         This consists of three main changes:
387         1) Converting the return type of initializer methods to instancetype.
388         2) Declaring properties rather than getters and setters.
389         3) Declaring explicitly sized enums.
390
391         Changing the declarations from getters and setters to properties also required
392         updating the headerdoc in a number of places.
393
394         Reviewed by Anders Carlsson.
395
396         * DOM/WebDOMOperations.h:
397         * History/WebBackForwardList.h:
398         * History/WebHistory.h:
399         * History/WebHistoryItem.h:
400         * History/WebHistoryItem.mm:
401         * Plugins/WebPlugin.h:
402         * Plugins/WebPluginContainer.h:
403         * WebView/WebArchive.h:
404         * WebView/WebArchive.mm:
405         * WebView/WebDataSource.h:
406         * WebView/WebDataSource.mm:
407         * WebView/WebEditingDelegate.h:
408         * WebView/WebFrame.h:
409         * WebView/WebFrame.mm:
410         * WebView/WebFrameView.h:
411         * WebView/WebPolicyDelegate.h:
412         * WebView/WebPreferences.h:
413         * WebView/WebPreferences.mm:
414         (-[WebPreferences cacheModel]): Cast to the enum.
415         * WebView/WebResource.h:
416         * WebView/WebResource.mm:
417         * WebView/WebUIDelegate.h:
418         * WebView/WebView.h:
419         * WebView/WebView.mm:
420         (+[WebView _didSetCacheModel]): Fix the return type.
421
422 2013-12-10  Mark Rowe  <mrowe@apple.com>
423
424         <http://webkit.org/b/125556> WebKit doesn't deal with longer bundle versions correctly
425         <rdar://problem/15634192>
426
427         Reviewed by Dan Bernstein.
428
429         * WebView/WebView.mm:
430         (createUserVisibleWebKitVersionString): Strip as many leading digits as is necessary to
431         bring the major component of the version down to 3 digits.
432
433 2013-12-09  Sam Weinig  <sam@webkit.org>
434
435         Fix the build of projects including <WebKit/WebUIDelegatePrivate.h>
436
437         Rubber-stamped by Dan Bernstein.
438
439         * WebView/WebAllowDenyPolicyListener.h:
440         Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
441
442 2013-12-05  Jer Noble  <jer.noble@apple.com>
443
444         [MSE] Add a runtime-setting for the MediaSource constructor.
445         https://bugs.webkit.org/show_bug.cgi?id=125336
446
447         Reviewed by Eric Carlson.
448
449         Add a private WebPreference which controls the WebCore mediaSourceEnabled setting.
450
451         * WebView/WebPreferenceKeysPrivate.h:
452         * WebView/WebPreferences.mm:
453         (+[WebPreferences initialize]):
454         (-[WebPreferences mediaSourceEnabled]):
455         (-[WebPreferences setMediaSourceEnabled:]):
456         * WebView/WebPreferencesPrivate.h:
457         * WebView/WebView.mm:
458         (-[WebView _preferencesChanged:]):
459
460 2013-12-05  Mark Lam  <mark.lam@apple.com>
461
462         C Loop LLINT layout test regressions.
463         https://bugs.webkit.org/show_bug.cgi?id=125314.
464
465         Reviewed by Geoffrey Garen.
466
467         The regression was due to the ENABLE_LLINT_C_LOOP flag not being included
468         in the build of the WebKit and WebKit2 components. As a result, some fields
469         in JSC::VM were ifdef'ed out in WebCore and JSC, but not in WebKit and
470         WebKit2. This resulted in VM::m_initializingObjectClass having 2 different
471         offsets depending on whether it is accessed from WebCore and JSC or from
472         WebKit and WebKit2, and chaos ensued.
473
474         This issue will manifest when we pass --cloop to build-webkit.
475         The fix is simply to add ENABLE_LLINT_C_LOOP to FEATURE_DEFINES for WebKit
476         and WebKit2.
477
478         * Configurations/FeatureDefines.xcconfig:
479
480 2013-12-04  Brian J. Burg  <burg@cs.washington.edu>
481
482         Consolidate various frame snapshot capabilities.
483         https://bugs.webkit.org/show_bug.cgi?id=124325
484
485         Reviewed by Darin Adler.
486
487         Use new platform-independent methods instead of Mac methods.
488
489         * WebView/WebHTMLView.mm:
490         (-[WebHTMLView _selectionDraggingImage]):
491         (-[WebHTMLView selectionImageForcingBlackText:]):
492
493 2013-12-04  Andy Estes  <aestes@apple.com>
494
495         [iOS] Build projects with $(ARCHS_STANDARD_32_64_BIT)
496         https://bugs.webkit.org/show_bug.cgi?id=125236
497
498         Reviewed by Sam Weinig.
499
500         $(ARCHS_STANDARD_32_64_BIT) is what we want for both device and simulator builds.
501
502         * Configurations/DebugRelease.xcconfig:
503
504 2013-12-03  Joseph Pecoraro  <pecoraro@apple.com>
505
506         Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
507         https://bugs.webkit.org/show_bug.cgi?id=124613
508
509         Reviewed by Timothy Hatcher.
510
511         Remove the old ENABLE(REMOTE_INSPECTOR) connection management implementation.
512
513         * WebCoreSupport/WebInspectorClient.h:
514         * WebCoreSupport/WebInspectorClient.mm:
515         (WebInspectorClient::indicate):
516         (WebInspectorClient::hideIndicate):
517         Hook up WebView indication through this new path.
518
519         * WebCoreSupport/WebFrameLoaderClient.mm:
520         (WebFrameLoaderClient::dispatchDidReceiveTitle):
521         * WebCoreSupport/WebInspectorClient.h:
522         * WebCoreSupport/WebInspectorClient.mm:
523         (WebInspectorClient::WebInspectorClient):
524         (WebInspectorClient::inspectorDestroyed):
525         * WebInspector/remote/WebInspectorClientRegistry.h: Removed.
526         * WebInspector/remote/WebInspectorClientRegistry.mm: Removed.
527         * WebInspector/remote/WebInspectorRelayDefinitions.h: Removed.
528         * WebInspector/remote/WebInspectorRemoteChannel.h: Removed.
529         * WebInspector/remote/WebInspectorRemoteChannel.mm: Removed.
530         * WebInspector/remote/WebInspectorServer.h: Removed.
531         * WebInspector/remote/WebInspectorServer.mm: Removed.
532         * WebInspector/remote/WebInspectorServerWebViewConnection.h: Removed.
533         * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Removed.
534         * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Removed.
535         * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Removed.
536         * WebInspector/remote/WebInspectorXPCWrapper.h: Removed.
537         * WebInspector/remote/WebInspectorXPCWrapper.m: Removed.
538         * WebKit.exp:
539         * WebView/WebView.mm:
540         (-[WebView _commonInitializationWithFrameName:groupName:]):
541         (+[WebView _enableRemoteInspector]):
542         (+[WebView _disableRemoteInspector]):
543         (+[WebView _disableAutoStartRemoteInspector]):
544         (+[WebView _isRemoteInspectorEnabled]):
545         (+[WebView _hasRemoteInspectorSession]):
546         (-[WebView allowsRemoteInspection]):
547         (-[WebView setAllowsRemoteInspection:]):
548         (-[WebView setIndicatingForRemoteInspector:]):
549         (-[WebView setHostApplicationBundleId:name:]):
550         (-[WebView _didCommitLoadForFrame:]):
551         * WebView/WebViewData.h:
552         * WebView/WebViewData.mm:
553         (-[WebViewPrivate init]):
554         (-[WebViewPrivate dealloc]):
555         * WebView/WebViewInternal.h:
556         * WebView/WebViewPrivate.h:
557         Remove old REMOTE_INSPECTOR.
558
559 2013-12-02  Chris Fleizach  <cfleizach@apple.com>
560
561         AX: Crash in accessibilityRoot when Document goes away
562         https://bugs.webkit.org/show_bug.cgi?id=125113
563
564         Reviewed by Tim Horton.
565
566         The AXObjectCache can sometimes be null if the render tree has been detached from the document.
567
568         * WebView/WebFrame.mm:
569         (-[WebFrame accessibilityRoot]):
570
571 2013-11-28  Antti Koivisto  <antti@apple.com>
572
573         Remove feature: CSS variables
574         https://bugs.webkit.org/show_bug.cgi?id=114119
575
576         Reviewed by Andreas Kling.
577
578         * Configurations/FeatureDefines.xcconfig:
579
580 2013-11-27  Sam Weinig  <sam@webkit.org>
581
582         Fix the iOS build.
583
584         * WebView/WebAllowDenyPolicyListener.h: Added.
585         * WebView/WebUIDelegatePrivate.h:
586         Move the WebAllowDenyPolicyListener protocol to its own file.
587
588 2013-11-21  Mark Rowe  <mrowe@apple.com>
589
590         <https://webkit.org/b/124702> Stop overriding VALID_ARCHS.
591
592         All modern versions of Xcode set it appropriately for our needs.
593
594         Reviewed by Alexey Proskuryakov.
595
596         * Configurations/Base.xcconfig:
597
598 2013-11-21  Mark Rowe  <mrowe@apple.com>
599
600         <https://webkit.org/b/124701> Fix an error in a few Xcode configuration setting files.
601
602         Reviewed by Alexey Proskuryakov.
603
604         * Configurations/Base.xcconfig:
605
606 2013-11-21  Mark Rowe  <mrowe@apple.com>
607
608         <https://webkit.org/b/124700> Fix some deprecation warnings.
609
610         Reviewed by Anders Carlsson.
611
612         * Plugins/WebNetscapePluginStream.mm:
613         (WebNetscapePluginStream::startStream): Move off a deprecated NSData method.
614         * WebView/WebDataSource.mm:
615         (-[WebDataSource _fileWrapperForURL:]): Move off a deprecated NSFileWrapper method.
616         * WebView/WebHTMLView.mm:
617         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Ditto.
618
619 2013-11-20  Mark Lam  <mark.lam@apple.com>
620
621         Introducing VMEntryScope to update the VM stack limit.
622         https://bugs.webkit.org/show_bug.cgi?id=124634.
623
624         Reviewed by Geoffrey Garen.
625
626         * WebView/WebScriptDebugger.mm:
627         (WebScriptDebugger::sourceParsed):
628
629 2013-11-19  Ryosuke Niwa  <rniwa@webkit.org>
630
631         Enable HTMLTemplateElement on Mac port
632         https://bugs.webkit.org/show_bug.cgi?id=124637
633
634         Reviewed by Tim Horton.
635
636         * Configurations/FeatureDefines.xcconfig:
637
638 2013-11-18  Commit Queue  <commit-queue@webkit.org>
639
640         Unreviewed, rolling out r159455.
641         http://trac.webkit.org/changeset/159455
642         https://bugs.webkit.org/show_bug.cgi?id=124568
643
644         broke two api tests (see bug 124564) (Requested by thorton on
645         #webkit).
646
647         * WebView/WebHTMLView.mm:
648         (-[WebHTMLView _selectionDraggingImage]):
649         (-[WebHTMLView selectionImageForcingBlackText:]):
650
651 2013-11-18  Mark Rowe  <mrowe@apple.com>
652
653         Disable deprecation warnings related to NSCalendarDate in WebHistory.
654
655         Reviewed by Anders Carlsson.
656
657         * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
658         a system header, even when not included from a system location. This has the effect
659         of suppressing warnings when including this header. It's a more general effect than
660         we're after but is also less invasive than disabling deprecation warnings around
661         the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
662         in the future.
663         * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
664
665 2013-11-18  David Hyatt  <hyatt@apple.com>
666
667         Add a quirk to not respect center text-align when positioning
668
669         <rdar://problem/15427571>
670         https://bugs.webkit.org/show_bug.cgi?id=124522
671
672         Reviewed by Simon Fraser.
673
674         Added fast/block/legacy-text-align-position-quirk.html
675
676         * WebView/WebPreferenceKeysPrivate.h:
677         * WebView/WebPreferences.mm:
678         (+[WebPreferences initialize]):
679         (-[WebPreferences useLegacyTextAlignPositionedElementBehavior]):
680         (-[WebPreferences setUseLegacyTextAlignPositionedElementBehavior:]):
681         * WebView/WebPreferencesPrivate.h:
682         * WebView/WebView.mm:
683         (-[WebView _preferencesChanged:]):
684
685 2013-11-18  Brian J. Burg  <burg@cs.washington.edu>
686
687         Consolidate various frame snapshot capabilities.
688         https://bugs.webkit.org/show_bug.cgi?id=124325
689
690         Reviewed by Timothy Hatcher.
691
692         Use new platform-independent methods instead of Mac methods.
693
694         * WebView/WebHTMLView.mm:
695         (-[WebHTMLView _selectionDraggingImage]):
696         (-[WebHTMLView selectionImageForcingBlackText:]):
697
698 2013-11-18  Anders Carlsson  <andersca@apple.com>
699
700         Remove unnecessary COMPILER(CLANG) #ifdefs in Mac-only code
701         https://bugs.webkit.org/show_bug.cgi?id=124523
702
703         Reviewed by Dan Bernstein.
704
705         * Plugins/Hosted/NetscapePluginHostManager.mm:
706         (WebKit::NetscapePluginHostManager::spawnPluginHost):
707         (WebKit::NetscapePluginHostManager::didCreateWindow):
708         * Plugins/Hosted/NetscapePluginHostProxy.mm:
709         (WebKit::NetscapePluginHostProxy::makeCurrentProcessFrontProcess):
710         (WebKit::NetscapePluginHostProxy::makePluginHostProcessFrontProcess):
711         (WebKit::NetscapePluginHostProxy::isPluginHostProcessFrontProcess):
712
713 2013-11-18  Anders Carlsson  <andersca@apple.com>
714
715         Ignore deprecation warnings for now.
716
717         * History/WebHistory.h:
718
719 2013-11-14  Anders Carlsson  <andersca@apple.com>
720
721         Reimplement getDayBoundaries using NSCalendar on 10.9
722         https://bugs.webkit.org/show_bug.cgi?id=124379
723
724         Reviewed by Dan Bernstein.
725
726         * History/WebHistory.mm:
727         (getDayBoundaries):
728
729 2013-11-14  Anders Carlsson  <andersca@apple.com>
730
731         Stop using deprecated NSPropertyListSerialization methods
732         https://bugs.webkit.org/show_bug.cgi?id=124377
733
734         Reviewed by Mark Rowe.
735
736         * History/WebHistory.mm:
737         (-[WebHistoryPrivate loadHistoryGutsFromURL:savedItemsCount:collectDiscardedItemsInto:error:]):
738         * Plugins/Hosted/NetscapePluginHostManager.mm:
739         (WebKit::NetscapePluginHostManager::spawnPluginHost):
740         (WebKit::NetscapePluginHostManager::instantiatePlugin):
741         * Plugins/Hosted/NetscapePluginHostProxy.mm:
742         (WKPCIdentifierInfo):
743         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
744         (WebKit::NetscapePluginInstanceProxy::enumerate):
745         (WebKit::NetscapePluginInstanceProxy::marshalValue):
746         (WebKit::NetscapePluginInstanceProxy::marshalValues):
747         (WebKit::NetscapePluginInstanceProxy::demarshalValue):
748         (WebKit::NetscapePluginInstanceProxy::demarshalValues):
749         * Plugins/Hosted/ProxyInstance.mm:
750         (WebKit::ProxyInstance::getPropertyNames):
751
752 2013-11-13  Joseph Pecoraro  <pecoraro@apple.com>
753
754         Unreviewed rollout of r159271, broke Mountain Lion build.
755
756         * History/WebHistory.h:
757         * History/WebHistory.mm:
758
759 2013-11-13  Anders Carlsson  <andersca@apple.com>
760
761         Deprecate WebHistory methods that use NSCalendarDate
762         https://bugs.webkit.org/show_bug.cgi?id=124329
763         <rdar://problem/15441122>
764
765         Reviewed by Mark Rowe.
766
767         * History/WebHistory.h:
768         Add NS_DEPRECATED_MAC to orderedLastVisitedDays and orderedItemsLastVisitedOnDay:.
769         In order to not break the Mountain Lion build, define __NSd_10_9 if necessary.
770         
771         * History/WebHistory.mm:
772         Ignore deprecation warnings in methods where NSCalendarDate is used.
773
774 2013-11-13  Gordon Sheridan  <gordon_sheridan@apple.com>
775
776         Removed deprecated download delegates.
777         https://bugs.webkit.org/show_bug.cgi?id=124309
778         <rdar://problem/13570414>
779
780         Reviewed by Anders Carlsson.
781
782         * Misc/WebDownload.mm:
783         (-[WebDownloadInternal respondsToSelector:]):
784         Removed download:shouldBeginChildDownloadOfSource:delegate and
785         download:didBeginChildDownload.
786
787 2013-11-12  Alexey Proskuryakov  <ap@apple.com>
788
789         Disable WebCrypto on Mountain Lion
790         https://bugs.webkit.org/show_bug.cgi?id=124261
791
792         Rubber-stamped by Sam Weinig.
793
794         * Configurations/FeatureDefines.xcconfig:
795
796 2013-11-12  Andy Estes  <aestes@apple.com>
797
798         [Mac] Fix some deprecation warnings
799         https://bugs.webkit.org/show_bug.cgi?id=124252
800
801         Reviewed by Mark Rowe.
802
803         * Plugins/WebBasePluginPackage.mm:
804         (-[WebBasePluginPackage pListForPath:createFile:]): Use +[NSPropertyListSerialization propertyListWithData:options:format:error:] instead of +[NSPropertyListSerialization propertyListFromData:mutabilityOption:format:errorDescription:].
805
806 2013-11-12  Anders Carlsson  <andersca@apple.com>
807
808         Remove -[WebHistoryItem _lastVisitedDate]
809         https://bugs.webkit.org/show_bug.cgi?id=124250
810
811         Reviewed by Mark Rowe.
812
813         This method is not called by anyone and NSCalendarDate is deprecated so get rid of it.
814
815         * History/WebHistoryItem.mm:
816         * History/WebHistoryItemPrivate.h:
817
818 2013-11-11  Anders Carlsson  <andersca@apple.com>
819
820         FrameFilter can just be an std::function instead
821         https://bugs.webkit.org/show_bug.cgi?id=124176
822
823         Reviewed by Tim Horton.
824
825         * DOM/WebDOMOperations.mm:
826         (-[DOMNode webArchiveByFilteringSubframes:]):
827
828 2013-11-11  Dan Bernstein  <mitz@apple.com>
829
830         [Mac] .exp files are not source code
831         https://bugs.webkit.org/show_bug.cgi?id=124154
832
833         Reviewed by Andy Estes.
834
835         * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
836         EXCLUDED_SOURCE_FILE_NAMES_macosx.
837
838 2013-11-09  Patrick Gansterer  <paroga@webkit.org>
839
840         Move RunLoop from WebCore to WTF
841         https://bugs.webkit.org/show_bug.cgi?id=116606
842
843         Reviewed by Anders Carlsson.
844
845         * Carbon/CarbonWindowAdapter.mm:
846         (+[CarbonWindowAdapter initialize]):
847         * History/WebBackForwardList.mm:
848         (+[WebBackForwardList initialize]):
849         * History/WebHistoryItem.mm:
850         (+[WebHistoryItem initialize]):
851         * Misc/WebCache.mm:
852         (+[WebCache initialize]):
853         * Misc/WebElementDictionary.mm:
854         (+[WebElementDictionary initialize]):
855         * Misc/WebIconDatabase.mm:
856         (+[WebIconDatabase initialize]):
857         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
858         (+[WebHostedNetscapePluginView initialize]):
859         * Plugins/WebBaseNetscapePluginView.mm:
860         * Plugins/WebBasePluginPackage.mm:
861         * Plugins/WebNetscapePluginView.mm:
862         (+[WebNetscapePluginView initialize]):
863         * WebCoreSupport/WebEditorClient.mm:
864         (+[WebUndoStep initialize]):
865         * WebCoreSupport/WebFrameLoaderClient.mm:
866         * WebView/WebArchive.mm:
867         (+[WebArchivePrivate initialize]):
868         * WebView/WebDataSource.mm:
869         (+[WebDataSource initialize]):
870         * WebView/WebHTMLView.mm:
871         (+[WebHTMLViewPrivate initialize]):
872         (+[WebHTMLView initialize]):
873         * WebView/WebPreferences.mm:
874         (+[WebPreferences initialize]):
875         * WebView/WebResource.mm:
876         (+[WebResourcePrivate initialize]):
877         * WebView/WebTextIterator.mm:
878         (+[WebTextIteratorPrivate initialize]):
879         * WebView/WebView.mm:
880         (+[WebView initialize]):
881         * WebView/WebViewData.mm:
882         (+[WebViewPrivate initialize]):
883
884 2013-11-08  Mark Lam  <mark.lam@apple.com>
885
886         Move breakpoint (and exception break) functionality into JSC::Debugger.
887         https://bugs.webkit.org/show_bug.cgi?id=121796.
888
889         Reviewed by Geoffrey Garen.
890
891         * WebView/WebScriptDebugger.h:
892         * WebView/WebScriptDebugger.mm:
893         (WebScriptDebugger::WebScriptDebugger):
894         (WebScriptDebugger::handlePause):
895
896 2013-11-07  Joseph Pecoraro  <pecoraro@apple.com>
897
898         Remove a PLATFORM(IOS) from WebKit Private Header
899         https://bugs.webkit.org/show_bug.cgi?id=124014
900
901         Reviewed by Timothy Hatcher.
902
903         Make the previously iOS only WebInspectorDidStartSearchingForNode
904         and WebInspectorDidStopSearchingForNode notifications non iOS specific.
905
906         * WebCoreSupport/WebInspectorClient.h:
907         * WebCoreSupport/WebInspectorClient.mm:
908         (WebInspectorClient::didSetSearchingForNode):
909         * WebInspector/WebInspector.h:
910         * WebInspector/WebInspector.mm:
911         * WebKit.exp:
912
913 2013-11-07  Mark Lam  <mark.lam@apple.com>
914
915         Cosmetic: rename xxxId to xxxID for ScriptId, SourceId, and BreakpointId.
916         https://bugs.webkit.org/show_bug.cgi?id=123945.
917
918         Reviewed by Geoffrey Garen.
919
920         * WebView/WebScriptDebugger.mm:
921         (WebScriptDebugger::exception):
922
923 2013-11-06  Daniel Bates  <dabates@apple.com>
924
925         [iOS] Upstream Letterpress effect
926         https://bugs.webkit.org/show_bug.cgi?id=123932
927
928         Reviewed by Sam Weinig.
929
930         Add feature define ENABLE_LETTERPRESS disabled by default. We only enable
931         letterpress on iOS.
932
933         * Configurations/FeatureDefines.xcconfig:
934
935 2013-11-04  Alexey Proskuryakov  <ap@apple.com>
936
937         DumpRenderTree should reset its preferences file on launch
938         https://bugs.webkit.org/show_bug.cgi?id=29751
939
940         Reviewed by Dan Bernstein.
941
942         * WebView/WebView.mm:
943         (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
944         Further fix reading of AppleKeyboardUIMode - reading it from kCFPreferencesAnyApplication
945         domain meant that current application's domain was explcitly ignored, and the only
946         way to override the setting in DRT was through argument domain.
947
948 2013-11-01  Jer Noble  <jer.noble@apple.com>
949
950         [PluginProxy] Add a setting to disable video plugin proxy support in HTMLMediaElement.
951         https://bugs.webkit.org/show_bug.cgi?id=123621
952
953         Reviewed by Eric Carlson.
954
955         Add a new isVideoPluginProxyEnabled setting.
956
957         * WebView/WebPreferenceKeysPrivate.h:
958         * WebView/WebPreferences.mm:
959         (+[WebPreferences initialize]): Set isVideoPluginProxyEnabled preference.
960         (-[WebPreferences isVideoPluginProxyEnabled]): Pass through to Settings.
961         * WebView/WebPreferencesPrivate.h:
962         * WebView/WebView.mm:
963         (-[WebView _preferencesChanged:]): Set isVideoPluginProxyEnabled preference.
964
965 2013-11-01  Andy Estes  <aestes@apple.com>
966
967         [iOS] Make some headers Private
968         https://bugs.webkit.org/show_bug.cgi?id=123626
969
970         Reviewed by Andreas Kling.
971
972         * Configurations/WebKit.xcconfig: Exclude iOS Private headers from the Mac build.
973
974 2013-10-31  Alexey Proskuryakov  <ap@apple.com>
975
976         Enable WebCrypto on Mac
977         https://bugs.webkit.org/show_bug.cgi?id=123587
978
979         Reviewed by Anders Carlsson.
980
981         * Configurations/FeatureDefines.xcconfig: Do it.
982
983 2013-10-30  Ryosuke Niwa  <rniwa@webkit.org>
984
985         Remove code for Mac Lion
986         https://bugs.webkit.org/show_bug.cgi?id=123542
987
988         Reviewed by Anders Carlsson.
989
990         * WebView/WebHTMLView.mm:
991         (-[WebHTMLView attachRootLayer:]):
992         * WebView/WebView.mm:
993
994 2013-10-29  Andy Estes  <aestes@apple.com>
995
996         [iOS] Upstream Source/WebKit/ios/
997         https://bugs.webkit.org/show_bug.cgi?id=123470
998
999         Reviewed by Sam Weinig.
1000
1001         * Configurations/WebKit.xcconfig: Excluded some iOS files from the Mac build.
1002
1003 2013-10-29  Alexey Proskuryakov  <ap@apple.com>
1004
1005         Result of focus-option-control-on-page.html depends on system preferences
1006         https://bugs.webkit.org/show_bug.cgi?id=123304
1007
1008         Reviewed by Simon Fraser.
1009
1010         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
1011         Read the preference from its correct domain. This doesn't affect behavior in practice
1012         and isn't part of the fix, but it's a good opportunity to correct this code.
1013
1014 2013-10-29  Jer Noble  <jer.noble@apple.com>
1015
1016         [MSE] [Mac] Enable MediaSource on the Mac
1017         https://bugs.webkit.org/show_bug.cgi?id=122484
1018
1019         Reviewed by Darin Adler.
1020
1021         Enable ENABLE_MEDIA_SOURCE.
1022
1023         * Configurations/FeatureDefines.xcconfig:
1024
1025 2013-10-28  Joseph Pecoraro  <pecoraro@apple.com>
1026
1027         Upstream remaining PLATFORM(IOS) and ENABLE(REMOTE_INSPECTOR) pieces
1028         https://bugs.webkit.org/show_bug.cgi?id=123411
1029
1030         Reviewed by Timothy Hatcher.
1031
1032         Upstream iOS node highlighting and view indication.
1033
1034         * WebCoreSupport/WebInspectorClient.h:
1035         * WebInspector/WebInspector.h:
1036         * WebInspector/WebInspector.mm:
1037         * WebInspector/WebNodeHighlight.h:
1038         * WebInspector/WebNodeHighlight.mm:
1039         (-[WebHighlightLayer initWithHighlightView:webView:]):
1040         (-[WebHighlightLayer layoutSublayers]):
1041         (-[WebHighlightLayer actionForKey:]):
1042         (-[WebNodeHighlight initWithTargetView:inspectorController:]):
1043         (-[WebNodeHighlight dealloc]):
1044         (-[WebNodeHighlight attach]):
1045         * WebInspector/WebNodeHighlightView.h:
1046         * WebInspector/WebNodeHighlightView.mm:
1047         (-[WebNodeHighlightView initWithWebNodeHighlight:]):
1048         (-[WebNodeHighlightView dealloc]):
1049         (-[WebNodeHighlightView _attach:numLayers:]):
1050         (findIntersectionOnLineBetweenPoints):
1051         (quadIntersection):
1052         (layerPathWithHole):
1053         (layerPath):
1054         (-[WebNodeHighlightView _layoutForNodeHighlight:parent:]):
1055         (-[WebNodeHighlightView _layoutForRectsHighlight:parent:]):
1056         (-[WebNodeHighlightView layoutSublayers:]):
1057         * WebInspector/WebNodeHighlighter.mm:
1058         (-[WebNodeHighlighter highlight]):
1059         * WebView/WebIndicateLayer.h: Added.
1060         * WebView/WebIndicateLayer.mm: Added.
1061         (-[WebIndicateLayer layoutSublayers]):
1062         (-[WebIndicateLayer actionForKey:]):
1063         * WebView/WebView.mm:
1064         (-[WebView setIndicatingForRemoteInspector:]):
1065         (-[WebView setHostApplicationBundleId:name:]):
1066         (-[WebView hostApplicationBundleId]):
1067         (-[WebView hostApplicationName]):
1068         * WebView/WebViewData.h:
1069         * WebView/WebViewData.mm:
1070         (-[WebViewPrivate dealloc]):
1071
1072 2013-10-28  Myles C. Maxfield  <mmaxfield@apple.com>
1073
1074         Parsing support for -webkit-text-decoration-skip: ink
1075         https://bugs.webkit.org/show_bug.cgi?id=123358
1076
1077         Reviewed by Dean Jackson.
1078
1079         Adding ENABLE(CSS3_TEXT_DECORATION)
1080
1081         * Configurations/FeatureDefines.xcconfig:
1082
1083 2013-10-25  Joseph Pecoraro  <pecoraro@apple.com>
1084
1085         Upstream ENABLE(REMOTE_INSPECTOR) and enable on iOS and Mac
1086         https://bugs.webkit.org/show_bug.cgi?id=123111
1087
1088         Reviewed by Timothy Hatcher.
1089
1090         The actual implementation at the WebCoreSupport/WebInspectorClient level
1091         is the same as INSPECTOR_SERVER. Give debuggable pages a pageIdentifer.
1092
1093         * Configurations/FeatureDefines.xcconfig:
1094         * Misc/WebKitLogging.h:
1095         Misc.
1096
1097         * WebCoreSupport/WebInspectorClient.h:
1098         (WebInspectorClient::pageId):
1099         (WebInspectorClient::setPageId):
1100         Give WebInspectorClient's a page identifier.
1101
1102         * WebCoreSupport/WebInspectorClient.mm:
1103         (WebInspectorClient::WebInspectorClient):
1104         (WebInspectorClient::inspectorDestroyed):
1105         (WebInspectorClient::sendMessageToFrontend):
1106         (WebInspectorClient::sendMessageToBackend):
1107         (WebInspectorClient::setupRemoteConnection):
1108         (WebInspectorClient::teardownRemoteConnection):
1109         (WebInspectorClient::hasLocalSession):
1110         (WebInspectorClient::canBeRemotelyInspected):
1111         (WebInspectorClient::inspectedWebView):
1112         A WebInspectorClient can be either local or remote. Add handling
1113         for remote connections.
1114
1115         * WebInspector/remote/WebInspectorClientRegistry.h: Added.
1116         * WebInspector/remote/WebInspectorClientRegistry.mm: Added.
1117         (+[WebInspectorClientRegistry sharedRegistry]):
1118         (-[WebInspectorClientRegistry init]):
1119         (-[WebInspectorClientRegistry _getNextAvailablePageId]):
1120         (-[WebInspectorClientRegistry registerClient:]):
1121         (-[WebInspectorClientRegistry unregisterClient:]):
1122         (-[WebInspectorClientRegistry clientForPageId:]):
1123         (-[WebInspectorClientRegistry inspectableWebViews]):
1124         Registry for all potentially debuggable pages. All WebInspectorClient instances.
1125
1126         * WebInspector/remote/WebInspectorRelayDefinitions.h: Added.
1127         Constants (message keys) shared between WebKit and the XPC process.
1128
1129         * WebInspector/remote/WebInspectorServer.h: Added.
1130         * WebInspector/remote/WebInspectorServer.mm: Added.
1131         (-[WebInspectorServer init]):
1132         (-[WebInspectorServer dealloc]):
1133         (-[WebInspectorServer start]):
1134         (-[WebInspectorServer stop]):
1135         (-[WebInspectorServer isEnabled]):
1136         (-[WebInspectorServer xpcConnection]):
1137         (-[WebInspectorServer setupXPCConnectionIfNeeded]):
1138         (-[WebInspectorServer pushListing]):
1139         (-[WebInspectorServer hasActiveDebugSession]):
1140         (-[WebInspectorServer setHasActiveDebugSession:]):
1141         (-[WebInspectorServer xpcConnection:receivedMessage:userInfo:]):
1142         (-[WebInspectorServer xpcConnectionFailed:]):
1143         (-[WebInspectorServer didRegisterClient:]):
1144         (-[WebInspectorServer didUnregisterClient:]):
1145         Singleton to start/stop remote inspection. Handles the connection to the XPC
1146         and hands off connections to the connection controller.
1147
1148         * WebInspector/remote/WebInspectorServerWebViewConnection.h: Added.
1149         * WebInspector/remote/WebInspectorServerWebViewConnection.mm: Added.
1150         (-[WebInspectorServerWebViewConnection initWithController:connectionIdentifier:destination:identifier:]):
1151         (-[WebInspectorServerWebViewConnection setupChannel]):
1152         (-[WebInspectorServerWebViewConnection dealloc]):
1153         (-[WebInspectorServerWebViewConnection connectionIdentifier]):
1154         (-[WebInspectorServerWebViewConnection identifier]):
1155         (-[WebInspectorServerWebViewConnection clearChannel]):
1156         (-[WebInspectorServerWebViewConnection sendMessageToFrontend:]):
1157         (-[WebInspectorServerWebViewConnection sendMessageToBackend:]):
1158         (-[WebInspectorServerWebViewConnection receivedData:]):
1159         (-[WebInspectorServerWebViewConnection receivedDidClose:]):
1160         An individual remote debug session connection.
1161
1162         * WebInspector/remote/WebInspectorServerWebViewConnectionController.h: Added.
1163         * WebInspector/remote/WebInspectorServerWebViewConnectionController.mm: Added.
1164         (-[WebInspectorServerWebViewConnectionController initWithServer:]):
1165         (-[WebInspectorServerWebViewConnectionController dealloc]):
1166         (-[WebInspectorServerWebViewConnectionController closeAllConnections]):
1167         (-[WebInspectorServerWebViewConnectionController _listingForWebView:pageId:registry:]):
1168         (-[WebInspectorServerWebViewConnectionController _pushListing:]):
1169         (-[WebInspectorServerWebViewConnectionController pushListing:]):
1170         (-[WebInspectorServerWebViewConnectionController pushListing]):
1171         (-[WebInspectorServerWebViewConnectionController _receivedSetup:]):
1172         (-[WebInspectorServerWebViewConnectionController _receivedData:]):
1173         (-[WebInspectorServerWebViewConnectionController _receivedDidClose:]):
1174         (-[WebInspectorServerWebViewConnectionController _receivedGetListing:]):
1175         (-[WebInspectorServerWebViewConnectionController _receivedIndicate:]):
1176         (-[WebInspectorServerWebViewConnectionController _receivedConnectionDied:]):
1177         (-[WebInspectorServerWebViewConnectionController receivedMessage:userInfo:]):
1178         (-[WebInspectorServerWebViewConnectionController connectionClosing:]):
1179         (-[WebInspectorServerWebViewConnectionController sendMessageToFrontend:userInfo:]):
1180         ConnectionController:
1181           - Holds all the current ongoing remote debug connections.
1182           - Simplifies multi-threaded work on iOS.
1183           - Dispatches incoming messages from the remote connection.
1184
1185         * WebInspector/remote/WebInspectorRemoteChannel.h: Added.
1186         * WebInspector/remote/WebInspectorRemoteChannel.mm: Added.
1187         (+[WebInspectorRemoteChannel createChannelForPageId:connection:]):
1188         (-[WebInspectorRemoteChannel initWithRemote:local:]):
1189         (-[WebInspectorRemoteChannel closeFromLocalSide]):
1190         (-[WebInspectorRemoteChannel closeFromRemoteSide]):
1191         (-[WebInspectorRemoteChannel sendMessageToFrontend:]):
1192         (-[WebInspectorRemoteChannel sendMessageToBackend:]):
1193         Thin interface between the remote connection and web inspector client.
1194         This simplifies breaking the connection from either side, e.g. the
1195         page closing, or the remote connection disconnecting.
1196
1197         * WebInspector/remote/WebInspectorXPCWrapper.h: Added.
1198         * WebInspector/remote/WebInspectorXPCWrapper.m: Added.
1199         (-[WebInspectorXPCWrapper initWithConnection:]):
1200         (-[WebInspectorXPCWrapper close]):
1201         (-[WebInspectorXPCWrapper dealloc]):
1202         (-[WebInspectorXPCWrapper _deserializeMessage:]):
1203         (-[WebInspectorXPCWrapper _handleEvent:]):
1204         (-[WebInspectorXPCWrapper sendMessage:userInfo:]):
1205         (-[WebInspectorXPCWrapper available]):
1206         * WebKit.exp:
1207         XPC Connection wrapper handling a simple message format.
1208
1209         * WebView/WebViewData.h:
1210         * WebView/WebViewData.mm:
1211         (-[WebViewPrivate init]):
1212         (-[WebViewPrivate dealloc]):
1213         * WebView/WebViewInternal.h:
1214         * WebView/WebViewPrivate.h:
1215         * WebView/WebView.mm:
1216         (-[WebView _commonInitializationWithFrameName:groupName:]):
1217         (+[WebView sharedWebInspectorServer]):
1218         (+[WebView _enableRemoteInspector]):
1219         (+[WebView _disableRemoteInspector]):
1220         (+[WebView _disableAutoStartRemoteInspector]):
1221         (+[WebView _isRemoteInspectorEnabled]):
1222         (+[WebView _hasRemoteInspectorSession]):
1223         (-[WebView canBeRemotelyInspected]):
1224         (-[WebView allowsRemoteInspection]):
1225         (-[WebView setAllowsRemoteInspection:]):
1226         (-[WebView setIndicatingForRemoteInspector:]):
1227         (-[WebView setRemoteInspectorUserInfo:]):
1228         (-[WebView remoteInspectorUserInfo]):
1229         Remote inspector private API.
1230           - Enable / disable globally
1231           - Allow / disallow per webview
1232           - Optionally attach a userInfo dictionary on the WebView that is published with listing.
1233           - Indicate a WebView (implementation to land later)
1234
1235         (-[WebView _didCommitLoadForFrame:]):
1236         * WebCoreSupport/WebFrameLoaderClient.mm:
1237         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1238         Pages changed, pushed page listing.
1239
1240 2013-10-25  Mark Rowe  <mrowe@apple.com>
1241
1242         Fix or disable some deprecation warnings.
1243
1244         Reviewed by Darin Adler.
1245
1246         * Panels/WebAuthenticationPanel.m:
1247         (-[WebAuthenticationPanel cancel:]): On newer OS versions, use the modern API.
1248         (-[WebAuthenticationPanel logIn:]): Ditto.
1249         (-[WebAuthenticationPanel runAsSheetOnWindow:withChallenge:]): Ditto. Translate the
1250         response code in to the form that -sheetDidEnd:responseCode:contextInfo: expects.
1251         * WebView/WebClipView.mm:
1252         (-[WebClipView initWithFrame:]): Disable deprecation warnings since it's not obvious
1253         how to avoid calling -releaseGState here.
1254
1255 2013-10-24  Mark Rowe  <mrowe@apple.com>
1256
1257         Remove references to OS X 10.7 from Xcode configuration settings.
1258
1259         Now that we're not building for OS X 10.7 they're no longer needed.
1260
1261         Reviewed by Anders Carlsson.
1262
1263         * Configurations/Base.xcconfig:
1264         * Configurations/DebugRelease.xcconfig:
1265         * Configurations/FeatureDefines.xcconfig:
1266         * Configurations/Version.xcconfig:
1267
1268 2013-10-24  Mark Rowe  <mrowe@apple.com>
1269
1270         <rdar://problem/15312643> Prepare for the mysterious future.
1271
1272         Reviewed by David Kilzer.
1273
1274         * Configurations/Base.xcconfig:
1275         * Configurations/DebugRelease.xcconfig:
1276         * Configurations/FeatureDefines.xcconfig:
1277         * Configurations/Version.xcconfig:
1278
1279 2013-10-24  Anders Carlsson  <andersca@apple.com>
1280
1281         Stop bringing in the std namespace
1282         https://bugs.webkit.org/show_bug.cgi?id=123273
1283
1284         Reviewed by Andreas Kling.
1285
1286         * WebView/WebFrameView.mm:
1287         (-[WebFrameView _verticalPageScrollDistance]):
1288         (-[WebFrameView _horizontalPageScrollDistance]):
1289         * WebView/WebHTMLView.mm:
1290         (-[WebHTMLView _scaleFactorForPrintOperation:]):
1291         * WebView/WebView.mm:
1292         (+[WebView _setCacheModel:]):
1293         (+[WebView _maxCacheModelInAnyInstance]):
1294         (+[WebView _cacheModelChangedNotification:]):
1295         (+[WebView _preferencesRemovedNotification:]):
1296
1297 2013-10-22  Dean Jackson  <dino@apple.com>
1298
1299         [WebGL] Implement a software rendering option on Mac
1300         https://bugs.webkit.org/show_bug.cgi?id=123177
1301
1302         Reviewed by Tim Horton.
1303
1304         Implement a way to force software OpenGL rendering
1305         for WebGL, via a Setting/Preference.
1306
1307         * WebView/WebPreferenceKeysPrivate.h: New WebKitForceSoftwareWebGLRendering key.
1308         * WebView/WebPreferences.mm:
1309         (+[WebPreferences initialize]):
1310         (-[WebPreferences forceSoftwareWebGLRendering]):
1311         (-[WebPreferences setForceSoftwareWebGLRendering:]):
1312         * WebView/WebPreferencesPrivate.h:
1313         * WebView/WebView.mm:
1314         (-[WebView _preferencesChanged:]):
1315
1316 2013-10-21  Mark Rowe  <mrowe@apple.com>
1317
1318         Add a version of WebKitSystemInterface for Mavericks.
1319
1320         Reviewed by Ryosuke Niwa.
1321
1322         * Configurations/DebugRelease.xcconfig:
1323
1324 2013-10-21  Daniel Bates  <dabates@apple.com>
1325
1326         Remove platform #ifdefs from WebDataSourcePrivate.h
1327         https://bugs.webkit.org/show_bug.cgi?id=123120
1328         <rdar://problem/15275533>
1329
1330         Reviewed by Anders Carlsson.
1331
1332         * WebView/WebDataSource.mm:
1333         (-[WebDataSource _setAllowToBeMemoryMapped]): Define empty implementation when building without
1334         disk image cache enabled.
1335         (-[WebDataSource setDataSourceDelegate:]): Ditto.
1336         (-[WebDataSource dataSourceDelegate]): Return nullptr when building without disk image cache
1337         enabled on iOS.
1338         * WebView/WebDataSourcePrivate.h: Removed platform #ifdefs added in
1339         <http://trac.webkit.org/changeset/156918> (https://bugs.webkit.org/show_bug.cgi?id=121985)
1340
1341 2013-10-20  Mark Lam  <mark.lam@apple.com>
1342
1343         Avoid JSC debugger overhead unless needed.
1344         https://bugs.webkit.org/show_bug.cgi?id=123084.
1345
1346         Reviewed by Geoffrey Garen.
1347
1348         * WebView/WebScriptDebugger.mm:
1349         (WebScriptDebugger::WebScriptDebugger):
1350
1351 2013-10-19  Jer Noble  <jer.noble@apple.com>
1352
1353         Unreviewed roll out of r157695; broke Mac builds.
1354
1355         * Configurations/FeatureDefines.xcconfig:
1356
1357 2013-10-07  Jer Noble  <jer.noble@apple.com>
1358
1359         [MSE] [Mac] Enable MediaSource on the Mac
1360         https://bugs.webkit.org/show_bug.cgi?id=122484
1361
1362         Reviewed by Darin Adler.
1363
1364         Enable ENABLE_MEDIA_SOURCE.
1365
1366         * Configurations/FeatureDefines.xcconfig:
1367
1368 2013-10-19  Andreas Kling  <akling@apple.com>
1369
1370         Attempt to get Lion building.
1371
1372         * WebView/WebDataSource.mm:
1373
1374 2013-10-18  Anders Carlsson  <andersca@apple.com>
1375
1376         Remove spaces between template angle brackets
1377         https://bugs.webkit.org/show_bug.cgi?id=123040
1378
1379         Reviewed by Andreas Kling.
1380
1381         * History/WebHistory.mm:
1382         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
1383         * History/WebHistoryItem.mm:
1384         (-[WebHistoryItem initFromDictionaryRepresentation:]):
1385         * Plugins/Hosted/NetscapePluginHostProxy.h:
1386         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1387         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1388         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1389         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
1390         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
1391         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1392         (WebKit::NetscapePluginInstanceProxy::stopAllStreams):
1393         * Plugins/WebNetscapePluginView.h:
1394         * Plugins/WebNetscapePluginView.mm:
1395         (-[WebNetscapePluginView destroyPlugin]):
1396         * Storage/WebDatabaseManager.mm:
1397         (-[WebDatabaseManager origins]):
1398         * Storage/WebStorageManager.mm:
1399         (-[WebStorageManager origins]):
1400         * WebCoreSupport/WebApplicationCache.mm:
1401         (+[WebApplicationCache originsWithCache]):
1402         * WebCoreSupport/WebEditorClient.h:
1403         * WebCoreSupport/WebEditorClient.mm:
1404         (WebEditorClient::getClientPasteboardDataForRange):
1405         (WebEditorClient::documentFragmentFromAttributedString):
1406         * WebCoreSupport/WebFrameLoaderClient.h:
1407         * WebCoreSupport/WebNotificationClient.h:
1408         * WebCoreSupport/WebNotificationClient.mm:
1409         (WebNotificationClient::show):
1410         (WebNotificationClient::clearNotifications):
1411         * WebView/WebArchive.mm:
1412         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
1413         (-[WebArchive subresources]):
1414         (-[WebArchive subframeArchives]):
1415         * WebView/WebDataSource.mm:
1416         (-[WebDataSource subresources]):
1417         * WebView/WebViewData.h:
1418
1419 2013-10-16  Jochen Eisinger  <jochen@chromium.org>
1420
1421         A page should exit fullscreen mode if it opens a new popup
1422         https://bugs.webkit.org/show_bug.cgi?id=122865
1423
1424         Reviewed by Jer Noble.
1425
1426         If a fullscreen page opens a popup, the popup would be hidden and
1427         therefore invisible to the user. To avoid this, exit fullscreen mode
1428         before opening a new window.
1429
1430         * WebCoreSupport/WebChromeClient.mm:
1431         (WebChromeClient::createWindow):
1432
1433 2013-10-15  Dean Jackson  <dino@apple.com>
1434
1435         Add ENABLE_WEB_ANIMATIONS flag
1436         https://bugs.webkit.org/show_bug.cgi?id=122871
1437
1438         Reviewed by Tim Horton.
1439
1440         Eventually might be http://dev.w3.org/fxtf/web-animations/
1441         but this is just engine-internal work at the moment.
1442
1443         * Configurations/FeatureDefines.xcconfig:
1444
1445 2013-10-15  Andy Estes  <aestes@apple.com>
1446
1447         Expose -[WebPluginPackage bundle] as SPI
1448         https://bugs.webkit.org/show_bug.cgi?id=122814
1449
1450         Reviewed by Anders Carlsson.
1451
1452         * Plugins/WebPluginPackage.mm:
1453         (-[WebPluginPackage bundle]): Defined.
1454         * Plugins/WebPluginPackagePrivate.h: Declared bundle as a method in a
1455         category on NSObject.
1456
1457 2013-10-12  Darin Adler  <darin@apple.com>
1458
1459         Get rid of the toHTMLElement helper for casting FormAssociatedElement to HTMLElement
1460         https://bugs.webkit.org/show_bug.cgi?id=122713
1461
1462         Reviewed by Sam Weinig.
1463
1464         * WebView/WebHTMLRepresentation.mm:
1465         (-[WebHTMLRepresentation elementWithName:inForm:]): Use asHTMLElement.
1466         (-[WebHTMLRepresentation controlsInForm:]): Ditto.
1467
1468 2013-10-12  Adam Roben  <aroben@webkit.org>
1469
1470         WebViews inside OS X screen savers have large caches, but should not
1471         https://bugs.webkit.org/show_bug.cgi?id=122604
1472
1473         We use WebCacheModelDocumentViewer by default for apps linked against
1474         modern WebKit, and WebCacheModelDocumentBrowser for apps linked
1475         against legacy WebKit. ScreenSaverEngine.app doesn't link against
1476         WebKit at all, and thus falls into the legacy case by accident because
1477         NSVersionOfLinkTimeLibrary("WebKit") returns -1.
1478
1479         But WebViews inside screen savers are almost certainly not being used
1480         as browsers, so this large-ish cache specified by
1481         WebCacheModelDocumentBrowser is wasteful. This is likely true for all
1482         apps that don't directly link against WebKit, so now we use
1483         WebCacheModelDocumentViewer by default for those apps.
1484
1485         Reviewed by Darin Adler.
1486
1487         * WebView/WebPreferences.mm:
1488         (cacheModelForMainBundle): Use WebCacheModelDocumentViewer by default
1489         for apps that don't link against WebKit directly. Also converted to
1490         use @autoreleasepool {} and early returns while I was in here.
1491
1492 2013-10-12  Alexey Proskuryakov  <ap@apple.com>
1493
1494         Add a feature define for SubtleCrypto
1495         https://bugs.webkit.org/show_bug.cgi?id=122683
1496
1497         Reviewed by Anders Carlsson.
1498
1499         * Configurations/FeatureDefines.xcconfig:
1500
1501 2013-10-12  Darin Adler  <darin@apple.com>
1502
1503         Use unique_ptr instead of delete in a few places
1504         https://bugs.webkit.org/show_bug.cgi?id=122639
1505
1506         Reviewed by Anders Carlsson.
1507
1508         * History/WebHistory.mm:
1509         (-[WebHistoryPrivate init]): Use make_unique.
1510         (-[WebHistoryPrivate dealloc]): Don't delete.
1511         (-[WebHistoryPrivate finalize]): Don't delete.
1512         (-[WebHistoryPrivate data]): Use get.
1513
1514         * WebCoreSupport/WebFrameNetworkingContext.mm:
1515         (privateSession): Use NeverDestroyed here instead of a raw pointer.
1516         (WebFrameNetworkingContext::ensurePrivateBrowsingSession): Use the
1517         new function instead of direct global variable access.
1518         (WebFrameNetworkingContext::destroyPrivateBrowsingSession): Ditto.
1519         (WebFrameNetworkingContext::storageSession): Ditto.
1520
1521         * WebView/WebFrame.mm:
1522         (-[WebFramePrivate dealloc]): Don't delete.
1523         (-[WebFramePrivate finalize]): Don't delete.
1524         (-[WebFrame _attachScriptDebugger]): Use make_unique.
1525         (-[WebFrame _detachScriptDebugger]): Don't delete.
1526         * WebView/WebFrameInternal.h: Use unique_ptr.
1527
1528 2013-10-11  Timothy Hatcher  <timothy@apple.com>
1529
1530         Remove preference support for picking the old Web Inspector.
1531         https://bugs.webkit.org/show_bug.cgi?id=122655
1532
1533         Reviewed by Alexey Proskuryakov.
1534
1535         * WebCoreSupport/WebInspectorClient.mm:
1536         (WebInspectorFrontendClient::localizedStringsURL):
1537         (-[WebInspectorWindowController inspectorPagePath]):
1538
1539 2013-10-10  Simon Fraser  <simon.fraser@apple.com>
1540
1541         Always force layout before flushing compositing layers
1542         https://bugs.webkit.org/show_bug.cgi?id=122626
1543
1544         Reviewed by Tim Horton.
1545         
1546         [m_webView _flushCompositingChanges] only actually flushes compositing
1547         layers if the FrameView does not need layout (FrameView::flushCompositingStateForThisFrame()
1548         returns in this case). In this situation, flushLayers() does actually try
1549         to force a layout, but on some platforms it's possible for something else
1550         to dirty layout before the runloop observer fires again. This can result
1551         in flushLayers() never actually managing to flush, which stalls visual
1552         updates.
1553         
1554         Fix by always calling -viewWillDraw (which updates layout) before flushing
1555         layers. This now matches WebKit2 behavior.
1556
1557         * WebView/WebView.mm:
1558         (LayerFlushController::flushLayers):
1559
1560 2013-10-10  Andy Estes  <aestes@apple.com>
1561
1562         Add SPI for telling WebKit to prefer pictograph glyphs over monochrome ones
1563         https://bugs.webkit.org/show_bug.cgi?id=122608
1564
1565         Reviewed by Dan Bernstein.
1566
1567         Based on patches by Dan Bernstein.
1568
1569         * WebView/WebView.mm:
1570         (-[WebView _setFontFallbackPrefersPictographs:]): Called
1571         WebCore::Settings::setFontFallbackPrefersPictographs().
1572         * WebView/WebViewPrivate.h:
1573
1574 2013-10-10  Mark Rowe  <mrowe@apple.com>
1575
1576         <rdar://problem/13341666> WebKit should always build against an SDK.
1577
1578         Have all projects default to building against the OS X Internal SDK for the Production
1579         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
1580         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
1581
1582         Reviewed by Dan Bernstein.
1583
1584         * Configurations/Base.xcconfig:
1585         * Configurations/DebugRelease.xcconfig:
1586
1587 2013-10-08  Darin Adler  <darin@apple.com>
1588
1589         WebNetscapePluginView should no longer use deleteAllValues
1590         https://bugs.webkit.org/show_bug.cgi?id=122495
1591
1592         Reviewed by Anders Carlsson.
1593
1594         * Plugins/WebNetscapePluginView.h: Use unique_ptr for both the pointer to
1595         the timers hash table, and for the values in the hash table.
1596
1597         * Plugins/WebNetscapePluginView.mm:
1598         (-[WebNetscapePluginView stopTimers]): Rewrote loop so it works with unique_ptr.
1599         (-[WebNetscapePluginView startTimers]): Ditto.
1600         (-[WebNetscapePluginView fini]): Removed unneeded code to delete timers.
1601         (-[WebNetscapePluginView scheduleTimerWithInterval:repeat:timerFunc:]): Make
1602         the timers hash table with make-unique. Fixed the loop that chooses the timer
1603         ID so it won't ever try to use a deleted value, although that never happens
1604         in practice. Use HashMap::add instead of using both contains and set.
1605         Rearranged code so we don't need to make a raw pointer for the timer.
1606         (-[WebNetscapePluginView unscheduleTimer:]): Use remove instead of take/delete,
1607         since remove takes care of the deletion automatically since we are using the
1608         unique_ptr class.
1609
1610 2013-10-08  Darin Adler  <darin@apple.com>
1611
1612         Eliminate use of deleteAllValues in ProxyInstance
1613         https://bugs.webkit.org/show_bug.cgi?id=122499
1614
1615         Reviewed by Anders Carlsson.
1616
1617         * Plugins/Hosted/ProxyInstance.h: Use unique_ptr for map values in m_fields and m_methods.
1618
1619         * Plugins/Hosted/ProxyInstance.mm:
1620         (WebKit::ProxyInstance::~ProxyInstance): Removed calls to deleteAllValues.
1621         (WebKit::ProxyInstance::methodNamed): Use make_unique and get to deal with map entries
1622         that are unique_ptr. Also fixed a bug where this would do an expensive no-op if the map
1623         already had an entry with a null in it. We would call the plug-in, but eventually
1624         isNewEntry would be false so we would return null.
1625         (WebKit::ProxyInstance::fieldNamed): Use make_unique and get to deal with map entries
1626         that are unique_ptr.
1627
1628 2013-10-08  Darin Adler  <darin@apple.com>
1629
1630         Change NetscapePluginInstanceProxy::m_replies to use unique_ptr instead of deleteAllValues
1631         https://bugs.webkit.org/show_bug.cgi?id=122492
1632
1633         Reviewed by Andreas Kling.
1634
1635         * Plugins/Hosted/NetscapePluginHostManager.mm:
1636         (WebKit::NetscapePluginHostManager::instantiatePlugin): Use auto so this works with
1637         unique_ptr instead of auto_ptr.
1638         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1639         (WKPCGetScriptableNPObjectReply): Use make_unique instead of using new directly.
1640         (WKPCBooleanReply): Ditto.
1641         (WKPCBooleanAndDataReply): Ditto.
1642         (WKPCInstantiatePluginReply): Ditto.
1643         * Plugins/Hosted/NetscapePluginInstanceProxy.h: Changed m_replies to map to unique_ptr
1644         instead of to a raw pointer.
1645         (WebKit::NetscapePluginInstanceProxy::setCurrentReply): Changed to take a unique_ptr
1646         instead of a raw pointer since this takes ownership of the pointer.
1647         (WebKit::NetscapePluginInstanceProxy::waitForReply): Changed to return a unique_ptr
1648         instead of a auto_ptr because that's better. Use unique_ptr inside the function
1649         too to avoid the need for an explicit delete.
1650         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1651         (WebKit::NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy): Removed the call to
1652         deleteAllValues.
1653         (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad): Removed unneeded initialization
1654         of a local variable that was already set in all code paths.
1655         (WebKit::NetscapePluginInstanceProxy::wheelEvent): Use auto so this works with unique_ptr
1656         instead of auto_ptr.
1657         (WebKit::NetscapePluginInstanceProxy::print): Ditto.
1658         (WebKit::NetscapePluginInstanceProxy::snapshot): Ditto. Ditto.
1659         (WebKit::NetscapePluginInstanceProxy::processRequestsAndWaitForReply): Changed to return
1660         a unique_ptr. Also removed an unneeded assertion.
1661         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance): Use auto so this works
1662         with unique_ptr instead of auto_ptr.
1663
1664         * Plugins/Hosted/ProxyInstance.h: Changed return type of waitForReply to unique_ptr.
1665
1666         * Plugins/Hosted/ProxyInstance.mm:
1667         (WebKit::ProxyInstance::invoke): Use auto so this works with unique_ptr instead of auto_ptr.
1668         (WebKit::ProxyInstance::supportsInvokeDefaultMethod): Ditto.
1669         (WebKit::ProxyInstance::supportsConstruct): Ditto.
1670         (WebKit::ProxyInstance::getPropertyNames): Ditto.
1671         (WebKit::ProxyInstance::methodNamed): Ditto.
1672         (WebKit::ProxyInstance::fieldNamed): Ditto.
1673         (WebKit::ProxyInstance::fieldValue): Ditto.
1674         (WebKit::ProxyInstance::setFieldValue): Ditto.
1675
1676 2013-10-07  Sam Weinig  <sam@webkit.org>
1677
1678         CTTE: Use references in and around DragController
1679         https://bugs.webkit.org/show_bug.cgi?id=122427
1680
1681         Reviewed by Andreas Kling.
1682
1683         * WebCoreSupport/WebDragClient.h:
1684         * WebCoreSupport/WebDragClient.mm:
1685         (WebDragClient::actionMaskForDrag):
1686         (WebDragClient::willPerformDragDestinationAction):
1687         (WebDragClient::willPerformDragSourceAction):
1688         (WebDragClient::startDrag):
1689         (WebDragClient::declareAndWriteDragImage):
1690         * WebView/WebFrame.mm:
1691         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
1692         * WebView/WebHTMLView.mm:
1693         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1694         * WebView/WebView.mm:
1695         (-[WebView draggingEntered:]):
1696         (-[WebView draggingUpdated:]):
1697         (-[WebView draggingExited:]):
1698         (-[WebView performDragOperation:]):
1699
1700 2013-10-05  Sam Weinig  <sam@webkit.org>
1701
1702         CTTE: Thread references through markup.h
1703         https://bugs.webkit.org/show_bug.cgi?id=122403
1704
1705         Reviewed by Darin Adler and Andreas Kling.
1706
1707         * DOM/WebDOMOperations.mm:
1708         (-[DOMNode markupString]):
1709         (-[DOMRange markupString]):
1710         * WebView/WebFrame.mm:
1711         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
1712         (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
1713
1714 2013-10-05  Sam Weinig  <sam@webkit.org>
1715
1716         CTTE: Pass DocumentWriter around as a reference
1717         https://bugs.webkit.org/show_bug.cgi?id=122396
1718
1719         Reviewed by Andreas Kling.
1720
1721         * WebView/WebFrame.mm:
1722         (-[WebFrame _canProvideDocumentSource]):
1723
1724 2013-10-04  Alexey Proskuryakov  <ap@apple.com>
1725
1726         Don't preflight spell checker when calling -setContinuousSpellCheckingEnabled repeatedly
1727         https://bugs.webkit.org/show_bug.cgi?id=122329
1728
1729         Reviewed by Darin Adler.
1730
1731         * WebView/WebView.mm: (-[WebView setContinuousSpellCheckingEnabled:]): Don't do any
1732         work if preference didn't change (continuousSpellCheckingEnabled is a static that
1733         starts with false).
1734
1735 2013-10-04  Anders Carlsson  <andersca@apple.com>
1736
1737         FramePolicyFunction should be an std::function
1738         https://bugs.webkit.org/show_bug.cgi?id=122362
1739
1740         Reviewed by Darin Adler.
1741
1742         * WebCoreSupport/WebFrameLoaderClient.h:
1743         * WebCoreSupport/WebFrameLoaderClient.mm:
1744         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
1745         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
1746         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
1747         (WebFrameLoaderClient::dispatchWillSubmitForm):
1748
1749 2013-10-04  Mark Lam  <mark.lam@apple.com>
1750
1751         Change ScriptDebugServer to use DebuggerCallFrame instead of JavaScriptCallFrame.
1752         https://bugs.webkit.org/show_bug.cgi?id=121969.
1753
1754         Reviewed by Geoffrey Garen.
1755
1756         1. Make JavaScriptCallFrame a thin shell around the DebuggerCallFrame.
1757            DebuggerCallFrame now tracks whether it is valid instead of needing
1758            JavaScriptCallFrame do it.
1759         2. ScriptDebugServer now only instantiates an DebuggerCallFrame when needed
1760            just before it pauses and calls back to its client, and then invalidates
1761            it immediately when the callback returns. Every subsequent callback to
1762            the client will use a new instance of the DebuggerCallFrame.
1763         3. Similarly, ScriptDebugServer now only creates a JavaScriptCallFrame when
1764            it "pauses".
1765         4. DebuggerCallFrame only creates its caller DebuggerCallFrame when
1766            it is needed i.e. when the client calls callerFrame(). Similarly,
1767            JavaScriptCallFrame only creates its caller when it's requested.
1768         5. DebuggerCallFrame's line() and column() now returns a base-zero int.
1769         6. WebScriptDebugDelegate now only caches the functionName of the frame
1770            instead of the entire DebuggerCallFrame because that is all that is
1771            needed.
1772         7. Also removed evaluateInGlobalCallFrame() which is not used anywhere.
1773
1774         * WebView/WebScriptDebugDelegate.mm:
1775         (-[WebScriptCallFramePrivate dealloc]):
1776         (-[WebScriptCallFrame _initWithGlobalObject:functionName:exceptionValue:JSC::]):
1777         (-[WebScriptCallFrame functionName]):
1778         (-[WebScriptCallFrame exception]):
1779         * WebView/WebScriptDebugger.mm:
1780         (WebScriptDebugger::exception):
1781
1782 2013-10-04  Anders Carlsson  <andersca@apple.com>
1783
1784         Remove some unneeded code from WidgetMac
1785         https://bugs.webkit.org/show_bug.cgi?id=122355
1786
1787         Reviewed by Dan Bernstein.
1788
1789         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.
1790
1791         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1792         * Plugins/WebBaseNetscapePluginView.h:
1793         * Plugins/WebBaseNetscapePluginView.mm:
1794
1795 2013-10-04  Daniel Bates  <dabates@apple.com>
1796
1797         [iOS] Upstream disk image cache
1798         https://bugs.webkit.org/show_bug.cgi?id=121985
1799
1800         Reviewed by Joseph Pecoraro.
1801
1802         * Misc/WebCache.mm:
1803         (+[WebCache statistics]):
1804         * WebView/WebDataSource.mm:
1805         (BufferMemoryMapped): Added.
1806         (-[WebDataSource _setAllowToBeMemoryMapped]): Added.
1807         (-[WebDataSource setDataSourceDelegate:]): Added.
1808         (-[WebDataSource dataSourceDelegate]): Added.
1809         (-[WebDataSource dealloc]):
1810         * WebView/WebDataSourcePrivate.h: Declared private delegate
1811         protocol, WebDataSourcePrivateDelegate.
1812         * WebView/WebPreferenceKeysPrivate.h:
1813         * WebView/WebPreferences.mm:
1814         (+[WebPreferences initialize]):
1815         (-[WebPreferences diskImageCacheEnabled]): Added.
1816         (-[WebPreferences setDiskImageCacheEnabled:]): Added.
1817         (-[WebPreferences diskImageCacheMinimumImageSize]): Added.
1818         (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Added.
1819         (-[WebPreferences diskImageCacheMaximumCacheSize]): Added.
1820         (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Added.
1821         (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Added.
1822         (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Added.
1823         * WebView/WebView.mm:
1824         (-[WebView _commonInitializationWithFrameName:groupName:]):
1825         (-[WebView _preferencesChanged:]):
1826
1827 2013-10-04  Anders Carlsson  <andersca@apple.com>
1828
1829         Remove WebAssertions.h
1830         https://bugs.webkit.org/show_bug.cgi?id=122328
1831
1832         Reviewed by Jessie Berlin.
1833
1834         * Misc/WebAssertions.h: Removed.
1835
1836 2013-10-03  Anders Carlsson  <andersca@apple.com>
1837
1838         Remove WebNSNotificationCenterExtras
1839         https://bugs.webkit.org/show_bug.cgi?id=122316
1840
1841         Reviewed by Dan Bernstein.
1842
1843         Use dispatch_async to ensure that notifications are posted on the main thread.
1844
1845         * Misc/WebIconDatabase.mm:
1846         (-[WebIconDatabase _sendNotificationForURL:]):
1847         (-[WebIconDatabase _sendDidRemoveAllIconsNotification]):
1848         * Misc/WebNSNotificationCenterExtras.h: Removed.
1849         * Misc/WebNSNotificationCenterExtras.m: Removed.
1850
1851 2013-10-03  Sam Weinig  <sam@webkit.org>
1852
1853         Remove shouldRubberBandInDirection from the WKBundlePageUIClient
1854         https://bugs.webkit.org/show_bug.cgi?id=122309
1855
1856         Reviewed by Andreas Kling.
1857
1858         * WebCoreSupport/WebChromeClient.h:
1859
1860 2013-10-03  Anders Carlsson  <andersca@apple.com>
1861
1862         Ignore deprecation warnings
1863         https://bugs.webkit.org/show_bug.cgi?id=122302
1864
1865         Reviewed by Mark Rowe.
1866
1867         * Misc/WebIconDatabase.mm:
1868         (-[WebIconDatabase _scaleIcon:toSize:]):
1869         (webGetNSImage):
1870         * Misc/WebNSImageExtras.m:
1871         (-[NSImage _web_scaleToMaxSize:]):
1872         (-[NSImage _web_dissolveToFraction:]):
1873         * Misc/WebNSViewExtras.m:
1874         (-[NSView _web_DragImageForElement:rect:event:pasteboard:source:offset:]):
1875         (-[NSView _web_convertRect:toView:]):
1876         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1877         (WebKit::NetscapePluginInstanceProxy::mouseEvent):
1878         * Plugins/Hosted/WebTextInputWindowController.m:
1879         (-[WebTextInputPanel _interpretKeyEvent:string:]):
1880         * Plugins/WebBaseNetscapePluginView.mm:
1881         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
1882         * WebCoreSupport/WebDragClient.mm:
1883         (WebDragClient::startDrag):
1884         * WebInspector/WebNodeHighlight.mm:
1885         (-[WebNodeHighlight _computeHighlightWindowFrame]):
1886         * WebView/WebFullScreenController.mm:
1887         (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
1888         (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
1889         * WebView/WebHTMLView.mm:
1890         (+[WebHTMLView _postFlagsChangedEvent:]):
1891         (-[WebHTMLView _updateMouseoverWithFakeEvent]):
1892         (-[WebHTMLView _autoscroll]):
1893         (-[WebHTMLView mouseDown:]):
1894         (-[WebHTMLView mouseDragged:]):
1895         (-[WebHTMLView mouseUp:]):
1896         (-[WebHTMLView accessibilityHitTest:]):
1897         (-[WebHTMLView _executeSavedKeypressCommands]):
1898         (-[WebHTMLView attachRootLayer:]):
1899         (-[WebHTMLView textStorage]):
1900         (-[WebHTMLView _updateSelectionForInputManager]):
1901         * WebView/WebTextCompletionController.mm:
1902         (-[WebTextCompletionController _buildUI]):
1903         (-[WebTextCompletionController _placePopupWindow:]):
1904
1905 2013-10-01  Sam Weinig  <sam@webkit.org>
1906
1907         CTTE: DOMWrapperWorlds should be passed around by reference
1908         https://bugs.webkit.org/show_bug.cgi?id=122206
1909
1910         Reviewed by Andreas Kling.
1911
1912         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1913         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
1914         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
1915         (WebKit::NetscapePluginInstanceProxy::evaluate):
1916         * WebCoreSupport/WebFrameLoaderClient.h:
1917         * WebCoreSupport/WebFrameLoaderClient.mm:
1918         * WebView/WebFrame.mm:
1919         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
1920         (-[WebFrame _globalContextForScriptWorld:]):
1921         (-[WebFrame jsWrapperForNode:inScriptWorld:]):
1922         * WebView/WebScriptWorld.mm:
1923         (+[WebScriptWorld standardWorld]):
1924         (+[WebScriptWorld findOrCreateWorld:]):
1925         * WebView/WebScriptWorldInternal.h:
1926         * WebView/WebView.mm:
1927         (-[WebView _injectOutlookQuirksScript]):
1928         (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]):
1929         (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]):
1930         (+[WebView _removeUserScriptFromGroup:world:url:]):
1931         (+[WebView _removeUserStyleSheetFromGroup:world:url:]):
1932         (+[WebView _removeUserScriptsFromGroup:world:]):
1933         (+[WebView _removeUserStyleSheetsFromGroup:world:]):
1934
1935 2013-09-30  Sam Weinig  <sam@webkit.org>
1936
1937         Remove support for DOMFileSystem
1938         https://bugs.webkit.org/show_bug.cgi?id=122137
1939
1940         Reviewed by Anders Carlsson.
1941
1942         * Configurations/FeatureDefines.xcconfig:
1943
1944 2013-09-30  Benjamin Poulain  <benjamin@webkit.org>
1945
1946         Remove the code guarded by STYLE_SCOPED
1947         https://bugs.webkit.org/show_bug.cgi?id=122123
1948
1949         Reviewed by Anders Carlsson.
1950
1951         * Configurations/FeatureDefines.xcconfig:
1952
1953 2013-09-30  Mark Rowe  <mrowe@apple.com>
1954
1955         Fix the build when building against an SDK.
1956
1957         Xcode helpfully prepends $(SDKROOT) to the paths in FRAMEWORK_SEARCH_PATHS when generating
1958         the compiler command lines. It can't know to do this for the system framework search paths
1959         we add manually via OTHER_CFLAGS though, so we need to prefix them with $(SDKROOT) ourself.
1960
1961         * Configurations/WebKit.xcconfig:
1962
1963 2013-09-29  Mark Rowe  <mrowe@apple.com>
1964
1965         Fix the Lion build.
1966
1967         Ensure that C++ and Objective-C++ files build with the right compiler flags.
1968
1969         * Configurations/WebKit.xcconfig:
1970
1971 2013-09-28  Mark Rowe  <mrowe@apple.com>
1972
1973         Fix some failures with newer versions of clang.
1974
1975         Some CoreGraphics headers generate warnings under newer versions of clang. Since they're system headers the warnings would
1976         usually be suppressed, but we're adding the frameworks to the non-system framework search path so they're no longer treated
1977         as system headers. We address this by removing the system paths from FRAMEWORK_SEARCH_PATHS and using the -iframework compiler
1978         flag in OTHER_CFLAGS to add the paths to the system framework search path. We have to set OTHER_CFLAGS at the target level
1979         in order for it to coexist with the ASAN-related OTHER_CFLAGS that's set in DebugRelease.xcconfig.
1980
1981         Reviewed by Dan Bernstein.
1982
1983         * Configurations/DebugRelease.xcconfig:
1984         * Configurations/WebKit.xcconfig:
1985
1986 2013-09-28  Mark Rowe  <mrowe@apple.com>
1987
1988         Take Xcode's advice and enable some extra warnings.
1989
1990         Reviewed by Sam Weinig.
1991
1992         * Configurations/Base.xcconfig:
1993
1994 2013-09-28  Darin Adler  <darin@apple.com>
1995
1996         Add Frame::mainFrame and Frame::isMainFrame
1997         https://bugs.webkit.org/show_bug.cgi?id=122064
1998
1999         Reviewed by Andreas Kling.
2000
2001         * WebCoreSupport/WebFrameLoaderClient.mm:
2002         (WebFrameLoaderClient::canHandleRequest):
2003         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2004         * WebView/WebFrameView.mm:
2005         (-[WebFrameView _install]):
2006         Call isMainFrame.
2007
2008 2013-09-28  Mark Rowe  <mrowe@apple.com>
2009
2010         WebKit fails to build with newer versions of clang.
2011
2012         Reviewed by Sam Weinig.
2013
2014         * Carbon/HIWebView.mm: Remove an unused function.
2015         * History/BinaryPropertyList.cpp: #if a constant that's only used in 64-bit.
2016         * Misc/WebIconDatabase.mm: Remove two unused constants.
2017         * Plugins/WebBaseNetscapePluginView.mm: Remove an unused constant.
2018         * WebCoreSupport/WebEditorClient.mm: Ditto.
2019
2020 2013-09-27  Enrica Casucci  <enrica@apple.com>
2021
2022         Upstream changes to Pasteboard implementation for iOS.
2023         https://bugs.webkit.org/show_bug.cgi?id=121818
2024
2025         Reviewed by Benjamin Poulain.
2026
2027         * WebCoreSupport/WebPlatformStrategies.h:
2028         * WebCoreSupport/WebPlatformStrategies.mm:
2029         (WebPlatformStrategies::writeToPasteboard):
2030         (WebPlatformStrategies::getPasteboardItemsCount):
2031         (WebPlatformStrategies::readBufferFromPasteboard):
2032         (WebPlatformStrategies::readURLFromPasteboard):
2033         (WebPlatformStrategies::readStringFromPasteboard):
2034         (WebPlatformStrategies::changeCount):
2035
2036 2013-09-26  Darin Adler  <darin@apple.com>
2037
2038         rename KURL to URL
2039         https://bugs.webkit.org/show_bug.cgi?id=16214
2040
2041         Reviewed by Andreas Kling.
2042
2043         * many files: Renamed, using script.
2044
2045 2013-09-06  Jer Noble  <jer.noble@apple.com>
2046
2047         [Mac] Implement the media controls in JavaScript.
2048         https://bugs.webkit.org/show_bug.cgi?id=120895
2049
2050         Reviewed by Dean Jackson.
2051
2052         Define and turn on ENABLE_MEDIA_CONTROLS_SCRIPT.
2053
2054         * Configurations/FeatureDefines.xcconfig:
2055
2056 2013-09-27  Darin Adler  <darin@apple.com>
2057
2058         Add empty MainFrame class
2059         https://bugs.webkit.org/show_bug.cgi?id=121770
2060
2061         Reviewed by Andreas Kling.
2062
2063         * WebCoreSupport/WebDragClient.mm:
2064         * WebCoreSupport/WebInspectorClient.mm:
2065         * WebCoreSupport/WebPlatformStrategies.mm:
2066         * WebView/WebFrame.mm:
2067         * WebView/WebHTMLView.mm:
2068         * WebView/WebView.mm:
2069         Include MainFrame.h instead of Frame.h as needed.
2070
2071 2013-09-26  Eric Carlson  <eric.carlson@apple.com>
2072
2073         [MediaStream] make MediaStream testable
2074         https://bugs.webkit.org/show_bug.cgi?id=121967
2075
2076         Reviewed by Dean Jackson.
2077
2078         * WebCoreSupport/WebUserMediaClient.h: Added.
2079         * WebCoreSupport/WebUserMediaClient.mm: Added.
2080
2081         * WebView/WebUIDelegatePrivate.h: Declare decidePolicyForUserMediaRequestFromOrigin:listener:
2082
2083         * WebView/WebView.mm:
2084         (-[WebView _commonInitializationWithFrameName:groupName:]): Register WebUserMediaClient.
2085         (-[WebView _setUserMediaClient:]): New.
2086         (-[WebView _userMediaClient]): New.
2087         * WebView/WebViewData.h:
2088         * WebView/WebViewPrivate.h:
2089
2090 2013-09-25  Sam Weinig  <sam@webkit.org>
2091
2092         Pass a JSC::VM& to JS bindings object creation functions, rather than a JSC::ExecState*
2093         https://bugs.webkit.org/show_bug.cgi?id=121934
2094
2095         Reviewed by Geoffrey Garen.
2096
2097         * Plugins/Hosted/ProxyInstance.mm:
2098         (WebKit::ProxyInstance::newRuntimeObject):
2099         * Plugins/Hosted/ProxyRuntimeObject.h:
2100         (WebKit::ProxyRuntimeObject::create):
2101         * Plugins/Hosted/ProxyRuntimeObject.mm:
2102         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2103         (WebKit::ProxyRuntimeObject::finishCreation):
2104
2105 2013-09-25  Brady Eidson  <beidson@apple.com>
2106
2107         Enable the IndexedDB build on Mac, but leave the feature non-functional
2108         https://bugs.webkit.org/show_bug.cgi?id=121918
2109
2110         Reviewed by Alexey Proskuryakov.
2111
2112         * Configurations/FeatureDefines.xcconfig:
2113
2114 2013-09-25  Commit Queue  <commit-queue@webkit.org>
2115
2116         Unreviewed, rolling out r156432.
2117         http://trac.webkit.org/changeset/156432
2118         https://bugs.webkit.org/show_bug.cgi?id=121932
2119
2120         some integer conversion things that need brady to fix
2121         (Requested by thorton on #webkit).
2122
2123         * Configurations/FeatureDefines.xcconfig:
2124
2125 2013-09-25  Brady Eidson  <beidson@apple.com>
2126
2127         Enable the IndexedDB build on Mac, but leave the feature non-functional
2128         https://bugs.webkit.org/show_bug.cgi?id=121918
2129
2130         Reviewed by Alexey Proskuryakov.
2131
2132         * Configurations/FeatureDefines.xcconfig:
2133
2134 2013-09-25  Brent Fulgham  <bfulgham@apple.com>
2135
2136         Refactor RuntimeEnabledFeatures as a Singleton.
2137         https://bugs.webkit.org/show_bug.cgi?id=121883.
2138
2139         Reviewed by Jer Noble.
2140
2141         * WebView/WebView.mm:
2142         (-[WebView _preferencesChanged:]): Use singleton accessor.
2143         (-[WebView _setDashboardBehavior:to:]): Ditto.
2144
2145 2013-09-25  Brady Eidson  <beidson@apple.com>
2146
2147         FeatureDefine.xcconfig cleanup (They should all be identical).
2148         https://bugs.webkit.org/show_bug.cgi?id=121921
2149
2150         Reviewed by Mark Rowe.
2151
2152         * Configurations/FeatureDefines.xcconfig:
2153
2154 2013-09-24  Mark Lam  <mark.lam@apple.com>
2155
2156         Change JSC debug hooks to pass a CallFrame* instead of a DebuggerCallFrame.
2157         https://bugs.webkit.org/show_bug.cgi?id=121867.
2158
2159         Reviewed by Geoffrey Garen.
2160
2161         * WebView/WebScriptDebugDelegate.mm:
2162         (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:exceptionValue:JSC::]):
2163         (-[WebScriptCallFrame exception]):
2164         * WebView/WebScriptDebugger.h:
2165         * WebView/WebScriptDebugger.mm:
2166         (WebScriptDebugger::exception):
2167
2168 2013-09-24  Enrica Casucci  <enrica@apple.com>
2169
2170         Upstream changes to Pasteboard implementation for iOS.
2171         https://bugs.webkit.org/show_bug.cgi?id=121818
2172
2173         Reviewed by Darin Adler.
2174
2175         * WebCoreSupport/WebPlatformStrategies.h:
2176         * WebCoreSupport/WebPlatformStrategies.mm:
2177         (WebPlatformStrategies::writeToPasteboard):
2178
2179 2013-09-24  Mark Rowe  <mrowe@apple.com>
2180
2181         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
2182
2183         Reviewed by Dan Bernstein.
2184
2185         * Configurations/Base.xcconfig:
2186
2187 2013-09-21  Mark Lam  <mark.lam@apple.com>
2188
2189         Remove unused code in WebKit/mac's WebScriptDebugDelegate.
2190         https://bugs.webkit.org/show_bug.cgi?id=121706.
2191
2192         Reviewed by Timothy Hatcher.
2193
2194         WebScriptDebugDelegate's didEnterCallFrame, willExecuteStatement,
2195         and willLeaveCallFrame are not in use. Removed them and all methods
2196         and fields used for supporting them.
2197
2198         * WebView/WebDelegateImplementationCaching.h:
2199         * WebView/WebScriptDebugDelegate.h:
2200         * WebView/WebScriptDebugDelegate.mm:
2201         (-[WebScriptCallFramePrivate dealloc]):
2202         (-[WebScriptCallFrame _initWithGlobalObject:debuggerCallFrame:]):
2203         * WebView/WebScriptDebugger.h:
2204         (WebScriptDebugger::globalObject):
2205         (WebScriptDebugger::callEvent):
2206         (WebScriptDebugger::atStatement):
2207         (WebScriptDebugger::returnEvent):
2208         (WebScriptDebugger::willExecuteProgram):
2209         (WebScriptDebugger::didExecuteProgram):
2210         (WebScriptDebugger::didReachBreakpoint):
2211         * WebView/WebScriptDebugger.mm:
2212         (WebScriptDebugger::WebScriptDebugger):
2213         (WebScriptDebugger::exception):
2214         * WebView/WebView.mm:
2215         (-[WebView _cacheScriptDebugDelegateImplementations]):
2216
2217 2013-09-18  Anders Carlsson  <andersca@apple.com>
2218
2219         RefPtrHashMap should work with move only types
2220         https://bugs.webkit.org/show_bug.cgi?id=121564
2221
2222         Reviewed by Andreas Kling.
2223
2224         * Plugins/Hosted/ProxyInstance.mm:
2225         (WebKit::ProxyInstance::methodNamed):
2226         (WebKit::ProxyInstance::fieldNamed):
2227
2228 2013-09-16  Enrica Casucci  <enrica@apple.com>
2229
2230         Remove unused function didSetSelectionTypesForPasteboard from EditorClient.
2231         https://bugs.webkit.org/show_bug.cgi?id=121464
2232
2233         Reviewed by Darin Adler.
2234
2235         This method was only implemented in WebEditorClient.mm for Mac where it was
2236         calling a private delegate that is no longer in use.
2237
2238         * DefaultDelegates/WebDefaultEditingDelegate.m:
2239         * WebCoreSupport/WebEditorClient.h:
2240         * WebCoreSupport/WebEditorClient.mm:
2241         * WebView/WebEditingDelegatePrivate.h:
2242
2243 2013-09-13  Anders Carlsson  <andersca@apple.com>
2244
2245         Use nullptr instead of 0 in calls to HashMap::add
2246         https://bugs.webkit.org/show_bug.cgi?id=121322
2247
2248         Reviewed by Sam Weinig.
2249
2250         * Plugins/Hosted/NetscapePluginHostManager.mm:
2251         (WebKit::NetscapePluginHostManager::hostForPlugin):
2252
2253 2013-09-13  Dan Bernstein  <mitz@apple.com>
2254
2255         [mac WK1] Introduce WebViewWillCloseNotification
2256         https://bugs.webkit.org/show_bug.cgi?id=121321
2257
2258         Reviewed by Sam Weinig.
2259
2260         * WebKit.exp: Exported WebViewWillCloseNotification.
2261         * WebView/WebView.mm:
2262         (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
2263         * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
2264
2265 2013-09-13  Tim Horton  <timothy_horton@apple.com>
2266
2267         REGRESSION (r155615): Lots of reftests fail with single line or single pixel differences
2268         https://bugs.webkit.org/show_bug.cgi?id=121245
2269
2270         Reviewed by Darin Adler.
2271
2272         Similar to https://bugs.webkit.org/show_bug.cgi?id=120963,
2273         we need to manually ensure that some pieces of persistent
2274         CoreGraphics state are restored after PDFKit changes them.
2275
2276         In this case, we bookend our restoration around the various
2277         _recursiveDisplay... functions that we also use in WebHTMLView.
2278
2279         * WebView/WebPDFView.mm:
2280         (-[WebPDFView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
2281         (-[WebPDFView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):
2282         (-[WebPDFView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
2283         (-[WebPDFView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
2284
2285 2013-09-12  Anders Carlsson  <andersca@apple.com>
2286
2287         SharedBuffer::createNSData should return a RetainPtr<NSData>
2288         https://bugs.webkit.org/show_bug.cgi?id=121237
2289
2290         Reviewed by Darin Adler.
2291
2292         Update for WebCore changes. This also fixes a leak where we'd create an NSFileWrapper from NSData but never release the data.
2293
2294         * WebView/WebDataSource.mm:
2295         (-[WebDataSource data]):
2296         * WebView/WebHTMLRepresentation.mm:
2297         (-[WebHTMLRepresentation documentSource]):
2298         * WebView/WebHTMLView.mm:
2299         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
2300         * WebView/WebResource.mm:
2301         (-[WebResource encodeWithCoder:]):
2302         (-[WebResource data]):
2303
2304 2013-09-12  Mark Lam  <mark.lam@apple.com>
2305
2306         Change debug hooks to pass sourceID and position info via the DebuggerCallFrame.
2307         https://bugs.webkit.org/show_bug.cgi?id=121214.
2308
2309         Reviewed by Geoffrey Garen.
2310
2311         * webview/WebScriptDebugger.h:
2312         * WebView/WebScriptDebugger.mm:
2313         (WebScriptDebugger::WebScriptDebugger):
2314         (WebScriptDebugger::callEvent):
2315         (WebScriptDebugger::atStatement):
2316         (WebScriptDebugger::returnEvent):
2317         (WebScriptDebugger::exception):
2318         (WebScriptDebugger::willExecuteProgram):
2319         (WebScriptDebugger::didExecuteProgram):
2320         (WebScriptDebugger::didReachBreakpoint):
2321
2322 2013-09-11  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2323
2324         Generate more HTML type checks and casting
2325         https://bugs.webkit.org/show_bug.cgi?id=121080
2326
2327         Reviewed by Andreas Kling.
2328
2329         Clean-up remained functions of HTML elements using auto-generated isFooElement(),
2330         and replace toFooElement() with ELEMENT_TYPE_CASTS() macro.
2331
2332         Besides this patch clean-up unnecessary checks which are being supported by
2333         auto-generated isFooElement().
2334
2335         No new tests, no behavior change.
2336
2337         * Plugins/WebPluginController.mm:
2338         * WebCoreSupport/WebChromeClient.mm:
2339         (WebChromeClient::supportsFullscreenForNode):
2340         * WebView/WebView.mm:
2341         (-[WebView _enterFullscreenForNode:WebCore::]):
2342
2343 2013-09-10  Daniel Bates  <dabates@apple.com>
2344
2345         [iOS] Upstream text autosizing
2346         https://bugs.webkit.org/show_bug.cgi?id=121111
2347
2348         Reviewed by Andy Estes and Sam Weinig.
2349
2350         * WebView/WebFrame.mm:
2351         (-[WebFrame resetTextAutosizingBeforeLayout]): Added.
2352         (-[WebFrame _setVisibleSize:]): Added.
2353         (-[WebFrame _setTextAutosizingWidth:]): Added.
2354         * WebView/WebFramePrivate.h:
2355         * WebView/WebPreferenceKeysPrivate.h:
2356         * WebView/WebPreferences.mm:
2357         (+[WebPreferences initialize]):
2358         (-[WebPreferences _setMinimumZoomFontSize:]): Added.
2359         (-[WebPreferences _minimumZoomFontSize]): Added.
2360
2361 2013-09-09  Dean Jackson  <dino@apple.com>
2362
2363         [WebGL] Allow multithreaded OpenGL contexts
2364         https://bugs.webkit.org/show_bug.cgi?id=121062
2365
2366         Reviewed by Simon Fraser.
2367
2368         Expose a new preference "multithreadedWebGLEnabled".
2369
2370         * WebView/WebPreferenceKeysPrivate.h:
2371         * WebView/WebPreferences.mm:
2372         (+[WebPreferences initialize]):
2373         (-[WebPreferences multithreadedWebGLEnabled]):
2374         (-[WebPreferences setMultithreadedWebGLEnabled:]):
2375         * WebView/WebPreferencesPrivate.h:
2376         * WebView/WebView.mm:
2377         (-[WebView _preferencesChanged:]):
2378
2379 2013-09-09  Dean Jackson  <dino@apple.com>
2380
2381         Enable WebGL for OS X nightlies
2382         https://bugs.webkit.org/show_bug.cgi?id=121040
2383
2384         Reviewed by Beth Dakin.
2385
2386         * WebView/WebPreferences.mm:
2387         (+[WebPreferences initialize]): Set WebPreference to YES.
2388
2389 2013-09-06  Ryosuke Niwa  <rniwa@webkit.org>
2390
2391         Range::ownerDocument should return Document&
2392         https://bugs.webkit.org/show_bug.cgi?id=120908
2393
2394         Reviewed by Andreas Kling.
2395
2396         * WebView/WebPDFView.mm:
2397         (isFrameInRange):
2398
2399 2013-09-05  Andreas Kling  <akling@apple.com>
2400
2401         ScrollView::children() should return a reference.
2402         <https://webkit.org/b/120795>
2403
2404         Reviewed by Anders Carlsson.
2405
2406         * WebView/WebView.mm:
2407         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
2408
2409 2013-09-04  Mark Rowe  <mrowe@apple.com>
2410
2411         <https://webkit.org/b/120707> Make WebKit's localizable strings mechanism usable under ARC
2412
2413         WebKit's localizable strings mechanism is also used outside of WebKit so it needs to work
2414         both with and without ARC.
2415
2416         Reviewed by Anders Carlsson.
2417
2418         * Misc/WebLocalizableStrings.h: Mark the bundle member as unretained. This matches how the
2419         member is used within WebLocalizableStrings.mm.
2420
2421 2013-09-02  Darin Adler  <darin@apple.com>
2422
2423         [Mac] No need for HardAutorelease, which is same as CFBridgingRelease
2424         https://bugs.webkit.org/show_bug.cgi?id=120569
2425
2426         Reviewed by Andy Estes.
2427
2428         * Misc/WebNSFileManagerExtras.mm:
2429         (-[NSFileManager _webkit_startupVolumeName]): Removed some unneeded locals.
2430         Got rid of the pointless ref/leakRef/HardAutorelease dance, and replaced it
2431         with a [[x copy] autorelease].
2432
2433         * Misc/WebNSURLExtras.mm:
2434         (-[NSURL _web_URLWithLowercasedScheme]): Use CFBridgingRelease, and got rid
2435         of unneeded type casts.
2436
2437         * Plugins/WebBasePluginPackage.mm:
2438         (+[WebBasePluginPackage preferredLocalizationName]): Use CFBridgingRelease.
2439         * WebView/WebPDFRepresentation.mm:
2440         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Ditto.
2441
2442         * WebView/WebView.mm:
2443         (+[WebView _setCacheModel:]): Use CFBridgingRelease and got rid of unneeded
2444         type cast.
2445
2446 2013-08-30  Antti Koivisto  <antti@apple.com>
2447
2448         Remove code behind ENABLE(DIALOG_ELEMENT)
2449         https://bugs.webkit.org/show_bug.cgi?id=120467
2450
2451         Reviewed by Darin Adler.
2452
2453         * Configurations/FeatureDefines.xcconfig:
2454
2455 2013-08-29  Sam Weinig  <sam@webkit.org>
2456
2457         Add ENABLE gaurds for Promises
2458         https://bugs.webkit.org/show_bug.cgi?id=120488
2459
2460         Reviewed by Andreas Kling.
2461
2462         * Configurations/FeatureDefines.xcconfig:
2463
2464 2013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
2465
2466         Web Inspector: Download Web Archive of Inspected Page
2467         https://bugs.webkit.org/show_bug.cgi?id=119774
2468
2469         Reviewed by Timothy Hatcher.
2470
2471         Update to support InspectorFrontendHost.save's new base64Encoded
2472         parameter. It means the incoming content is binary data, not a string.
2473
2474         * WebCoreSupport/WebInspectorClient.h:
2475         * WebCoreSupport/WebInspectorClient.mm:
2476         (WebInspectorFrontendClient::save):
2477
2478 2013-08-28  Chris Curtis  <chris_curtis@apple.com>
2479
2480         https://bugs.webkit.org/show_bug.cgi?id=119548
2481         Refactoring Exception throws.
2482
2483         Reviewed by Geoffrey Garen.
2484         
2485         Moved setting an exception into the vm, These functions changed to use the new functionality.
2486
2487         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2488         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
2489         * Plugins/Hosted/ProxyInstance.mm:
2490         (WebKit::ProxyInstance::invokeMethod):
2491
2492 2013-08-27  Anders Carlsson  <andersca@apple.com>
2493
2494         Fix build.
2495
2496         * Plugins/Hosted/ProxyInstance.h:
2497         * Plugins/Hosted/ProxyInstance.mm:
2498         (WebKit::ProxyInstance::methodNamed):
2499         (WebKit::ProxyInstance::fieldNamed):
2500
2501 2013-08-23  Andy Estes  <aestes@apple.com>
2502
2503         Fix issues found by the Clang Static Analyzer
2504         https://bugs.webkit.org/show_bug.cgi?id=120230
2505
2506         Reviewed by Darin Adler.
2507
2508         * Misc/WebNSFileManagerExtras.mm:
2509         (-[NSFileManager _webkit_startupVolumeName]): Used HardAutorelease()
2510         instead of WebCFAutorelease().
2511         * Misc/WebNSObjectExtras.h: Removed definition of WebCFAutorelease().
2512         * Misc/WebNSURLExtras.mm:
2513         (-[NSURL _web_URLWithLowercasedScheme]): Used HardAutorelease()
2514         instead of WebCFAutorelease().
2515         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2516         (-[WebHostedNetscapePluginView createPluginLayer]): Stop leaking
2517         CGColors (CALayer retains its backgroundColor property despite the
2518         property attributes claiming otherwise).
2519         * Plugins/WebBasePluginPackage.mm:
2520         (+[WebBasePluginPackage preferredLocalizationName]): Used
2521         HardAutorelease() instead of WebCFAutorelease().
2522         * WebView/WebDeviceOrientationProviderMock.mm:
2523         (-[WebDeviceOrientationProviderMockInternal lastOrientation]): Stop
2524         leaking WebDeviceOrientations.
2525         * WebView/WebPDFRepresentation.mm:
2526         (-[WebPDFRepresentation convertPostScriptDataSourceToPDF:]): Used
2527         HardAutorelease() instead of WebCFAutorelease().
2528         * WebView/WebView.mm:
2529         (+[WebView _setCacheModel:]): Ditto.
2530         (-[WebView _removeObjectForIdentifier:]): Ditto.
2531
2532 2013-08-26  Alexey Proskuryakov  <ap@apple.com>
2533
2534         [Mac] can-read-in-dragstart-event.html and can-read-in-copy-and-cut-events.html fail
2535         https://bugs.webkit.org/show_bug.cgi?id=113094
2536
2537         Reviewed by Darin Adler.
2538
2539         Return new pasteboard change count from all functions that change it.
2540
2541         * WebCoreSupport/WebPlatformStrategies.h:
2542         * WebCoreSupport/WebPlatformStrategies.mm:
2543         (WebPlatformStrategies::copy):
2544         (WebPlatformStrategies::changeCount):
2545         (WebPlatformStrategies::addTypes):
2546         (WebPlatformStrategies::setTypes):
2547         (WebPlatformStrategies::setBufferForType):
2548         (WebPlatformStrategies::setPathnamesForType):
2549         (WebPlatformStrategies::setStringForType):
2550
2551 2013-08-26  Andreas Kling  <akling@apple.com>
2552
2553         Unreviewed build fix.
2554
2555         * WebView/WebFrame.mm:
2556         (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
2557
2558 2013-08-26  Andreas Kling  <akling@apple.com>
2559
2560         WebCore: Let Page create the main Frame.
2561         <https://webkit.org/b/119964>
2562
2563         Reviewed by Anders Carlsson.
2564
2565         * WebCoreSupport/WebFrameLoaderClient.h:
2566         (WebFrameLoaderClient::setWebFrame):
2567
2568             Make it possible to construct a WebFrameLoaderClient with a null WebFrame*.
2569             A WebFrame* is later hooked up with a call to setWebFrame().
2570
2571         * WebView/WebFrame.mm:
2572         (+[WebFrame _createMainFrameWithPage:frameName:frameView:]):
2573
2574             Customized this method to wrap the Page::mainFrame() instead of creating a
2575             new Frame.
2576
2577         * WebView/WebView.mm:
2578         (-[WebView _commonInitializationWithFrameName:groupName:]):
2579
2580             Add a WebFrameLoaderClient to the PageClients passed to Page().
2581
2582 2013-08-25  Darin Adler  <darin@apple.com>
2583
2584         Frame should not have a documentTypeString member function
2585         https://bugs.webkit.org/show_bug.cgi?id=120262
2586
2587         Reviewed by Andreas Kling.
2588
2589         * WebView/WebFrame.mm: Removed _stringWithDocumentTypeStringAndMarkupString:
2590         internal method, which was not used anywhere in WebKit. Internal methods are
2591         only for use within WebKit, as opposed to public and private methods that can
2592         be used outside.
2593         * WebView/WebFrameInternal.h: Ditto.
2594
2595 2013-08-24  Darin Adler  <darin@apple.com>
2596
2597         Frame::tree should return a reference instead of a pointer
2598         https://bugs.webkit.org/show_bug.cgi?id=120259
2599
2600         Reviewed by Andreas Kling.
2601
2602         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2603         (WebKit::NetscapePluginInstanceProxy::performRequest):
2604         * Plugins/WebBaseNetscapePluginView.mm:
2605         (-[WebBaseNetscapePluginView resolvedURLStringForURL:target:]):
2606         * Plugins/WebNetscapePluginView.mm:
2607         (-[WebNetscapePluginView loadPluginRequest:]):
2608         * WebCoreSupport/WebFrameLoaderClient.mm:
2609         (applyAppleDictionaryApplicationQuirkNonInlinePart):
2610         (WebFrameLoaderClient::prepareForDataSourceReplacement):
2611         (WebFrameLoaderClient::createFrame):
2612         * WebView/WebFrame.mm:
2613         (+[WebFrame _createFrameWithPage:frameName:frameView:ownerElement:]):
2614         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]):
2615         (-[WebFrame _unmarkAllBadGrammar]):
2616         (-[WebFrame _unmarkAllMisspellings]):
2617         (-[WebFrame _atMostOneFrameHasSelection]):
2618         (-[WebFrame _findFrameWithSelection]):
2619         (-[WebFrame _drawRect:contentsOnly:]):
2620         (-[WebFrame _isDescendantOfFrame:]):
2621         (-[WebFrame _recursive_resumeNullEventsForAllNetscapePlugins]):
2622         (-[WebFrame _recursive_pauseNullEventsForAllNetscapePlugins]):
2623         (-[WebFrame name]):
2624         (-[WebFrame findFrameNamed:]):
2625         (-[WebFrame parentFrame]):
2626         (-[WebFrame childFrames]):
2627         * WebView/WebView.mm:
2628         (-[WebView _attachScriptDebuggerToAllFrames]):
2629         (-[WebView _detachScriptDebuggerFromAllFrames]):
2630         (-[WebView _clearMainFrameName]):
2631         (-[WebView _isUsingAcceleratedCompositing]):
2632         (-[WebView _isSoftwareRenderable]):
2633         (-[WebView setHostWindow:]):
2634         (incrementFrame):
2635         Use tree(). instead of tree()->.
2636
2637 2013-08-23  Beth Dakin  <bdakin@apple.com>
2638
2639         REGRESSION (r132545): Some PDFs generated by WebKit are blank when viewed in 
2640         Adobe Reader
2641         https://bugs.webkit.org/show_bug.cgi?id=120240
2642         -and corresponding-
2643         <rdar://problem/14634453>
2644
2645         Reviewed by Anders Carlsson.
2646
2647         Hook up new WebSystemInterface API to find out if the current context is the PDF 
2648         context.
2649
2650         * WebCoreSupport/WebSystemInterface.mm:
2651         (InitWebCoreSystemInterface):
2652
2653 2013-08-20  Pratik Solanki  <psolanki@apple.com>
2654
2655         <https://webkit.org/b/120029> Document::markers() should return a reference
2656
2657         Reviewed by Andreas Kling.
2658
2659         Document::m_markers is never NULL so return a reference from Document::markers(). Also mark
2660         m_markers as const and initialize it in member initialization.
2661
2662         * WebView/WebFrame.mm:
2663         (-[WebFrame _unmarkAllBadGrammar]):
2664         (-[WebFrame _unmarkAllMisspellings]):
2665         * WebView/WebHTMLView.mm:
2666         (-[WebHTMLView unmarkAllTextMatches]):
2667         (-[WebHTMLView rectsForTextMatches]):
2668
2669 2013-08-19  Ryosuke Niwa  <rniwa@webkit.org>
2670
2671         <https://webkit.org/b/120049> Delete code for Snow Leopard
2672
2673         Reviewed by Benjamin Poulain.
2674
2675         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2676         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
2677         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]):
2678         * Misc/WebNSControlExtras.m:
2679         (-[NSControl sizeToFitAndAdjustWindowHeight]):
2680         * Misc/WebNSFileManagerExtras.mm:
2681         * WebCoreSupport/WebEditorClient.mm:
2682         (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
2683         (WebEditorClient::getGuessesForWord):
2684         * WebCoreSupport/WebFrameLoaderClient.mm:
2685         (WebFrameLoaderClient::dispatchDidLayout):
2686         (WebFrameLoaderClient::provisionalLoadStarted):
2687         * WebCoreSupport/WebSystemInterface.mm:
2688         (InitWebCoreSystemInterface):
2689         * WebKitPrefix.h:
2690         * WebView/WebDynamicScrollBarsView.mm:
2691         (-[WebDynamicScrollBarsView scrollWheel:]):
2692         * WebView/WebFullScreenController.mm:
2693         (convertRectToScreen):
2694         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
2695         (-[WebFullScreenController exitFullScreen]):
2696         * WebView/WebHTMLView.mm:
2697         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
2698         (-[WebHTMLView removeMouseMovedObserver]):
2699         (-[WebHTMLView windowDidBecomeKey:]):
2700         (-[WebHTMLView windowDidResignKey:]):
2701         * WebView/WebView.mm:
2702         (-[WebView _deviceScaleFactor]):
2703
2704 2013-08-19  Ryosuke Niwa  <rniwa@webkit.org>
2705
2706         <https://webkit.org/b/120051> Remove the Mail thread workaround
2707
2708         Reviewed by Sam Weinig.
2709
2710         Remove the workaround for a very old version of Mail added in r39455.
2711
2712         * WebView/WebArchive.mm:
2713         (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
2714         (-[WebArchive mainResource]):
2715         (-[WebArchive subresources]):
2716         (-[WebArchive subframeArchives]):
2717         * WebView/WebFrameView.mm:
2718         (-[WebFrameView initWithFrame:]):
2719         * WebView/WebResource.mm:
2720         (-[WebResource data]):
2721         (-[WebResource URL]):
2722         (-[WebResource MIMEType]):
2723         (-[WebResource textEncodingName]):
2724         (-[WebResource frameName]):
2725         (-[WebResource _ignoreWhenUnarchiving]):
2726         (-[WebResource _initWithData:URL:MIMEType:textEncodingName:frameName:response:copyData:]):
2727         (-[WebResource _suggestedFilename]):
2728         (-[WebResource _response]):
2729         (-[WebResource _stringValue]):
2730
2731 2013-08-19  Pratik Solanki  <psolanki@apple.com>
2732
2733         <https://webkit.org/b/119918> Frame::selection() should return a reference
2734
2735         Reviewed by Darin Adler.
2736
2737         m_selection is never NULL so return a reference from Frame::selection(). Also removed some
2738         unnecessary null checks and assert diff ts exposed as a result.
2739
2740         * Plugins/WebPluginController.mm:
2741         * WebView/WebFrame.mm:
2742         (-[WebFrame _hasSelection]):
2743         (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
2744         (-[WebFrame _selectionGranularity]):
2745         (-[WebFrame _convertToNSRange:]):
2746         (-[WebFrame _convertToDOMRange:]):
2747         (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
2748         (-[WebFrame _typingStyle]):
2749         (-[WebFrame _selectedNSRange]):
2750         (-[WebFrame _selectNSRange:]):
2751         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
2752         (-[WebFrame _replaceSelectionWithText:selectReplacement:smartReplace:]):
2753         * WebView/WebHTMLRepresentation.mm:
2754         (-[WebHTMLRepresentation currentForm]):
2755         * WebView/WebHTMLView.mm:
2756         (-[WebHTMLView readSelectionFromPasteboard:]):
2757         (-[WebHTMLView _selectedRange]):
2758         (-[WebHTMLView _hasSelection]):
2759         (-[WebHTMLView _hasSelectionOrInsertionPoint]):
2760         (-[WebHTMLView _hasInsertionPoint]):
2761         (-[WebHTMLView _isEditable]):
2762         (-[WebHTMLView jumpToSelection:]):
2763         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2764         (-[WebHTMLView maintainsInactiveSelection]):
2765         (isTextInput):
2766         (isInPasswordField):
2767         (-[WebHTMLView centerSelectionInVisibleArea:]):
2768         (-[WebHTMLView _canSmartCopyOrDelete]):
2769         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
2770         (-[WebHTMLView _updateSelectionForInputManager]):
2771         (-[WebHTMLView selectionRect]):
2772         (-[WebHTMLView selectionTextRects]):
2773         (-[WebHTMLView selectionImageRect]):
2774         (-[WebHTMLView selectAll]):
2775         (-[WebHTMLView deselectAll]):
2776         (-[WebHTMLView selectedAttributedString]):
2777         * WebView/WebTextCompletionController.mm:
2778         (-[WebTextCompletionController doCompletion]):
2779         * WebView/WebView.mm:
2780         (-[WebView setSelectedDOMRange:affinity:]):
2781         (-[WebView selectedDOMRange]):
2782         (-[WebView selectionAffinity]):
2783         (-[WebView setEditable:]):
2784         (-[WebView _selectionIsCaret]):
2785         (-[WebView _selectionIsAll]):
2786
2787 2013-08-17  Darin Adler  <darin@apple.com>
2788
2789         <https://webkit.org/b/119941> Make Page::dragController return a reference
2790
2791         Reviewed by Andreas Kling.
2792
2793         * WebView/WebFrameView.mm:
2794         (-[WebFrameView _setDocumentView:]):
2795         * WebView/WebHTMLView.mm:
2796         (-[WebHTMLView draggingSourceOperationMaskForLocal:]):
2797         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
2798         * WebView/WebView.mm:
2799         (-[WebView _setInitiatedDrag:]):
2800         (-[WebView draggingEntered:]):
2801         (-[WebView draggingUpdated:]):
2802         (-[WebView draggingExited:]):
2803         (-[WebView performDragOperation:]):
2804         (-[WebView moveDragCaretToPoint:]):
2805         (-[WebView removeDragCaret]):
2806         Updated call sites.
2807
2808 2013-08-16  Pratik Solanki  <psolanki@apple.com>
2809
2810         <https://webkit.org/b/119852> Frame::scriptController() should return a reference
2811
2812         Reviewed by Andreas Kling.
2813
2814         m_script is never NULL so we can just return a reference. Also remove some pointless null
2815         checks as a result of doing this.
2816
2817         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2818         (WebKit::NetscapePluginInstanceProxy::cleanup):
2819         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
2820         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
2821         (WebKit::NetscapePluginInstanceProxy::evaluate):
2822         (WebKit::NetscapePluginInstanceProxy::invoke):
2823         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
2824         (WebKit::NetscapePluginInstanceProxy::construct):
2825         (WebKit::NetscapePluginInstanceProxy::getProperty):
2826         (WebKit::NetscapePluginInstanceProxy::setProperty):
2827         (WebKit::NetscapePluginInstanceProxy::removeProperty):
2828         (WebKit::NetscapePluginInstanceProxy::hasProperty):
2829         (WebKit::NetscapePluginInstanceProxy::hasMethod):
2830         (WebKit::NetscapePluginInstanceProxy::enumerate):
2831         (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
2832         * Plugins/WebNetscapePluginView.mm:
2833         (-[WebNetscapePluginView getVariable:value:]):
2834         (-[WebNetscapePluginView _destroyPlugin]):
2835         * Plugins/WebPluginController.mm:
2836         * WebCoreSupport/WebFrameLoaderClient.mm:
2837         * WebCoreSupport/WebInspectorClient.mm:
2838         (WebInspectorFrontendClient::save):
2839         (WebInspectorFrontendClient::append):
2840         * WebView/WebFrame.mm:
2841         (-[WebFrame _attachScriptDebugger]):
2842         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2843         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2844         (-[WebFrame _globalContextForScriptWorld:]):
2845         (-[WebFrame jsWrapperForNode:inScriptWorld:]):
2846         (-[WebFrame windowObject]):
2847         (-[WebFrame globalContext]):
2848         (-[WebFrame javaScriptContext]):
2849         * WebView/WebScriptDebugger.mm:
2850         (WebScriptDebugger::initGlobalCallFrame):
2851         (WebScriptDebugger::callEvent):
2852         * WebView/WebView.mm:
2853         (-[WebView windowScriptObject]):
2854         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
2855
2856 2013-08-15  Anders Carlsson  <andersca@apple.com>
2857
2858         <https://webkit.org/b/119859> Frame::loader() should return a reference
2859
2860         Reviewed by Andreas Kling.
2861
2862         * Plugins/Hosted/HostedNetscapePluginStream.mm:
2863         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
2864         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2865         (WebKit::NetscapePluginInstanceProxy::performRequest):
2866         (WebKit::NetscapePluginInstanceProxy::loadRequest):
2867         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2868         (-[WebHostedNetscapePluginView pluginView:receivedResponse:]):
2869         * Plugins/WebBaseNetscapePluginView.mm:
2870         (-[WebBaseNetscapePluginView requestWithURLCString:]):
2871         * Plugins/WebNetscapePluginStream.mm:
2872         (WebNetscapePluginStream::WebNetscapePluginStream):
2873         * Plugins/WebNetscapePluginView.mm:
2874         (-[WebNetscapePluginView loadStream]):
2875         (-[WebNetscapePluginView pluginView:receivedResponse:]):
2876         (-[WebNetscapePluginView loadPluginRequest:]):
2877         (-[WebNetscapePluginView loadRequest:inTarget:withNotifyData:sendNotification:]):
2878         * Plugins/WebPluginController.mm:
2879         * WebCoreSupport/WebFrameLoaderClient.mm:
2880         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
2881         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2882         (WebFrameLoaderClient::dispatchWillSubmitForm):
2883         (WebFrameLoaderClient::updateGlobalHistory):
2884         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
2885         (WebFrameLoaderClient::restoreViewState):
2886         (WebFrameLoaderClient::transitionToCommittedForNewPage):
2887         (WebFrameLoaderClient::createFrame):
2888         * WebCoreSupport/WebFrameNetworkingContext.mm:
2889         (WebFrameNetworkingContext::blockedError):
2890         * WebCoreSupport/WebPlatformStrategies.mm:
2891         (WebPlatformStrategies::getPluginInfo):
2892         * WebView/WebFrame.mm:
2893         (kit):
2894         (-[WebFrame _dataSource]):
2895         (-[WebFrame _canProvideDocumentSource]):
2896         (-[WebFrame _commitData:]):
2897         (-[WebFrame _firstLayoutDone]):
2898         (-[WebFrame _loadType]):
2899         (-[WebFrame _cacheabilityDictionary]):
2900         (-[WebFrame _clearOpener]):
2901         (-[WebFrame provisionalDataSource]):
2902         (-[WebFrame dataSource]):
2903         (-[WebFrame loadRequest:]):
2904         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2905         (-[WebFrame loadArchive:]):
2906         (-[WebFrame stopLoading]):
2907         (-[WebFrame reload]):
2908         (-[WebFrame reloadFromOrigin]):
2909         * WebView/WebHTMLRepresentation.mm:
2910         (-[WebHTMLRepresentation receivedData:withDataSource:]):
2911         * WebView/WebHTMLView.mm:
2912         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2913         * WebView/WebPDFView.mm:
2914         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
2915         * WebView/WebRenderLayer.mm:
2916         (-[WebRenderLayer initWithWebFrame:]):
2917         * WebView/WebRenderNode.mm:
2918         (-[WebRenderNode _initWithCoreFrame:]):
2919         * WebView/WebView.mm:
2920         (-[WebView _close]):
2921         (-[WebView _loadBackForwardListFromOtherView:]):
2922         (-[WebView _cachedResponseForURL:]):
2923         (-[WebView setCustomTextEncodingName:]):
2924         (-[WebView shouldClose]):
2925
2926 2013-08-15  Anders Carlsson  <andersca@apple.com>
2927
2928         <https://webkit.org/b/119854> REGRESSION (r153379): Serious drawing issues with WebViews
2929         <rdar://problem/14698870>
2930
2931         Reviewed by Simon Fraser.
2932
2933         Don't set aside subviews if they have already been set aside.
2934
2935         * WebView/WebHTMLView.mm:
2936         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
2937
2938 2013-08-15  Eric Carlson  <eric.carlson@apple.com>
2939
2940         [Mac] Remove "legacy" media UI
2941         https://bugs.webkit.org/show_bug.cgi?id=119752
2942
2943         Reviewed by Jer Noble.
2944
2945         * WebCoreSupport/WebSystemInterface.mm:
2946         (InitWebCoreSystemInterface): Remove MediaControllerThemeAvailable.
2947
2948 2013-08-14  Tim Horton  <timothy_horton@apple.com>
2949
2950         Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
2951         https://bugs.webkit.org/show_bug.cgi?id=119709
2952         <rdar://problem/14717572>
2953
2954         Reviewed by Anders Carlsson.
2955
2956         * Plugins/Hosted/NetscapePluginHostManager.h:
2957         Add hostLayersInWindowServer argument to instantiatePlugin.
2958
2959         * Plugins/Hosted/NetscapePluginHostManager.mm:
2960         (WebKit::NetscapePluginHostManager::instantiatePlugin):
2961         Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
2962
2963         * Plugins/Hosted/NetscapePluginHostProxy.mm:
2964         (WKPCLayerHostingModeChanged):
2965         Forward the notification that the plugin host changed its layer hosting mode
2966         to the instance proxy.
2967
2968         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
2969         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2970         (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
2971         Ask the plugin host to re-host its layers when the layer hosting mode changes.
2972
2973         (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
2974         Inform the WebHostedNetscapePluginView of the new layer hosting mode
2975         when it changes. Also, store the new CAContext ID.
2976
2977         * Plugins/Hosted/WebHostedNetscapePluginView.h:
2978         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2979         (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
2980         Determine whether the WebView's current window uses window-server hosting for its layers.
2981
2982         (-[WebHostedNetscapePluginView createPlugin]):
2983         Drive-by spelling fix.
2984         Factor _pluginLayer initialization out into createPluginLayer.
2985         Instantiate the plugin with the appropriate layer hosting mode.
2986
2987         (-[WebHostedNetscapePluginView createPluginLayer]):
2988
2989         (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
2990         Create a new _pluginLayer if the layer hosting mode changes.
2991         Attach the new _pluginLayer to our parent layer.
2992
2993         (-[WebHostedNetscapePluginView updateAndSetWindow]):
2994         Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
2995         so it can inform the plugin host. We will asynchronously receive a reply
2996         with the new hosting mode and renderContextID and switch to the new CAContext,
2997         in setHostsLayersInWindowServer:.
2998
2999         * Plugins/Hosted/WebKitPluginClient.defs:
3000         * Plugins/Hosted/WebKitPluginHost.defs:
3001
3002 2013-08-14  Tim Horton  <timothy_horton@apple.com>
3003
3004         REGRESSION (r153877): Plugin scanning slows creation of WebViews
3005         https://bugs.webkit.org/show_bug.cgi?id=119665
3006         <rdar://problem/14716549>
3007
3008         Reviewed by Darin Adler.
3009
3010         * Plugins/WebPluginDatabase.h:
3011         * Plugins/WebPluginDatabase.mm:
3012         (+[WebPluginDatabase sharedDatabaseIfExists]): Added.
3013
3014         * WebCoreSupport/WebPlatformStrategies.mm:
3015         (WebPlatformStrategies::refreshPlugins):
3016         Only refresh the plugin database if it's already been loaded.
3017
3018 2013-08-14  Jer Noble  <jer.noble@apple.com>
3019
3020         Revert r154019; causes >50 tests to fail on WebKit1 bots.
3021
3022         * Plugins/Hosted/NetscapePluginHostManager.h:
3023         * Plugins/Hosted/NetscapePluginHostManager.mm:
3024         (WebKit::NetscapePluginHostManager::instantiatePlugin):
3025         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3026         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3027         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3028         * Plugins/Hosted/WebHostedNetscapePluginView.h:
3029         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3030         (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
3031         (-[WebHostedNetscapePluginView createPlugin]):
3032         (-[WebHostedNetscapePluginView updateAndSetWindow]):
3033         * Plugins/Hosted/WebKitPluginClient.defs:
3034         * Plugins/Hosted/WebKitPluginHost.defs:
3035
3036 2013-08-13  Filip Pizlo  <fpizlo@apple.com>
3037
3038         Foo::s_info should be Foo::info(), so that you can change how the s_info is actually linked
3039         https://bugs.webkit.org/show_bug.cgi?id=119770
3040
3041         Reviewed by Mark Hahnenberg.
3042
3043         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3044         (WebKit::getObjectID):
3045         (WebKit::NetscapePluginInstanceProxy::retainLocalObject):
3046         (WebKit::NetscapePluginInstanceProxy::releaseLocalObject):
3047         * Plugins/Hosted/ProxyInstance.mm:
3048         (WebKit::ProxyRuntimeMethod::finishCreation):
3049         (WebKit::ProxyInstance::invokeMethod):
3050         * Plugins/Hosted/ProxyRuntimeObject.h:
3051         (WebKit::ProxyRuntimeObject::createStructure):
3052         * WebView/WebView.mm:
3053         (aeDescFromJSValue):
3054
3055 2013-08-13  Anders Carlsson  <andersca@apple.com>
3056
3057         <https://webkit.org/b/119777> Get rid of two gotos
3058
3059         Reviewed by Tim Horton.
3060
3061         * WebView/WebHTMLView.mm:
3062         (-[WebHTMLView mouseDown:]):
3063         (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
3064
3065 2013-08-13  Tim Horton  <timothy_horton@apple.com>
3066
3067         Remotely hosted plugins don’t work in window-server-hosted WebKit1 views
3068         https://bugs.webkit.org/show_bug.cgi?id=119709
3069         <rdar://problem/14717572>
3070
3071         Reviewed by Anders Carlsson.
3072
3073         * Plugins/Hosted/NetscapePluginHostManager.h:
3074         Add hostLayersInWindowServer argument to instantiatePlugin.
3075
3076         * Plugins/Hosted/NetscapePluginHostManager.mm:
3077         (WebKit::NetscapePluginHostManager::instantiatePlugin):
3078         Add hostLayersInWindowServer argument to instantiatePlugin, and pass it through to WebKitPluginHost.
3079
3080         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3081         (WKPCLayerHostingModeChanged):
3082         Forward the notification that the plugin host changed its layer hosting mode
3083         to the instance proxy.
3084
3085         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3086         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3087         (WebKit::NetscapePluginInstanceProxy::setShouldHostLayersInWindowServer):
3088         Ask the plugin host to re-host its layers when the layer hosting mode changes.
3089
3090         (WebKit::NetscapePluginInstanceProxy::layerHostingModeChanged):
3091         Inform the WebHostedNetscapePluginView of the new layer hosting mode
3092         when it changes. Also, store the new CAContext ID.
3093
3094         * Plugins/Hosted/WebHostedNetscapePluginView.h:
3095         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3096         (-[WebHostedNetscapePluginView windowHostsLayersInWindowServer]):
3097         Determine whether the WebView's current window uses window-server hosting for its layers.
3098
3099         (-[WebHostedNetscapePluginView createPlugin]):
3100         Drive-by spelling fix.
3101         Factor _pluginLayer initialization out into createPluginLayer.
3102         Instantiate the plugin with the appropriate layer hosting mode.
3103
3104         (-[WebHostedNetscapePluginView createPluginLayer]):
3105
3106         (-[WebHostedNetscapePluginView setHostsLayersInWindowServer:]):
3107         Create a new _pluginLayer if the layer hosting mode changes.
3108         Attach the new _pluginLayer to our parent layer.
3109
3110         (-[WebHostedNetscapePluginView updateAndSetWindow]):
3111         Inform the NetscapePluginInstanceProxy if the layer hosting mode changes,
3112         so it can inform the plugin host. We will asynchronously receive a reply
3113         with the new hosting mode and renderContextID and switch to the new CAContext,
3114         in setHostsLayersInWindowServer:.
3115
3116         * Plugins/Hosted/WebKitPluginClient.defs:
3117         * Plugins/Hosted/WebKitPluginHost.defs:
3118
3119 2013-08-08  Tim Horton  <timothy_horton@apple.com>
3120
3121         navigator.plugins has plugins in it when plugins are disabled
3122         https://bugs.webkit.org/show_bug.cgi?id=119607
3123         <rdar://problem/14678030>
3124
3125         Reviewed by Anders Carlsson.
3126
3127         * WebCoreSupport/WebPlatformStrategies.mm:
3128         (WebPlatformStrategies::getPluginInfo):
3129         If plugins are disabled for the given page, give WebCore an empty list of
3130         plugins. If WebKit1 had any application plugins, we'd return just them
3131         instead.
3132
3133 2013-08-06  Stephanie Lewis  <slewis@apple.com>
3134
3135         Update Order Files for Safari
3136         <rdar://problem/14517392>
3137
3138         Unreviewed.
3139
3140         * WebKit.order:
3141
3142 2013-08-04  Sam Weinig  <sam@webkit.org>
3143
3144         Remove support for HTML5 MicroData
3145         https://bugs.webkit.org/show_bug.cgi?id=119480
3146
3147         Reviewed by Anders Carlsson.
3148
3149         * Configurations/FeatureDefines.xcconfig:
3150
3151 2013-07-23  David Farler  <dfarler@apple.com>
3152
3153         Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
3154         https://bugs.webkit.org/show_bug.cgi?id=117762
3155
3156         Reviewed by Mark Rowe.
3157
3158         * Configurations/DebugRelease.xcconfig:
3159         Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
3160         * Configurations/WebKit.xcconfig:
3161         Add ASAN_OTHER_LDFLAGS.
3162
3163 2013-07-26  Mark Rowe  <mrowe@apple.com>
3164
3165         Logging should be configurable using human-readable channel names rather than crazy bitmasks
3166         <http://webkit.org/b/119031>
3167
3168         Implement shared logic for initializing logging channels based on human-readable channel names in WTF,
3169         and rework the WebCore, WebKit and WebKit2 logging initialization on top of it.
3170
3171         Logging channels may now be enabled by providing a comma-separated list of channel names, with the special
3172         "all" name enabling all channels. Channel names prefixed with a leading "-" will result in the named channel
3173         being disabled. For instance, specifying "all,-history,-loading" will result in all logging channels except
3174         for history and loading being enabled.
3175
3176         For OS X developers, this also changes the name of the user defaults used to enable logging. This is done to allow
3177         the old user defaults to remain set for those people that need to switch between version of WebKit before and
3178         after this change. Where the old user default keys were WebCoreLogLevel, WebKitLogLevel and WebKit2LogLevel,
3179         the new user default keys are WebCoreLogging, WebKitLogging and WebKit2Logging.
3180
3181         For GTK developers, this changes the separator used in the WEBKIT_DEBUG environment variable to a comma for
3182         consistency with the other platforms and to enable more code sharing.
3183
3184         While doing this work I've also taken the opportunity to eliminate the need to touch multiple files when
3185         adding a new logging channel. Now only the header in the relevant project needs to be updated.
3186
3187         Reviewed by Sam Weinig.
3188
3189         * Misc/WebKitLogging.h: Declare a WEBKIT_LOG_CHANNELS macro that can be used to apply a preprocessor macro
3190         across the set of all logging channels. Use this macro to declare the logging channels.
3191         * Misc/WebKitLogging.m: Use WEBKIT_LOG_CHANNELS to define all of the channels. Pass the channels and the
3192         preference value to the new WTF function that handles the initialization.
3193         * WebView/WebPreferenceKeysPrivate.h: Remove a key that does not need to be here.
3194         * WebView/WebView.mm: Switch from WebCore's InitializeLogging.h to Logging.h.
3195
3196 2013-08-01  Ruth Fong  <ruth_fong@apple.com>
3197
3198         [Forms: color] <input type='color'> popover color well implementation
3199         <rdar://problem/14411008> and https://bugs.webkit.org/show_bug.cgi?id=119356
3200
3201         Reviewed by Benjamin Poulain.
3202
3203         * Configurations/FeatureDefines.xcconfig: Added and enabled INPUT_TYPE_COLOR_POPOVER.
3204
3205 2013-07-31  Tim Horton  <timothy_horton@apple.com>
3206
3207         Remove didFinishLoad order quirk
3208         https://bugs.webkit.org/show_bug.cgi?id=119354
3209         <rdar://problem/11510686>
3210
3211         Reviewed by Alexey Proskuryakov.
3212
3213         * Misc/WebKitVersionChecks.h:
3214         * WebView/WebView.mm:
3215         (-[WebView _preferencesChanged:]):
3216         Don't set the now-removed preference.
3217
3218 2013-07-31  Kwang Yul Seo  <skyul@company100.net>
3219
3220         Use emptyString instead of String("")
3221         https://bugs.webkit.org/show_bug.cgi?id=119335
3222
3223         Reviewed by Darin Adler.
3224
3225         Use emptyString() instead of String("") because it is better style and
3226         faster. This is a followup to r116908, removing all occurrences of
3227         String("") from WebKit.
3228
3229         * WebCoreSupport/WebFrameLoaderClient.mm:
3230         (WebFrameLoaderClient::userAgent):
3231
3232 2013-07-31  Ruth Fong  <ruth_fong@apple.com>
3233
3234         <input type=color> Mac UI behaviour
3235         <rdar://problem/10269922> and https://bugs.webkit.org/show_bug.cgi?id=61276
3236
3237         Reviewed by Brady Eidson.
3238
3239         * Configurations/FeatureDefines.xcconfig: Enabled INPUT_TYPE_COLOR.
3240         * WebCoreSupport/WebChromeClient.h:
3241         * WebCoreSupport/WebChromeClient.mm:
3242         (WebChromeClient::createColorPicker): Added stub implementation.
3243
3244 2013-07-26  Dean Jackson  <dino@apple.com>
3245
3246         Allow new transitions to run even when controller is suspended
3247         https://bugs.webkit.org/show_bug.cgi?id=119171
3248         <rdar://problem/14511404>
3249
3250         Reviewed by Simon Fraser.
3251
3252         Expose a new SPI on WebView that triggers the (buggy) old behaviour
3253         for animations, such that any newly created animations will start even
3254         when the document is supposedly suspended. It turns out that client content was
3255         unknowingly relying on this behaviour - e.g. suspending a view, loading a
3256         bunch of new content, bringing the view on screen and then unsuspending. In this
3257         situation, we were not running CSS transitions, because the page was suspended.
3258         However, JS was still triggering them, and content was expecting a transitionEnd event.
3259
3260         * WebView/WebView.mm:
3261         (-[WebView allowsNewCSSAnimationsWhileSuspended]): Calls into AnimationController.
3262         (-[WebView setAllowsNewCSSAnimationsWhileSuspended:]): Ditto.
3263         * WebView/WebViewPrivate.h: New methods listed above.
3264
3265 2013-07-26  Anders Carlsson  <andersca@apple.com>
3266
3267         Add another method that we need to set aside subviews for
3268         https://bugs.webkit.org/show_bug.cgi?id=119157
3269         <rdar://problem/14554723>
3270
3271         Reviewed by Beth Dakin.
3272
3273         * WebView/WebHTMLView.mm:
3274         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inContext:topView:]):
3275         (-[WebHTMLView _recursive:displayRectIgnoringOpacity:inGraphicsContext:CGContext:topView:shouldChangeFontReferenceColor:]):
3276
3277 2013-07-25  Andreas Kling  <akling@apple.com>
3278
3279         ChromeClient::focusedNodeChanged() should be focusedElementChanged().
3280         <http://webkit.org/b/119110>
3281
3282         Reviewed by Anders Carlsson.
3283
3284         * WebCoreSupport/WebChromeClient.h:
3285         * WebCoreSupport/WebChromeClient.mm:
3286         (WebChromeClient::focusedElementChanged):
3287
3288 2013-05-05  Geoffrey Garen  <ggaren@apple.com>
3289
3290         Rolled back in r149527 with crash fixed.
3291
3292         Reviewed by Oliver Hunt.
3293
3294             Rationalized 'this' value conversion
3295             https://bugs.webkit.org/show_bug.cgi?id=115542
3296
3297 2013-07-17  Commit Queue  <commit-queue@webkit.org>
3298
3299         Unreviewed, rolling out r152701, r152703, r152739, r152754,
3300         and r152756.
3301         http://trac.webkit.org/changeset/152701
3302         http://trac.webkit.org/changeset/152703
3303         http://trac.webkit.org/changeset/152739
3304         http://trac.webkit.org/changeset/152754
3305         http://trac.webkit.org/changeset/152756
3306         https://bugs.webkit.org/show_bug.cgi?id=118821
3307
3308         this was a buggy fix and we're going to try something
3309         different (Requested by thorton on #webkit).
3310
3311         * WebCoreSupport/WebChromeClient.h:
3312         * WebCoreSupport/WebChromeClient.mm:
3313         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
3314
3315 2013-07-17  Kangil Han  <kangil.han@samsung.com>
3316
3317         Use toHTMLMediaElement
3318         https://bugs.webkit.org/show_bug.cgi?id=118727
3319
3320         Reviewed by Ryosuke Niwa.
3321
3322         To avoid direct use of static_cast, this patch uses toHTMLMediaElement for code cleanup.
3323
3324         * WebView/WebView.mm:
3325         (-[WebView _enterFullscreenForNode:WebCore::]):
3326
3327 2013-07-16  Simon Fraser  <simon.fraser@apple.com>
3328
3329         Protect against the LayerFlushController being deleted inside its flushLayers() callback
3330         https://bugs.webkit.org/show_bug.cgi?id=118741
3331         <rdar://problem/14402651>
3332
3333         Reviewed by Tim Horton.
3334         
3335         It's possible (especially on iOS) for the LayerFlushController to be destroyed
3336         inside its callback, via -[WebView _close]. Protect against this by making
3337         it refcounted, and holding a ref across the callback.
3338         
3339         Due to the odd relationship in which LayerFlushController owns its LayerFlushScheduler
3340         by value, we achieve this by allowing subclasses of LayerFlushScheduler
3341         to override runLoopObserverCallback(). WebViewLayerFlushScheduler uses the
3342         override to protect the owner of the LayerFlushScheduler, which is the
3343         LayerFlushController, when the callback is firing.
3344
3345         * WebView/WebView.mm:
3346         (-[WebView _close]):
3347         * WebView/WebViewData.h:
3348         (WebViewLayerFlushScheduler::~WebViewLayerFlushScheduler):
3349         (LayerFlushController::create):
3350         * WebView/WebViewData.mm:
3351         (LayerFlushController::invalidate):
3352         (WebViewLayerFlushScheduler::WebViewLayerFlushScheduler):
3353
3354 2013-07-16  Jessie Berlin  <jberlin@apple.com>
3355
3356         Fix some NSDictionary misuse pointed out by the clang static analyzer
3357         https://bugs.webkit.org/show_bug.cgi?id=118736
3358
3359         Reviewed by Anders Carlsson.
3360
3361         * Plugins/Hosted/NetscapePluginHostManager.mm:
3362         (WebKit::NetscapePluginHostManager::spawnPluginHost):
3363         Explicitly cast the CFStringRef to an NSString *.
3364         * WebCoreSupport/WebEditorClient.mm:
3365         (WebEditorClient::documentFragmentFromAttributedString):
3366         Do not put a key with a nil value pair into the NSDictionary.
3367
3368 2013-07-15  Tim Horton  <timothy_horton@apple.com>
3369
3370         Update blocked/missing plug-in UI
3371         https://bugs.webkit.org/show_bug.cgi?id=118347
3372         <rdar://problem/14209318>
3373
3374         Reviewed by Sam Weinig.
3375         Patch by Antoine Quint, Anders Carlsson, Sam Weinig, and myself.
3376
3377         * WebCoreSupport/WebChromeClient.h:
3378         * WebCoreSupport/WebChromeClient.mm:
3379         (WebChromeClient::shouldUnavailablePluginMessageIncludeButton):
3380         Rename from shouldUnavailablePluginMessageBeButton to
3381         shouldUnavailablePluginMessageIncludeButton for accuracy.
3382
3383 2013-07-14  Jon Lee  <jonlee@apple.com>
3384
3385         [WK2] Calling Notification.requestPermission() without a callback crashes
3386         https://bugs.webkit.org/show_bug.cgi?id=118654
3387         <rdar://problem/14293352>
3388
3389         Reviewed by Alexey Proskuryakov.
3390
3391         * WebCoreSupport/WebNotificationClient.mm:
3392         (-[WebNotificationPolicyListener initWithCallback:]): The callback can be NULL, so remove the ASSERT.
3393         (-[WebNotificationPolicyListener allow]): Check for the callback before asking it to handle the event.
3394         (-[WebNotificationPolicyListener deny]): Ditto.
3395
3396 2013-07-12  Jessie Berlin  <jberlin@apple.com>
3397
3398         Remove some dead stores pointed out by the clang static analyzer.
3399         https://bugs.webkit.org/show_bug.cgi?id=118608
3400
3401         Reviewed by Anders Carlsson.
3402
3403         * Plugins/Hosted/NetscapePluginHostManager.mm:
3404         (WebKit::NetscapePluginHostManager::instantiatePlugin):
3405         kr is never read after this point, so there is no reason to assign to it.
3406
3407         * Plugins/WebBasePluginPackage.mm:
3408         (-[WebBasePluginPackage getPluginInfoFromPLists]):
3409         The extensions array is only used in the while loop. Move the declaration to the first place
3410         it is used in the while loop. Since it is always reassigned at that location, and since it
3411         is never read after the subsequent for loop, the assignment to an array containing the empty
3412         string is never used. Remove it.
3413         Similarly, the value of the description is always overwritten before used to assign to
3414         mimeClassInfo.desc or to pluginInfo.desc, so the code to assign it to the empty string is
3415         never used. Remove it.
3416
3417         * WebView/WebTextCompletionController.mm:
3418         (-[WebTextCompletionController _placePopupWindow:]):
3419         maxWidth is never read (and never was since it was added in r7311) after it is used on the
3420         line above to set windowFrame.size.width.
3421
3422 2013-07-11  Dan Bernstein  <mitz@apple.com>
3423
3424         [mac] No API for getting the page visibility state of a WebView
3425         https://bugs.webkit.org/show_bug.cgi?id=118578
3426
3427         Reviewed by Simon Fraser.
3428
3429         * WebView/WebView.mm:
3430         (kit): Added. Converts from WebCore::PageVisibilityState to WebPageVisibilityState.
3431         (-[WebView _visibilityState]): Added.
3432         * WebView/WebViewPrivate.h: Declared -_visibilityState.
3433
3434 2013-07-11  Timothy Hatcher  <timothy@apple.com>
3435
3436         Revert r152267 and soft link WebInspectorUI.framework again.
3437
3438         https://bugs.webkit.org/show_bug.cgi?id=118544
3439
3440         Reviewed by David Kilzer.
3441
3442         * Configurations/WebKit.xcconfig:
3443         * WebCoreSupport/WebInspectorClient.mm:
3444         (useWebKitWebInspector):
3445
3446 2013-07-10  Jessie Berlin  <jberlin@apple.com>
3447
3448         Remove some dead code from WebNSURLExtras _web_hostString
3449         https://bugs.webkit.org/show_bug.cgi?id=118519
3450
3451         Reviewed by Anders Carlsson.
3452
3453         * Misc/WebNSURLExtras.mm:
3454         (-[NSURL _web_hostString]):
3455         NSString initWithData:encoding: does not throw an exception when passing nil for the data, so
3456         just delete the code that wasn't being run.
3457
3458 2013-07-09  Jeremy Noble  <jer.noble@apple.com>
3459
3460         Reviewed by Simon Fraser.
3461
3462         Remember the scroll position and restore after exiting full-screen mode.
3463         https://bugs.webkit.org/show_bug.cgi?id=61956
3464         <rdar://problem/9544461>
3465
3466         Call into the main FrameView to save the scroll position before swapping the
3467         WebView into the full-screen window, and restore the scroll position after 
3468         swapping the WebView back into the browser window.
3469
3470         * WebView/WebFullScreenController.h:
3471         * WebView/WebFullScreenController.mm:
3472         (-[WebFullScreenController windowDidEnterFullscreen:]): Save the scroll position.
3473         (-[WebFullScreenController exitFullscreen]): Restore the scroll position.
3474
3475 2013-07-04  Yongjun Zhang  <yongjun_zhang@apple.com>
3476
3477         Add a method to get unreachable URL from WebFrame.
3478         https://bugs.webkit.org/show_bug.cgi?id=118399
3479
3480         Normally we could use [[WebFrame dataSource] unreachableURL] to get the failed URL.  However, if the frame has not
3481         loaded (FrameLoader::frameHasLoaded() is false), we will get a nil dataSource and we won't be able to get unreachableURL.
3482         We can add a method to always return the unreachableURL regardless if the frame has loaded or not.
3483
3484         Reviewed by Dan Bernstein.
3485
3486         * WebView/WebFrame.mm:
3487         (-[WebFrame _unreachableURL]):
3488         * WebView/WebFramePrivate.h:
3489
3490 2013-07-03  Zalan Bujtas  <zalan@apple.com>
3491
3492         H&R Block 2010 Help window can not be reopened.
3493         https://bugs.webkit.org/show_bug.cgi?id=118342
3494
3495         Reviewed by Antti Koivisto.
3496
3497         http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
3498         only the opener can (re)focus() a particular window.
3499         H&R Block app relies on the relaxed window.focus() rules.
3500
3501         * WebView/WebView.mm:
3502         (shouldRestrictWindowFocus):
3503         (-[WebView _preferencesChanged:]):
3504
3505 2013-07-01  Timothy Hatcher  <timothy@apple.com>
3506
3507         Link to WebInspectorUI.framework at build time instead of soft linking.
3508
3509         https://bugs.webkit.org/show_bug.cgi?id=118261
3510
3511         Reviewed by Joseph Pecoraro.
3512
3513         * Configurations/WebKit.xcconfig:
3514         * WebCoreSupport/WebInspectorClient.mm:
3515         (useWebKitWebInspector):
3516
3517 2013-07-01  Jochen Eisinger  <jochen@chromium.org>
3518
3519         Remove support for consumable user gestures
3520         https://bugs.webkit.org/show_bug.cgi?id=118247
3521
3522         Reviewed by Geoffrey Garen.
3523
3524         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3525         (WebKit::NetscapePluginInstanceProxy::evaluate):
3526         * Plugins/WebNetscapePluginView.mm:
3527         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
3528
3529 2013-06-27  Jer Noble  <jer.noble@apple.com>
3530
3531         Audio in apps which embed WebViews is corrupted.
3532         https://bugs.webkit.org/show_bug.cgi?id=118163
3533
3534         Reviewed by Maciej Stachowiak.
3535
3536         Expose the WebCore lowPowerVideoAudioBufferSizeEnabled setting to WebKit clients.
3537
3538         * WebView/WebPreferenceKeysPrivate.h:
3539         * WebView/WebPreferences.mm:
3540         (+[WebPreferences initialize]):
3541         (-[WebPreferences lowPowerVideoAudioBufferSizeEnabled]):
3542         (-[WebPreferences setLowPowerVideoAudioBufferSizeEnabled:]):
3543         * WebView/WebPreferencesPrivate.h:
3544         * WebView/WebView.mm:
3545         (-[WebView _preferencesChanged:]):
3546
3547 2013-07-01  Kangil Han  <kangil.han@samsung.com>
3548
3549         Adopt toHTMLTextAreaElement for code cleanup
3550         https://bugs.webkit.org/show_bug.cgi?id=118226
3551
3552         Reviewed by Andreas Kling.
3553
3554         To enhance readability, this patch adopts toHTMLTextAreaElement.
3555         This also helps out to reduce duplicated use of static_cast.
3556
3557         * WebCoreSupport/WebEditorClient.mm:
3558         (WebEditorClient::textDidChangeInTextArea):
3559
3560 2013-06-27  Kangil Han  <kangil.han@samsung.com>
3561
3562         Adopt is/toHTMLInputElement for code cleanup
3563         https://bugs.webkit.org/show_bug.cgi?id=118130
3564
3565         Reviewed by Antti Koivisto.
3566
3567         To enhance readability, this patch adopts is/toHTMLInputElement.
3568         This also helps out to reduce duplicated use of static_cast.
3569
3570         * DOM/WebDOMOperations.mm:
3571         (-[DOMHTMLInputElement _setAutofilled:]):
3572         * WebCoreSupport/WebChromeClient.mm:
3573         (WebChromeClient::focusedNodeChanged):
3574         * WebCoreSupport/WebEditorClient.mm:
3575         (WebEditorClient::textFieldDidBeginEditing):
3576         (WebEditorClient::textFieldDidEndEditing):
3577         (WebEditorClient::textDidChangeInTextField):
3578         (WebEditorClient::doTextFieldCommandFromEvent):
3579         (WebEditorClient::textWillBeDeletedInTextField):
3580         * WebView/WebHTMLRepresentation.mm:
3581         (inputElementFromDOMElement):
3582
3583 2013-06-26  Kangil Han  <kangil.han@samsung.com>
3584
3585         Adopt is/toHTMLAudioElement for code cleanup
3586         https://bugs.webkit.org/show_bug.cgi?id=117985
3587
3588         Reviewed by Jer Noble.
3589
3590         To enhance readibility, this patch adopts is/toHTMLAudioElement.
3591         This also helps out to reduce duplicated use of static_cast.
3592
3593         * Plugins/WebPluginController.mm:
3594
3595 2013-06-24  Simon Fraser  <simon.fraser@apple.com>
3596
3597         Move displayID stuff from Widget to Chrome
3598         https://bugs.webkit.org/show_bug.cgi?id=117944
3599
3600         Reviewed by Anders Carlsson.
3601
3602         In r151877 I polluted Widget with displayID-related stuff. This would
3603         be better on HostWindow, so move it there. This is a net code reduction,
3604         and eliminates PlatformScreenMac.h, and the NSScreen category.
3605
3606         * WebView/WebView.mm:
3607         (-[WebView doWindowDidChangeScreen]): Go via chrome().
3608
3609 2013-06-21  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3610
3611         REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere
3612         https://bugs.webkit.org/show_bug.cgi?id=117825
3613
3614         Reviewed by Kentaro Hara.
3615
3616         Use Settings to enable Web Audio instead of RuntimeEnabledFeatures.
3617
3618         * WebView/WebView.mm:
3619         (-[WebView _preferencesChanged:]):
3620
3621 2013-06-20  Simon Fraser  <simon.fraser@apple.com>
3622
3623         FrameView needs to initialize paintsEntireContents on creation
3624         https://bugs.webkit.org/show_bug.cgi?id=117844
3625
3626         Reviewed by Anders Carlsson.
3627         
3628         In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer.
3629         In this mode, FrameView::paintsEntireContents() is true. However,
3630         we would only call setPaintsEntireContents(true) on the FrameView
3631         when the view's layer-backed status changes. FrameView also needs
3632         to fetch this state when it is initialized, because we may be creating
3633         a new FrameView for an already layer-backed WebHTMLView.
3634
3635         * WebCoreSupport/WebChromeClient.h:
3636         * WebCoreSupport/WebChromeClient.mm:
3637         (WebChromeClient::shouldPaintEntireContents):
3638
3639 2013-06-19  Benjamin Poulain  <bpoulain@apple.com>
3640
3641         Use the PlatformEvent timestamp when creating a DOM Event
3642         https://bugs.webkit.org/show_bug.cgi?id=117179
3643
3644         Reviewed by Darin Adler.
3645
3646         * WebView/WebPDFView.mm:
3647         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
3648
3649 2013-06-18  Roger Fong  <roger_fong@apple.com>
3650
3651         Unreviewed. Build fix for Mac.
3652
3653         * WebCoreSupport/WebFrameNetworkingContext.h:
3654         (WebFrameNetworkingContext::create):
3655         (WebFrameNetworkingContext::WebFrameNetworkingContext):
3656
3657 2013-06-18  Roger Fong  <roger_fong@apple.com>
3658
3659         Re-implement WebFrameNetworkingContext.
3660         <rdar://problem/13174821>.
3661
3662         Reviewed by Alexey Proskuryakov.
3663
3664         * WebCoreSupport/WebFrameNetworkingContext.h: Added.
3665         (WebFrameNetworkingContext::create):
3666         (WebFrameNetworkingContext::WebFrameNetworkingContext):
3667         (WebFrameNetworkingContext::userAgent):
3668         * WebCoreSupport/WebFrameNetworkingContext.mm: Added.
3669         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
3670         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
3671         (WebFrameNetworkingContext::needsSiteSpecificQuirks):
3672         (WebFrameNetworkingContext::localFileContentSniffingEnabled):
3673         (WebFrameNetworkingContext::scheduledRunLoopPairs):
3674         (WebFrameNetworkingContext::sourceApplicationAuditData):
3675         (WebFrameNetworkingContext::blockedError):
3676         (WebFrameNetworkingContext::storageSession):
3677
3678 2013-06-18  Alexey Proskuryakov  <ap@apple.com>
3679
3680         <rdar://problem/13174821> Remove files with an incorrect license.
3681
3682         Rubber-stamped by Maciej Stachowiak.
3683
3684         This will break the build, stay tuned for a fix coming soon.
3685
3686         * WebCoreSupport/WebFrameNetworkingContext.h: Removed.
3687         * WebCoreSupport/WebFrameNetworkingContext.mm: Removed.
3688
3689 2013-06-17  Michael Brüning  <michael.bruning@digia.com>
3690
3691         [Qt] Remove Qt specific QTKIT flagged code.
3692         https://bugs.webkit.org/show_bug.cgi?id=117635
3693
3694         Reviewed by Simon Hausmann.
3695
3696         Due to disabling QTKIT for Qt in r151546, the
3697         code the flags that are not taken into account
3698         anymore and the code that has been rendered
3699         unreachable by this are removed.
3700
3701         * WebView/WebView.mm:
3702         (-[WebView _preferencesChanged:]):
3703
3704 2013-06-17  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3705
3706         Unreviewed, rolling out r151632.
3707         http://trac.webkit.org/changeset/151632
3708         https://bugs.webkit.org/show_bug.cgi?id=117585
3709
3710         Debug build error ASSERT(WTF_USE_GRAMMAR_CHECKING) for non MAC
3711         platforms
3712
3713         * WebCoreSupport/WebContextMenuClient.mm:
3714         (fixMenusReceivedFromOldClients):
3715
3716 2013-06-14  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3717
3718         Context menu grammar checking items are available when GRAMMAR_CHECKING macro is off
3719         https://bugs.webkit.org/show_bug.cgi?id=117585
3720
3721         Reviewed by Anders Carlsson.
3722
3723         Add GRAMMAR_CHECKING guard to the context menu grammar items.
3724
3725         * WebCoreSupport/WebContextMenuClient.mm:
3726         (fixMenusReceivedFromOldClients):
3727
3728 2013-06-13  Jer Noble  <jer.noble@apple.com>
3729
3730         Add support for AVFoundation-backed HTMLMediaElements in the WebVideoFullScreenController.
3731         https://bugs.webkit.org/show_bug.cgi?id=117597
3732
3733         Reviewed by Eric Carlson.
3734
3735         Allow AVFoundation to be enabled even when the FullScreen API is disabled.
3736
3737         * WebView/WebView.mm:
3738         (-[WebView _preferencesChanged:]): 
3739
3740 2013-06-12  Anders Carlsson  <andersca@apple.com>
3741
3742         Remove the notion of inactive plug-ins
3743         https://bugs.webkit.org/show_bug.cgi?id=117570
3744         <rdar://problem/13484213>
3745
3746         Reviewed by Tim Horton.
3747
3748         Remove code that deals with inactive plug-ins.
3749
3750         * WebCoreSupport/WebChromeClient.mm:
3751         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
3752         (WebChromeClient::unavailablePluginButtonClicked):
3753         * WebCoreSupport/WebFrameLoaderClient.mm:
3754         (WebFrameLoaderClient::createPlugin):
3755
3756 2013-06-12  Zan Dobersek  <zdobersek@igalia.com>
3757
3758         Remove memoryInfoEnabled, quantizedMemoryInfoEnabled settings
3759         https://bugs.webkit.org/show_bug.cgi?id=117512
3760
3761         Reviewed by Darin Adler.
3762
3763         * WebKit.order: Remove the memoryInfoEnabled entry.
3764         * WebView/WebPreferenceKeysPrivate.h: Remove WebKitMemoryInfoEnabledPreferenceKey.
3765         * WebView/WebPreferences.mm: Remove memoryInfoEnabled, setMemoryInfoEnabled methods.
3766         (+[WebPreferences initialize]): Don't set the default value for the WebKitMemoryInfoEnabledPreferenceKey, the preference is being removed.
3767         * WebView/WebPreferencesPrivate.h: Remove memoryInfoEnabled, setMemoryInfoEnabled method declarations.
3768         * WebView/WebView.mm:
3769         (-[WebView _preferencesChanged:]): Remove the call to Settings::setMemoryInfoEnabled, the setting is being removed.
3770
3771 2013-06-06  Timothy Hatcher  <timothy@apple.com>
3772
3773         Update the framework bundle identifier for the Web Inspector.
3774
3775         Reviewed by Mark Rowe.
3776
3777         * WebCoreSupport/WebInspectorClient.mm:
3778         (useWebKitWebInspector):
3779         (WebInspectorFrontendClient::localizedStringsURL):
3780         (-[WebInspectorWindowController inspectorPagePath]):
3781
3782 2013-06-05  Bear Travis  <betravis@adobe.com>
3783
3784         [CSS Exclusions][CSS Shapes] Split CSS Exclusions & Shapes compile & runtime flags
3785         https://bugs.webkit.org/show_bug.cgi?id=117172
3786
3787         Reviewed by Alexandru Chiculita.
3788
3789         Adding the CSS_SHAPES compile flag.
3790
3791         * Configurations/FeatureDefines.xcconfig:
3792
3793 2013-06-01  Andreas Kling  <akling@apple.com>
3794
3795         Remove unnused WebDOMNodeOperationsInternal category.
3796         <http://webkit.org/b/117105>
3797
3798         Reviewed by Ryosuke Niwa.
3799
3800         _subresourceURLs had no clients.
3801
3802         * DOM/WebDOMOperations.mm:
3803
3804 2013-06-01  Andreas Kling  <akling@apple.com>
3805
3806         Move Node::hasID() and hasClass() to Element.
3807         <http://webkit.org/b/117104>
3808
3809         Reviewed by Ryosuke Niwa.
3810
3811         * WebView/WebRenderLayer.mm:
3812         (+[WebRenderLayer nameForLayer:]):
3813
3814 2013-05-31  Stephanie Lewis  <slewis@apple.com>
3815
3816         Update low memory handler to use new memory pressure notifications on new OS versions.
3817         <rdar://problem/14027095> 
3818
3819         Reviewed by Mark Rowe.
3820
3821         * WebCoreSupport/WebSystemInterface.mm:
3822         (InitWebCoreSystemInterface):
3823
3824 2013-05-29  Jeffrey Pfau  <jpfau@apple.com>
3825
3826         [Mac] Enable cache partitioning and the public suffix list on 10.8
3827         <rdar://problem/13679019>
3828
3829         Rubber-stamped by David Kilzer.
3830
3831         * Configurations/FeatureDefines.xcconfig:
3832
3833 2013-05-29  Joseph Pecoraro  <pecoraro@apple.com>
3834
3835         Web Inspector: get rid of obsolete InspectorFrontendHost.hiddenPanels()
3836         https://bugs.webkit.org/show_bug.cgi?id=60152
3837
3838         Reviewed by Andreas Kling.
3839
3840         * WebCoreSupport/WebInspectorClient.mm:
3841
3842 2013-05-28  Joseph Pecoraro  <pecoraro@apple.com>
3843
3844         Drag to move DOM nodes does not work
3845         https://bugs.webkit.org/show_bug.cgi?id=116865
3846
3847         Do not block drag events on the WebKit 1 Web Inspector WebView.
3848
3849         Reviewed by Timothy Hatcher.
3850
3851         * WebCoreSupport/WebInspectorClient.mm:
3852
3853 2013-05-28  Andreas Kling  <akling@apple.com>
3854
3855         Document::setFocusedNode() should be setFocusedElement().
3856         <http://webkit.org/b/116857>
3857
3858         Reviewed by Antti Koivisto.
3859
3860         * WebView/WebHTMLView.mm:
3861         (-[WebHTMLView clearFocus]):
3862         (-[WebHTMLView becomeFirstResponder]):
3863
3864 2013-05-25  Andreas Kling  <akling@apple.com>
3865
3866         Remove Document::getFocusableNodes().
3867         <http://webkit.org/b/116773>
3868
3869         Reviewed by Joseph Pecoraro.
3870
3871         Remove the private _focusableNodes API on DOMDocument, it has no clients.
3872
3873         * DOM/WebDOMOperations.mm:
3874         * DOM/WebDOMOperationsPrivate.h:
3875
3876 2013-05-25  Simon Fraser  <simon.fraser@apple.com>
3877
3878         Unprefix Page Visibility API
3879         https://bugs.webkit.org/show_bug.cgi?id=102340
3880
3881         Reviewed by Tim Horton.
3882
3883         Renaming of the "preview" state to "unloaded".
3884
3885         * WebView/WebView.mm:
3886         * WebView/WebViewPrivate.h:
3887
3888 2013-05-25  Dan Bernstein  <mitz@apple.com>
3889
3890         <rdar://problem/13924889> -webView:didPerformClientRedirectFromURL:toURL:inFrame: should be given the redirecting URL as the “from” URL
3891         https://bugs.webkit.org/show_bug.cgi?id=116733
3892
3893         Reviewed by Adele Peterson.
3894
3895         By the time the history controller calls updateGlobalHistoryRedirectLinks(), the document
3896         loader already reflects the destination URL. In order to be able to provide the immediate
3897         source URL to the delegate, we make WebFrame track a URL and provisional URL, updating them
3898         in response to FrameLoader callbacks in exactly the same way WebFrameProxy maintains its
3899         m_url and m_provisionalURL member variables.
3900
3901         * WebCoreSupport/WebFrameLoaderClient.mm:
3902         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Update
3903         provisionalURL.
3904         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage): Update url.
3905         (WebFrameLoaderClient::dispatchDidPushStateWithinPage): Ditto.
3906         (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage): Ditto.
3907         (WebFrameLoaderClient::dispatchDidPopStateWithinPage): Ditto.
3908         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Update provisionalURL.
3909         (WebFrameLoaderClient::dispatchDidCommitLoad): Update URL and provisionalURL.
3910         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Clear provisionalURL.
3911         (WebFrameLoaderClient::dispatchDidFailLoad): Added an assertion.
3912         (WebFrameLoaderClient::dispatchDidFinishLoad): Ditto.
3913         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Pass the last committed URL as the
3914         source, rather than clientRedirectSourceForHistory().
3915         * WebView/WebFrameInternal.h: Added url and provisionalURL ivars to WebFramePrivate.
3916
3917 2013-05-24  Anders Carlsson  <andersca@apple.com>
3918
3919         Remove using namespace std from Mac WebKit1
3920         https://bugs.webkit.org/show_bug.cgi?id=116747
3921
3922         Reviewed by Sam Weinig.
3923
3924         Use explicit std:: qualifiers instead.
3925
3926         * History/BinaryPropertyList.cpp:
3927         (IntegerArray::deletedValueSize):
3928         (BinaryPropertyListPlan::invalidObjectReference):
3929         (bytesNeeded):
3930         * History/WebHistory.mm:
3931         (-[WebHistoryPrivate orderedLastVisitedDays]):
3932         (WebHistoryWriter::WebHistoryWriter):
3933         * History/WebHistoryItem.mm:
3934         (-[WebHistoryItem initFromDictionaryRepresentation:]):
3935         * Plugins/Hosted/NetscapePluginHostManager.mm:
3936         (WebKit::NetscapePluginHostManager::instantiatePlugin):
3937         * Plugins/Hosted/NetscapePluginHostProxy.mm:
3938         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3939         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3940         (WebKit::NetscapePluginInstanceProxy::wheelEvent):
3941         (WebKit::NetscapePluginInstanceProxy::print):
3942         (WebKit::NetscapePluginInstanceProxy::snapshot):
3943         (WebKit::NetscapePluginInstanceProxy::loadURL):
3944         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
3945         * Plugins/Hosted/ProxyInstance.mm:
3946         (WebKit::ProxyInstance::invoke):
3947         (WebKit::ProxyInstance::supportsInvokeDefaultMethod):
3948         (WebKit::ProxyInstance::supportsConstruct):
3949         (WebKit::ProxyInstance::getPropertyNames):
3950         (WebKit::ProxyInstance::methodNamed):
3951         (WebKit::ProxyInstance::fieldNamed):
3952         (WebKit::ProxyInstance::fieldValue):
3953         (WebKit::ProxyInstance::setFieldValue):
3954         * Plugins/WebBasePluginPackage.mm:
3955         (-[WebBasePluginPackage supportsExtension:]):
3956         (-[WebBasePluginPackage MIMETypeForExtension:]):
3957         * Plugins/WebNetscapePluginStream.mm:
3958         (WebNetscapePluginStream::deliverData):
3959         * Plugins/WebNetscapePluginView.mm:
3960         (PluginTimer::start):
3961         (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
3962         * WebCoreSupport/WebFrameLoaderClient.mm:
3963         * WebView/WebFrame.mm:
3964         * WebView/WebHTMLView.mm:
3965         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
3966         * WebView/WebTextCompletionController.mm:
3967         (-[WebTextCompletionController _placePopupWindow:]):
3968
3969 2013-05-24  Anders Carlsson  <andersca@apple.com>
3970
3971         Move history property list writer to WebKit
3972         https://bugs.webkit.org/show_bug.cgi?id=116746
3973
3974         Reviewed by Tim Horton.
3975
3976         Move WebCore history files to WebKit since they're only used by WebKit now.
3977
3978         * History/BinaryPropertyList.cpp: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.cpp.
3979         * History/BinaryPropertyList.h: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.h.
3980         * History/HistoryPropertyList.cpp: Renamed from Source/WebCore/history/cf/HistoryPropertyList.cpp.
3981         * History/HistoryPropertyList.h: Renamed from Source/WebCore/history/cf/HistoryPropertyList.h.
3982         * History/WebHistory.mm:
3983
3984 2013-05-24  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3985
3986         Remove custom code for webkitAudioContext global constructor getter
3987         https://bugs.webkit.org/show_bug.cgi?id=116530
3988
3989         Reviewed by Geoffrey Garen.
3990
3991         Use RuntimeEnabledFeatures instead of Settings to toggle Web Audio support.
3992
3993         * WebView/WebView.mm:
3994         (-[WebView _preferencesChanged:]):
3995
3996 2013-05-23  Anders Carlsson  <andersca@apple.com>
3997
3998         Crash in convertMainResourceLoadToDownload when downloading file by option-return
3999         https://bugs.webkit.org/show_bug.cgi?id=116451
4000
4001         Reviewed by Andreas Kling.
4002
4003         If the main resource loader is null, create a new download instead since there's no existing loader to convert.
4004
4005         * WebCoreSupport/WebFrameLoaderClient.mm:
4006         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
4007
4008 2013-05-22  Simon Fraser  <simon.fraser@apple.com>
4009
4010         Fix issues with focus rings on search fields
4011         https://bugs.webkit.org/show_bug.cgi?id=116591
4012
4013         Reviewed by Darin Adler.
4014         
4015         In WebKit1, focus rings didn't render correctly on some OSes until
4016         some other control drew a focus ring, which changes internal AppKit state
4017         on the focused view. Fix by overriding an internal AppKit method to always
4018         disable AppKit's "automatic" focus ring drawing.
4019
4020         * WebView/WebHTMLView.mm:
4021         (-[WebHTMLView _automaticFocusRingDisabled]):
4022
4023 2013-05-20  David Kilzer  <ddkilzer@apple.com>
4024
4025         Synchronize FeatureDefines.xcconfig
4026
4027         * Configurations/FeatureDefines.xcconfig: Add a newline to the
4028         end of the file.
4029
4030 2013-05-19  Anders Carlsson  <andersca@apple.com>
4031
4032         Remove link prerendering code
4033         https://bugs.webkit.org/show_bug.cgi?id=116415
4034
4035         Reviewed by Darin Adler.
4036
4037         This code was only used by Chromium and is dead now.
4038
4039         * Configurations/FeatureDefines.xcconfig:
4040
4041 2013-05-19  Anders Carlsson  <andersca@apple.com>
4042
4043         Remove ChromeClient::webView()
4044         https://bugs.webkit.org/show_bug.cgi?id=116054
4045
4046         Reviewed by Darin Adler.
4047
4048         This blatantly horrible layer violation was only used to know if a ChromeClient is an empty
4049         client or not. We already have a (slightly less horrible) way to do that.
4050
4051         * WebCoreSupport/WebChromeClient.h:
4052         (WebChromeClient):
4053
4054 2013-05-17  Anders Carlsson  <andersca@apple.com>
4055
4056         Accessing null function pointers is bad.
4057
4058         * WebCoreSupport/WebFrameLoaderClient.mm:
4059
4060 2013-05-17  Anders Carlsson  <andersca@apple.com>
4061
4062         Make kit(Frame*) more robust
4063         https://bugs.webkit.org/show_bug.cgi?id=116324
4064
4065         Reviewed by Darin Adler.
4066
4067         Check that the frame loader's client isn't the EmptyFrameLoaderClient (or a subclass thereof)
4068         before casting to WebFrameLoaderClient.
4069
4070         * WebView/WebFrame.mm:
4071         (kit):
4072
4073 2013-05-17  Anders Carlsson  <andersca@apple.com>
4074
4075         Move the policy function to WebFramePolicyListener
4076         https://bugs.webkit.org/show_bug.cgi?id=116323
4077
4078         Reviewed by Darin Adler.
4079
4080         There's no need for the WebFrameLoaaderClient to hold on to the policy function,
4081         so move it to WebFramePolicyListener. This gets rid of another WebFrameLoaderClient cast.
4082
4083         * WebCoreSupport/WebFrameLoaderClient.mm:
4084         (WebFrameLoaderClient::setUpPolicyListener):
4085         Pass the policy function when creating the WebFramePolicyListener object.
4086
4087 2013-05-17  Anders Carlsson  <andersca@apple.com>
4088
4089         WebFramePolicyListener should keep its Frame in a RefPtr
4090         https://bugs.webkit.org/show_bug.cgi?id=116322
4091
4092         Reviewed by Darin Adler.
4093
4094         * WebCoreSupport/WebFrameLoaderClient.mm:
4095         (-[WebFramePolicyListener initWithWebCoreFrame:]):
4096         No need to ref the frame, the RefPtr does that for us.
4097
4098         (-[WebFramePolicyListener invalidate]):
4099         Just set the frame to null.
4100
4101         (-[WebFramePolicyListener dealloc]):
4102         Remove call to deref, that's done automatically now.
4103
4104         (-[WebFramePolicyListener finalize]):
4105         Remove this method. (We could have kept it just for the assertion but I didn't think that was necessary).
4106
4107         (-[WebFramePolicyListener receivedPolicyDecision:):
4108         Use release() to transfer ownership.
4109
4110 2013-05-17  Anders Carlsson  <andersca@apple.com>
4111
4112         Reduce number of WebFrameLoaderClient static casts in WebKit
4113         https://bugs.webkit.org/show_bug.cgi?id=116320
4114
4115         Reviewed by Antti Koivisto.
4116
4117         We already have a function to return a WebFrame from a WebCore::Frame, use it.
4118
4119         * DOM/WebDOMOperations.mm:
4120         (WebFrameFilter::shouldIncludeSubframe):
4121         * WebView/WebDataSource.mm:
4122         (-[WebDataSource webFrame]):
4123
4124 2013-05-16  Commit Queue  <commit-queue@webkit.org>
4125
4126         Unreviewed, rolling out r150034.
4127         http://trac.webkit.org/changeset/150034
4128         https://bugs.webkit.org/show_bug.cgi?id=116257
4129
4130         This work around doesn't work due to another bug NSUndoManager
4131         has (Requested by rniwa on #webkit).
4132
4133         * WebCoreSupport/WebEditorClient.mm:
4134         (WebEditorClient::registerUndoOrRedoStep):
4135
4136 2013-05-16  Tim Horton  <timothy_horton@apple.com>
4137
4138         PDFPlugins don't load when plugins are disabled, but they should
4139         https://bugs.webkit.org/show_bug.cgi?id=75790
4140         <rdar://problem/11650197>
4141
4142         Reviewed by Anders Carlsson.