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