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