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