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