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