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