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