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