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