H&R Block 2010 Help window can not be reopened.
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2013-07-03  Zalan Bujtas  <zalan@apple.com>
2
3         H&R Block 2010 Help window can not be reopened.
4         https://bugs.webkit.org/show_bug.cgi?id=118342
5
6         Reviewed by Antti Koivisto.
7
8         http://trac.webkit.org/changeset/118916 changed the window.focus() behaviour so that
9         only the opener can (re)focus() a particular window.
10         H&R Block app relies on the relaxed window.focus() rules.
11
12         * WebView/WebView.mm:
13         (shouldRestrictWindowFocus):
14         (-[WebView _preferencesChanged:]):
15
16 2013-07-01  Timothy Hatcher  <timothy@apple.com>
17
18         Link to WebInspectorUI.framework at build time instead of soft linking.
19
20         https://bugs.webkit.org/show_bug.cgi?id=118261
21
22         Reviewed by Joseph Pecoraro.
23
24         * Configurations/WebKit.xcconfig:
25         * WebCoreSupport/WebInspectorClient.mm:
26         (useWebKitWebInspector):
27
28 2013-07-01  Jochen Eisinger  <jochen@chromium.org>
29
30         Remove support for consumable user gestures
31         https://bugs.webkit.org/show_bug.cgi?id=118247
32
33         Reviewed by Geoffrey Garen.
34
35         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
36         (WebKit::NetscapePluginInstanceProxy::evaluate):
37         * Plugins/WebNetscapePluginView.mm:
38         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
39
40 2013-06-27  Jer Noble  <jer.noble@apple.com>
41
42         Audio in apps which embed WebViews is corrupted.
43         https://bugs.webkit.org/show_bug.cgi?id=118163
44
45         Reviewed by Maciej Stachowiak.
46
47         Expose the WebCore lowPowerVideoAudioBufferSizeEnabled setting to WebKit clients.
48
49         * WebView/WebPreferenceKeysPrivate.h:
50         * WebView/WebPreferences.mm:
51         (+[WebPreferences initialize]):
52         (-[WebPreferences lowPowerVideoAudioBufferSizeEnabled]):
53         (-[WebPreferences setLowPowerVideoAudioBufferSizeEnabled:]):
54         * WebView/WebPreferencesPrivate.h:
55         * WebView/WebView.mm:
56         (-[WebView _preferencesChanged:]):
57
58 2013-07-01  Kangil Han  <kangil.han@samsung.com>
59
60         Adopt toHTMLTextAreaElement for code cleanup
61         https://bugs.webkit.org/show_bug.cgi?id=118226
62
63         Reviewed by Andreas Kling.
64
65         To enhance readability, this patch adopts toHTMLTextAreaElement.
66         This also helps out to reduce duplicated use of static_cast.
67
68         * WebCoreSupport/WebEditorClient.mm:
69         (WebEditorClient::textDidChangeInTextArea):
70
71 2013-06-27  Kangil Han  <kangil.han@samsung.com>
72
73         Adopt is/toHTMLInputElement for code cleanup
74         https://bugs.webkit.org/show_bug.cgi?id=118130
75
76         Reviewed by Antti Koivisto.
77
78         To enhance readability, this patch adopts is/toHTMLInputElement.
79         This also helps out to reduce duplicated use of static_cast.
80
81         * DOM/WebDOMOperations.mm:
82         (-[DOMHTMLInputElement _setAutofilled:]):
83         * WebCoreSupport/WebChromeClient.mm:
84         (WebChromeClient::focusedNodeChanged):
85         * WebCoreSupport/WebEditorClient.mm:
86         (WebEditorClient::textFieldDidBeginEditing):
87         (WebEditorClient::textFieldDidEndEditing):
88         (WebEditorClient::textDidChangeInTextField):
89         (WebEditorClient::doTextFieldCommandFromEvent):
90         (WebEditorClient::textWillBeDeletedInTextField):
91         * WebView/WebHTMLRepresentation.mm:
92         (inputElementFromDOMElement):
93
94 2013-06-26  Kangil Han  <kangil.han@samsung.com>
95
96         Adopt is/toHTMLAudioElement for code cleanup
97         https://bugs.webkit.org/show_bug.cgi?id=117985
98
99         Reviewed by Jer Noble.
100
101         To enhance readibility, this patch adopts is/toHTMLAudioElement.
102         This also helps out to reduce duplicated use of static_cast.
103
104         * Plugins/WebPluginController.mm:
105
106 2013-06-24  Simon Fraser  <simon.fraser@apple.com>
107
108         Move displayID stuff from Widget to Chrome
109         https://bugs.webkit.org/show_bug.cgi?id=117944
110
111         Reviewed by Anders Carlsson.
112
113         In r151877 I polluted Widget with displayID-related stuff. This would
114         be better on HostWindow, so move it there. This is a net code reduction,
115         and eliminates PlatformScreenMac.h, and the NSScreen category.
116
117         * WebView/WebView.mm:
118         (-[WebView doWindowDidChangeScreen]): Go via chrome().
119
120 2013-06-21  Christophe Dumez  <ch.dumez@sisa.samsung.com>
121
122         REGRESSION (r150663): Using webkitAudioContext in Inspector makes it undefined everywhere
123         https://bugs.webkit.org/show_bug.cgi?id=117825
124
125         Reviewed by Kentaro Hara.
126
127         Use Settings to enable Web Audio instead of RuntimeEnabledFeatures.
128
129         * WebView/WebView.mm:
130         (-[WebView _preferencesChanged:]):
131
132 2013-06-20  Simon Fraser  <simon.fraser@apple.com>
133
134         FrameView needs to initialize paintsEntireContents on creation
135         https://bugs.webkit.org/show_bug.cgi?id=117844
136
137         Reviewed by Anders Carlsson.
138         
139         In WebKit1, if the WebView is layer-backed, WebHTMLView gets a layer.
140         In this mode, FrameView::paintsEntireContents() is true. However,
141         we would only call setPaintsEntireContents(true) on the FrameView
142         when the view's layer-backed status changes. FrameView also needs
143         to fetch this state when it is initialized, because we may be creating
144         a new FrameView for an already layer-backed WebHTMLView.
145
146         * WebCoreSupport/WebChromeClient.h:
147         * WebCoreSupport/WebChromeClient.mm:
148         (WebChromeClient::shouldPaintEntireContents):
149
150 2013-06-19  Benjamin Poulain  <bpoulain@apple.com>
151
152         Use the PlatformEvent timestamp when creating a DOM Event
153         https://bugs.webkit.org/show_bug.cgi?id=117179
154
155         Reviewed by Darin Adler.
156
157         * WebView/WebPDFView.mm:
158         (-[WebPDFView PDFViewWillClickOnLink:withURL:]):
159
160 2013-06-18  Roger Fong  <roger_fong@apple.com>
161
162         Unreviewed. Build fix for Mac.
163
164         * WebCoreSupport/WebFrameNetworkingContext.h:
165         (WebFrameNetworkingContext::create):
166         (WebFrameNetworkingContext::WebFrameNetworkingContext):
167
168 2013-06-18  Roger Fong  <roger_fong@apple.com>
169
170         Re-implement WebFrameNetworkingContext.
171         <rdar://problem/13174821>.
172
173         Reviewed by Alexey Proskuryakov.
174
175         * WebCoreSupport/WebFrameNetworkingContext.h: Added.
176         (WebFrameNetworkingContext::create):
177         (WebFrameNetworkingContext::WebFrameNetworkingContext):
178         (WebFrameNetworkingContext::userAgent):
179         * WebCoreSupport/WebFrameNetworkingContext.mm: Added.
180         (WebFrameNetworkingContext::ensurePrivateBrowsingSession):
181         (WebFrameNetworkingContext::destroyPrivateBrowsingSession):
182         (WebFrameNetworkingContext::needsSiteSpecificQuirks):
183         (WebFrameNetworkingContext::localFileContentSniffingEnabled):
184         (WebFrameNetworkingContext::scheduledRunLoopPairs):
185         (WebFrameNetworkingContext::sourceApplicationAuditData):
186         (WebFrameNetworkingContext::blockedError):
187         (WebFrameNetworkingContext::storageSession):
188
189 2013-06-18  Alexey Proskuryakov  <ap@apple.com>
190
191         <rdar://problem/13174821> Remove files with an incorrect license.
192
193         Rubber-stamped by Maciej Stachowiak.
194
195         This will break the build, stay tuned for a fix coming soon.
196
197         * WebCoreSupport/WebFrameNetworkingContext.h: Removed.
198         * WebCoreSupport/WebFrameNetworkingContext.mm: Removed.
199
200 2013-06-17  Michael Brüning  <michael.bruning@digia.com>
201
202         [Qt] Remove Qt specific QTKIT flagged code.
203         https://bugs.webkit.org/show_bug.cgi?id=117635
204
205         Reviewed by Simon Hausmann.
206
207         Due to disabling QTKIT for Qt in r151546, the
208         code the flags that are not taken into account
209         anymore and the code that has been rendered
210         unreachable by this are removed.
211
212         * WebView/WebView.mm:
213         (-[WebView _preferencesChanged:]):
214
215 2013-06-17  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
216
217         Unreviewed, rolling out r151632.
218         http://trac.webkit.org/changeset/151632
219         https://bugs.webkit.org/show_bug.cgi?id=117585
220
221         Debug build error ASSERT(WTF_USE_GRAMMAR_CHECKING) for non MAC
222         platforms
223
224         * WebCoreSupport/WebContextMenuClient.mm:
225         (fixMenusReceivedFromOldClients):
226
227 2013-06-14  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
228
229         Context menu grammar checking items are available when GRAMMAR_CHECKING macro is off
230         https://bugs.webkit.org/show_bug.cgi?id=117585
231
232         Reviewed by Anders Carlsson.
233
234         Add GRAMMAR_CHECKING guard to the context menu grammar items.
235
236         * WebCoreSupport/WebContextMenuClient.mm:
237         (fixMenusReceivedFromOldClients):
238
239 2013-06-13  Jer Noble  <jer.noble@apple.com>
240
241         Add support for AVFoundation-backed HTMLMediaElements in the WebVideoFullScreenController.
242         https://bugs.webkit.org/show_bug.cgi?id=117597
243
244         Reviewed by Eric Carlson.
245
246         Allow AVFoundation to be enabled even when the FullScreen API is disabled.
247
248         * WebView/WebView.mm:
249         (-[WebView _preferencesChanged:]): 
250
251 2013-06-12  Anders Carlsson  <andersca@apple.com>
252
253         Remove the notion of inactive plug-ins
254         https://bugs.webkit.org/show_bug.cgi?id=117570
255         <rdar://problem/13484213>
256
257         Reviewed by Tim Horton.
258
259         Remove code that deals with inactive plug-ins.
260
261         * WebCoreSupport/WebChromeClient.mm:
262         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
263         (WebChromeClient::unavailablePluginButtonClicked):
264         * WebCoreSupport/WebFrameLoaderClient.mm:
265         (WebFrameLoaderClient::createPlugin):
266
267 2013-06-12  Zan Dobersek  <zdobersek@igalia.com>
268
269         Remove memoryInfoEnabled, quantizedMemoryInfoEnabled settings
270         https://bugs.webkit.org/show_bug.cgi?id=117512
271
272         Reviewed by Darin Adler.
273
274         * WebKit.order: Remove the memoryInfoEnabled entry.
275         * WebView/WebPreferenceKeysPrivate.h: Remove WebKitMemoryInfoEnabledPreferenceKey.
276         * WebView/WebPreferences.mm: Remove memoryInfoEnabled, setMemoryInfoEnabled methods.
277         (+[WebPreferences initialize]): Don't set the default value for the WebKitMemoryInfoEnabledPreferenceKey, the preference is being removed.
278         * WebView/WebPreferencesPrivate.h: Remove memoryInfoEnabled, setMemoryInfoEnabled method declarations.
279         * WebView/WebView.mm:
280         (-[WebView _preferencesChanged:]): Remove the call to Settings::setMemoryInfoEnabled, the setting is being removed.
281
282 2013-06-06  Timothy Hatcher  <timothy@apple.com>
283
284         Update the framework bundle identifier for the Web Inspector.
285
286         Reviewed by Mark Rowe.
287
288         * WebCoreSupport/WebInspectorClient.mm:
289         (useWebKitWebInspector):
290         (WebInspectorFrontendClient::localizedStringsURL):
291         (-[WebInspectorWindowController inspectorPagePath]):
292
293 2013-06-05  Bear Travis  <betravis@adobe.com>
294
295         [CSS Exclusions][CSS Shapes] Split CSS Exclusions & Shapes compile & runtime flags
296         https://bugs.webkit.org/show_bug.cgi?id=117172
297
298         Reviewed by Alexandru Chiculita.
299
300         Adding the CSS_SHAPES compile flag.
301
302         * Configurations/FeatureDefines.xcconfig:
303
304 2013-06-01  Andreas Kling  <akling@apple.com>
305
306         Remove unnused WebDOMNodeOperationsInternal category.
307         <http://webkit.org/b/117105>
308
309         Reviewed by Ryosuke Niwa.
310
311         _subresourceURLs had no clients.
312
313         * DOM/WebDOMOperations.mm:
314
315 2013-06-01  Andreas Kling  <akling@apple.com>
316
317         Move Node::hasID() and hasClass() to Element.
318         <http://webkit.org/b/117104>
319
320         Reviewed by Ryosuke Niwa.
321
322         * WebView/WebRenderLayer.mm:
323         (+[WebRenderLayer nameForLayer:]):
324
325 2013-05-31  Stephanie Lewis  <slewis@apple.com>
326
327         Update low memory handler to use new memory pressure notifications on new OS versions.
328         <rdar://problem/14027095> 
329
330         Reviewed by Mark Rowe.
331
332         * WebCoreSupport/WebSystemInterface.mm:
333         (InitWebCoreSystemInterface):
334
335 2013-05-29  Jeffrey Pfau  <jpfau@apple.com>
336
337         [Mac] Enable cache partitioning and the public suffix list on 10.8
338         <rdar://problem/13679019>
339
340         Rubber-stamped by David Kilzer.
341
342         * Configurations/FeatureDefines.xcconfig:
343
344 2013-05-29  Joseph Pecoraro  <pecoraro@apple.com>
345
346         Web Inspector: get rid of obsolete InspectorFrontendHost.hiddenPanels()
347         https://bugs.webkit.org/show_bug.cgi?id=60152
348
349         Reviewed by Andreas Kling.
350
351         * WebCoreSupport/WebInspectorClient.mm:
352
353 2013-05-28  Joseph Pecoraro  <pecoraro@apple.com>
354
355         Drag to move DOM nodes does not work
356         https://bugs.webkit.org/show_bug.cgi?id=116865
357
358         Do not block drag events on the WebKit 1 Web Inspector WebView.
359
360         Reviewed by Timothy Hatcher.
361
362         * WebCoreSupport/WebInspectorClient.mm:
363
364 2013-05-28  Andreas Kling  <akling@apple.com>
365
366         Document::setFocusedNode() should be setFocusedElement().
367         <http://webkit.org/b/116857>
368
369         Reviewed by Antti Koivisto.
370
371         * WebView/WebHTMLView.mm:
372         (-[WebHTMLView clearFocus]):
373         (-[WebHTMLView becomeFirstResponder]):
374
375 2013-05-25  Andreas Kling  <akling@apple.com>
376
377         Remove Document::getFocusableNodes().
378         <http://webkit.org/b/116773>
379
380         Reviewed by Joseph Pecoraro.
381
382         Remove the private _focusableNodes API on DOMDocument, it has no clients.
383
384         * DOM/WebDOMOperations.mm:
385         * DOM/WebDOMOperationsPrivate.h:
386
387 2013-05-25  Simon Fraser  <simon.fraser@apple.com>
388
389         Unprefix Page Visibility API
390         https://bugs.webkit.org/show_bug.cgi?id=102340
391
392         Reviewed by Tim Horton.
393
394         Renaming of the "preview" state to "unloaded".
395
396         * WebView/WebView.mm:
397         * WebView/WebViewPrivate.h:
398
399 2013-05-25  Dan Bernstein  <mitz@apple.com>
400
401         <rdar://problem/13924889> -webView:didPerformClientRedirectFromURL:toURL:inFrame: should be given the redirecting URL as the “from” URL
402         https://bugs.webkit.org/show_bug.cgi?id=116733
403
404         Reviewed by Adele Peterson.
405
406         By the time the history controller calls updateGlobalHistoryRedirectLinks(), the document
407         loader already reflects the destination URL. In order to be able to provide the immediate
408         source URL to the delegate, we make WebFrame track a URL and provisional URL, updating them
409         in response to FrameLoader callbacks in exactly the same way WebFrameProxy maintains its
410         m_url and m_provisionalURL member variables.
411
412         * WebCoreSupport/WebFrameLoaderClient.mm:
413         (WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad): Update
414         provisionalURL.
415         (WebFrameLoaderClient::dispatchDidChangeLocationWithinPage): Update url.
416         (WebFrameLoaderClient::dispatchDidPushStateWithinPage): Ditto.
417         (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage): Ditto.
418         (WebFrameLoaderClient::dispatchDidPopStateWithinPage): Ditto.
419         (WebFrameLoaderClient::dispatchDidStartProvisionalLoad): Update provisionalURL.
420         (WebFrameLoaderClient::dispatchDidCommitLoad): Update URL and provisionalURL.
421         (WebFrameLoaderClient::dispatchDidFailProvisionalLoad): Clear provisionalURL.
422         (WebFrameLoaderClient::dispatchDidFailLoad): Added an assertion.
423         (WebFrameLoaderClient::dispatchDidFinishLoad): Ditto.
424         (WebFrameLoaderClient::updateGlobalHistoryRedirectLinks): Pass the last committed URL as the
425         source, rather than clientRedirectSourceForHistory().
426         * WebView/WebFrameInternal.h: Added url and provisionalURL ivars to WebFramePrivate.
427
428 2013-05-24  Anders Carlsson  <andersca@apple.com>
429
430         Remove using namespace std from Mac WebKit1
431         https://bugs.webkit.org/show_bug.cgi?id=116747
432
433         Reviewed by Sam Weinig.
434
435         Use explicit std:: qualifiers instead.
436
437         * History/BinaryPropertyList.cpp:
438         (IntegerArray::deletedValueSize):
439         (BinaryPropertyListPlan::invalidObjectReference):
440         (bytesNeeded):
441         * History/WebHistory.mm:
442         (-[WebHistoryPrivate orderedLastVisitedDays]):
443         (WebHistoryWriter::WebHistoryWriter):
444         * History/WebHistoryItem.mm:
445         (-[WebHistoryItem initFromDictionaryRepresentation:]):
446         * Plugins/Hosted/NetscapePluginHostManager.mm:
447         (WebKit::NetscapePluginHostManager::instantiatePlugin):
448         * Plugins/Hosted/NetscapePluginHostProxy.mm:
449         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
450         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
451         (WebKit::NetscapePluginInstanceProxy::wheelEvent):
452         (WebKit::NetscapePluginInstanceProxy::print):
453         (WebKit::NetscapePluginInstanceProxy::snapshot):
454         (WebKit::NetscapePluginInstanceProxy::loadURL):
455         (WebKit::NetscapePluginInstanceProxy::createBindingsInstance):
456         * Plugins/Hosted/ProxyInstance.mm:
457         (WebKit::ProxyInstance::invoke):
458         (WebKit::ProxyInstance::supportsInvokeDefaultMethod):
459         (WebKit::ProxyInstance::supportsConstruct):
460         (WebKit::ProxyInstance::getPropertyNames):
461         (WebKit::ProxyInstance::methodNamed):
462         (WebKit::ProxyInstance::fieldNamed):
463         (WebKit::ProxyInstance::fieldValue):
464         (WebKit::ProxyInstance::setFieldValue):
465         * Plugins/WebBasePluginPackage.mm:
466         (-[WebBasePluginPackage supportsExtension:]):
467         (-[WebBasePluginPackage MIMETypeForExtension:]):
468         * Plugins/WebNetscapePluginStream.mm:
469         (WebNetscapePluginStream::deliverData):
470         * Plugins/WebNetscapePluginView.mm:
471         (PluginTimer::start):
472         (-[WebNetscapePluginView _postURL:target:len:buf:file:notifyData:sendNotification:allowHeaders:]):
473         * WebCoreSupport/WebFrameLoaderClient.mm:
474         * WebView/WebFrame.mm:
475         * WebView/WebHTMLView.mm:
476         (-[WebHTMLView _adjustedBottomOfPageWithTop:bottom:limit:]):
477         * WebView/WebTextCompletionController.mm:
478         (-[WebTextCompletionController _placePopupWindow:]):
479
480 2013-05-24  Anders Carlsson  <andersca@apple.com>
481
482         Move history property list writer to WebKit
483         https://bugs.webkit.org/show_bug.cgi?id=116746
484
485         Reviewed by Tim Horton.
486
487         Move WebCore history files to WebKit since they're only used by WebKit now.
488
489         * History/BinaryPropertyList.cpp: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.cpp.
490         * History/BinaryPropertyList.h: Renamed from Source/WebCore/platform/cf/BinaryPropertyList.h.
491         * History/HistoryPropertyList.cpp: Renamed from Source/WebCore/history/cf/HistoryPropertyList.cpp.
492         * History/HistoryPropertyList.h: Renamed from Source/WebCore/history/cf/HistoryPropertyList.h.
493         * History/WebHistory.mm:
494
495 2013-05-24  Christophe Dumez  <ch.dumez@sisa.samsung.com>
496
497         Remove custom code for webkitAudioContext global constructor getter
498         https://bugs.webkit.org/show_bug.cgi?id=116530
499
500         Reviewed by Geoffrey Garen.
501
502         Use RuntimeEnabledFeatures instead of Settings to toggle Web Audio support.
503
504         * WebView/WebView.mm:
505         (-[WebView _preferencesChanged:]):
506
507 2013-05-23  Anders Carlsson  <andersca@apple.com>
508
509         Crash in convertMainResourceLoadToDownload when downloading file by option-return
510         https://bugs.webkit.org/show_bug.cgi?id=116451
511
512         Reviewed by Andreas Kling.
513
514         If the main resource loader is null, create a new download instead since there's no existing loader to convert.
515
516         * WebCoreSupport/WebFrameLoaderClient.mm:
517         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
518
519 2013-05-22  Simon Fraser  <simon.fraser@apple.com>
520
521         Fix issues with focus rings on search fields
522         https://bugs.webkit.org/show_bug.cgi?id=116591
523
524         Reviewed by Darin Adler.
525         
526         In WebKit1, focus rings didn't render correctly on some OSes until
527         some other control drew a focus ring, which changes internal AppKit state
528         on the focused view. Fix by overriding an internal AppKit method to always
529         disable AppKit's "automatic" focus ring drawing.
530
531         * WebView/WebHTMLView.mm:
532         (-[WebHTMLView _automaticFocusRingDisabled]):
533
534 2013-05-20  David Kilzer  <ddkilzer@apple.com>
535
536         Synchronize FeatureDefines.xcconfig
537
538         * Configurations/FeatureDefines.xcconfig: Add a newline to the
539         end of the file.
540
541 2013-05-19  Anders Carlsson  <andersca@apple.com>
542
543         Remove link prerendering code
544         https://bugs.webkit.org/show_bug.cgi?id=116415
545
546         Reviewed by Darin Adler.
547
548         This code was only used by Chromium and is dead now.
549
550         * Configurations/FeatureDefines.xcconfig:
551
552 2013-05-19  Anders Carlsson  <andersca@apple.com>
553
554         Remove ChromeClient::webView()
555         https://bugs.webkit.org/show_bug.cgi?id=116054
556
557         Reviewed by Darin Adler.
558
559         This blatantly horrible layer violation was only used to know if a ChromeClient is an empty
560         client or not. We already have a (slightly less horrible) way to do that.
561
562         * WebCoreSupport/WebChromeClient.h:
563         (WebChromeClient):
564
565 2013-05-17  Anders Carlsson  <andersca@apple.com>
566
567         Accessing null function pointers is bad.
568
569         * WebCoreSupport/WebFrameLoaderClient.mm:
570
571 2013-05-17  Anders Carlsson  <andersca@apple.com>
572
573         Make kit(Frame*) more robust
574         https://bugs.webkit.org/show_bug.cgi?id=116324
575
576         Reviewed by Darin Adler.
577
578         Check that the frame loader's client isn't the EmptyFrameLoaderClient (or a subclass thereof)
579         before casting to WebFrameLoaderClient.
580
581         * WebView/WebFrame.mm:
582         (kit):
583
584 2013-05-17  Anders Carlsson  <andersca@apple.com>
585
586         Move the policy function to WebFramePolicyListener
587         https://bugs.webkit.org/show_bug.cgi?id=116323
588
589         Reviewed by Darin Adler.
590
591         There's no need for the WebFrameLoaaderClient to hold on to the policy function,
592         so move it to WebFramePolicyListener. This gets rid of another WebFrameLoaderClient cast.
593
594         * WebCoreSupport/WebFrameLoaderClient.mm:
595         (WebFrameLoaderClient::setUpPolicyListener):
596         Pass the policy function when creating the WebFramePolicyListener object.
597
598 2013-05-17  Anders Carlsson  <andersca@apple.com>
599
600         WebFramePolicyListener should keep its Frame in a RefPtr
601         https://bugs.webkit.org/show_bug.cgi?id=116322
602
603         Reviewed by Darin Adler.
604
605         * WebCoreSupport/WebFrameLoaderClient.mm:
606         (-[WebFramePolicyListener initWithWebCoreFrame:]):
607         No need to ref the frame, the RefPtr does that for us.
608
609         (-[WebFramePolicyListener invalidate]):
610         Just set the frame to null.
611
612         (-[WebFramePolicyListener dealloc]):
613         Remove call to deref, that's done automatically now.
614
615         (-[WebFramePolicyListener finalize]):
616         Remove this method. (We could have kept it just for the assertion but I didn't think that was necessary).
617
618         (-[WebFramePolicyListener receivedPolicyDecision:):
619         Use release() to transfer ownership.
620
621 2013-05-17  Anders Carlsson  <andersca@apple.com>
622
623         Reduce number of WebFrameLoaderClient static casts in WebKit
624         https://bugs.webkit.org/show_bug.cgi?id=116320
625
626         Reviewed by Antti Koivisto.
627
628         We already have a function to return a WebFrame from a WebCore::Frame, use it.
629
630         * DOM/WebDOMOperations.mm:
631         (WebFrameFilter::shouldIncludeSubframe):
632         * WebView/WebDataSource.mm:
633         (-[WebDataSource webFrame]):
634
635 2013-05-16  Commit Queue  <commit-queue@webkit.org>
636
637         Unreviewed, rolling out r150034.
638         http://trac.webkit.org/changeset/150034
639         https://bugs.webkit.org/show_bug.cgi?id=116257
640
641         This work around doesn't work due to another bug NSUndoManager
642         has (Requested by rniwa on #webkit).
643
644         * WebCoreSupport/WebEditorClient.mm:
645         (WebEditorClient::registerUndoOrRedoStep):
646
647 2013-05-16  Tim Horton  <timothy_horton@apple.com>
648
649         PDFPlugins don't load when plugins are disabled, but they should
650         https://bugs.webkit.org/show_bug.cgi?id=75790
651         <rdar://problem/11650197>
652
653         Reviewed by Anders Carlsson.
654
655         * Plugins/WebBasePluginPackage.mm:
656         (-[WebBasePluginPackage getPluginInfoFromPLists]):
657         * Plugins/WebNetscapePluginPackage.mm:
658         (-[WebNetscapePluginPackage getPluginInfoFromResources]):
659         Nothing loaded via WebBasePluginPackage or WebNetscapePluginPackage
660         is an application plugin.
661
662         * WebView/WebFrame.mm:
663         (-[WebFrame _canProvideDocumentSource]):
664         Previously, this caller depended on pluginData() returning null if
665         plug-ins were disabled. Since that is no longer the case, we have to
666         check if we can use plug-ins, and otherwise ignore non-application-plug-ins.
667
668 2013-05-16  Andreas Kling  <akling@apple.com>
669
670         Page::chrome() should return a reference.
671         <http://webkit.org/b/116185>
672
673         Reviewed by Anders Carlsson.
674
675 2013-05-16  Dan Bernstein  <mitz@apple.com>
676
677         -webView:updateHistoryTitle:forURL: does not pass a frame to the delegate
678         https://bugs.webkit.org/show_bug.cgi?id=116243
679
680         Reviewed by Anders Carlsson.
681
682         Added a WebFrame parameter to the delegate method.
683
684         * WebCoreSupport/WebFrameLoaderClient.mm:
685         (WebFrameLoaderClient::setTitle): Pass the frame to the delegate. Maintain
686         compatibility with clients that implement the old delegate method that
687         doesn’t take a frame.
688         * WebView/WebDelegateImplementationCaching.h:
689         (WebHistoryDelegateImplementationCache): Added a field to cache the
690         implementation of the old delegate method.
691         * WebView/WebHistoryDelegate.h: Changed the signature of the delegate method.
692         * WebView/WebView.mm:
693         (-[WebView _cacheHistoryDelegateImplementations]): Cache the implementation
694         of the new delegate method, but also check for the old one.
695
696 2013-05-16  Simon Fraser  <simon.fraser@apple.com>
697
698         Re-land r150168 with some OS version guards.
699
700         * WebView/WebFrameView.mm:
701         (-[WebFrameView drawRect:]):
702         (-[WebFrameView wantsUpdateLayer]):
703         (-[WebFrameView updateLayer]):
704
705 2013-05-16  Commit Queue  <commit-queue@webkit.org>
706
707         Unreviewed, rolling out r150168.
708         http://trac.webkit.org/changeset/150168
709         https://bugs.webkit.org/show_bug.cgi?id=116214
710
711         broke the world on Mountain Lion (Requested by thorton on
712         #webkit).
713
714         * WebView/WebFrameView.mm:
715         (-[WebFrameView drawRect:]):
716
717 2013-05-15  Simon Fraser  <simon.fraser@apple.com>
718
719         Avoid backing store for the WebFrameView's layer when the WebView is layer-backed
720         https://bugs.webkit.org/show_bug.cgi?id=116172
721
722         Reviewed by Tim Horton.
723
724         When the WebView is layer-backed, AppKit will create a layer with backing store for
725         the WebFrameView because it implements drawRect:. However, this method only paints
726         when there is no documentView, so this layer’s backing store is wasteful.
727
728         We can avoid allocation of this backing store by implementing -wantsUpdateLayer
729         and -updateLayer, and setting the view’s backgroundColor.
730
731         * WebView/WebFrameView.mm:
732         (-[WebFrameView wantsUpdateLayer]):
733         (-[WebFrameView updateLayer]):
734
735 2013-05-13  Anders Carlsson  <andersca@apple.com>
736
737         Frame::editor() should return a reference
738         https://bugs.webkit.org/show_bug.cgi?id=116037
739
740         Reviewed by Darin Adler.
741
742         * WebView/WebFrame.mm:
743         (-[WebFrame _selectedString]):
744         (-[WebFrame _firstRectForDOMRange:]):
745         (-[WebFrame _markDOMRange]):
746         (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
747         (-[WebFrame _setTypingStyle:withUndoAction:]):
748         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
749         * WebView/WebHTMLRepresentation.mm:
750         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]):
751         * WebView/WebHTMLView.mm:
752         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
753         (-[WebHTMLView _shouldDeleteRange:]):
754         (-[WebHTMLView _canEdit]):
755         (-[WebHTMLView _canEditRichly]):
756         (-[WebHTMLView _insertOrderedList]):
757         (-[WebHTMLView _insertUnorderedList]):
758         (-[WebHTMLView _canIncreaseSelectionListLevel]):
759         (-[WebHTMLView _canDecreaseSelectionListLevel]):
760         (-[WebHTMLView _increaseSelectionListLevel]):
761         (-[WebHTMLView _increaseSelectionListLevelOrdered]):
762         (-[WebHTMLView _increaseSelectionListLevelUnordered]):
763         (-[WebHTMLView _decreaseSelectionListLevel]):
764         (-[WebHTMLView Editor::coreCommandBySelector:]):
765         (-[WebHTMLView Editor::coreCommandByName:]):
766         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
767         (-[WebHTMLView becomeFirstResponder]):
768         (-[WebHTMLView _selectionStartFontAttributesAsRTF]):
769         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
770         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
771         (-[WebHTMLView checkSpelling:]):
772         (-[WebHTMLView showGuessPanel:]):
773         (-[WebHTMLView toggleBaseWritingDirection:]):
774         (-[WebHTMLView changeBaseWritingDirection:]):
775         (-[WebHTMLView _changeBaseWritingDirectionTo:]):
776         (-[WebHTMLView _updateFontPanel]):
777         (-[WebHTMLView markedRange]):
778         (-[WebHTMLView hasMarkedText]):
779         (-[WebHTMLView unmarkText]):
780         (-[WebHTMLView setMarkedText:selectedRange:]):
781         (-[WebHTMLView doCommandBySelector:]):
782         (-[WebHTMLView insertText:]):
783         (-[WebHTMLView _updateSelectionForInputManager]):
784         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
785         (-[WebHTMLView setMarkedTextMatchesAreHighlighted:]):
786         (-[WebHTMLView markedTextMatchesAreHighlighted]):
787         (-[WebHTMLView _findString:options:]):
788         * WebView/WebView.mm:
789         (-[WebView _executeCoreCommandByName:value:]):
790         (-[WebView editableDOMRangeForPoint:]):
791         (-[WebView setEditable:]):
792         (-[WebView deleteSelection]):
793         (-[WebView applyStyle:]):
794         (-[WebView typingAttributes]):
795         (-[WebView _simplifyMarkup:endNode:]):
796         (-[WebView handleAcceptedAlternativeText:]):
797
798 2013-05-15  Darin Adler  <darin@apple.com>
799
800         [Mac] Remove the ClipboardMac class and header file
801         https://bugs.webkit.org/show_bug.cgi?id=116165
802
803         Reviewed by Anders Carlsson.
804
805         * WebCoreSupport/WebDragClient.mm: Import Clipboard.h instead of ClipboardMac.h.
806
807 2013-05-15  Darin Adler  <darin@apple.com>
808
809         [Mac] Thin out the ClipboardMac class and header file to prepare for deleting them
810         https://bugs.webkit.org/show_bug.cgi?id=116159
811
812         Reviewed by Andreas Kling.
813
814         * WebCoreSupport/WebDragClient.mm:
815         (WebDragClient::willPerformDragSourceAction): Changed to get the pasteboard name
816         without going through the ClipboardMac class.
817         (WebDragClient::startDrag): Ditto.
818
819 2013-05-14  Beth Dakin  <bdakin@apple.com>
820
821         Printing in 1Password app is broken with screen fonts disabled
822         https://bugs.webkit.org/show_bug.cgi?id=116133
823         -and corresponding-
824         <rdar://problem/13162981>
825
826         Reviewed by Anders Carlsson.
827
828         Return YES from [WebPreferences screenFontSubstitutionEnabled] for versions of the 
829         1Password app that were linked on or before MountainLion.
830
831         * WebView/WebPreferences.mm:
832         (needsScreenFontsEnabledQuirk):
833         (-[WebPreferences screenFontSubstitutionEnabled]):
834
835 2013-05-13  Dan Bernstein  <mitz@apple.com>
836
837         Make -[WebNavigationData url] the destination of the navigation
838         https://bugs.webkit.org/show_bug.cgi?id=114904
839
840         Reviewed by Dave Kilzer.
841
842         * WebCoreSupport/WebFrameLoaderClient.mm:
843         (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with the
844         current URL, not the original request URL.
845
846 2013-05-13  Anders Carlsson  <andersca@apple.com>
847
848         Remove ChromeClient::willPopupMenu
849         https://bugs.webkit.org/show_bug.cgi?id=116063
850
851         Reviewed by Andreas Kling.
852
853         ChromeClient::willPopupMenu is only called in one place from WebKit, so just move the function to the call site.
854
855         * WebCoreSupport/PopupMenuMac.mm:
856         (PopupMenuMac::show):
857         * WebCoreSupport/WebChromeClient.h:
858         * WebCoreSupport/WebChromeClient.mm:
859
860 2013-05-12  Timothy Hatcher  <timothy@apple.com>
861
862         Add support for updating the Web Inspector toolbar height.
863
864         https://bugs.webkit.org/show_bug.cgi?id=115996
865
866         Reviewed by Joseph Pecoraro and Benjamin Poulain.
867
868         * WebCoreSupport/WebInspectorClient.h:
869         * WebCoreSupport/WebInspectorClient.mm:
870         (WebInspectorFrontendClient::setToolbarHeight):
871
872 2013-05-13  Ryosuke Niwa  <rniwa@webkit.org>
873
874         Sometimes NSUndoManager can get into an inconsistent state
875         https://bugs.webkit.org/show_bug.cgi?id=116050
876
877         Reviewed by Enrica Casucci.
878
879         Always group undo items to work around a bug in NSUndoManager that manifests
880         when we call removeAllActionsWithTarget.
881
882         * WebCoreSupport/WebEditorClient.mm:
883         (WebEditorClient::registerUndoOrRedoStep):
884
885 2013-05-13  Zalan Bujtas  <zalan@apple.com>
886
887         WebProcess consuming very high CPU on linkedin.com
888         https://bugs.webkit.org/show_bug.cgi?id=115601
889
890         Reviewed by Andreas Kling.
891
892         Disable WEB_TIMING_MINIMAL.
893         Turn off window.performance and performance.now(). Some JS frameworks expect
894         additional Web Timing APIs, when performance.now() is available.
895
896         * Configurations/FeatureDefines.xcconfig:
897
898 2013-05-13  Darin Adler  <darin@apple.com>
899
900         [Mac] Layer-backed WebViews draw their background color even when setDrawsBackground:NO was called
901         https://bugs.webkit.org/show_bug.cgi?id=116014
902         <rdar://problem/12781227>
903
904         Reviewed by Dan Bernstein.
905
906         * WebView/WebFrame.mm:
907         (-[WebFrame _updateBackgroundAndUpdatesWhileOffscreen]): Remove calls to setBackgroundColor: and
908         setDrawsBackground: on the document view. These were added to support a hypothetical document view
909         that wanted to draw its background like WebHTMLView does, but this was never communicated as a
910         document view protocol, formal or informal, and it's unlikely that it was ever used. The bug was
911         caused because there is an -[NSView setDrawsBackground:] method, probably an internal one, and we
912         were calling it unintentionally on a WebHTMLView.
913
914 2013-05-12  Anders Carlsson  <andersca@apple.com>
915
916         Stop including UnusedParam.h
917         https://bugs.webkit.org/show_bug.cgi?id=116003
918
919         Reviewed by Sam Weinig.
920
921         UnusedParam.h is empty now so there's no need to include it anymore.
922
923         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
924         * WebView/WebDashboardRegion.mm:
925         * WebView/WebFullScreenController.mm:
926
927 2013-05-12  Andreas Kling  <akling@apple.com>
928
929         Unload event listeners should prevent Safari from insta-killing the web process on last tab close.
930         <http://webkit.org/b/115988>
931         <rdar://problem/13870943>
932
933         Reviewed by Anders Carlsson.
934
935         * WebCoreSupport/WebChromeClient.h:
936         * WebCoreSupport/WebChromeClient.mm:
937         (WebChromeClient::enableSuddenTermination):
938         (WebChromeClient::disableSuddenTermination):
939
940 2013-05-10  Brian J. Burg  <burg@cs.washington.edu>
941
942         Web Inspector: Implement WK2 version of WebInspectorFrontendClient::save
943         https://bugs.webkit.org/show_bug.cgi?id=115564
944
945         Reviewed by Benjamin Poulain.
946
947         Clean up save() and append() implementations.
948
949         * WebCoreSupport/WebInspectorClient.h:
950         * WebCoreSupport/WebInspectorClient.mm:
951         (WebInspectorFrontendClient::save):
952         (WebInspectorFrontendClient::append):
953
954 2013-05-10  Laszlo Gombos  <l.gombos@samsung.com>
955
956         Remove Mac OS X Leopard (10.5) support
957         https://bugs.webkit.org/show_bug.cgi?id=107964
958
959         Reviewed by Ryosuke Niwa.
960
961         Removed the code for 10.5 and removed if-def for 10.6.
962
963         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
964         * Misc/WebKitErrors.m:
965         (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]):
966         * WebCoreSupport/WebSystemInterface.mm:
967         (InitWebCoreSystemInterface):
968         * WebView/WebClipView.mm:
969         (-[WebClipView _immediateScrollToPoint:]):
970         * WebView/WebFrameView.mm:
971         (-[WebFrameView initWithFrame:]):
972         * WebView/WebView.mm:
973
974 2013-05-07  Mark Rowe  <mrowe@apple.com>
975
976         <rdar://problem/13633007> WebKit and others fail to build headers due to build root dependency
977
978         Reviewed by Sam Weinig.
979
980         * Configurations/WebKit.xcconfig: Look for WebCore's headers within the SDK if we're building against one.
981
982 2013-05-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
983
984         HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance
985         https://bugs.webkit.org/show_bug.cgi?id=115646
986
987         Reviewed by Darin Adler.
988
989         * Plugins/Hosted/NetscapePluginHostProxy.mm:
990         (WebKit::NetscapePluginHostProxy::pluginInstance):
991         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
992         (WebKit::NetscapePluginInstanceProxy::cancelStreamLoad):
993             Updated accordingly to new HashMap<.., RefPtr>::get() semantics.
994
995 2013-05-04  Dean Jackson  <dino@apple.com>
996
997         Animations and Transitions should not start when globally suspended
998         https://bugs.webkit.org/show_bug.cgi?id=114915
999
1000         Reviewed by Sam Weinig.
1001
1002         The WebView private API cssAnimationsSuspended did not necessarily
1003         reflect the reality of the Frame's AnimationController value because it
1004         was caching rather than asking directly. While the WebCore part of this
1005         patch ensured loading the Document wouldn't resume all animations, it
1006         is still better to ask directly.
1007
1008         * WebView/WebView.mm:
1009         (-[WebView cssAnimationsSuspended]): Call into AnimationController.
1010         (-[WebView setCSSAnimationsSuspended:]): Ditto.
1011         * WebView/WebViewData.h: Remove cssAnimationsSuspended boolean.
1012         * WebView/WebViewData.mm: Ditto.
1013         (-[WebViewPrivate init]):
1014
1015 2013-05-04  Sam Weinig  <sam@webkit.org>
1016
1017         Move PopupMenuMac and SearchPopupMenuMac to Source/WebKit/mac
1018         matching where they are in WebKit2.
1019
1020         Reviewed by Anders Carlsson.
1021
1022         * WebCoreSupport/PopupMenuMac.h: Copied from WebCore/platform/mac/PopupMenuMac.h.
1023         * WebCoreSupport/PopupMenuMac.mm: Copied from WebCore/platform/mac/PopupMenuMac.mm.
1024         * WebCoreSupport/SearchPopupMenuMac.h: Copied from WebCore/platform/mac/SearchPopupMenuMac.h.
1025         * WebCoreSupport/SearchPopupMenuMac.mm: Copied from WebCore/platform/mac/SearchPopupMenuMac.mm.
1026         * WebCoreSupport/WebChromeClient.mm:
1027
1028 2013-05-04  Anders Carlsson  <andersca@apple.com>
1029
1030         Get rid of -[NSMutableDictionary _webkit_setObject:forUncopiedKey:]
1031         https://bugs.webkit.org/show_bug.cgi?id=115592
1032
1033         Reviewed by Beth Dakin.
1034
1035         Using CFDictionarySetValue to set a key without having to copy it is not supported. Use NSMapTable with strong pointers instead.
1036
1037         * Misc/WebNSDictionaryExtras.h:
1038         * Misc/WebNSDictionaryExtras.m:
1039         * Panels/WebPanelAuthenticationHandler.h:
1040         (NSURLAuthenticationChallenge):
1041         * Panels/WebPanelAuthenticationHandler.m:
1042         (-[WebPanelAuthenticationHandler init]):
1043         (-[WebPanelAuthenticationHandler enqueueChallenge:forWindow:]):
1044         (-[WebPanelAuthenticationHandler tryNextChallengeForWindow:]):
1045         (-[WebPanelAuthenticationHandler startAuthentication:window:]):
1046         (-[WebPanelAuthenticationHandler cancelAuthentication:]):
1047         * Plugins/WebNetscapePluginView.h:
1048         * Plugins/WebNetscapePluginView.mm:
1049         (-[WebNetscapePluginView destroyPlugin]):
1050         (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
1051         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
1052         (-[WebNetscapePluginView loadPluginRequest:]):
1053
1054 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
1055
1056         [Mac] WebKit doesn't enable or disable autocorrections when system preferences are changed
1057         https://bugs.webkit.org/show_bug.cgi?id=115463
1058
1059         Reviewed by Darin Adler.
1060
1061         Observe the default notification center for changes to autocorrection preferences.
1062         Note system preferences may also update WebAutomatic* defaults.
1063
1064         * WebView/WebView.mm:
1065         (+[WebView initialize]):
1066         (+[WebView _shouldAutomaticTextReplacementBeEnabled]):
1067         (+[WebView _didChangeAutomaticTextReplacementEnabled:]):
1068         (+[WebView _shouldAutomaticSpellingCorrectionBeEnabled]):
1069         (+[WebView _didChangeAutomaticSpellingCorrectionEnabled:]):
1070         (+[WebView _shouldAutomaticQuoteSubstitutionBeEnabled]):
1071         (+[WebView _shouldAutomaticDashSubstitutionBeEnabled]):
1072         (+[WebView _didChangeAutomaticQuoteSubstitutionEnabled:]):
1073         (+[WebView _didChangeAutomaticDashSubstitutionEnabled:]):
1074
1075 2013-05-01  Benjamin Poulain  <bpoulain@apple.com>
1076
1077         Fix the function names of r149453
1078
1079         Unreviewed.
1080
1081         I forgot to follow one of Darin's review comment. This patch
1082         fixes the function names to follow CF naming conventions.
1083
1084         * WebView/WebHTMLRepresentation.mm:
1085         (newArrayWithStrings):
1086         (newArrayByConcatenatingArrays):
1087         (+[WebHTMLRepresentation supportedMIMETypes]):
1088         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
1089         (+[WebHTMLRepresentation supportedImageMIMETypes]):
1090         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
1091
1092 2013-05-01  Benjamin Poulain  <benjamin@webkit.org>
1093
1094         Simplify WebHTMLRepresentation supportedMIMETypes methods
1095         https://bugs.webkit.org/show_bug.cgi?id=115314
1096
1097         Reviewed by Darin Adler.
1098
1099         The initialization was surprisingly complex because of DEFINE_STATIC_LOCAL.
1100         First, a new pointer was allocated on the heap with fast malloc (for RetainPtr<NSArray>).
1101         Then a new NSMutableArray was allocated but immediately put on the autorelease pool.
1102         Finally, that array was retained by the RetainPtr.
1103
1104         This patch changes the code to only leak the NSMutableArray memory. There
1105         is no fastMalloc, nor any use of the autorelease pool.
1106
1107         * WebView/WebHTMLRepresentation.mm:
1108         (createArrayWithStrings):
1109         (createArrayByConcatenatingArrays):
1110         (+[WebHTMLRepresentation supportedMIMETypes]):
1111         (+[WebHTMLRepresentation supportedNonImageMIMETypes]):
1112         (+[WebHTMLRepresentation supportedImageMIMETypes]):
1113         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
1114
1115 2013-04-30  Darin Adler  <darin@apple.com>
1116
1117         [Mac] Remove adoptNS/retain pairs, since the two cancel each other out
1118         https://bugs.webkit.org/show_bug.cgi?id=115426
1119
1120         Reviewed by Anders Carlsson.
1121
1122         * Plugins/WebNetscapePluginStream.mm:
1123         (WebNetscapePluginStream::deliverDataToFile): Remove adoptNS and release.
1124
1125 2013-04-30  Geoffrey Garen  <ggaren@apple.com>
1126
1127         Objective-C JavaScriptCore API should publicly support bridging to C
1128         https://bugs.webkit.org/show_bug.cgi?id=115447
1129
1130         Reviewed by Mark Hahnenberg.
1131
1132         * WebView/WebFrame.mm:
1133         (-[WebFrame _javaScriptContextForScriptWorld:]):
1134         * WebView/WebScriptWorld.mm:
1135         (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
1136
1137 2013-04-30  Anders Carlsson  <andersca@apple.com>
1138
1139         More StorageTracker cleanup
1140         https://bugs.webkit.org/show_bug.cgi?id=115429
1141
1142         Reviewed by Andreas Kling.
1143
1144         Call PageGroup::syncLocalStorage directly.
1145
1146         * Storage/WebStorageManager.mm:
1147         (-[WebStorageManager syncLocalStorage]):
1148
1149 2013-04-30  Zalan Bujtas  <zalan@apple.com>
1150
1151         Animations fail to start on http://www.google.com/insidesearch/howsearchworks/thestory/
1152         https://bugs.webkit.org/show_bug.cgi?id=111244
1153
1154         Reviewed by David Kilzer.
1155         
1156         Enable performance.now() as a minimal subset of Web Timing API. 
1157         It returns DOMHighResTimeStamp, a monotonically increasing value representing the 
1158         number of milliseconds from the start of the navigation of the current document.
1159         JS libraries use this API to check against the requestAnimationFrame() timestamp.
1160
1161         * Configurations/FeatureDefines.xcconfig:
1162
1163 2013-04-29  Chris Fleizach  <cfleizach@apple.com>
1164
1165         WEB SPEECH: need to identify the default voice per language
1166         https://bugs.webkit.org/show_bug.cgi?id=115366
1167
1168         Reviewed by Tim Horton.
1169
1170         * WebCoreSupport/WebSystemInterface.mm:
1171         (InitWebCoreSystemInterface):
1172
1173 2013-04-28  Dean Jackson  <dino@apple.com>
1174
1175         [Mac] Disable canvas backing store scaling (HIGH_DPI_CANVAS)
1176         https://bugs.webkit.org/show_bug.cgi?id=115310
1177
1178         Reviewed by Simon Fraser.
1179
1180         Remove ENABLE_HIGH_DPI_CANVAS_macosx.
1181
1182         * Configurations/FeatureDefines.xcconfig:
1183
1184 2013-04-27  Darin Adler  <darin@apple.com>
1185
1186         Move from constructor and member function adoptCF/NS to free function adoptCF/NS.
1187         https://bugs.webkit.org/show_bug.cgi?id=115307
1188
1189         Reviewed by Geoffrey Garen.
1190
1191         This change was done by a global replace followed by compiling and inspecting for
1192         cases that needed to be tweaked by hand.
1193
1194         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1195         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
1196         * Misc/WebNSFileManagerExtras.mm:
1197         (-[NSFileManager _webkit_startupVolumeName]):
1198         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1199         (WebKit::HostedNetscapePluginStream::HostedNetscapePluginStream):
1200         * Plugins/Hosted/NetscapePluginHostManager.mm:
1201         (WebKit::NetscapePluginHostManager::spawnPluginHost):
1202         (WebKit::NetscapePluginHostManager::instantiatePlugin):
1203         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1204         (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
1205         (WebKit::NetscapePluginHostProxy::beginModal):
1206         (WKPCBooleanAndDataReply):
1207         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1208         (WebKit::NetscapePluginInstanceProxy::print):
1209         (WebKit::NetscapePluginInstanceProxy::snapshot):
1210         (WebKit::NetscapePluginInstanceProxy::status):
1211         (WebKit::NetscapePluginInstanceProxy::loadURL):
1212         (WebKit::NetscapePluginInstanceProxy::evaluateJavaScript):
1213         (WebKit::NetscapePluginInstanceProxy::enumerate):
1214         (WebKit::NetscapePluginInstanceProxy::marshalValue):
1215         (WebKit::NetscapePluginInstanceProxy::marshalValues):
1216         (WebKit::NetscapePluginInstanceProxy::demarshalValue):
1217         (WebKit::NetscapePluginInstanceProxy::demarshalValues):
1218         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1219         (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
1220         (-[WebHostedNetscapePluginView createPlugin]):
1221         * Plugins/WebBaseNetscapePluginView.mm:
1222         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
1223         (-[WebBaseNetscapePluginView cacheSnapshot]):
1224         (WebKit::getAuthenticationInfo):
1225         * Plugins/WebBasePluginPackage.mm:
1226         (-[WebBasePluginPackage initWithPath:]):
1227         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
1228         (WebNetscapePluginEventHandlerCarbon::startTimers):
1229         * Plugins/WebNetscapePluginEventHandlerCocoa.mm:
1230         (WebNetscapePluginEventHandlerCocoa::syntheticKeyDownWithCommandModifier):
1231         (WebNetscapePluginEventHandlerCocoa::handleTSMEvent):
1232         * Plugins/WebNetscapePluginPackage.mm:
1233         (-[WebNetscapePluginPackage _initWithPath:]):
1234         * Plugins/WebNetscapePluginStream.mm:
1235         (WebNetscapePluginStream::WebNetscapePluginStream):
1236         (WebNetscapePluginStream::deliverData):
1237         (WebNetscapePluginStream::deliverDataToFile):
1238         (WebNetscapePluginStream::didReceiveData):
1239         * Plugins/WebNetscapePluginView.mm:
1240         (-[WebNetscapePluginView createPlugin]):
1241         (-[WebNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
1242         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
1243         * Storage/WebDatabaseManagerClient.mm:
1244         (WebDatabaseManagerClient::dispatchDidModifyOrigin):
1245         (WebDatabaseManagerClient::dispatchDidModifyDatabase):
1246         * Storage/WebStorageTrackerClient.mm:
1247         (WebStorageTrackerClient::dispatchDidModifyOrigin):
1248         * WebCoreSupport/CorrectionPanel.mm:
1249         (CorrectionPanel::handleAcceptedReplacement):
1250         * WebCoreSupport/WebApplicationCache.mm:
1251         (+[WebApplicationCache originsWithCache]):
1252         * WebCoreSupport/WebFrameLoaderClient.mm:
1253         (WebFrameLoaderClient::didRunInsecureContent):
1254         * WebCoreSupport/WebInspectorClient.mm:
1255         (WebInspectorClient::WebInspectorClient):
1256         (WebInspectorClient::openInspectorFrontend):
1257         * WebView/WebFullScreenController.mm:
1258         (-[WebFullScreenController enterFullScreen:]):
1259         * WebView/WebPDFDocumentExtras.mm:
1260         (allScriptsInPDFDocument):
1261         * WebView/WebPreferences.mm:
1262         (-[WebPreferences initWithIdentifier:]):
1263         (-[WebPreferences initWithCoder:]):
1264         * WebView/WebScriptDebugger.mm:
1265         (WebScriptDebugger::initGlobalCallFrame):
1266         (WebScriptDebugger::callEvent):
1267         * WebView/WebView.mm:
1268         (-[WebView previousValidKeyView]):
1269         Use adoptNS and adoptCF free functions.
1270
1271 2013-04-25  Roger Fong  <roger_fong@apple.com>
1272
1273         Disable sub-pixel layout on mac.
1274         https://bugs.webkit.org/show_bug.cgi?id=114999.
1275
1276         Reviewed by Simon Fraser.
1277
1278         * Configurations/FeatureDefines.xcconfig:
1279
1280 2013-04-26  Simon Fraser  <simon.fraser@apple.com>
1281
1282         Layer-backed WebViews don't repaint content outside the visible area
1283         https://bugs.webkit.org/show_bug.cgi?id=115275
1284
1285         Reviewed by Beth Dakin.
1286
1287         When a client of WebView makes the WebView be layer-backed, then
1288         AppKit propagaes the layer-backing down to the WebHTMLView (but
1289         no further).
1290         
1291         In this situation, we had a bug where content that was not
1292         in the visible content rect would not get repainted, because
1293         WebCore clips repaints to the visible rect.
1294         
1295         Fix by calling ScrollView::setPaintsEntireContents(bool) from
1296         -[WebHTMLView setLayer:], saying that we need
1297         to paint the entire contents if we have a layer.
1298
1299         * WebView/WebHTMLView.mm:
1300         (-[WebHTMLView setLayer:]):
1301
1302 2013-04-25  Chris Fleizach  <cfleizach@apple.com>
1303
1304         WEB SPEECH: language support does not work as expected
1305         https://bugs.webkit.org/show_bug.cgi?id=115119
1306
1307         Reviewed by Alexey Proskuryakov.
1308
1309         * WebCoreSupport/WebSystemInterface.mm:
1310         (InitWebCoreSystemInterface):
1311
1312 2013-04-25  Simon Fraser  <simon.fraser@apple.com>
1313
1314         Build fix for smart compliers.
1315
1316         Reviewed by Tim Horton.
1317         
1318         [NSDictionary dictionaryWithObjectsAndKeys:] returns an NSDictionary,
1319         not a NSMutableDictionary.
1320
1321         * WebCoreSupport/WebEditorClient.mm:
1322         (WebEditorClient::updateSpellingUIWithGrammarString):
1323
1324 2013-04-25  Joseph Pecoraro  <pecoraro@apple.com>
1325
1326         Web Inspector: ConsoleMessage should include line and column number where possible
1327         https://bugs.webkit.org/show_bug.cgi?id=114929
1328
1329         Reviewed by Timothy Hatcher.
1330
1331         * WebCoreSupport/WebChromeClient.h:
1332         * WebCoreSupport/WebChromeClient.mm:
1333         (WebChromeClient::addMessageToConsole):
1334
1335 2013-04-24  Jessie Berlin  <jberlin@apple.com>
1336
1337         Assertion failure (crash in release) attempting to delete database storage in WK1 without
1338         creating a WebView first
1339         https://bugs.webkit.org/show_bug.cgi?id=115065
1340
1341         Reviewed by Brady Eidson.
1342
1343         Make sure the WebPlatformStrategies is initialized before using the WebDatabaseManager.
1344
1345         * Storage/WebDatabaseManager.mm:
1346         (-[WebDatabaseManager init]):
1347         Move the logic from WebKitInitializeDatabasesIfNecessary here, and add a call to
1348         WebPlatformStrategies::initializeIfNecessary.
1349
1350         * Storage/WebDatabaseManagerInternal.h: Removed.
1351
1352         * WebCoreSupport/WebPlatformStrategies.h:
1353         (WebPlatformStrategies):
1354         Change "initialize" to "initalizeIfNecessary".
1355         * WebCoreSupport/WebPlatformStrategies.mm:
1356         (WebPlatformStrategies::initializeIfNecessary):
1357         Only call setPlatformStrategies once.
1358
1359         * WebView/WebView.mm:
1360         (-[WebView _commonInitializationWithFrameName:groupName:]):
1361         Updated for the name change from initialize to initializeIfNecessary.
1362         Instead of calling WebKitInitializeDatabasesIfNecessary, call [WebDatabaseManager
1363         sharedWebDatabaseManager].
1364         (+[WebView _setLoadResourcesSerially:]):
1365         Updated for the name change from initialize to initializeIfNecessary.
1366
1367 2013-04-23  Antoine Quint  <graouts@apple.com>
1368
1369         Initial advance of text runs should be taken into account
1370         https://bugs.webkit.org/show_bug.cgi?id=114949
1371
1372         Reviewed by Darin Adler.
1373
1374         Adding support for new method CTRunGetInitialAdvance in WebKitSystemInterface.
1375
1376         * WebCoreSupport/WebSystemInterface.mm:
1377         (InitWebCoreSystemInterface):
1378
1379 2013-04-22  Benjamin Poulain  <benjamin@webkit.org>
1380
1381         Remove the memory instrumentation code
1382         https://bugs.webkit.org/show_bug.cgi?id=114931
1383
1384         Reviewed by Andreas Kling.
1385
1386         * WebView/WebRenderLayer.mm:
1387
1388 2013-04-18  Andy Estes  <aestes@apple.com>
1389
1390         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
1391         https://bugs.webkit.org/show_bug.cgi?id=114833
1392
1393         Reviewed by David Kilzer.
1394
1395         The Versions app specifies both a background-size and a background
1396         shorthand CSS property, and its UI is broken after r116645 which resets
1397         background-size to 'auto' if the background shorthand property is
1398         specified.
1399
1400         This patch enables the useLegacyBackgroundSizeShorthandBehavior setting
1401         added in r147034 to restore the expected behavior if the embedder is
1402         Versions.app and it was linked against a version of WebKit that had the
1403         legacy behavior.
1404
1405         * Misc/WebKitVersionChecks.h:
1406         * WebView/WebView.mm:
1407         (shouldUseLegacyBackgroundSizeShorthandBehavior):
1408         (-[WebView _commonInitializationWithFrameName:groupName:]):
1409
1410 2013-04-18  Sam Weinig  <sam@webkit.org>
1411
1412         Network Process crashing trying to read in IDNScriptWhiteList.txt
1413         https://bugs.webkit.org/show_bug.cgi?id=114827
1414
1415         Reviewed by Anders Carlsson.
1416
1417         Move IDNScriptWhiteList.txt from WebKit to WebCore, so that the NetworkProcess does not have to link against
1418         WebKit. It was a layering violation for WebCore to be trying to access WebKit resources anyway.
1419
1420         * Resources/IDNScriptWhiteList.txt: Removed.
1421
1422 2013-04-17  Geoffrey Garen  <ggaren@apple.com>
1423
1424         Renamed JSGlobalData to VM
1425         https://bugs.webkit.org/show_bug.cgi?id=114777
1426
1427         Reviewed by Phil Pizlo.
1428
1429         * Misc/WebCoreStatistics.mm:
1430         (+[WebCoreStatistics javaScriptObjectsCount]):
1431         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
1432         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
1433         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
1434         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
1435         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
1436         (+[WebCoreStatistics shouldPrintExceptions]):
1437         (+[WebCoreStatistics setShouldPrintExceptions:]):
1438         (+[WebCoreStatistics memoryStatistics]):
1439         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
1440         * Plugins/Hosted/NetscapePluginHostProxy.mm:
1441         (identifierFromIdentifierRep):
1442         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1443         (LocalObjectMap):
1444         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1445         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1446         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
1447         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
1448         (WebKit::NetscapePluginInstanceProxy::evaluate):
1449         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
1450         * Plugins/Hosted/ProxyInstance.mm:
1451         (WebKit::ProxyRuntimeMethod::create):
1452         (WebKit::ProxyRuntimeMethod::createStructure):
1453         (WebKit::ProxyRuntimeMethod::finishCreation):
1454         (WebKit::ProxyInstance::getPropertyNames):
1455         * Plugins/Hosted/ProxyRuntimeObject.h:
1456         (WebKit::ProxyRuntimeObject::create):
1457         (WebKit::ProxyRuntimeObject::createStructure):
1458         * Plugins/WebNetscapePluginStream.mm:
1459         (WebNetscapePluginStream::wantsAllStreams):
1460         * Plugins/WebNetscapePluginView.mm:
1461         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
1462         (-[WebNetscapePluginView privateBrowsingModeDidChange]):
1463         (-[WebNetscapePluginView setWindowIfNecessary]):
1464         (-[WebNetscapePluginView createPluginScriptableObject]):
1465         (-[WebNetscapePluginView getFormValue:]):
1466         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
1467         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
1468         (-[WebNetscapePluginView loadPluginRequest:]):
1469         (-[WebNetscapePluginView _printedPluginBitmap]):
1470         * Plugins/WebPluginController.mm:
1471         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
1472         (-[WebPluginController stopOnePlugin:]):
1473         (-[WebPluginController destroyOnePlugin:]):
1474         (-[WebPluginController startAllPlugins]):
1475         (-[WebPluginController addPlugin:]):
1476         * WebKit.order:
1477         * WebView/WebScriptDebugDelegate.mm:
1478         (-[WebScriptCallFrame scopeChain]):
1479         (-[WebScriptCallFrame evaluateWebScript:]):
1480         * WebView/WebScriptDebugger.mm:
1481         (WebScriptDebugger::WebScriptDebugger):
1482
1483 2013-04-16  Beth Dakin  <bdakin@apple.com>
1484
1485         Re-name Page::layoutMilestones() to Page::requestedLayoutMilestones()
1486         https://bugs.webkit.org/show_bug.cgi?id=114713
1487
1488         Reviewed by Simon Fraser.
1489
1490         * WebView/WebView.mm:
1491         (-[WebView _layoutMilestones]):
1492
1493 2013-04-15  Sam Weinig  <sam@webkit.org>
1494
1495         Remove more #includes from Frame.h
1496         https://bugs.webkit.org/show_bug.cgi?id=114642
1497
1498         Reviewed by Anders Carlsson.
1499
1500         * WebView/WebFrame.mm:
1501         * WebView/WebHTMLRepresentation.mm:
1502         * WebView/WebView.mm:
1503
1504 2013-04-16  Alexey Proskuryakov  <ap@apple.com>
1505
1506         Remove unused AlternativeTextClient::dismissDictationAlternativeUI
1507         https://bugs.webkit.org/show_bug.cgi?id=114598
1508
1509         Reviewed by Ryosuke Niwa.
1510
1511         * WebCoreSupport/WebAlternativeTextClient.h:
1512         * WebCoreSupport/WebAlternativeTextClient.mm:
1513         * WebView/WebView.mm:
1514         * WebView/WebViewInternal.h:
1515
1516 2013-04-15  Ryosuke Niwa  <rniwa@webkit.org>
1517
1518         REGRESSION(r146025): WebKit applications can't apply underline or strike through
1519         https://bugs.webkit.org/show_bug.cgi?id=114662
1520
1521         Reviewed by Enrica Casucci.
1522
1523         Use -webkit- prefixes to apply underline. There should be no further compatibility issues
1524         since -khtml- was used only internally to pass the information down to WebCore.
1525
1526         Unfortunately, we can't test this code like any other font panel bug.
1527
1528         In the long run, we need to add some abstraction layer around font panel to make this testable
1529         or else we'll keep regressing this feature.
1530
1531         * WebView/WebHTMLView.mm:
1532         (-[WebHTMLView _styleFromFontAttributes:]):
1533         (-[WebHTMLView _styleForAttributeChange:]):
1534
1535 2013-04-15  Anders Carlsson  <andersca@apple.com>
1536
1537         plugins/get-url-beforeunload-destroys-plugin.html crashes in WebKit1
1538         https://bugs.webkit.org/show_bug.cgi?id=114653
1539         <rdar://problem/13659541>
1540
1541         Reviewed by Sam Weinig.
1542
1543         Protect the NetscapePluginInstanceProxy since it can otherwise go away.
1544
1545         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1546         (WebKit::NetscapePluginInstanceProxy::performRequest):
1547
1548 2013-04-14  Sam Weinig  <sam@webkit.org>
1549
1550         Move Mac specific snapshotting code into its own file
1551         https://bugs.webkit.org/show_bug.cgi?id=114597
1552
1553         Reviewed by Andreas Kling.
1554
1555         * WebView/WebHTMLView.mm:
1556         (-[WebHTMLView _selectionDraggingImage]):
1557         (-[WebHTMLView selectionImageForcingBlackText:]):
1558
1559 2013-04-14  Andreas Kling  <akling@apple.com>
1560
1561         Move CSSOM classes to using MutableStylePropertySet over StylePropertySet.
1562         <http://webkit.org/b/114581>
1563
1564         Reviewed by Anders Carlsson.
1565
1566         * WebCoreSupport/WebEditorClient.mm:
1567         (WebEditorClient::shouldApplyStyle):
1568         * WebView/WebFrame.mm:
1569         (-[WebFrame _typingStyle]):
1570
1571 2013-04-10  Sam Weinig  <sam@webkit.org>
1572
1573         Make Frame's ScriptController an OwnPtr and remove the #include
1574         https://bugs.webkit.org/show_bug.cgi?id=114105
1575
1576         Reviewed by Dean Jackson.
1577
1578         * Plugins/Hosted/HostedNetscapePluginStream.mm:
1579         * Plugins/WebNetscapePluginStream.mm:
1580         * Plugins/WebPluginContainerCheck.mm:
1581         * WebCoreSupport/WebGeolocationClient.mm:
1582         * WebCoreSupport/WebInspectorClient.mm:
1583         * WebView/WebFrame.mm:
1584
1585 2013-04-13  Anders Carlsson  <andersca@apple.com>
1586
1587         Add form delegate method that's invoked right before sending a submit event to a form element
1588         https://bugs.webkit.org/show_bug.cgi?id=114575
1589
1590         Reviewed by Dan Bernstein.
1591
1592         * MigrateHeaders.make:
1593         Copy DOMHTMLFormElementInternal.h over to WebKit.
1594
1595         * WebCoreSupport/WebFrameLoaderClient.mm:
1596         (makeFormFieldValuesDictionary):
1597         New helper function that returns the values of a form in dictionary form.
1598
1599         (WebFrameLoaderClient::dispatchWillSendSubmitEvent):
1600         Call the right delegate method.
1601
1602         (WebFrameLoaderClient::dispatchWillSubmitForm):
1603         Use the helper function.
1604
1605         * WebView/WebDelegateImplementationCaching.h:
1606         * WebView/WebDelegateImplementationCaching.mm:
1607         (CallFormDelegate):
1608         Add another overload.
1609
1610         * WebView/WebFormDelegate.h:
1611         * WebView/WebFormDelegate.m:
1612         (-[WebFormDelegate willSendSubmitEventToForm:inFrame:withValues:]):
1613         Add a default implementation.
1614
1615 2013-04-10  Benjamin Poulain  <bpoulain@apple.com>
1616
1617         Mass remove all the empty directories
1618
1619         Rubberstamped by Ryosuke Niwa.
1620
1621         * ForwardingHeaders/wtf/unicode/icu: Removed.
1622
1623 2013-04-08  Anders Carlsson  <andersca@apple.com>
1624
1625         Remove unneeded headers from FrameLoader.h
1626         https://bugs.webkit.org/show_bug.cgi?id=114223
1627
1628         Reviewed by Geoffrey Garen.
1629
1630         Include HistoryController.h from WebCore.
1631
1632         * WebCoreSupport/WebFrameLoaderClient.mm:
1633         * WebView/WebView.mm:
1634
1635 2013-04-09  Geoffrey Garen  <ggaren@apple.com>
1636
1637         Removed bitrotted TimeoutChecker code
1638         https://bugs.webkit.org/show_bug.cgi?id=114336
1639
1640         Reviewed by Alexey Proskuryakov.
1641
1642         This mechanism hasn't worked for a while.
1643
1644         MarkL is working on a new version of this feature with a distinct
1645         implementation.
1646
1647         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1648         (WebKit::NetscapePluginInstanceProxy::evaluate):
1649
1650 2013-04-08  Benjamin Poulain  <benjamin@webkit.org>
1651
1652         Remove HTML Notification
1653         https://bugs.webkit.org/show_bug.cgi?id=114231
1654
1655         Reviewed by Ryosuke Niwa.
1656
1657         * Configurations/FeatureDefines.xcconfig:
1658
1659 2013-04-05  Anders Carlsson  <andersca@apple.com>
1660
1661         Stop building Objective-C bindings for the SVG DOM
1662         https://bugs.webkit.org/show_bug.cgi?id=114076
1663
1664         Reviewed by Geoffrey Garen.
1665
1666         The DOM SVG Objective-C bindings have never been exposed as API, and not building them cuts WebCore build by 10%.
1667
1668         * Configurations/FeatureDefines.xcconfig:
1669         * MigrateHeaders.make:
1670
1671 2013-04-05  Timothy Hatcher  <timothy@apple.com>
1672
1673         Allow the Web Inspector to use WebSQL.
1674
1675         This fixes an exception on load in the Safari Web Inspector.
1676
1677         https://webkit.org/b/114040
1678         rdar://problem/13581422
1679
1680         Reviewed by Anders Carlsson.
1681
1682         * WebCoreSupport/WebInspectorClient.mm:
1683         (-[WebInspectorWindowController webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): Added.
1684
1685 2013-04-02  Timothy Hatcher  <timothy@apple.com>
1686
1687         Provide a user default that can be used to disable docking of the Web Inspector.
1688
1689         The user default is "WebKit Web Inspector Setting - inspectorAttachDisabled".
1690
1691         https://webkit.org/b/113779
1692         rdar://problem/13446021
1693
1694         Reviewed by Joseph Pecoraro.
1695
1696         * WebCoreSupport/WebInspectorClient.h:
1697         (WebInspectorClient::inspectorAttachDisabled): Added.
1698         (WebInspectorClient::setInspectorAttachDisabled): Added.
1699
1700         * WebCoreSupport/WebInspectorClient.mm:
1701         (WebInspectorClient::didResizeMainFrame):
1702         (-[WebInspectorWindowController window]):
1703         (-[WebInspectorWindowController showWindow:]):
1704         Check inspectorAttachDisabled() in places where we attach or update the dock button.
1705
1706 2013-04-02  Alexey Proskuryakov  <ap@apple.com>
1707
1708         [Mac] Remove WKCreateNSURLConnectionDelegateProxy
1709         https://bugs.webkit.org/show_bug.cgi?id=113810
1710
1711         Reviewed by Anders Carlsson.
1712
1713         * WebCoreSupport/WebSystemInterface.mm:
1714         (InitWebCoreSystemInterface):
1715
1716 2013-04-02  Alexey Proskuryakov  <ap@apple.com>
1717
1718         <rdar://problem/13551119> [WK2] Crashes in NetworkProcess when canceling loads
1719         https://bugs.webkit.org/show_bug.cgi?id=113803
1720
1721         Reviewed by Darin Adler.
1722
1723         * WebCoreSupport/WebFrameLoaderClient.mm:
1724         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1725         Just pass nil instead of proxy.
1726
1727 2013-04-01  Ryosuke Niwa  <rniwa@webkit.org>
1728
1729         WebKit/mac shouldn't have code for Mac 10.5 and earlier
1730         https://bugs.webkit.org/show_bug.cgi?id=113746
1731
1732         Reviewed by Darin Adler.
1733
1734         Deleted the code for 10.5 and removed if-defs for 10.6.
1735
1736         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1737         (-[WebHostedNetscapePluginView createPlugin]):
1738         * Plugins/WebBaseNetscapePluginView.mm:
1739         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
1740         * Plugins/WebNetscapePluginView.mm:
1741         (-[WebNetscapePluginView createPlugin]):
1742         (-[WebNetscapePluginView getVariable:forURL:value:length:]):
1743         (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]):
1744         * WebCoreSupport/WebChromeClient.mm:
1745         (WebChromeClient::selectItemWritingDirectionIsNatural):
1746         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection):
1747         * WebCoreSupport/WebEditorClient.mm:
1748         (core):
1749         (WebEditorClient::checkTextOfParagraph):
1750         (WebEditorClient::requestCheckingOfString):
1751         * WebView/WebDynamicScrollBarsView.mm:
1752         (-[WebDynamicScrollBarsView reflectScrolledClipView:]):
1753         * WebView/WebFullScreenController.mm:
1754         (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
1755         * WebView/WebHTMLView.mm:
1756         (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
1757         (-[WebHTMLView _frameOrBoundsChanged]):
1758         (+[WebHTMLView _insertablePasteboardTypes]):
1759         (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):
1760         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
1761         (writingDirectionKeyBindingsEnabled):
1762         (-[WebHTMLView _lookUpInDictionaryFromMenu:]):
1763         (-[WebHTMLView attachRootLayer:]):
1764         * WebView/WebHTMLViewInternal.h:
1765         * WebView/WebPDFDocumentExtras.mm:
1766         * WebView/WebPreferences.mm:
1767         (+[WebPreferences initialize]):
1768         * WebView/WebResourceInternal.h:
1769         * WebView/WebScriptDebugDelegate.h:
1770         * WebView/WebView.mm:
1771         (-[WebView _commonInitializationWithFrameName:groupName:]):
1772         (-[WebView _preferencesChanged:]):
1773         (+[WebView initialize]):
1774         (clientNeedsWebViewInitThreadWorkaround):
1775         (-[WebView validateUserInterfaceItemWithoutDelegate:]):
1776         (-[WebView setGrammarCheckingEnabled:]):
1777         (-[WebView isAutomaticQuoteSubstitutionEnabled]):
1778         (-[WebView isAutomaticLinkDetectionEnabled]):
1779         (-[WebView isAutomaticDashSubstitutionEnabled]):
1780         (-[WebView isAutomaticTextReplacementEnabled]):
1781         (-[WebView isAutomaticSpellingCorrectionEnabled]):
1782         (-[WebView _searchWithSpotlightFromMenu:]):
1783         (WebInstallMemoryPressureHandler):
1784         * WebView/WebViewPrivate.h:
1785
1786 2013-04-01  Tim Horton  <timothy_horton@apple.com>
1787
1788         WebCache should do the normal initialization dance
1789         https://bugs.webkit.org/show_bug.cgi?id=113722
1790         <rdar://problem/13424530>
1791
1792         Reviewed by Anders Carlsson.
1793
1794         In case a WebKit1 client uses WebCache before creating a WebView (or any of the other
1795         initialization-ready classes), we should do the initialization work in WebCache as well.
1796
1797         * Misc/WebCache.mm:
1798         (+[WebCache initialize]):
1799
1800 2013-03-26  Timothy Hatcher  <timothy@apple.com>
1801
1802         Add support for dock-to-right of the Web Inspector in the Mac port.
1803
1804         Unfortunately this requires Safari changes, so it is disabled in the nightly builds.
1805
1806         https://webkit.org/b/113341
1807         rdar://problem/10368152
1808
1809         Reviewed by Joseph Pecoraro.
1810
1811         * Resources/Dock.pdf: Updated.
1812         * WebCoreSupport/WebInspectorClient.h:
1813         (WebInspectorFrontendClient):
1814         * WebCoreSupport/WebInspectorClient.mm:
1815         (WebInspectorFrontendClient::frontendLoaded):
1816         (WebInspectorFrontendClient::attachWindow):
1817         (WebInspectorFrontendClient::setAttachedWindowWidth):
1818         (-[WebInspectorWindowController attachWindow:]):
1819         (-[WebInspectorWindowController attach]):
1820         (-[WebInspectorWindowController detach]):
1821         * WebInspector/WebInspectorFrontend.mm:
1822         (-[WebInspectorFrontend attach]):
1823
1824 2013-03-26  Tim Horton  <timothy_horton@apple.com>
1825
1826         Unreviewed attempted cr-mac build fix.
1827
1828         * WebCoreSupport/WebSystemInterface.mm:
1829         (InitWebCoreSystemInterface):
1830
1831 2013-03-26  Hayato Ito  <hayato@chromium.org>
1832
1833         Allow ShadowContents in HitTests by default.
1834         https://bugs.webkit.org/show_bug.cgi?id=113171
1835
1836         Reviewed by Dimitri Glazkov.
1837
1838         * WebView/WebFrame.mm:
1839         (-[WebFrame elementAtPoint:]):
1840         * WebView/WebHTMLView.mm:
1841         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
1842
1843 2013-03-26  Tim Horton  <timothy_horton@apple.com>
1844
1845         [ca] Tell CA to clean up unused resources if a given WebProcess won't be drawing
1846         https://bugs.webkit.org/show_bug.cgi?id=107539
1847         <rdar://problem/13032692>
1848
1849         Reviewed by Simon Fraser.
1850
1851         Update WebSystemInterface.
1852
1853         * WebCoreSupport/WebSystemInterface.mm:
1854         (InitWebCoreSystemInterface):
1855
1856 2013-03-26  Sergio Villar Senin  <svillar@igalia.com>
1857
1858         Implement overtype mode for editable content
1859         https://bugs.webkit.org/show_bug.cgi?id=112126
1860
1861         Reviewed by Ryosuke Niwa.
1862
1863         Added the OverWrite editing command to the WebCore editing
1864         commands lists.
1865
1866         * WebView/WebHTMLView.mm:
1867         * WebView/WebView.h:
1868         * WebView/WebView.mm:
1869
1870 2013-03-25  Kent Tamura  <tkent@chromium.org>
1871
1872         Rename ENABLE_INPUT_TYPE_DATETIME
1873         https://bugs.webkit.org/show_bug.cgi?id=113254
1874
1875         Reviewed by Kentaro Hara.
1876
1877         Rename ENABLE_INPUT_TYPE_DATETIME to ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE.
1878         Actually I'd like to remove the code, but we shouldn't remove it yet
1879         because we shipped products with it on some platforms.
1880
1881         * Configurations/FeatureDefines.xcconfig:
1882
1883 2013-03-21  Kiran Muppala  <cmuppala@apple.com>
1884
1885         Add runtime setting for hidden page DOM timer throttling and CSS animation suspension
1886         https://bugs.webkit.org/show_bug.cgi?id=112308
1887
1888         Reviewed by Gavin Barraclough.
1889
1890         Add private preference for enabling/disabling hidden page DOM timer
1891         throttling and CSS animation suspension.  The preference should be
1892         disabled by default to avoid compatibility issues.
1893
1894         * WebView/WebPreferenceKeysPrivate.h:
1895         * WebView/WebPreferences.mm:
1896         (+[WebPreferences initialize]):
1897         (-[WebPreferences hiddenPageDOMTimerThrottlingEnabled]):
1898         (-[WebPreferences setHiddenPageDOMTimerThrottlingEnabled:]):
1899         (-[WebPreferences hiddenPageCSSAnimationSuspensionEnabled]):
1900         (-[WebPreferences setHiddenPageCSSAnimationSuspensionEnabled:]):
1901         * WebView/WebPreferencesPrivate.h:
1902         * WebView/WebView.mm:
1903         (-[WebView _preferencesChanged:]):
1904
1905 2013-03-19  Ryosuke Niwa  <rniwa@webkit.org>
1906
1907         Another Mac build fix attempt after r146239.
1908
1909         * WebCoreSupport/WebFrameNetworkingContext.h:
1910         (WebFrameNetworkingContext):
1911
1912 2013-03-19  Ryosuke Niwa  <rniwa@webkit.org>
1913
1914         Mac build fix attempt after r146239.
1915
1916         * WebCoreSupport/WebFrameNetworkingContext.h:
1917
1918 2013-03-19  Sergey Ryazanov  <serya@chromium.org>
1919
1920         Web Inspector: split Console into two entities, a web-facing bound object and page console.
1921         https://bugs.webkit.org/show_bug.cgi?id=111578
1922
1923         Reviewed by Vsevolod Vlasov.
1924
1925         Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
1926
1927         * Misc/WebCoreStatistics.mm:
1928         (+[WebCoreStatistics shouldPrintExceptions]):
1929         (+[WebCoreStatistics setShouldPrintExceptions:]):
1930
1931 2013-03-17  Adam Barth  <abarth@webkit.org>
1932
1933         Legacy CSS vendor prefixes should only work for Dashboard
1934         https://bugs.webkit.org/show_bug.cgi?id=111890
1935
1936         Reviewed by Eric Seidel.
1937
1938         Enable legacy CSS vendor prefixes when we've been asked to turn on
1939         Dashboard compatibility mode.
1940
1941         * WebView/WebView.mm:
1942         (-[WebView _setDashboardBehavior:to:]):
1943
1944 2013-03-16  Pratik Solanki  <psolanki@apple.com>
1945
1946         Disable High DPI Canvas on iOS
1947         https://bugs.webkit.org/show_bug.cgi?id=112511
1948
1949         Reviewed by Joseph Pecoraro.
1950
1951         * Configurations/FeatureDefines.xcconfig:
1952
1953 2013-03-15  Timothy Hatcher  <timothy@apple.com>
1954
1955         Disable suppressesIncrementalRendering for the Web Inspector.
1956
1957         This ends up causing the Inspector to show blank for a couple seconds before
1958         it does its first paint. During that time the bare window chrome is showing
1959         when the Inspector's background and other simple elements count be painting.
1960         This causes the Inspector to look like it is loading slower than reality.
1961
1962         https://bugs.webkit.org/show_bug.cgi?id=112300
1963         rdar://problem/13412219
1964  
1965         Reviewed by Geoff Garen.
1966
1967         * WebCoreSupport/WebInspectorClient.mm:
1968         (-[WebInspectorWindowController init]): Disable suppressesIncrementalRendering.
1969
1970 2013-03-15  Nate Chapin  <japhet@chromium.org>
1971
1972         Hide MainResourceLoader from the outside world
1973         https://bugs.webkit.org/show_bug.cgi?id=109971
1974
1975         Reviewed by Adam Barth.
1976
1977         * WebCoreSupport/WebFrameLoaderClient.h:
1978         (WebFrameLoaderClient):
1979         * WebCoreSupport/WebFrameLoaderClient.mm:
1980         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
1981
1982 2013-03-15  Abhishek Arya  <inferno@chromium.org>
1983
1984         Replace static_casts with to* helper functions.
1985         https://bugs.webkit.org/show_bug.cgi?id=112401
1986
1987         Reviewed by Stephen Chenney.
1988
1989         to* helper functions are preferred over static_cast calls since they
1990         help to catch bad casts easily on the testing infrastructure.
1991
1992         * WebView/WebRenderNode.mm:
1993         (copyRenderNode):
1994         * WebView/WebView.mm:
1995         (-[WebView _addScrollerDashboardRegionsForFrameView:dashboardRegions:]):
1996
1997 2013-03-14  Manuel Rego Casasnovas  <rego@igalia.com>
1998
1999         Add selectTrailingWhitespaceEnabled setting to WebCore::Page
2000         https://bugs.webkit.org/show_bug.cgi?id=109404
2001
2002         Reviewed by Tony Chang.
2003
2004         Use new settings for smartInsertDeleteEnabled and
2005         selectTrailingWhitespaceEnabled.
2006
2007         * WebCoreSupport/WebEditorClient.mm:
2008         (WebEditorClient::smartInsertDeleteEnabled):
2009         (WebEditorClient::isSelectTrailingWhitespaceEnabled):
2010         * WebView/WebView.mm:
2011         (-[WebView _commonInitializationWithFrameName:groupName:]): Initialize
2012         settings from NSUserDefaults.
2013         (-[WebView setSelectTrailingWhitespaceEnabled:]):
2014         (-[WebView isSelectTrailingWhitespaceEnabled]):
2015         (-[WebView setSmartInsertDeleteEnabled:]):
2016         (-[WebView smartInsertDeleteEnabled]):
2017         * WebView/WebViewData.h:
2018         * WebView/WebViewData.mm:
2019         (-[WebViewPrivate init]):
2020
2021 2013-03-14  Abhishek Arya  <inferno@chromium.org>
2022
2023         Replace static_casts with to* helper functions.
2024         https://bugs.webkit.org/show_bug.cgi?id=112296
2025
2026         Reviewed by Kentaro Hara.
2027
2028         to* helper functions are preferred over static_cast calls since they
2029         help to catch bad casts easily on the testing infrastructure.
2030
2031         * WebCoreSupport/WebFrameLoaderClient.mm:
2032         (applyAppleDictionaryApplicationQuirkNonInlinePart):
2033         * WebView/WebHTMLRepresentation.mm:
2034         (searchForLabelsBeforeElement):
2035
2036 2013-03-14  Alice Liu  <alice.liu@apple.com>
2037
2038         Add to HistoryItem a way to know if its underlying CachedPage has expired.
2039         https://bugs.webkit.org/show_bug.cgi?id=110652
2040
2041         Reviewed by Brady Eidson.
2042
2043         * History/WebHistoryItem.mm:
2044         (-[WebHistoryItem _isInPageCache]): Added. Just calls and returns core imple's function. 
2045         (-[WebHistoryItem _hasCachedPageExpired]): Same thing. 
2046         * History/WebHistoryItemPrivate.h:
2047         * WebView/WebPreferences.mm:
2048         (-[WebPreferences _backForwardCacheExpirationInterval]): Address fixme, now that WebCore::Settings
2049         has getters and setters with default value.
2050         * WebView/WebView.mm:
2051         (-[WebView _preferencesChanged:]): call setBackForwardCacheExpirationInterval similar to other settings.
2052
2053 2013-03-13  Rik Cabanier  <cabanier@adobe.com>
2054
2055         create runtime flags for CSS Compositing
2056         https://bugs.webkit.org/show_bug.cgi?id=111818
2057
2058         Reviewed by Ryosuke Niwa.
2059
2060         Added a preference to enable CSS compositing.
2061
2062         * WebView/WebPreferenceKeysPrivate.h:
2063         * WebView/WebPreferences.mm:
2064         (+[WebPreferences initialize]):
2065         (-[WebPreferences cssCompositingEnabled]):
2066         (-[WebPreferences setCSSCompositingEnabled:]):
2067         * WebView/WebPreferencesPrivate.h:
2068         * WebView/WebView.mm:
2069         (-[WebView _preferencesChanged:]):
2070
2071 2013-03-13  Ryosuke Niwa  <rniwa@webkit.org>
2072
2073         Threaded HTML Parser is missing feature define flags in all but Chromium port's build files
2074         https://bugs.webkit.org/show_bug.cgi?id=112277
2075
2076         Reviewed by Adam Barth.
2077
2078         * Configurations/FeatureDefines.xcconfig:
2079
2080 2013-03-13  Pavel Feldman  <pfeldman@chromium.org>
2081
2082         Web Inspector: get rid of hiddenPanels filter
2083         https://bugs.webkit.org/show_bug.cgi?id=112252
2084
2085         Reviewed by Vsevolod Vlasov.
2086
2087         * WebCoreSupport/WebInspectorClient.h:
2088         (WebInspectorFrontendClient):
2089         * WebCoreSupport/WebInspectorClient.mm:
2090         * WebKit.order:
2091
2092 2013-03-12  Geoffrey Garen  <ggaren@apple.com>
2093
2094         Moved RunLoopTimer and SchedulePair to WTF
2095         https://bugs.webkit.org/show_bug.cgi?id=112171
2096
2097         Reviewed by Oliver Hunt.
2098
2099         This will allow us to use timers in lower level primitives without
2100         duplicating all the code.
2101
2102         * WebCoreSupport/WebFrameNetworkingContext.h:
2103         (WebFrameNetworkingContext):
2104
2105 2013-03-12  Abhishek Arya  <inferno@chromium.org>
2106
2107         Replace static_casts with to* functions.
2108         https://bugs.webkit.org/show_bug.cgi?id=112072
2109
2110         Reviewed by Philip Rogers.
2111
2112         to* functions are preferred over static_cast calls since they
2113         help to catch bad casts easily on the testing infrastructure.
2114
2115         * WebView/WebView.mm:
2116         (-[WebView _enterFullscreenForNode:WebCore::]):
2117
2118 2013-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2119
2120         Unreviewed, rolling out r145462.
2121         http://trac.webkit.org/changeset/145462
2122         https://bugs.webkit.org/show_bug.cgi?id=112097
2123
2124         Compilation failure in PluginView.cpp (Requested by jamesr_ on
2125         #webkit).
2126
2127         * WebView/WebView.mm:
2128         (-[WebView _enterFullscreenForNode:WebCore::]):
2129
2130 2013-03-11  Abhishek Arya  <inferno@chromium.org>
2131
2132         Replace static_casts with to* functions.
2133         https://bugs.webkit.org/show_bug.cgi?id=112072
2134
2135         Reviewed by Philip Rogers.
2136
2137         to* functions are preferred over static_cast calls since they
2138         help to catch bad casts easily on the testing infrastructure.
2139
2140         * WebView/WebView.mm:
2141         (-[WebView _enterFullscreenForNode:WebCore::]):
2142
2143 2013-03-11  Jochen Eisinger  <jochen@chromium.org>
2144
2145         Rename DefinitelyProcessingUserGesture to DefinitelyProcessingNewUserGesture
2146         https://bugs.webkit.org/show_bug.cgi?id=111959
2147
2148         Reviewed by Alexey Proskuryakov.
2149
2150         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2151         (WebKit::NetscapePluginInstanceProxy::evaluate):
2152         * Plugins/WebNetscapePluginView.mm:
2153         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
2154
2155 2013-03-11  Abhishek Arya  <inferno@chromium.org>
2156
2157         Replace static_cast with to* helper functions.
2158         https://bugs.webkit.org/show_bug.cgi?id=112045
2159
2160         Reviewed by Eric Seidel.
2161
2162         * WebView/WebRenderLayer.mm:
2163         (+[WebRenderLayer nameForLayer:]):
2164
2165 2013-03-11  Jer Noble  <jer.noble@apple.com>
2166
2167         Unreviewed build fix.  Remove stray brace which crept into r145409.
2168
2169         * WebView/WebFullScreenController.mm:
2170         (-[WebFullScreenController performClose:]):
2171
2172 2013-01-30  Jer Noble  <jer.noble@apple.com>
2173
2174         Mac: Cmd-w should close full screen window.
2175         https://bugs.webkit.org/show_bug.cgi?id=108406
2176
2177         Reviewed by Darin Adler.
2178
2179         Allow the user to close the full screen window with Cmd-w by making the full screen window
2180         closable, and by intercepting performClose:.
2181
2182         * WebView/WebFullScreenController.mm:
2183         (-[WebFullScreenController init]): Create a closable full screen window.
2184         (-[WebFullScreenController performClose:]): When we receive a close request in full screen mode,
2185             animate out of full screen.
2186
2187 2013-03-07  Anders Carlsson  <andersca@apple.com>
2188
2189         Add didFocusTextField:inFrame to WebFormDelegate
2190         https://bugs.webkit.org/show_bug.cgi?id=111804
2191
2192         Reviewed by Dan Bernstein.
2193
2194         * WebCoreSupport/WebChromeClient.mm:
2195         (WebChromeClient::focusedNodeChanged):
2196         * WebView/WebFormDelegate.h:
2197         * WebView/WebFormDelegate.m:
2198         (-[WebFormDelegate didFocusTextField:inFrame:]):
2199
2200 2013-03-04  Jer Noble  <jer.noble@apple.com>
2201
2202         Default mouse cursor behavior should be auto-hide for full screen video with custom controls
2203         https://bugs.webkit.org/show_bug.cgi?id=107601
2204
2205         Reviewed by Beth Dakin.
2206
2207         Enable the CURSOR_VISIBILITY feature.
2208
2209         * Configurations/FeatureDefines.xcconfig:
2210
2211 2013-03-05  Geoffrey Garen  <ggaren@apple.com>
2212
2213         Removed some dead code in the page cache
2214         https://bugs.webkit.org/show_bug.cgi?id=111525
2215
2216         Reviewed by Alexey Proskuryakov.
2217
2218         Page cache autorelease doesn't exist anymore, so there's no need to keep
2219         around these olds hacks.
2220
2221         This fixes <rdar://problem/4886761> Fix bizarre WebWindowWatcher policy in WebHistoryItem.
2222
2223         * History/WebHistoryItem.mm:
2224         (+[WebHistoryItem _releaseAllPendingPageCaches]):
2225         * History/WebHistoryItemInternal.h:
2226         * Misc/WebCoreStatistics.mm:
2227         (+[WebCoreStatistics autoreleasedPageCount]):
2228         * WebView/WebView.mm:
2229         (-[WebView _commonInitializationWithFrameName:groupName:]):
2230
2231 2013-03-06  Dmitry Zvorygin  <zvorygin@chromium.org>
2232
2233         Introduce new message sources for logging.
2234         https://bugs.webkit.org/show_bug.cgi?id=110968
2235
2236         Reviewed by Pavel Feldman.
2237
2238         * WebCoreSupport/WebChromeClient.mm:
2239         * WebView/WebUIDelegatePrivate.h:
2240
2241 2013-03-05  Kent Tamura  <tkent@chromium.org>
2242
2243         Rename WebCore/editing/visible_units.* to VisibleUnits.*
2244         https://bugs.webkit.org/show_bug.cgi?id=111426
2245
2246         Reviewed by Alexey Proskuryakov.
2247
2248         * WebView/WebFrame.mm:
2249
2250 2013-03-05  James Robinson  <jamesr@chromium.org>
2251
2252         ContainerNode::setActive should not sleep for 100ms on platforms that do not implement synchronous repaint(true) semantics
2253         https://bugs.webkit.org/show_bug.cgi?id=87054
2254
2255         Reviewed by Darin Adler.
2256
2257         The Mac WebKit1 port supports immediate invalidations.
2258
2259         * WebCoreSupport/WebChromeClient.h:
2260         (WebChromeClient):
2261         * WebCoreSupport/WebChromeClient.mm:
2262         (WebChromeClient::supportsImmediateInvalidation):
2263
2264 2013-03-05  David Kilzer  <ddkilzer@apple.com>
2265
2266         BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac
2267         <http://webkit.org/b/106742>
2268
2269         Fixes the following build failures:
2270
2271             Undefined symbols for architecture i386:
2272               "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
2273                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
2274               NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
2275               "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
2276                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
2277             ld: symbol(s) not found for architecture i386
2278
2279         * Configurations/FeatureDefines.xcconfig:
2280         - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
2281
2282 2013-03-04  David Kilzer  <ddkilzer@apple.com>
2283
2284         BUILD FIX (r144662): Import JSBase.h in WebFrameLoadDelegate.h
2285         <http://webkit.org/b/111269>
2286
2287         Fixes the following build failure:
2288
2289             In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
2290             In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
2291             Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:41:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
2292             #if JSC_OBJC_API_ENABLED
2293                 ^
2294             Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:207:5: error: 'JSC_OBJC_API_ENABLED' is not defined, evaluates to 0 [-Werror,-Wundef]
2295             #if JSC_OBJC_API_ENABLED
2296                 ^
2297             2 errors generated.
2298
2299         * WebView/WebFrameLoadDelegate.h: Include JSBase.h.
2300
2301 2013-03-04  Chris Fleizach  <cfleizach@apple.com>
2302
2303         Support WebSpeech - Speech Synthesis
2304         https://bugs.webkit.org/show_bug.cgi?id=106742
2305
2306         Reviewed by Simon Fraser.
2307
2308         Enable speech synthesis for the Mac.
2309
2310         * Configurations/FeatureDefines.xcconfig:
2311
2312 2013-03-04  Mark Hahnenberg  <mhahnenberg@apple.com>
2313
2314         Remove contextInternalContext from JSContextInternal.h
2315         https://bugs.webkit.org/show_bug.cgi?id=111356
2316
2317         Reviewed by Geoffrey Garen.
2318
2319         We don't need it any more since we have globalContextRef in JSContext.
2320
2321         * WebView/WebScriptWorld.mm:
2322         (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
2323
2324 2013-03-04  Laszlo Gombos  <l.gombos@samsung.com>
2325
2326         JSC_OBJC_API_ENABLED should be removed from FeatureDefines.h
2327         https://bugs.webkit.org/show_bug.cgi?id=111269
2328
2329         Reviewed by Mark Hahnenberg.
2330
2331         Include JavaScriptCore/JSBase.h for the definition of JSC_OBJC_API_ENABLED.
2332
2333         * WebView/WebDelegateImplementationCaching.h:
2334
2335 2013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
2336
2337         Add build flag for FontLoader
2338         https://bugs.webkit.org/show_bug.cgi?id=111289
2339
2340         Reviewed by Benjamin Poulain.
2341
2342         Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
2343
2344         * Configurations/FeatureDefines.xcconfig:
2345
2346 2013-03-03  Benjamin Poulain  <benjamin@webkit.org>
2347
2348         [Mac] Get rid of a useless method from DOMHTMLInputElement
2349         https://bugs.webkit.org/show_bug.cgi?id=111279
2350
2351         Reviewed by Sam Weinig.
2352
2353         * DOM/WebDOMOperations.mm:
2354         * DOM/WebDOMOperationsPrivate.h:
2355         setValueForUser: is already privately exposed by DOMHTMLInputElement,
2356         no need to have it twice.
2357
2358 2013-03-03  Adam Barth  <abarth@webkit.org>
2359
2360         Unreviewed attempted build fix. Adds back some includes removed in
2361         http://trac.webkit.org/changeset/144565.
2362
2363         * DOM/WebDOMOperations.mm:
2364         * Misc/WebNSPasteboardExtras.mm:
2365         * WebCoreSupport/WebFrameNetworkingContext.mm:
2366         * WebView/WebRenderLayer.mm:
2367         * WebView/WebRenderNode.mm:
2368
2369 2013-03-03  Adam Barth  <abarth@webkit.org>
2370
2371         Unreviewed rollout of http://trac.webkit.org/r144530
2372         As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
2373         https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
2374         large number of ASSERTs in chromium-win.
2375
2376         * DOM/WebDOMOperations.mm:
2377         * Misc/WebNSPasteboardExtras.mm:
2378         * WebCoreSupport/WebFrameNetworkingContext.mm:
2379         * WebView/WebRenderLayer.mm:
2380         * WebView/WebRenderNode.mm:
2381
2382 2013-02-18  Darin Adler  <darin@apple.com>
2383
2384         Cut down the number of source files that depend on Clipboard.h
2385         https://bugs.webkit.org/show_bug.cgi?id=110030
2386
2387         Reviewed by Ryosuke Niwa.
2388
2389         * WebView/WebPDFView.mm: Add include of Clipboard.h since we use it
2390         here and the world no longer includes it everywhere.
2391
2392 2013-03-02  Benjamin Poulain  <bpoulain@apple.com>
2393
2394         Move computedStyleIncludingVisitedInfo from TestRunner to Internals
2395         https://bugs.webkit.org/show_bug.cgi?id=109772
2396
2397         Reviewed by Andreas Kling.
2398
2399         * WebView/WebView.mm:
2400         * WebView/WebViewPrivate.h:
2401
2402 2013-03-02  David Kilzer  <ddkilzer@apple.com>
2403
2404         BUILD FIX (r143637): Predeclare JSContext as an Objective-C class
2405         <http://webkit.org/b/106059>
2406
2407         Fixes the following build failure:
2408
2409             In file included from Source/WebKit/ios/DefaultDelegates/WebDefaultFrameLoadDelegate.m:11:
2410             In file included from Source/WebKit/mac/WebView/WebFrameLoadDelegatePrivate.h:29:
2411             Source/WebKit/mac/WebView/WebFrameLoadDelegate.h:215:64: error: expected a type
2412             - (void)webView:(WebView *)webView didCreateJavaScriptContext:(JSContext *)context forFrame:(WebFrame *)frame;
2413                                                                            ^
2414             1 error generated.
2415
2416         * WebView/WebFrameLoadDelegate.h: Add @class JSContext
2417         declaration.
2418
2419 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
2420
2421         Reduce amount of rebuilding when touching networking headers
2422         https://bugs.webkit.org/show_bug.cgi?id=111035
2423
2424         Reviewed by Eric Seidel.
2425
2426         Adding includes that are now necessary because WebCore headers don't have them
2427         any more.
2428
2429         * DOM/WebDOMOperations.mm:
2430         * Misc/WebNSPasteboardExtras.mm:
2431         * WebCoreSupport/WebFrameNetworkingContext.mm:
2432         * WebView/WebRenderLayer.mm:
2433         * WebView/WebRenderNode.mm:
2434
2435 2013-03-01  Jason Anderssen  <janderssen@gmail.com>
2436
2437         Move markerTextForListItem from TestRunner to Internals
2438         https://bugs.webkit.org/show_bug.cgi?id=110939
2439
2440         Reviewed by Benjamin Poulain.
2441
2442         * DOM/WebDOMOperations.mm:
2443         * DOM/WebDOMOperationsPrivate.h:
2444
2445 2013-02-28  Sam Weinig  <sam@webkit.org>
2446
2447         Add SPI for marking a WebView as doing things on behalf of another process
2448         https://bugs.webkit.org/show_bug.cgi?id=111125
2449
2450         Reviewed by Alexey Proskuryakov.
2451
2452         * WebCoreSupport/WebFrameNetworkingContext.h:
2453         (WebFrameNetworkingContext):
2454         * WebCoreSupport/WebFrameNetworkingContext.mm:
2455         (WebFrameNetworkingContext::sourceApplicationAuditData):
2456         * WebView/WebView.mm:
2457         (-[WebView _setSourceApplicationAuditData:]):
2458         (-[WebView _sourceApplicationAuditData]):
2459         * WebView/WebViewData.h:
2460         * WebView/WebViewData.mm:
2461         (-[WebViewPrivate dealloc]):
2462         * WebView/WebViewPrivate.h:
2463         Add SPI for setting a source application for a WebView.
2464
2465 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
2466
2467         Unreviewed, rolling out r144422 and r144424.
2468         http://trac.webkit.org/changeset/144422
2469         http://trac.webkit.org/changeset/144424
2470         https://bugs.webkit.org/show_bug.cgi?id=111167
2471
2472         Caused over 20 tests to fail assertion on Chromium Win port as
2473         ASSERTION FAILED: m_platformRequestUpdated (Requested by
2474         toyoshim on #webkit).
2475
2476         * DOM/WebDOMOperations.mm:
2477         * Misc/WebNSPasteboardExtras.mm:
2478         * WebCoreSupport/WebFrameNetworkingContext.mm:
2479         * WebView/WebRenderLayer.mm:
2480         * WebView/WebRenderNode.mm:
2481
2482 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
2483
2484         Reduce amount of rebuilding when touching networking headers
2485         https://bugs.webkit.org/show_bug.cgi?id=111035
2486
2487         Reviewed by Eric Seidel.
2488
2489         Adding includes that are now necessary because WebCore headers don't have them
2490         any more.
2491
2492         * DOM/WebDOMOperations.mm:
2493         * Misc/WebNSPasteboardExtras.mm:
2494         * WebCoreSupport/WebFrameNetworkingContext.mm:
2495         * WebView/WebRenderLayer.mm:
2496         * WebView/WebRenderNode.mm:
2497
2498 2013-02-27  John Bauman  <jbauman@chromium.org>
2499
2500         Plugin in iframe may not display
2501         https://bugs.webkit.org/show_bug.cgi?id=109879
2502
2503         Reviewed by Simon Fraser.
2504
2505         Ensure NetscapePluginWidget informs the plugin view of the cliprect change directly.
2506
2507         * Plugins/WebBaseNetscapePluginView.h:
2508         * WebCoreSupport/WebFrameLoaderClient.mm:
2509         (NetscapePluginWidget::clipRectChanged):
2510
2511 2013-02-26  Alexey Proskuryakov  <ap@apple.com>
2512
2513         Don't add a body to platform request until necessary
2514         https://bugs.webkit.org/show_bug.cgi?id=110900
2515
2516         Reviewed by Brady Eidson.
2517
2518         WebKit1 behavior is unchanged, body is added on every conversion.
2519
2520         * WebCoreSupport/WebFrameLoaderClient.mm:
2521         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
2522         (WebFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
2523         (WebFrameLoaderClient::assignIdentifierToInitialRequest):
2524         (WebFrameLoaderClient::dispatchWillSendRequest):
2525         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2526         (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
2527         (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
2528         (WebFrameLoaderClient::updateGlobalHistory):
2529         (WebFrameLoaderClient::canHandleRequest):
2530         * WebView/WebDataSource.mm:
2531         (-[WebDataSource initialRequest]):
2532         (-[WebDataSource request]):
2533         * WebView/WebFrame.mm:
2534         (-[WebFrame _loadData:MIMEType:textEncodingName:baseURL:unreachableURL:]):
2535
2536 2013-02-27  Glenn Adams  <glenn@skynav.com>
2537
2538         Add ENABLE_CSS3_TEXT_LINE_BREAK flag.
2539         https://bugs.webkit.org/show_bug.cgi?id=110944
2540
2541         Reviewed by Dean Jackson.
2542
2543         * Configurations/FeatureDefines.xcconfig:
2544
2545 2013-02-26  Jer Noble  <jer.noble@apple.com>
2546
2547         Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
2548
2549         * Configurations/FeatureDefines.xcconfig:
2550
2551 2013-02-26  Dmitry Zvorygin  <zvorygin@chromium.org>
2552
2553         Merged Tip and Debug log levels for web console.
2554         https://bugs.webkit.org/show_bug.cgi?id=109919
2555
2556         Reviewed by Pavel Feldman.
2557
2558         In every component either TIP or DEBUG level was used for reporting,
2559         but not both. This patch is prerequisite for Web Inspector console log filtering.
2560
2561         * WebCoreSupport/WebChromeClient.mm:
2562         (stringForMessageLevel):
2563         * WebView/WebUIDelegatePrivate.h:
2564
2565
2566 2013-02-21  Jeffrey Pfau  <jpfau@apple.com>
2567
2568         Optionally partition cache to prevent using cache for tracking
2569         https://bugs.webkit.org/show_bug.cgi?id=110269
2570
2571         Reviewed by Maciej Stachowiak.
2572
2573         Update WKSI bindings and add feature defines.
2574
2575         * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
2576         * WebCoreSupport/WebSystemInterface.mm:
2577         (InitWebCoreSystemInterface):
2578
2579 2013-02-25  Jer Noble  <jer.noble@apple.com>
2580
2581         Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
2582         https://bugs.webkit.org/show_bug.cgi?id=110806
2583
2584         Reviewed by Alexey Proskuryakov.
2585     
2586         Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
2587
2588         * Configurations/FeatureDefines.xcconfig:
2589
2590 2013-02-25  Andreas Kling  <akling@apple.com>
2591
2592         Reduce amount of code that includes StylePropertySet.h
2593         <http://webkit.org/b/101149>
2594
2595         Reviewed by Antti Koivisto.
2596
2597         * WebCoreSupport/WebEditorClient.mm:
2598         * WebView/WebFrame.mm:
2599         * WebView/WebView.mm:
2600
2601 2013-02-24  Andreas Kling  <akling@apple.com>
2602
2603         Reduce include graph of JSDOMBinding.h
2604         <http://webkit.org/b/110709>
2605
2606         Reviewed by Antti Koivisto.
2607
2608         * WebView/WebHTMLView.mm:
2609
2610 2013-02-21  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
2611
2612         Allow to retrieve the request data from abstract TextCheckingRequest to be accessible for WK2
2613         https://bugs.webkit.org/show_bug.cgi?id=110208
2614
2615         Reviewed by Hajime Morrita.
2616
2617         * WebCoreSupport/WebEditorClient.mm:
2618         (WebEditorClient::didCheckSucceed):
2619         (WebEditorClient::requestCheckingOfString):
2620         Extract the request data as it is the member of 'TextCheckingRequest'.
2621
2622 2013-02-19  Mark Hahnenberg  <mhahnenberg@apple.com>
2623
2624         Objective-C API: Need a way to use the Objective-C JavaScript API with WebKit
2625         https://bugs.webkit.org/show_bug.cgi?id=106059
2626
2627         Reviewed by Geoffrey Garen.
2628
2629         Addition of appropriate delegate callbacks and support to the WebKit API.
2630
2631         * WebCoreSupport/WebFrameLoaderClient.mm:
2632         * WebView/WebDelegateImplementationCaching.h:
2633         (WebFrameLoadDelegateImplementationCache):
2634         * WebView/WebFrame.h:
2635         * WebView/WebFrame.mm:
2636         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
2637         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
2638         (-[WebFrame _javaScriptContextForScriptWorld:]):
2639         (-[WebFrame javaScriptContext]):
2640         * WebView/WebFrameLoadDelegate.h:
2641         * WebView/WebFramePrivate.h:
2642         * WebView/WebScriptDebugDelegate.mm:
2643         (-[WebScriptCallFrame _convertValueToObjcValue:JSC::]):
2644         (-[WebScriptCallFrame exception]):
2645         (-[WebScriptCallFrame evaluateWebScript:]):
2646         * WebView/WebScriptWorld.h:
2647         * WebView/WebScriptWorld.mm:
2648         (+[WebScriptWorld scriptWorldForJavaScriptContext:]):
2649         * WebView/WebView.mm:
2650         (-[WebView _cacheFrameLoadDelegateImplementations]):
2651         (aeDescFromJSValue):
2652         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
2653         (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
2654
2655 2013-02-20  Dirk Schulze  <krit@webkit.org>
2656
2657         Enable CANVAS_PATH flag
2658         https://bugs.webkit.org/show_bug.cgi?id=108508
2659
2660         Reviewed by Simon Fraser.
2661
2662         Enable CANVAS_PATH flag on trunk.
2663
2664         * Configurations/FeatureDefines.xcconfig:
2665
2666 2013-02-19  Tim Horton  <timothy_horton@apple.com>
2667
2668         Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
2669         https://bugs.webkit.org/show_bug.cgi?id=110261
2670         <rdar://problem/13196122>
2671
2672         Reviewed by Simon Fraser.
2673
2674         * WebView/WebView.mm:
2675         (-[WebView viewWillMoveToWindow:]):
2676         (-[WebView viewDidMoveToWindow]):
2677         Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
2678
2679 2013-02-18  Anders Carlsson  <andersca@apple.com>
2680
2681         Add a DefaultHash for RefPtr<SecurityOrigin>
2682         https://bugs.webkit.org/show_bug.cgi?id=110170
2683
2684         Reviewed by Andreas Kling.
2685
2686         Remove all explicit uses of SecurityOriginHash.
2687
2688         * WebCoreSupport/WebApplicationCache.mm:
2689         (+[WebApplicationCache originsWithCache]):
2690
2691 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
2692
2693         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
2694         https://bugs.webkit.org/show_bug.cgi?id=109996
2695
2696         Reviewed by Simon Fraser.
2697
2698         * WebCoreSupport/WebSystemInterface.mm:
2699         (InitWebCoreSystemInterface):
2700
2701 2013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
2702
2703         Unreviewed, rolling out r143088.
2704         http://trac.webkit.org/changeset/143088
2705         https://bugs.webkit.org/show_bug.cgi?id=110000
2706
2707         Breaks the build (Requested by dgorbik on #webkit).
2708
2709         * WebCoreSupport/WebSystemInterface.mm:
2710         (InitWebCoreSystemInterface):
2711
2712 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
2713
2714         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
2715         https://bugs.webkit.org/show_bug.cgi?id=109996
2716
2717         Reviewed by Simon Fraser.
2718
2719         * WebCoreSupport/WebSystemInterface.mm:
2720         (InitWebCoreSystemInterface):
2721
2722 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2723
2724         Simplify hitTestResultAtPoint and nodesFromRect APIs
2725         https://bugs.webkit.org/show_bug.cgi?id=95720
2726
2727         Reviewed by Julien Chaffraix.
2728
2729         Update calls to new API.
2730
2731         * WebCoreSupport/WebFrameLoaderClient.mm:
2732         (WebFrameLoaderClient::actionDictionary):
2733         * WebView/WebFrame.mm:
2734         (-[WebFrame elementAtPoint:]):
2735         * WebView/WebHTMLView.mm:
2736         (-[WebHTMLView elementAtPoint:allowShadowContent:]):
2737
2738 2013-02-14  David Kilzer  <ddkilzer@apple.com>
2739
2740         [Mac] Clean up WARNING_CFLAGS
2741         <http://webkit.org/b/109747>
2742         <rdar://problem/13208373>
2743
2744         Reviewed by Mark Rowe.
2745
2746         * Configurations/Base.xcconfig: Use
2747         GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
2748         -Wshorten-64-to-32 rather than WARNING_CFLAGS.
2749
2750 2013-02-13  Zan Dobersek  <zdobersek@igalia.com>
2751
2752         The 'global isinf/isnan' compiler quirk required when using clang with libstdc++
2753         https://bugs.webkit.org/show_bug.cgi?id=109325
2754
2755         Reviewed by Anders Carlsson.
2756
2757         Prefix calls to the isinf and isnan methods with std::, declaring we want to use the
2758         two methods as they're provided by the C++ standard library being used.
2759
2760         * tests/DecimalTest.cpp:
2761         (TEST_F):
2762
2763 2013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
2764
2765         [iOS] Enable PAGE_VISIBILITY_API
2766         https://bugs.webkit.org/show_bug.cgi?id=109399
2767
2768         Reviewed by David Kilzer.
2769
2770         * Configurations/FeatureDefines.xcconfig:
2771
2772 2013-02-12  David Kilzer  <ddkilzer@apple.com>
2773
2774         BUILD FIX (r142576): WK1 build fails when ENABLE(DELETION_UI) is off
2775         <https://bugs.webkit.org/show_bug.cgi?id=109534>
2776
2777         Fixes the following build failure:
2778
2779             WebEditorClient.mm:243:23: error: out-of-line definition of 'shouldShowDeleteInterface' does not match any declaration in 'WebEditorClient'
2780             bool WebEditorClient::shouldShowDeleteInterface(HTMLElement* element)
2781                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
2782
2783         * WebCoreSupport/WebEditorClient.mm:
2784         (WebEditorClient::shouldShowDeleteInterface): Protect with
2785         ENABLE(DELETION_UI) macro.
2786
2787 2013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
2788
2789         Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
2790         https://bugs.webkit.org/show_bug.cgi?id=109534
2791
2792         Reviewed by Anders Carlsson.
2793
2794         * WebCoreSupport/WebEditorClient.h:
2795
2796 2013-02-11  Benjamin Poulain  <benjamin@webkit.org>
2797
2798         Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
2799         https://bugs.webkit.org/show_bug.cgi?id=109349
2800
2801         Reviewed by Sam Weinig.
2802
2803         * WebView/WebView.mm:
2804         * WebView/WebViewPrivate.h:
2805
2806 2013-02-10  Dan Bernstein  <mitz@apple.com>
2807
2808         Added *.pdf to EXCLUDED_SOURCE_FILE_NAMES_iphoneos.
2809
2810         Rubber-stamped by Anders Carlsson.
2811
2812         * Configurations/WebKit.xcconfig:
2813
2814 2013-02-10  Jae Hyun Park  <jae.park08@gmail.com>
2815
2816         Rename ENABLE(GLIB_SUPPORT) to USE(GLIB)
2817         https://bugs.webkit.org/show_bug.cgi?id=104266
2818
2819         Reviewed by Philippe Normand.
2820
2821         Using USE(GLIB) instead of ENABLE(GLIB_SUPPORT) is more consistent with
2822         the existing macro naming conventions.
2823
2824         From Platform.h
2825         USE() - use a particular third-party library or optional OS service
2826         ENABLE() - turn on a specific feature of WebKit
2827
2828         * WebView/WebView.mm:
2829         (-[WebView _commonInitializationWithFrameName:groupName:]):
2830         (-[WebView _close]):
2831         * WebView/WebViewData.h:
2832         * WebView/WebViewInternal.h:
2833
2834 2013-02-08  Benjamin Poulain  <bpoulain@apple.com>
2835
2836         Move workerThreadCount from TestRunner to WebCore Internals
2837         https://bugs.webkit.org/show_bug.cgi?id=109239
2838
2839         Reviewed by Darin Adler.
2840
2841         Get rid of WebWorkersPrivate, which was only needed for DRT.
2842
2843         * WebKit.exp:
2844         * Workers/WebWorkersPrivate.h: Removed.
2845         * Workers/WebWorkersPrivate.mm: Removed.
2846
2847 2013-02-07  Sheriff Bot  <webkit.review.bot@gmail.com>
2848
2849         Unreviewed, rolling out r142212.
2850         http://trac.webkit.org/changeset/142212
2851         https://bugs.webkit.org/show_bug.cgi?id=109255
2852
2853         Causes ASSERT(!m_installed) on launch (Requested by smfr on
2854         #webkit).
2855
2856         * WebView/WebView.mm:
2857         (-[WebView _commonInitializationWithFrameName:groupName:]):
2858         (WebInstallMemoryPressureHandler):
2859
2860 2013-02-06  Gavin Barraclough  <barraclough@apple.com>
2861
2862         PluginProcess should quit immediately if idle in response to low-memory notifications
2863         https://bugs.webkit.org/show_bug.cgi?id=109103
2864         <rdar://problem/12679827>
2865
2866         Reviewed by Darin Adler.
2867
2868         * WebView/WebView.mm:
2869         (-[WebView _commonInitializationWithFrameName:groupName:]):
2870             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
2871         (WebInstallMemoryPressureHandler):
2872             - MemoryPressureHandler::install is now called via MemoryPressureHandler::initialize.
2873
2874 2013-02-07  Benjamin Poulain  <bpoulain@apple.com>
2875
2876         Move pauseAnimation/pauseTransition from TestRunner to Internals
2877         https://bugs.webkit.org/show_bug.cgi?id=109107
2878
2879         Reviewed by Anders Carlsson.
2880
2881         * WebView/WebFrame.mm:
2882         * WebView/WebFramePrivate.h:
2883
2884 2013-02-06  Mike West  <mkwst@chromium.org>
2885
2886         Add an ENABLE_NOSNIFF feature flag.
2887         https://bugs.webkit.org/show_bug.cgi?id=109029
2888
2889         Reviewed by Jochen Eisinger.
2890
2891         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
2892         when processing script and other resource types.
2893
2894         * Configurations/FeatureDefines.xcconfig:
2895
2896 2013-02-04  Benjamin Poulain  <bpoulain@apple.com>
2897
2898         Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
2899         https://bugs.webkit.org/show_bug.cgi?id=108741
2900
2901         Reviewed by Tony Chang.
2902
2903         * WebView/WebFrame.mm:
2904         * WebView/WebFramePrivate.h:
2905
2906 2013-02-04  Enrica Casucci  <enrica@apple.com>
2907
2908         Add specific EditActions for Bold and Italic commands.
2909         https://bugs.webkit.org/show_bug.cgi?id=108842.
2910         <rdar://problem/13098252>
2911
2912         Reviewed by Ryosuke Niwa.
2913
2914         * WebCoreSupport/WebEditorClient.mm:
2915         (undoNameForEditAction):
2916
2917 2013-02-03  David Kilzer  <ddkilzer@apple.com>
2918
2919         Upstream ENABLE_PDFKIT_PLUGIN settting
2920         <http://webkit.org/b/108792>
2921
2922         Reviewed by Tim Horton.
2923
2924         * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
2925         on iOS since PDFKit is a Mac-only framework.
2926
2927 2013-02-02  David Kilzer  <ddkilzer@apple.com>
2928
2929         Upstream iOS FeatureDefines
2930         <http://webkit.org/b/108753>
2931
2932         Reviewed by Anders Carlsson.
2933
2934         * Configurations/FeatureDefines.xcconfig:
2935         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
2936         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
2937         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
2938           PLATFORM_NAME variant to reduce future merge conflicts. 
2939
2940 2013-02-01  Alexis Menard  <alexis@webkit.org>
2941
2942         Enable unprefixed CSS transitions by default.
2943         https://bugs.webkit.org/show_bug.cgi?id=108216
2944
2945         Reviewed by Dean Jackson.
2946
2947         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
2948         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
2949         guard the unprefixing work for CSS Transforms and animations.
2950
2951         * Configurations/FeatureDefines.xcconfig:
2952
2953 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2954
2955         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
2956         https://bugs.webkit.org/show_bug.cgi?id=107737
2957
2958         Reviewed by Ryosuke Niwa.
2959
2960         * WebView/WebHTMLView.mm:
2961         (-[WebHTMLView _updateSelectionForInputManager]):
2962
2963 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2964
2965         Unreviewed, rolling out r141479.
2966         http://trac.webkit.org/changeset/141479
2967         https://bugs.webkit.org/show_bug.cgi?id=108564
2968
2969         breaks chromium test (Requested by morrita on #webkit).
2970
2971         * WebView/WebHTMLView.mm:
2972         (-[WebHTMLView _updateSelectionForInputManager]):
2973
2974 2013-01-31  Enrica Casucci  <enrica@apple.com>
2975
2976         Mac: Editor::baseWritingDirectionForSelectionStart should return WritingDirection instead of NSWritingDirection.
2977         https://bugs.webkit.org/show_bug.cgi?id=108519.
2978
2979         Reviewed by Sam Weinig.
2980
2981         There is no need to use AppKit types here.
2982         baseWritingDirectionForSelectionStart now returns WritingDirection and
2983         WebHTMLView toggleWritingDirection has been modified accordingly.
2984
2985         * WebView/WebHTMLView.mm:
2986         (-[WebHTMLView toggleBaseWritingDirection:]):
2987
2988 2013-01-31  Aurimas Liutikas  <aurimas@chromium.org>
2989
2990         Editor::m_compositionNode not updated on HTMLInputElement::setValue()
2991         https://bugs.webkit.org/show_bug.cgi?id=107737
2992
2993         Reviewed by Ryosuke Niwa.
2994
2995         * WebView/WebHTMLView.mm:
2996         (-[WebHTMLView _updateSelectionForInputManager]):
2997
2998 2013-01-31  Joseph Pecoraro  <pecoraro@apple.com>
2999
3000         Disable ENABLE_FULLSCREEN_API on iOS
3001         https://bugs.webkit.org/show_bug.cgi?id=108250
3002
3003         Reviewed by Benjamin Poulain.
3004
3005         * Configurations/FeatureDefines.xcconfig:
3006
3007 2013-01-31  Enrica Casucci  <enrica@apple.com>
3008
3009         WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
3010         https://bugs.webkit.org/show_bug.cgi?id=108396.
3011         <rdar://problem/12920461>
3012
3013         Reviewed by Alexey Proskuryakov.
3014
3015         Adds stub implementation for WebKit of the new EditorClient methods.
3016
3017         * WebCoreSupport/WebEditorClient.h:
3018         * WebCoreSupport/WebEditorClient.mm:
3019         (WebEditorClient::willWriteSelectionToPasteboard):
3020         (WebEditorClient::getClientPasteboardDataForRange):
3021
3022 2013-01-31  Brady Eidson  <beidson@apple.com>
3023
3024         Lack of a log level string should not obliterate compiled in logging channel state.
3025         https://bugs.webkit.org/show_bug.cgi?id=108502
3026
3027         Reviewed by Alexey Proskuryakov and Sam Weinig.
3028
3029         * Misc/WebKitLogging.m: If there's no log level string, leave the channel state alone.
3030
3031 2013-01-29  Sheriff Bot  <webkit.review.bot@gmail.com>
3032
3033         Unreviewed, rolling out r140983.
3034         http://trac.webkit.org/changeset/140983
3035         https://bugs.webkit.org/show_bug.cgi?id=108277
3036
3037         Unfortunately, this API has one last client (Requested by
3038         abarth on #webkit).
3039
3040         * Configurations/FeatureDefines.xcconfig:
3041
3042 2012-11-28  Jer Noble  <jer.noble@apple.com>
3043
3044         Allow clients to ask for the WebView/WKView placeholder view when in full screen mode.
3045         https://bugs.webkit.org/show_bug.cgi?id=103558
3046         <rdar://problem/12763112>
3047
3048         Reviewed by Benjamin Poulain.
3049
3050         Clients may want to behave differently when their WebView/WKView has been swapped out by a placeholder
3051         view when in full screen mode.  Add a simple accessor for the existing placeholder view to
3052         WebFullScreenController and WebView.
3053
3054         * WebView/WebFullScreenController.h:
3055         * WebView/WebFullScreenController.mm:
3056         (-[WebFullScreenController webViewPlaceholder]): Added simple accessor.
3057         * WebView/WebView.mm:
3058         (-[WebView fullScreenPlaceholderView]): Added simple accessor.
3059
3060 2013-01-28  Pratik Solanki  <psolanki@apple.com>
3061
3062         PLATFORM(IOS) should come before __MAC_OS_X_VERSION_MIN_REQUIRED
3063         https://bugs.webkit.org/show_bug.cgi?id=108101
3064
3065         Reviewed by Benjamin Poulain.
3066
3067         Since iOS does not define __MAC_OS_X_VERSION_MIN_REQUIRED, any usage of
3068         __MAC_OS_X_VERSION_MIN_REQUIRED should be after a PLATFORM(IOS) check.
3069
3070         * WebCoreSupport/WebSystemInterface.mm:
3071         (InitWebCoreSystemInterface):
3072
3073 2013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
3074
3075         [Mac] Update PageVisibilityState when WebView is hidden / visible
3076         https://bugs.webkit.org/show_bug.cgi?id=107509
3077
3078         Reviewed by Sam Weinig.
3079
3080         * WebView/WebView.mm:
3081         * WebView/WebViewPrivate.h:
3082         (-[WebView _commonInitializationWithFrameName:groupName:]):
3083         Set the initial visibility of the page.
3084
3085         (-[WebView addWindowObserversForWindow:]):
3086         (-[WebView removeWindowObservers]):
3087         (-[WebView _isViewVisible]):
3088         (-[WebView _updateVisibilityState]):
3089         (-[WebView viewDidMoveToWindow]):
3090         (-[WebView _windowVisibilityChanged:]):
3091         Update visibility state in the same ways WK2 does. This involves
3092         listening for some new NSWindow delegates.
3093
3094 2013-01-28  Joseph Pecoraro  <pecoraro@apple.com>
3095
3096         Improve PageVisibility API with enums
3097         https://bugs.webkit.org/show_bug.cgi?id=107364
3098
3099         Reviewed by Sam Weinig.
3100
3101         * WebView/WebView.mm:
3102         * WebView/WebViewPrivate.h:
3103         (core):
3104         (-[WebView _setVisibilityState:isInitialState:]):
3105         Switch the private API form int to a WebPageVisibilityState enum.
3106
3107 2013-01-28  Adam Barth  <abarth@webkit.org>
3108
3109         Remove webkitNotifications.createHTMLNotification
3110         https://bugs.webkit.org/show_bug.cgi?id=107598
3111
3112         Reviewed by Benjamin Poulain.
3113
3114         * Configurations/FeatureDefines.xcconfig:
3115
3116 2013-01-25  Andy Estes  <aestes@apple.com>
3117
3118         Wrap content filtering code in an object
3119         https://bugs.webkit.org/show_bug.cgi?id=107914
3120
3121         Reviewed by Alexey Proskuryakov.
3122
3123         * WebCoreSupport/WebSystemInterface.mm:
3124         (InitWebCoreSystemInterface): Updated to reflect changes in WKSI.
3125
3126 2013-01-24  Dan Bernstein  <mitz@apple.com>
3127
3128         WebNavigationData does not distinguish between an empty title and a missing title
3129         https://bugs.webkit.org/show_bug.cgi?id=107917
3130
3131         Reviewed by Andy Estes.
3132
3133         * WebCoreSupport/WebFrameLoaderClient.mm:
3134         (nilOrNSString): Added this helper function.
3135         (WebFrameLoaderClient::updateGlobalHistory): Initialize the WebNavigationData with a nil
3136         title, rather than the empty string, if the document does not have a title.
3137
3138 2013-01-24  Mark Hahnenberg  <mhahnenberg@apple.com>
3139
3140         Objective-C API: Rename JSValue.h/APIJSValue.h to JSCJSValue.h/JSValue.h
3141         https://bugs.webkit.org/show_bug.cgi?id=107327
3142
3143         Reviewed by Filip Pizlo.
3144
3145         We're renaming these two files, so we have to replace the names everywhere.
3146
3147         * DOM/WebDOMOperations.mm:
3148         * ForwardingHeaders/runtime/JSCJSValue.h: Copied from Source/WebKit/mac/ForwardingHeaders/runtime/JSValue.h.
3149         * ForwardingHeaders/runtime/JSValue.h: Removed.
3150         * WebView/WebFrame.mm:
3151         * WebView/WebView.mm:
3152
3153 2013-01-22  Anders Carlsson  <andersca@apple.com>
3154
3155         Use a platforom strategy for local storage
3156         https://bugs.webkit.org/show_bug.cgi?id=107600
3157
3158         Reviewed by Andreas Kling.
3159
3160         Update for new storage strategy.
3161
3162         * WebCoreSupport/WebPlatformStrategies.h:
3163         (WebPlatformStrategies):
3164         * WebCoreSupport/WebPlatformStrategies.mm:
3165         (WebPlatformStrategies::createStorageStrategy):
3166
3167 2013-01-21  Kentaro Hara  <haraken@chromium.org>
3168
3169         Implement UIEvent constructor
3170         https://bugs.webkit.org/show_bug.cgi?id=107430
3171
3172         Reviewed by Adam Barth.
3173
3174         Editor's draft: https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm
3175
3176         UIEvent constructor is implemented under a DOM4_EVENTS_CONSTRUCTOR flag,
3177         which is enabled on Safari and Chromium for now.
3178
3179         * Configurations/FeatureDefines.xcconfig:
3180
3181 2013-01-22  Joseph Pecoraro  <pecoraro@apple.com>
3182
3183         [Mac] Enable Page Visibility (PAGE_VISIBILITY_API)
3184         https://bugs.webkit.org/show_bug.cgi?id=107230
3185
3186         Reviewed by David Kilzer.
3187
3188         * Configurations/FeatureDefines.xcconfig:
3189
3190 2013-01-22  Tim Horton  <timothy_horton@apple.com>
3191
3192         PDFPlugin: Build PDFPlugin everywhere, enable at runtime
3193         https://bugs.webkit.org/show_bug.cgi?id=107117
3194
3195         Reviewed by Alexey Proskuryakov.
3196
3197         Since PDFLayerController SPI is all forward-declared, the plugin should build
3198         on all Mac platforms, and can be enabled at runtime.
3199
3200         * Configurations/FeatureDefines.xcconfig:
3201
3202 2013-01-21  Dirk Schulze  <dschulze@adobe.com>
3203
3204         Add build flag for Canvas's Path object (disabled by default)
3205         https://bugs.webkit.org/show_bug.cgi?id=107473
3206
3207         Reviewed by Dean Jackson.
3208
3209         * Configurations/FeatureDefines.xcconfig:
3210
3211 2013-01-17  Andy Estes  <aestes@apple.com>
3212
3213         Add a USE() macro for content filtering code
3214         https://bugs.webkit.org/show_bug.cgi?id=107098
3215
3216         Reviewed by Mark Rowe.
3217
3218         * WebCoreSupport/WebSystemInterface.mm:
3219         (InitWebCoreSystemInterface): Use USE(CONTENT_FILTERING).
3220
3221 2013-01-19  Philip Rogers  <pdr@google.com>
3222
3223         Merge SVGStylable into SVGStyledElement
3224         https://bugs.webkit.org/show_bug.cgi?id=106877
3225
3226         SVG2 changes element inheritance so all SVGElements are stylable. As a first-step towards a
3227         cleaner class hierarchy, this patch moves SVGStylable into SVGStyledElement.
3228
3229         Reviewed by Dirk Schulze.
3230
3231         * MigrateHeaders.make:
3232
3233 2013-01-18  Seokju Kwon  <seokju.kwon@gmail.com>
3234
3235         Add explicit keyword to constructors in platform-specific InspectorClient
3236         https://bugs.webkit.org/show_bug.cgi?id=107255
3237
3238         Reviewed by Kentaro Hara.
3239
3240         Add explicit keyword to constructors that take one argument
3241         in platform-specific implementation of InspectorClient.
3242
3243         * WebCoreSupport/WebInspectorClient.h:
3244         (WebInspectorClient):
3245
3246 2013-01-15  Jer Noble  <jer.noble@apple.com>
3247
3248         Add a Setting to disable QTKit media engine.
3249         https://bugs.webkit.org/show_bug.cgi?id=106972
3250
3251         Reviewed by Eric Carlson.
3252
3253         Add WebKit API to set QTKit enabled setting from user defaults.
3254
3255         * WebView/WebPreferenceKeysPrivate.h:
3256         * WebView/WebPreferences.mm:
3257         (+[WebPreferences initialize]): Set WebCore settings based on user defaults.
3258         (-[WebPreferences setQTKitEnabled:]): Pass through to WebCore.
3259         (-[WebPreferences isQTKitEnabled]): Ditto.
3260         * WebView/WebPreferencesPrivate.h:
3261         * WebView/WebView.mm:
3262         (-[WebView _preferencesChanged:]): Synchronize WebKit/WebCore settings.
3263
3264 2013-01-15  Enrica Casucci  <enrica@apple.com>
3265
3266         Add a new set of WebKit2 APIs for text search and
3267         search results management.
3268         https://bugs.webkit.org/show_bug.cgi?id=106834.
3269         <rdar://problem/12597159>
3270
3271         Reviewed by Simon Fraser.
3272         
3273         Adding new API to perform text search in WebKit2 without using
3274         the stock UI. The new interface provides all the information
3275         necessary to write a custom UI for search.
3276
3277         Added new TextWebKitAPI test.
3278
3279         * WebView/WebHTMLView.mm:
3280         (-[WebHTMLView countMatchesForText:inDOMRange:options:limit:markMatches:]):
3281         Modified to reflect the changes to Editor::countMatchesForText interface.
3282
3283 2013-01-10  Zan Dobersek  <zandobersek@gmail.com>
3284
3285         Remove the ENABLE_ANIMATION_API feature define occurences
3286         https://bugs.webkit.org/show_bug.cgi?id=106544
3287
3288         Reviewed by Simon Fraser.
3289
3290         The Animation API code was removed in r137243. The ENABLE_ANIMATION_API
3291         feature define handling still lingers in various build systems and configurations
3292         but is of no use, so it should be removed.
3293
3294         * Configurations/FeatureDefines.xcconfig:
3295
3296 2013-01-08  Mark Lam  <mark.lam@apple.com>
3297
3298         Removed the need for the ProposedDatabase mechanism.
3299         https://bugs.webkit.org/show_bug.cgi?id=106292.
3300
3301         Reviewed by Sam Weinig.
3302
3303         * WebCoreSupport/WebChromeClient.h:
3304         * WebCoreSupport/WebChromeClient.mm:
3305         (WebChromeClient::exceededDatabaseQuota):
3306
3307 2013-01-07  Dan Bernstein  <mitz@apple.com>
3308
3309         [mac] WebKit1 clients can’t tell when a frame has been removed from the hierarchy
3310         https://bugs.webkit.org/show_bug.cgi?id=106261
3311
3312         Reviewed by Simon Fraser.
3313
3314         Test: TestWebKitAPI/Tests/mac/WebViewDidRemoveFrameFromHierarchy.mm.
3315
3316         Added -[WebFrameLoadDelegate webView:didRemoveFrameFromHierarchy:].
3317
3318         * WebCoreSupport/WebFrameLoaderClient.mm:
3319         (WebFrameLoaderClient::detachedFromParent2): Added a call to the new frame load delegate
3320         method.
3321         * WebView/WebDelegateImplementationCaching.h:
3322         (WebFrameLoadDelegateImplementationCache): Added the new method to the cache.
3323         * WebView/WebFrameLoadDelegatePrivate.h: Declared the new delegate method.
3324         * WebView/WebView.mm:
3325         (-[WebView _cacheFrameLoadDelegateImplementations]): Added the new method to the cache.
3326
3327 2013-01-07  Mike West  <mkwst@chromium.org>
3328
3329         Make the IFRAME_SEAMLESS flag runtime-enabled.
3330         https://bugs.webkit.org/show_bug.cgi?id=106213
3331
3332         Reviewed by Ojan Vafai.
3333
3334         * WebView/WebPreferenceKeysPrivate.h:
3335         * WebView/WebPreferences.mm:
3336         (-[WebPreferences seamlessIFramesEnabled]):
3337         (-[WebPreferences setSeamlessIFramesEnabled:]):
3338         * WebView/WebPreferencesPrivate.h:
3339         * WebView/WebView.mm:
3340         (-[WebView _preferencesChanged:]):
3341             Add a seamless IFrame preference to WebPreferences, and use it to
3342             toggle the runtime state of the feature as appropriate.
3343
3344 2013-01-04  Adam Klein  <adamk@chromium.org>
3345
3346         Remove ENABLE_MUTATION_OBSERVERS #define
3347         https://bugs.webkit.org/show_bug.cgi?id=105459
3348
3349         Reviewed by Ryosuke Niwa.
3350
3351         * Configurations/FeatureDefines.xcconfig:
3352
3353 2013-01-01  Dan Bernstein  <mitz@apple.com>
3354
3355         <rdar://problem/12942239> Update copyright strings
3356
3357         Reviewed by Sam Weinig.
3358
3359         * Info.plist:
3360
3361 2012-12-29  Adam Roben  <aroben@webkit.org>
3362
3363         Web Inspector: Mac WK1 Inspector can't save/load timeline data
3364         https://bugs.webkit.org/show_bug.cgi?id=105547
3365
3366         Reviewed by Pavel Feldman.
3367
3368         * WebCoreSupport/WebInspectorClient.h: Declared new overrides and
3369         member variables necessary for save support.
3370
3371         * WebCoreSupport/WebInspectorClient.mm:
3372         (WebInspectorFrontendClient::save):
3373         (WebInspectorFrontendClient::append):
3374         Implemented these to make saving timeline data work. (It seems to me
3375         the InspectorFrontendClient API could be cleaned up a bit. I had to
3376         look at Chromium source code to determine that I needed to call back
3377         into the InspectorFrontendAPI JS object after saving/appending, and
3378         that I needed to keep a map of passed URLs -> chosen URLs.)
3379
3380         (-[WebInspectorWindowController window:willPositionSheet:usingRect:]):
3381         Tweaked the position of the sheet so that open/save sheets look a
3382         little bette.r
3383
3384         (-[WebInspectorWindowController webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles:]):
3385         Implemented to make loading timeline data work.
3386
3387 2012-12-28  Mark Rowe  <mrowe@apple.com>
3388
3389         Move logic for extracting the OS X marketing version in to WebCore
3390         <http://webkit.org/b/105841> / <rdar://problem/10736041>
3391
3392         Reviewed by Dan Bernstein.
3393
3394         * WebCoreSupport/WebSystemInterface.mm:
3395         (InitWebCoreSystemInterface): Remove the code related to the WKSI symbol.
3396         * WebView/WebView.mm:
3397         (systemMarketingVersionForUserAgentString): Call the WebCore function instead of the WKSI function.
3398         (+[WebView _standardUserAgentWithApplicationName:]): Retain the result now that our helper doesn't
3399         do that for us.
3400
3401 2012-12-27  Sam Weinig  <sam@webkit.org>
3402
3403         Attempt to fix the tests.
3404
3405         * WebView/WebPreferences.mm:
3406         (+[WebPreferences initialize]):
3407
3408 2012-12-23  Alexey Proskuryakov  <ap@apple.com>
3409
3410         <rdar://problem/12808377> Network process should respect cookie accept policy
3411         https://bugs.webkit.org/show_bug.cgi?id=105684
3412
3413         Reviewed by Sam Weinig.
3414
3415         * WebCoreSupport/WebPlatformStrategies.h:
3416         * WebCoreSupport/WebPlatformStrategies.mm:
3417         CookiesStrategy no longer has notifyCookiesChanged().
3418
3419 2012-12-22  Alexey Proskuryakov  <ap@apple.com>
3420
3421         Add a separate class for networking related storage
3422         https://bugs.webkit.org/show_bug.cgi?id=105676
3423
3424         Reviewed by Sam Weinig.
3425
3426         * WebCoreSupport/WebFrameLoaderClient.mm:
3427         Updated for ResourceHandle include changes.
3428
3429         * WebCoreSupport/WebFrameNetworkingContext.h:
3430         * WebCoreSupport/WebFrameNetworkingContext.mm:
3431         This class is now simpler, with more session tracking being in WebCore now.
3432
3433         * WebCoreSupport/WebPlatformStrategies.h:
3434         * WebCoreSupport/WebPlatformStrategies.mm:
3435         (WebPlatformStrategies::cookiesForDOM):
3436         (WebPlatformStrategies::setCookiesFromDOM):
3437         (WebPlatformStrategies::cookiesEnabled):
3438         (WebPlatformStrategies::cookieRequestHeaderFieldValue):
3439         (WebPlatformStrategies::getRawCookies):
3440         (WebPlatformStrategies::deleteCookie):
3441         We no longer need a function for default cookie storage! Other cookie functions
3442         now take a session.
3443
3444         * WebView/WebPreferences.mm:
3445         (+[WebPreferences _switchNetworkLoaderToNewTestingSession]): Initialize WCSI before
3446         calling a WebCore that uses it.
3447         (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Use
3448         NetworkStorageSession for session tracking.
3449
3450         * WebView/WebView.mm: (-[WebView _cachedResponseForURL:]): Updated for networking
3451         context now returning a class for session.
3452
3453 2012-12-20  Ilya Tikhonovsky  <loislo@chromium.org>
3454
3455         Unreviewed build fix for chromium mac after r138206.
3456
3457         * WebCoreSupport/WebSystemInterface.mm:
3458         (InitWebCoreSystemInterface):
3459
3460 2012-12-19  Alexey Proskuryakov  <ap@apple.com>
3461
3462         <rdar://problem/12890242> [WK2 NetworkProcess] Client doesn't receive SSL certificates
3463         https://bugs.webkit.org/show_bug.cgi?id=105467
3464
3465         Reviewed by Brady Eidson.
3466
3467         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize
3468         a WKSI function we've been missing.
3469
3470 2012-12-19  Alexis Menard  <alexis@webkit.org>
3471
3472         Implement CSS parsing for CSS transitions unprefixed.
3473         https://bugs.webkit.org/show_bug.cgi?id=104804
3474
3475         Reviewed by Dean Jackson.
3476
3477         Add a new flag ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
3478         to cover the work of unprefixing Transforms, Animations and 
3479         Transitions. It will let the possibility of each ports to turn it off 
3480         in their release branches until we're confident that these CSS 
3481         properties are ready to be unprefixed.
3482
3483         * Configurations/FeatureDefines.xcconfig:
3484
3485 2012-12-18  Alexey Proskuryakov  <ap@apple.com>
3486
3487         Remove unnecessary functions from CookiesStrategy
3488         https://bugs.webkit.org/show_bug.cgi?id=105369
3489
3490         Reviewed by Brady Eidson.
3491
3492         * WebCoreSupport/WebPlatformStrategies.h:
3493         * WebCoreSupport/WebPlatformStrategies.mm:
3494
3495 2012-12-18  Alice Liu  <alice.liu@apple.com>
3496
3497         Add SPI to WebKit1 WebFrame for hit testing
3498         https://bugs.webkit.org/show_bug.cgi?id=105106
3499
3500         Reviewed by Dan Bernstein.
3501
3502         * WebView/WebFrame.mm:
3503         (-[WebFrame elementAtPoint:]): Added. Takes an NSPoint to feed to the WebCore::Frame for hit-testing.
3504         Creates a WebElementDictionary from that WebCore::HitTestResult, and returns the element dictionary. 
3505         * WebView/WebFramePrivate.h:
3506
3507 2012-12-18  Alice Liu  <alice.liu@apple.com>
3508
3509         Add SPI to WebKit1 WebFrame for node conversion to JSValueRef
3510         https://bugs.webkit.org/show_bug.cgi?id=105262
3511
3512         Reviewed by Anders Carlsson.
3513
3514         * WebView/WebFrame.mm:
3515         (-[WebFrame jsWrapper:forWorld:]): Added. Takes a DOMNode and WebScriptWorld and provides a JSValueRef
3516         for the WebCore::Node in that particular WebScriptWorld.
3517         * WebView/WebFramePrivate.h:
3518
3519 2012-12-18  Beth Dakin  <bdakin@apple.com>
3520
3521         https://bugs.webkit.org/show_bug.cgi?id=102579
3522         [mac] Enable scaled cursors
3523
3524         Reviewed by Dean Jackson.
3525
3526         * Configurations/FeatureDefines.xcconfig:
3527
3528 2012-12-16  Levi Weintraub  <leviw@chromium.org>
3529
3530         Push pixel snapping logic into TransformState
3531         https://bugs.webkit.org/show_bug.cgi?id=101779
3532
3533         Reviewed by Simon Fraser.
3534
3535         * WebView/WebFullScreenController.mm:
3536         (screenRectOfContents): Removed SnapOffsetForTransforms as it's no longer needed.
3537
3538 2012-12-15  Anders Carlsson  <andersca@apple.com>
3539
3540         Rename FrameLoaderClient::download to convertMainResourceLoadToDownload
3541         https://bugs.webkit.org/show_bug.cgi?id=105122
3542
3543         Reviewed by Andreas Kling.
3544
3545         Update for WebCore changes.
3546
3547         * WebCoreSupport/WebFrameLoaderClient.h:
3548         (WebFrameLoaderClient):
3549         * WebCoreSupport/WebFrameLoaderClient.mm:
3550         (WebFrameLoaderClient::convertMainResourceLoadToDownload):
3551
3552 2012-12-15  Mark Lam  <mark.lam@apple.com>
3553
3554         Re-landing patch for "Introducing the DatabaseStrategy and database servers".
3555         https://bugs.webkit.org/show_bug.cgi?id=104934.
3556
3557         Not reviewed.
3558
3559         Merged from r137767. Previously reviewed by Sam Weinig.
3560
3561         * WebCoreSupport/WebPlatformStrategies.h:
3562         (WebPlatformStrategies):
3563         * WebCoreSupport/WebPlatformStrategies.mm:
3564         (WebPlatformStrategies::createDatabaseStrategy):
3565
3566 2012-12-14  Mark Lam  <mark.lam@apple.com>
3567
3568         The WebView should initialize the platform strategies before initializing other sub-systems.
3569         https://bugs.webkit.org/show_bug.cgi?id=105083.
3570
3571         Reviewed by Alexey Proskuryakov.
3572
3573         * WebView/WebView.mm:
3574         (-[WebView _commonInitializationWithFrameName:groupName:]):
3575
3576 2012-12-14  Sheriff Bot  <webkit.review.bot@gmail.com>
3577
3578         Unreviewed, rolling out r137767.
3579         http://trac.webkit.org/changeset/137767
3580         https://bugs.webkit.org/show_bug.cgi?id=105062
3581
3582         Broke Mac builds. (Requested by mlam on #webkit).
3583
3584         * WebCoreSupport/WebPlatformStrategies.h: