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