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