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