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