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