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