<http://webkit.org/b/91024> Build against the latest SDK when targeting older OS...
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-07-11  Mark Rowe  <mrowe@apple.com>
2
3         <http://webkit.org/b/91024> Build against the latest SDK when targeting older OS X versions.
4
5         Reviewed by Dan Bernstein.
6
7         The deployment target is already set to the version that we're targeting, and it's that setting
8         which determines which functionality from the SDK is available to us.
9
10         * Configurations/Base.xcconfig:
11
12 2012-07-11  Mark Rowe  <mrowe@apple.com>
13
14         <http://webkit.org/b/91022> WebFullScreenController and WKFullScreenWindowController shouldn't add unprefixed methods to AppKit classes
15
16         Reviewed by Dan Bernstein.
17
18         * WebView/WebFullScreenController.mm:
19         (convertRectToScreen): Add a static helper method that calls through to -[NSWindow convertRectToScreen:] on OS versions where it exists
20         but otherwise provides a compatibility implementation of it.
21         (-[WebFullScreenController enterFullScreen:]): Call our new helper.
22
23 2012-07-11  Mark Rowe  <mrowe@apple.com>
24
25         <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros
26
27         This removal was handled by a script that translates the relevant macros in to the equivalent checks
28         using the system availability macros.
29
30         Reviewed by Filip Pizlo.
31
32         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
33         * Misc/WebKitErrors.m:
34         * Misc/WebNSControlExtras.m:
35         * Misc/WebNSFileManagerExtras.mm:
36         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
37         * Plugins/WebBaseNetscapePluginView.mm:
38         * Plugins/WebNetscapePluginView.mm:
39         * WebCoreSupport/WebChromeClient.mm:
40         * WebCoreSupport/WebEditorClient.mm:
41         * WebCoreSupport/WebFrameLoaderClient.mm:
42         * WebCoreSupport/WebSystemInterface.mm:
43         * WebView/WebClipView.mm:
44         * WebView/WebDynamicScrollBarsView.mm:
45         * WebView/WebFrameView.mm:
46         * WebView/WebFullScreenController.mm:
47         * WebView/WebHTMLView.mm:
48         * WebView/WebHTMLViewInternal.h:
49         * WebView/WebPDFDocumentExtras.mm:
50         * WebView/WebPreferences.mm:
51         * WebView/WebResourceInternal.h:
52         * WebView/WebScriptDebugDelegate.h:
53         * WebView/WebView.mm:
54         * WebView/WebViewPrivate.h:
55
56 2012-07-11  Anders Carlsson  <andersca@apple.com>
57
58         Add -Wtautological-compare and -Wsign-compare warning flags
59         https://bugs.webkit.org/show_bug.cgi?id=90994
60
61         Reviewed by Mark Rowe.
62
63         * Configurations/Base.xcconfig:
64
65 2012-07-11  Mark Rowe  <mrowe@apple.com>
66
67         Add a Mountain Lion version of libWebKitSystemInterface.a.
68
69         Reviewed by John Sullivan.
70
71         * Configurations/DebugRelease.xcconfig: Look for the library under its expected name.
72
73 2012-07-10  Adam Barth  <abarth@webkit.org>
74
75         WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed
76         https://bugs.webkit.org/show_bug.cgi?id=90910
77
78         Reviewed by Eric Seidel.
79
80         * WebView/WebPreferences.mm:
81         (+[WebPreferences initialize]):
82         (-[WebPreferences setHixie76WebSocketProtocolEnabled:]):
83         (-[WebPreferences isHixie76WebSocketProtocolEnabled]):
84         * WebView/WebView.mm:
85         (-[WebView _preferencesChanged:]):
86
87 2012-07-09  Matt Falkenhagen  <falken@chromium.org>
88
89         Add ENABLE_DIALOG_ELEMENT and skeleton files
90         https://bugs.webkit.org/show_bug.cgi?id=90521
91
92         Reviewed by Kent Tamura.
93
94         * Configurations/FeatureDefines.xcconfig:
95
96 2012-07-09  Yongjun Zhang  <yongjun_zhang@apple.com>
97
98         Consider closing unused localStorage database after a timeout.
99         https://bugs.webkit.org/show_bug.cgi?id=90713
100
101         For a localStorage, if there is no active document referencing to it for certain amount of time (300 seconds),
102         we can close the underlying sqlite database.
103
104         Reviewed by Brady Eidson.
105
106         * Storage/WebStorageManager.mm:
107         (+[WebStorageManager setStorageDatabaseIdleInterval:]): add a new method for DumpRenderTree to set the timeout
108             that we will wait before closing database.
109         (initializeLocalStoragePath):
110         * Storage/WebStorageManagerPrivate.h:
111
112 2012-07-09  Sheriff Bot  <webkit.review.bot@gmail.com>
113
114         Unreviewed, rolling out r122107.
115         http://trac.webkit.org/changeset/122107
116         https://bugs.webkit.org/show_bug.cgi?id=90794
117
118         Build failure on Mac debug bots (Requested by falken_ on
119         #webkit).
120
121         * Configurations/FeatureDefines.xcconfig:
122
123 2012-07-09  Matt Falkenhagen  <falken@chromium.org>
124
125         Add ENABLE_DIALOG_ELEMENT and skeleton files
126         https://bugs.webkit.org/show_bug.cgi?id=90521
127
128         Reviewed by Kent Tamura.
129
130         * Configurations/FeatureDefines.xcconfig:
131
132 2012-07-04  John Mellor  <johnme@chromium.org>
133
134         Text Autosizing: Add compile flag and runtime setting
135         https://bugs.webkit.org/show_bug.cgi?id=87394
136
137         This patch renames Font Boosting to Text Autosizing.
138
139         Reviewed by Adam Barth.
140
141         * Configurations/FeatureDefines.xcconfig:
142
143 2012-07-02  Benjamin Poulain  <bpoulain@apple.com>
144
145         Do not do any logging initialization when logging is disabled
146         https://bugs.webkit.org/show_bug.cgi?id=90228
147
148         Reviewed by Simon Fraser.
149
150         * Misc/WebIconDatabase.mm:
151         (-[WebIconDatabase _scaleIcon:toSize:]):
152         * Misc/WebKitLogging.h:
153         * Misc/WebKitLogging.m:
154         * WebView/WebHTMLView.mm:
155         (-[WebHTMLView _attributeStringFromDOMRange:]):
156         * WebView/WebView.mm:
157         (-[WebView _commonInitializationWithFrameName:groupName:]):
158
159 2012-07-01  Timothy Hatcher  <timothy@apple.com>
160
161         Make the "Inspect Element" context menu item appear in nightly builds again.
162
163         rdar://problem/11702613
164         https://webkit.org/b/89323
165
166         Reviewed by Dan Bernstein.
167
168         * WebView/WebUIDelegatePrivate.h:
169         Add missing enums that were added in ContextMenuItem.h but left out here.
170
171 2012-06-29  Sheriff Bot  <webkit.review.bot@gmail.com>
172
173         Unreviewed, rolling out r121529.
174         http://trac.webkit.org/changeset/121529
175         https://bugs.webkit.org/show_bug.cgi?id=90260
176
177         Failed to compile on Chromium WebKitMacBuilder (Requested by
178         keishi on #webkit).
179
180         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
181         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
182         * Misc/WebNSControlExtras.m:
183         (-[NSControl sizeToFitAndAdjustWindowHeight]):
184         * WebCoreSupport/WebEditorClient.mm:
185         (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
186         (WebEditorClient::getGuessesForWord):
187         * WebCoreSupport/WebFrameLoaderClient.mm:
188         (WebFrameLoaderClient::dispatchDidFirstLayout):
189         (WebFrameLoaderClient::provisionalLoadStarted):
190         * WebCoreSupport/WebSystemInterface.mm:
191         (InitWebCoreSystemInterface):
192         * WebView/WebDynamicScrollBarsView.mm:
193         (-[WebDynamicScrollBarsView scrollWheel:]):
194         * WebView/WebFullScreenController.mm:
195         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
196         (-[WebFullScreenController exitFullScreen]):
197         * WebView/WebHTMLView.mm:
198         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
199         * WebView/WebView.mm:
200         (+[WebView initialize]):
201         (-[WebView _deviceScaleFactor]):
202
203 2012-06-29  Eric Seidel  <eric@webkit.org>
204
205         Remove more BUILDING_ON_LEOPARD branches now that no port builds on Leopard
206         https://bugs.webkit.org/show_bug.cgi?id=90252
207
208         Reviewed by Ryosuke Niwa.
209
210         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
211         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
212         * Misc/WebNSControlExtras.m:
213         (-[NSControl sizeToFitAndAdjustWindowHeight]):
214         * WebCoreSupport/WebEditorClient.mm:
215         (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
216         (WebEditorClient::getGuessesForWord):
217         * WebCoreSupport/WebFrameLoaderClient.mm:
218         (WebFrameLoaderClient::dispatchDidFirstLayout):
219         (WebFrameLoaderClient::provisionalLoadStarted):
220         * WebCoreSupport/WebSystemInterface.mm:
221         (InitWebCoreSystemInterface):
222         * WebView/WebDynamicScrollBarsView.mm:
223         (-[WebDynamicScrollBarsView scrollWheel:]):
224         * WebView/WebFullScreenController.mm:
225         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
226         (-[WebFullScreenController exitFullScreen]):
227         * WebView/WebHTMLView.mm:
228         (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]):
229         * WebView/WebView.mm:
230         (+[WebView initialize]):
231         (-[WebView _deviceScaleFactor]):
232
233 2012-06-25  Mark Hahnenberg  <mhahnenberg@apple.com>
234
235         JSLock should be per-JSGlobalData
236         https://bugs.webkit.org/show_bug.cgi?id=89123
237
238         Reviewed by Geoffrey Garen.
239
240         Changed all sites that used JSLock to instead use the new JSLockHolder
241         and pass in the correct JS context that the code is about to interact with that 
242         needs protection. Also added a couple JSLocks to places that didn't already 
243         have it that needed it.
244
245         * DOM/WebDOMOperations.mm:
246         (JSC):
247         * Misc/WebCoreStatistics.mm:
248         (+[WebCoreStatistics javaScriptObjectsCount]):
249         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
250         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
251         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
252         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
253         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
254         (+[WebCoreStatistics shouldPrintExceptions]):
255         (+[WebCoreStatistics setShouldPrintExceptions:]):
256         (+[WebCoreStatistics memoryStatistics]):
257         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
258         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
259         (WebKit::NetscapePluginInstanceProxy::evaluate):
260         (WebKit::NetscapePluginInstanceProxy::invoke):
261         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
262         (WebKit::NetscapePluginInstanceProxy::construct):
263         (WebKit::NetscapePluginInstanceProxy::getProperty):
264         (WebKit::NetscapePluginInstanceProxy::setProperty):
265         (WebKit::NetscapePluginInstanceProxy::removeProperty):
266         (WebKit::NetscapePluginInstanceProxy::hasMethod):
267         (WebKit::NetscapePluginInstanceProxy::enumerate):
268         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
269         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
270         * Plugins/WebNetscapePluginStream.mm:
271         (WebNetscapePluginStream::wantsAllStreams):
272         * Plugins/WebNetscapePluginView.mm:
273         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
274         (-[WebNetscapePluginView privateBrowsingModeDidChange]):
275         (-[WebNetscapePluginView setWindowIfNecessary]):
276         (-[WebNetscapePluginView createPluginScriptableObject]):
277         (-[WebNetscapePluginView getFormValue:]):
278         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
279         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
280         (-[WebNetscapePluginView loadPluginRequest:]):
281         (-[WebNetscapePluginView _printedPluginBitmap]):
282         * Plugins/WebPluginController.mm:
283         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
284         (-[WebPluginController stopOnePlugin:]):
285         (-[WebPluginController destroyOnePlugin:]):
286         (-[WebPluginController startAllPlugins]):
287         (-[WebPluginController addPlugin:]):
288         * WebView/WebFrame.mm:
289         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
290         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
291         * WebView/WebScriptDebugDelegate.mm:
292         (-[WebScriptCallFrame scopeChain]):
293         (-[WebScriptCallFrame evaluateWebScript:]):
294         * WebView/WebView.mm:
295         (+[WebView _reportException:inContext:]):
296         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
297         (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
298
299 2012-06-23  Sheriff Bot  <webkit.review.bot@gmail.com>
300
301         Unreviewed, rolling out r121058.
302         http://trac.webkit.org/changeset/121058
303         https://bugs.webkit.org/show_bug.cgi?id=89809
304
305         Patch causes plugins tests to crash in GTK debug builds
306         (Requested by zdobersek on #webkit).
307
308         * DOM/WebDOMOperations.mm:
309         (JSC):
310         * Misc/WebCoreStatistics.mm:
311         (+[WebCoreStatistics javaScriptObjectsCount]):
312         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
313         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
314         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
315         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
316         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
317         (+[WebCoreStatistics shouldPrintExceptions]):
318         (+[WebCoreStatistics setShouldPrintExceptions:]):
319         (+[WebCoreStatistics memoryStatistics]):
320         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
321         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
322         (WebKit::NetscapePluginInstanceProxy::evaluate):
323         (WebKit::NetscapePluginInstanceProxy::invoke):
324         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
325         (WebKit::NetscapePluginInstanceProxy::construct):
326         (WebKit::NetscapePluginInstanceProxy::getProperty):
327         (WebKit::NetscapePluginInstanceProxy::setProperty):
328         (WebKit::NetscapePluginInstanceProxy::removeProperty):
329         (WebKit::NetscapePluginInstanceProxy::hasMethod):
330         (WebKit::NetscapePluginInstanceProxy::enumerate):
331         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
332         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
333         * Plugins/WebNetscapePluginStream.mm:
334         (WebNetscapePluginStream::wantsAllStreams):
335         * Plugins/WebNetscapePluginView.mm:
336         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
337         (-[WebNetscapePluginView privateBrowsingModeDidChange]):
338         (-[WebNetscapePluginView setWindowIfNecessary]):
339         (-[WebNetscapePluginView createPluginScriptableObject]):
340         (-[WebNetscapePluginView getFormValue:]):
341         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
342         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
343         (-[WebNetscapePluginView loadPluginRequest:]):
344         (-[WebNetscapePluginView _printedPluginBitmap]):
345         * Plugins/WebPluginController.mm:
346         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
347         (-[WebPluginController stopOnePlugin:]):
348         (-[WebPluginController destroyOnePlugin:]):
349         (-[WebPluginController startAllPlugins]):
350         (-[WebPluginController addPlugin:]):
351         * WebView/WebFrame.mm:
352         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
353         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
354         * WebView/WebScriptDebugDelegate.mm:
355         (-[WebScriptCallFrame scopeChain]):
356         (-[WebScriptCallFrame evaluateWebScript:]):
357         * WebView/WebView.mm:
358         (+[WebView _reportException:inContext:]):
359         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
360         (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
361
362 2012-06-22  Alexandru Chiculita  <achicu@adobe.com>
363
364         [CSS Shaders] Re-enable the CSS Shaders compile time flag on Safari Mac
365         https://bugs.webkit.org/show_bug.cgi?id=89781
366
367         Reviewed by Dean Jackson.
368
369         Added ENABLE_CSS_SHADERS flag as enabled by default on Safari for Mac.
370
371         * Configurations/FeatureDefines.xcconfig:
372
373 2012-06-20  Mark Hahnenberg  <mhahnenberg@apple.com>
374
375         JSLock should be per-JSGlobalData
376         https://bugs.webkit.org/show_bug.cgi?id=89123
377
378         Reviewed by Gavin Barraclough.
379
380         Changed all sites that used JSLock to instead use the new JSLockHolder
381         and pass in the correct JS context that the code is about to interact with that 
382         needs protection.
383
384         * DOM/WebDOMOperations.mm:
385         (JSC):
386         * Misc/WebCoreStatistics.mm:
387         (+[WebCoreStatistics javaScriptObjectsCount]):
388         (+[WebCoreStatistics javaScriptGlobalObjectsCount]):
389         (+[WebCoreStatistics javaScriptProtectedObjectsCount]):
390         (+[WebCoreStatistics javaScriptProtectedGlobalObjectsCount]):
391         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
392         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
393         (+[WebCoreStatistics shouldPrintExceptions]):
394         (+[WebCoreStatistics setShouldPrintExceptions:]):
395         (+[WebCoreStatistics memoryStatistics]):
396         (+[WebCoreStatistics javaScriptReferencedObjectsCount]):
397         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
398         (WebKit::NetscapePluginInstanceProxy::evaluate):
399         (WebKit::NetscapePluginInstanceProxy::invoke):
400         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
401         (WebKit::NetscapePluginInstanceProxy::construct):
402         (WebKit::NetscapePluginInstanceProxy::getProperty):
403         (WebKit::NetscapePluginInstanceProxy::setProperty):
404         (WebKit::NetscapePluginInstanceProxy::removeProperty):
405         (WebKit::NetscapePluginInstanceProxy::hasMethod):
406         (WebKit::NetscapePluginInstanceProxy::enumerate):
407         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
408         (WebKit::NetscapePluginInstanceProxy::moveGlobalExceptionToExecState):
409         * Plugins/WebNetscapePluginStream.mm:
410         (WebNetscapePluginStream::wantsAllStreams):
411         * Plugins/WebNetscapePluginView.mm:
412         (-[WebNetscapePluginView sendEvent:isDrawRect:]):
413         (-[WebNetscapePluginView privateBrowsingModeDidChange]):
414         (-[WebNetscapePluginView setWindowIfNecessary]):
415         (-[WebNetscapePluginView createPluginScriptableObject]):
416         (-[WebNetscapePluginView getFormValue:]):
417         (-[WebNetscapePluginView evaluateJavaScriptPluginRequest:]):
418         (-[WebNetscapePluginView webFrame:didFinishLoadWithReason:]):
419         (-[WebNetscapePluginView loadPluginRequest:]):
420         (-[WebNetscapePluginView _printedPluginBitmap]):
421         * Plugins/WebPluginController.mm:
422         (+[WebPluginController plugInViewWithArguments:fromPluginPackage:]):
423         (-[WebPluginController stopOnePlugin:]):
424         (-[WebPluginController destroyOnePlugin:]):
425         (-[WebPluginController startAllPlugins]):
426         (-[WebPluginController addPlugin:]):
427         * WebView/WebFrame.mm:
428         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
429         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
430         * WebView/WebScriptDebugDelegate.mm:
431         (-[WebScriptCallFrame scopeChain]):
432         (-[WebScriptCallFrame evaluateWebScript:]):
433         * WebView/WebView.mm:
434         (+[WebView _reportException:inContext:]):
435         (-[WebView aeDescByEvaluatingJavaScriptFromString:]):
436         (-[WebView _computedStyleIncludingVisitedInfo:forElement:]):
437
438 2012-06-22  Amy Ousterhout  <aousterh@chromium.org>
439
440         Renamed DeviceOrientation to DeviceOrientationData
441         https://bugs.webkit.org/show_bug.cgi?id=88663
442
443         Reviewed by Steve Block.
444
445         Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation.
446         This change makes DeviceOrientationData consistent with DeviceMotionData.
447         * WebCoreSupport/WebDeviceOrientationClient.h:
448         (WebDeviceOrientationClient):
449         * WebCoreSupport/WebDeviceOrientationClient.mm:
450         (WebDeviceOrientationClient::lastOrientation):
451         * WebView/WebDeviceOrientation.mm:
452         * WebView/WebDeviceOrientationInternal.h:
453
454 2012-06-20  Garret Kelly  <gdk@chromium.org>
455
456         Moving cookieEnabled/setCookieEnabled from Page to Settings.
457         https://bugs.webkit.org/show_bug.cgi?id=89545
458
459         Reviewed by Adam Barth.
460
461         * WebView/WebView.mm:
462         (-[WebView _cookieEnabled]):
463         (-[WebView _setCookieEnabled:]):
464
465 2012-06-19  Dan Bernstein  <mitz@apple.com>
466
467         WebKit/mac part of: Paginated display API doesn’t allow setting the page progression direction
468         https://bugs.webkit.org/show_bug.cgi?id=89394
469
470         Reviewed by Darin Adler.
471
472         * WebView/WebView.mm:
473         (-[WebView _setPaginationMode:]): Changed to map new WebPaginationMode values to new
474         Pagination::Mode values.
475         (-[WebView _paginationMode]): Similarly, in the opposite direction.
476         * WebView/WebViewPrivate.h: Replaced WebPaginationMode values with ones that specify an
477         axis and a direction along that axis.
478
479 2012-06-18  Andy Estes  <aestes@apple.com>
480
481         [Mac] -[WebPDFView _menuItemsFromPDFKitForEvent:] leaks NSMenuItems
482         https://bugs.webkit.org/show_bug.cgi?id=89434
483
484         Reviewed by Darin Adler.
485
486         * WebView/WebPDFView.mm:
487         (-[WebPDFView _menuItemsFromPDFKitForEvent:]): Release copied
488         NSMenuItems once they're stored in copiedItems.
489
490 2012-06-19  Mike West  <mkwst@chromium.org>
491
492         Introduce ENABLE_CSP_NEXT configuration flag.
493         https://bugs.webkit.org/show_bug.cgi?id=89300
494
495         Reviewed by Adam Barth.
496
497         The 1.0 draft of the Content Security Policy spec is just about to
498         move to Last Call. We'll hide work on the upcoming 1.1 spec behind
499         this ENABLE flag, disabled by default.
500
501         Spec: https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html
502
503         * Configurations/FeatureDefines.xcconfig:
504
505 2012-06-14  Jia Pu  <jpu@apple.com>
506
507         Mark text with text alternative with blue underline.
508         https://bugs.webkit.org/show_bug.cgi?id=83047
509
510         Reviewed by Enrica Casucci.
511
512         Changes in WebKit include implementation of new functions declared in AlternativeTextClient,
513         and logic for calling Editor::insertDictatedText() instead of Editor::insertText() when there's
514         alternatives attached to the input string.
515
516         * WebCoreSupport/CorrectionPanel.mm:
517         (correctionIndicatorType):
518         (CorrectionPanel::handleAcceptedReplacement):
519         * WebCoreSupport/WebAlternativeTextClient.h:
520         (WebAlternativeTextClient):
521         * WebCoreSupport/WebAlternativeTextClient.mm:
522         (WebAlternativeTextClient::showCorrectionAlternative):
523         (WebAlternativeTextClient::dismissAlternative):
524         (WebAlternativeTextClient::dismissAlternativeSoon):
525         (WebAlternativeTextClient::recordAutocorrectionResponse):
526         (WebAlternativeTextClient::removeDictationAlternatives):
527         (WebAlternativeTextClient::showDictationAlternativeUI):
528         (WebAlternativeTextClient::dismissDictationAlternativeUI):
529         (WebAlternativeTextClient::dictationAlternatives):
530         * WebView/WebHTMLView.mm:
531         (-[WebHTMLView validAttributesForMarkedText]):
532         (-[WebHTMLView insertText:]):
533         * WebView/WebView.mm:
534         (-[WebView handleAcceptedAlternativeText:]):
535         (-[WebView _getWebCoreDictationAlternatives:fromTextAlternatives:]):
536         (-[WebView _showDictationAlternativeUI:WebCore::forDictationContext:]):
537         (-[WebView _dismissDictationAlternativeUI]):
538         (-[WebView _removeDictationAlternatives:]):
539         (-[WebView _dictationAlternatives:]):
540         * WebView/WebViewData.h:
541         * WebView/WebViewData.mm:
542         (-[WebViewPrivate init]):
543         * WebView/WebViewInternal.h:
544         * WebView/WebViewPrivate.h:
545
546 2012-06-11  Alexis Menard  <alexis.menard@openbossa.org>
547
548         [CSS3 Backgrounds and Borders] Protect box-decoration-break behind a feature flag.
549         https://bugs.webkit.org/show_bug.cgi?id=88804
550
551         Reviewed by Tony Chang.
552
553         Protect box-decoration-break behind a feature flag enabled by default.
554
555         * Configurations/FeatureDefines.xcconfig:
556
557 2012-06-11  Sam Weinig  <sam@webkit.org>
558
559         Remove support for disconnected/excluded from search frames, they are not used by Safari anymore
560         https://bugs.webkit.org/show_bug.cgi?id=88723
561
562         Reviewed by Dan Bernstein.
563
564         * WebView/WebFrame.mm:
565         * WebView/WebFramePrivate.h:
566         Remove -[WebFrame _setIsDisconnected:] and -[WebFrame _setExcludeFromTextSearch:]
567
568 2012-06-10  Sheriff Bot  <webkit.review.bot@gmail.com>
569
570         Unreviewed, rolling out r119955.
571         http://trac.webkit.org/changeset/119955
572         https://bugs.webkit.org/show_bug.cgi?id=88758
573
574         Breaks Chromium compile - Chromium depends on removed API
575         (Requested by dominicc on #webkit).
576
577         * WebView/WebFrame.mm:
578         (-[WebFrame _setIsDisconnected:]):
579         (-[WebFrame _setExcludeFromTextSearch:]):
580         * WebView/WebFramePrivate.h:
581
582 2012-06-10  Sam Weinig  <sam@webkit.org>
583
584         Remove support for disconnected/excluded from search frames, they are not used by Safari anymore
585         https://bugs.webkit.org/show_bug.cgi?id=88723
586
587         Reviewed by Dan Bernstein.
588
589         * WebView/WebFrame.mm:
590         * WebView/WebFramePrivate.h:
591         Remove -[WebFrame _setIsDisconnected:] and -[WebFrame _setExcludeFromTextSearch:]
592
593 2012-06-09  Sukolsak Sakshuwong  <sukolsak@google.com>
594
595         Add UNDO_MANAGER flag
596         https://bugs.webkit.org/show_bug.cgi?id=87908
597
598         Reviewed by Tony Chang.
599
600         * Configurations/FeatureDefines.xcconfig:
601
602 2012-06-07  Kentaro Hara  <haraken@chromium.org>
603
604         Reduce Node object size from 72 byte to 64 byte
605         https://bugs.webkit.org/show_bug.cgi?id=88528
606
607         Reviewed by Ryosuke Niwa.
608
609         Added a symbol for callRemovedLastRef().
610
611         * WebKit.order:
612
613 2012-06-06  Andy Estes  <aestes@apple.com>
614
615         Wrap uppercaseWord, lowercaseWord, and capitalizeWord with USE(APPKIT)
616         https://bugs.webkit.org/show_bug.cgi?id=88504
617
618         Reviewed by Dan Bernstein.
619
620         uppercaseWord, lowercaseWord, and capitalizeWord are methods declared
621         by NSResponder that subclasses are expected to implement. WebKit should
622         only support these implementations on platforms that use AppKit.
623
624         * WebCoreSupport/WebEditorClient.h:
625         * WebCoreSupport/WebEditorClient.mm:
626
627 2012-06-05  Anders Carlsson  <andersca@apple.com>
628
629         Build fix.
630
631         * WebCoreSupport/WebFrameLoaderClient.mm:
632         (WebFrameLoaderClient::createPlugin):
633         The error constant has been renamed.
634
635 2012-06-05  Anders Carlsson  <andersca@apple.com>
636
637         Rename a plug-in loading error constant
638         https://bugs.webkit.org/show_bug.cgi?id=88381
639         <rdar://problem/11602601>
640
641         Reviewed by Sam Weinig.
642
643         * Misc/WebKitErrors.h:
644
645 2012-06-05  Dongwoo Im  <dw.im@samsung.com>
646
647         Add 'isProtocolHandlerRegistered' and 'unregisterProtocolHandler'.
648         https://bugs.webkit.org/show_bug.cgi?id=73176
649
650         Reviewed by Adam Barth.
651
652         Two more APIs are added in Custom Scheme Handler specification.
653         http://dev.w3.org/html5/spec/Overview.html#custom-handlers
654         One is 'isProtocolHandlerRegistered' to query whether the specific URL
655         is registered or not.
656         The other is 'unregisterProtocolHandler' to remove the registered URL.
657
658         * Configurations/FeatureDefines.xcconfig: Add a macro 'ENABLE_CUSTOM_SCHEME_HANDLER'.
659
660 2012-06-04  David Kilzer  <ddkilzer@apple.com>
661
662         BUILD FIX: FeatureDefines.xcconfig should match across projects
663
664         * Configurations/FeatureDefines.xcconfig:
665         - Fix sort order of ENABLE_CSS3_FLEXBOX.
666         - Fix typo in ENABLE_FONT_BOOSTING.
667         - Add missing ENABLE_LEGACY_CSS_VENDOR_PREFIXES.
668
669 2012-06-02  Yongjun Zhang  <yongjun_zhang@apple.com>
670
671         loadRequest should check for empty URLs.
672         https://bugs.webkit.org/show_bug.cgi?id=88154
673
674         In [WebFrame loadRequest], if the url is invalid and not nil, we transform it to file: url.
675         However, WebKit client could send down an empty URL that makes us transform it to file: url
676         as well.  We should skip that as we did for nil URLs.
677
678         Reviewed by Brady Eidson.
679
680         * WebView/WebFrame.mm:
681         (-[WebFrame loadRequest:]):
682
683 2012-06-01  Michael Saboff  <msaboff@apple.com>
684
685         WebFrame::_stringByEvaluatingJavaScriptFromString methods don't handle nil string
686         https://bugs.webkit.org/show_bug.cgi?id=88109
687
688         Reviewed by Geoffrey Garen.
689
690         Added short circuit return when the NSString to evaluate is nil.
691
692         * WebView/WebFrame.mm:
693         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
694         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
695
696 2012-05-31  Hajime Morrita  <morrita@chromium.org>
697
698         REGRESSION(r117572): editing/spelling/spellcheck-async-remove-frame.html crashes on Mac
699         https://bugs.webkit.org/show_bug.cgi?id=86859
700
701         Reviewed by Ryosuke Niwa.
702
703         * WebCoreSupport/WebEditorClient.h:
704         * WebCoreSupport/WebEditorClient.mm:
705         (-[WebEditorSpellCheckResponder initWithClient:sequence:results:]):
706         (-[WebEditorSpellCheckResponder perform]):
707         (WebEditorClient::didCheckSucceeded):
708         (WebEditorClient::requestCheckingOfString):
709
710 2012-05-31  Andy Estes  <aestes@apple.com>
711
712         Disentangle code that relies on USE(AUTOMATIC_TEXT_REPLACEMENT) from that which merely relies on PLATFORM(MAC)
713         https://bugs.webkit.org/show_bug.cgi?id=87933
714
715         Reviewed by Dan Bernstein.
716
717         * WebCoreSupport/WebEditorClient.h:
718         * WebCoreSupport/WebEditorClient.mm:
719
720 2012-05-29  David Barr  <davidbarr@chromium.org>
721
722         Introduce ENABLE_CSS_IMAGE_RESOLUTION compile flag
723         https://bugs.webkit.org/show_bug.cgi?id=87685
724
725         Reviewed by Eric Seidel.
726
727         Add a configuration option for CSS image-resolution support, disabling it by default.
728
729         * Configurations/FeatureDefines.xcconfig:
730
731 2012-05-29  Nikolas Zimmermann  <nzimmermann@rim.com>
732
733         SVGViewSpec DOM bindings aka SVGSVGElement.currentView is unimplemented
734         https://bugs.webkit.org/show_bug.cgi?id=15495
735
736         Reviewed by Rob Buis.
737
738         * MigrateHeaders.make: Copy DOMSVGViewSpec*.h headers.
739
740 2012-05-25  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
741
742         WebKitTestRunner needs to support layoutTestController.setJavaScriptProfilingEnabled
743         https://bugs.webkit.org/show_bug.cgi?id=42328
744
745         Reviewed by Eric Seidel.
746
747         * WebInspector/WebInspector.mm:
748         (-[WebInspector setJavaScriptProfilingEnabled:]):
749
750 2012-05-24  Tim Horton  <timothy_horton@apple.com>
751
752         Add feature defines for web-facing parts of CSS Regions and Exclusions
753         https://bugs.webkit.org/show_bug.cgi?id=87442
754         <rdar://problem/10887709>
755
756         Reviewed by Dan Bernstein.
757
758         * Configurations/FeatureDefines.xcconfig:
759
760 2012-05-24  John Mellor  <johnme@chromium.org>
761
762         Font Boosting: Add compile flag and runtime setting
763         https://bugs.webkit.org/show_bug.cgi?id=87394
764
765         Reviewed by Adam Barth.
766
767         Add ENABLE_FONT_BOOSTING.
768
769         * Configurations/FeatureDefines.xcconfig:
770
771 2012-05-23  Ojan Vafai  <ojan@chromium.org>
772
773         add back the ability to disable flexbox
774         https://bugs.webkit.org/show_bug.cgi?id=87147
775
776         Reviewed by Tony Chang.
777
778         * Configurations/FeatureDefines.xcconfig:
779
780 2012-05-22  Tim Horton  <timothy_horton@apple.com>
781
782         Add a quirk for applications that depend on the relative ordering of progressCompleted/didFinishLoad
783         https://bugs.webkit.org/show_bug.cgi?id=87178
784         <rdar://problem/11468434>
785
786         Reviewed by Maciej Stachowiak.
787
788         Add plumbing for the quirk to flip the relative ordering of progressCompleted/didFinishLoad back
789         to the behavior before http://trac.webkit.org/changeset/94105. Make it apply to any Mail.app linked
790         against WebKit before that revision.
791
792         * Misc/WebKitVersionChecks.h:
793         * WebView/WebView.mm:
794         (-[WebView _needsDidFinishLoadOrderQuirk]):
795         (-[WebView _preferencesChanged:]):
796
797 2012-05-21  Gavin Barraclough  <barraclough@apple.com>
798
799         Disable private names by default in WebCore
800         https://bugs.webkit.org/show_bug.cgi?id=87088
801
802         Reviewed by Geoff Garen.
803
804         r117859 introduced a preliminary implementation of ES6-like private name objects to JSC.
805         These are probably not yet ready to be web-facing, so disabling by default in WebCore.
806         Opting-in for JSC & DumpRenderTree so that we can still run the fast/js/names.html test.
807
808         * WebView/WebPreferenceKeysPrivate.h:
809         * WebView/WebPreferences.mm:
810         (+[WebPreferences initialize]):
811         (-[WebPreferences setJavaScriptExperimentsEnabled:]):
812         (-[WebPreferences javaScriptExperimentsEnabled]):
813         * WebView/WebPreferencesPrivate.h:
814         * WebView/WebView.mm:
815         (-[WebView _preferencesChanged:]):
816             - Added JavaScriptExperimentsEnabled to WebPreferences.
817
818 2012-05-15  Gavin Barraclough  <barraclough@apple.com>
819
820         Add support for private names
821         https://bugs.webkit.org/show_bug.cgi?id=86509
822
823         Reviewed by Oliver Hunt.
824
825         The spec isn't final, but we can start adding support to allow property maps
826         to contain keys that aren't identifiers.
827
828         * Plugins/Hosted/ProxyInstance.mm:
829         (WebKit::ProxyClass::methodsNamed):
830         (WebKit::ProxyClass::fieldNamed):
831         (WebKit::ProxyInstance::getMethod):
832         (WebKit::ProxyInstance::methodsNamed):
833         (WebKit::ProxyInstance::fieldNamed):
834             - Removed PropertyName::impl(), call publicName() to get the string associated with a name.
835
836 2012-05-21  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
837
838         Move setEditingBehavior() from layoutTestController to window.internals
839         https://bugs.webkit.org/show_bug.cgi?id=42689
840
841         Reviewed by Hajime Morita and Kenneth Rohde Christiansen.
842
843         Remove Mac private API to get/set the editing behavior, since it was only there
844         for the DRT.
845
846         * WebKit.order:
847         * WebView/WebFrame.mm:
848         * WebView/WebFrameInternal.h:
849         * WebView/WebPreferenceKeysPrivate.h:
850         * WebView/WebPreferences.mm:
851         (+[WebPreferences initialize]):
852         * WebView/WebPreferencesPrivate.h:
853         * WebView/WebView.mm:
854         (-[WebView _preferencesChanged:]):
855
856 2012-05-20  Ryosuke Niwa  <rniwa@webkit.org>
857
858         Using createContextualFragment to insert a <script> does not cause the script to execute
859         https://bugs.webkit.org/show_bug.cgi?id=12234
860
861         Reviewed by Adam Barth.
862
863         Renamed FragmentScriptingNotAllowed to DisallowScriptingContent.
864
865         * WebView/WebFrame.mm:
866         (-[WebFrame _documentFragmentWithMarkupString:baseURLString:]):
867
868 2012-05-19  Andy Estes  <aestes@apple.com>
869
870         Fix build errors found when disabling ENABLE_DRAG_SUPPORT
871         https://bugs.webkit.org/show_bug.cgi?id=86947
872
873         Reviewed by Jon Honeycutt.
874
875         * WebCoreSupport/WebDragClient.h:
876         * WebCoreSupport/WebDragClient.mm:
877         * WebView/WebFrame.mm:
878         * WebView/WebFrameInternal.h:
879         * WebView/WebFrameView.mm:
880         (-[WebFrameView _setDocumentView:]):
881         * WebView/WebHTMLView.mm:
882         (-[WebHTMLView acceptsFirstMouse:]):
883         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
884         (matchesExtensionOrEquivalent):
885         * WebView/WebView.mm:
886         (-[WebView _commonInitializationWithFrameName:groupName:]):
887         (-[WebView moveDragCaretToPoint:]):
888         (-[WebView removeDragCaret]):
889
890 2012-04-27  Filip Pizlo  <fpizlo@apple.com>
891
892         DFG should have control flow graph simplification
893         https://bugs.webkit.org/show_bug.cgi?id=84553
894
895         Reviewed by Oliver Hunt.
896         
897         Merged r115512 from dfgopt.
898
899         JSValue::toBoolean(ExecState*) -> JSValue::toBoolean()
900         
901         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
902         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
903
904 2012-05-18  Tony Chang  <tony@chromium.org>
905
906         remove the CSS_GRID_LAYOUT compiler define, but default grid layout to off
907         https://bugs.webkit.org/show_bug.cgi?id=86767
908
909         Reviewed by Ojan Vafai.
910
911         * Configurations/FeatureDefines.xcconfig:
912         * WebView/WebPreferenceKeysPrivate.h:
913         * WebView/WebPreferences.mm:
914         (+[WebPreferences initialize]):
915         (-[WebPreferences cssGridLayoutEnabled]):
916         (-[WebPreferences setCSSGridLayoutEnabled:]):
917         * WebView/WebPreferencesPrivate.h:
918         * WebView/WebView.mm:
919         (-[WebView _preferencesChanged:]):
920
921 2012-05-18  MORITA Hajime <morrita@google.com>
922
923         Another unreviewed attempt to fix build breakage on r117572.
924
925         * WebCoreSupport/WebEditorClient.h:
926
927 2012-05-18  MORITA Hajime  <morrita@google.com>
928
929         https://bugs.webkit.org/show_bug.cgi?id=85515
930         Stale frame in WebCore::SpellChecker::didCheckSucceeded
931
932         Reviewed by Ryosuke Niwa.
933
934         * WebCoreSupport/WebEditorClient.h:
935
936 2012-05-17  Andy Estes  <aestes@apple.com>
937
938         Don't let -[CALayer renderInContext:] try to render WebView's root layer
939         https://bugs.webkit.org/show_bug.cgi?id=86773
940         <rdar://problem/10950075>
941
942         Reviewed by Dan Bernstein.
943
944         -[CALayer renderInContext:] doesn't correctly render our layer tree, so
945         don't let it try. Calling drawRect: with a bitmap context will already
946         do the right thing for WebViews.
947
948         * WebView/WebHTMLView.mm: Create a subclass of CALayer called WebLayerHostingLayer.
949         (-[WebLayerHostingLayer renderInContext:]): override renderInContext: to be a NOOP.
950         (-[WebHTMLView attachRootLayer:]): Create a WebLayerHostingLayer rather than a CALayer.
951
952 2012-05-17  Hironori Bono  <hbono@chromium.org>
953
954         [Refactoring] Move platform-specific code in Editor::respondToChangedSelection to the WebKit layer
955         https://bugs.webkit.org/show_bug.cgi?id=86591
956
957         Reviewed by Ryosuke Niwa.
958
959         This change adds a TextCheckerClient::shouldEraseMarkersAfterChangeSelection
960         function to remove platform-specific code from Editor::respondToChangedSelection
961         function.
962
963         No new tests, no change in behavior.
964
965         * WebCoreSupport/WebEditorClient.h:
966         * WebCoreSupport/WebEditorClient.mm:
967         (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
968
969 2012-05-17  Dan Bernstein  <mitz@apple.com>
970
971         REGRESSION (r117428): WebKit API/SPI was removed
972         https://bugs.webkit.org/show_bug.cgi?id=86748
973
974         Reverted r117428.
975
976         * WebKit.order:
977         * WebView/WebView.mm:
978         (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
979         * WebView/WebViewPrivate.h:
980
981 2012-05-17  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
982
983         Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
984         https://bugs.webkit.org/show_bug.cgi?id=86704
985
986         Reviewed by Eric Seidel.
987
988         Remove setDomainRelaxationForbiddenForURLScheme functions, because it is able to work in the
989         cross-port way through the InternalSettings interface.
990
991         * WebKit.order:
992         * WebView/WebView.mm:
993         * WebView/WebViewPrivate.h:
994
995 2012-05-15  Anders Carlsson  <andersca@apple.com>
996
997         Use unaccelerated scrolling deltas when rubber-banding
998         https://bugs.webkit.org/show_bug.cgi?id=86503
999         <rdar://problem/11378742>
1000
1001         Reviewed by Sam Weinig.
1002
1003         * WebCoreSupport/WebSystemInterface.mm:
1004         (InitWebCoreSystemInterface):
1005         Init new WKSI functions.
1006
1007 2012-05-14  Luke Macpherson  <macpherson@chromium.org>
1008
1009         Introduce ENABLE_CSS_VARIABLES compile flag.
1010         https://bugs.webkit.org/show_bug.cgi?id=86338
1011
1012         Reviewed by Dimitri Glazkov.
1013
1014         Add a configuration option for CSS Variables support, disabling it by default.
1015
1016         * Configurations/FeatureDefines.xcconfig:
1017
1018 2012-05-14  Michael Saboff  <msaboff@apple.com>
1019
1020         Enh: Add the Ability to Disable / Enable JavaScript GC Timer
1021         https://bugs.webkit.org/show_bug.cgi?id=86382
1022
1023         Reviewed by Darin Adler.
1024
1025         Plumbing to set / clear JS GC activity timer enable flag.
1026
1027         * Misc/WebCoreStatistics.h:
1028         * Misc/WebCoreStatistics.mm:
1029         (+[WebCoreStatistics setJavaScriptGarbageCollectorTimerEnabled:]):
1030
1031 2012-05-11  Gavin Barraclough  <barraclough@apple.com>
1032
1033         Introduce PropertyName class
1034         https://bugs.webkit.org/show_bug.cgi?id=86241
1035
1036         Reviewed by Geoff Garen.
1037
1038         Replace 'const Identifier&' arguments to functions accessing object properties with a new 'PropertyName' type.
1039         This change paves the way to allow for properties keyed by values that are not Identifiers.
1040
1041         This change is largely a mechanical find & replace.
1042         It also changes JSFunction's constructor to take a UString& instead of an Identifier&
1043         (since in some cases we can no longer guarantee that we'lll have an Identifier), and
1044         unifies Identifier's methods to obtain array indices onto PropertyName.
1045
1046         The new PropertyName class retains the ability to support .impl() and .ustring(), but
1047         in a future patch we may need to rework this, since not all PropertyNames should be
1048         equal based on their string representation.
1049
1050         * Plugins/Hosted/ProxyInstance.h:
1051         (ProxyInstance):
1052         * Plugins/Hosted/ProxyInstance.mm:
1053         (ProxyClass):
1054         (WebKit::ProxyClass::methodsNamed):
1055         (WebKit::ProxyClass::fieldNamed):
1056         (WebKit::ProxyRuntimeMethod::create):
1057         (WebKit::ProxyRuntimeMethod::finishCreation):
1058         (WebKit::ProxyInstance::getMethod):
1059         (WebKit::ProxyInstance::methodsNamed):
1060         (WebKit::ProxyInstance::fieldNamed):
1061
1062 2012-05-11  Brady Eidson  <beidson@apple.com>
1063
1064         <rdar://problem/11361907> and https://bugs.webkit.org/show_bug.cgi?id=86265
1065         REGRESSION(r104885): Images missing from printed YummySoup! recipes
1066
1067         We thought clients were passing paths as URLs.
1068         It turns out it was more likely they were passing file: URLs with the file: scheme removed.
1069         And that jives perfectly with the behavior change caused by r104885.
1070         
1071         Reviewed by Alexey Proskuryakov.
1072
1073         Rename _webkit_URLFromURLOrPath to _webkit_URLFromURLOrSchemelessFileURL, and change it
1074         to create the new URL simply by appending "file:":
1075         * Misc/WebNSURLExtras.h:
1076         * Misc/WebNSURLExtras.mm:
1077         (-[NSURL _webkit_URLFromURLOrSchemelessFileURL]):
1078
1079         * WebView/WebFrame.mm:
1080         (-[WebFrame loadRequest:]): Create the fixed url simply by appending "file:" to the
1081           existing URL string.
1082         (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
1083         (-[WebFrame loadHTMLString:baseURL:]):
1084         (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]):
1085
1086 2012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1087
1088         Move resumeAnimations to use Internals interface
1089         https://bugs.webkit.org/show_bug.cgi?id=86063
1090
1091         Reviewed by Alexey Proskuryakov.
1092
1093         Remove resumeAnimations functions, because it is able to work in the 
1094         cross-port way through the Internals interface.
1095
1096         * WebKit.order:
1097         * WebView/WebFrame.mm:
1098         * WebView/WebFramePrivate.h:
1099
1100 2012-05-10  Anders Carlsson  <andersca@apple.com>
1101
1102         WebKit1: Add a way to blacklist specific plug-ins/plug-in versions
1103         https://bugs.webkit.org/show_bug.cgi?id=86150
1104         <rdar://problem/9551196>
1105
1106         Reviewed by Sam Weinig.
1107
1108         * Misc/WebKitErrors.h:
1109         Add WebKitErrorInsecurePlugInVersion enum.
1110
1111         * Plugins/WebBasePluginPackage.h:
1112         * Plugins/WebBasePluginPackage.mm:
1113         (-[WebBasePluginPackage bundleIdentifier]):
1114         (-[WebBasePluginPackage bundleVersion]):
1115         Add bundleIdentifier and bundleVersion getters.
1116
1117         * WebCoreSupport/WebFrameLoaderClient.mm:
1118         (WebFrameLoaderClient::createPlugin):
1119         Check if the plug-in is blocked. If it is, set the unavailability reason and the error code.
1120
1121 2012-05-10  Anders Carlsson  <andersca@apple.com>
1122
1123         Rename the missing plug-in indicator to the unavailable plug-in indicator
1124         https://bugs.webkit.org/show_bug.cgi?id=86136
1125
1126         Reviewed by Sam Weinig.
1127
1128         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
1129         (-[WebHostedNetscapePluginView pluginHostDied]):
1130         * WebCoreSupport/WebChromeClient.h:
1131         * WebCoreSupport/WebChromeClient.mm:
1132         (WebChromeClient::shouldUnavailablePluginMessageBeButton):
1133         (WebChromeClient::unavailablePluginButtonClicked):
1134
1135 2012-05-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1136
1137         Move suspendAnimations to use Internals interface.
1138         https://bugs.webkit.org/show_bug.cgi?id=85986
1139
1140         Reviewed by Ryosuke Niwa.
1141
1142         Remove suspendAnimations functions, because it is able to work in the 
1143         cross-port way through the Internals interface.
1144
1145         * WebKit.order:
1146         * WebView/WebFrame.mm:
1147         * WebView/WebFramePrivate.h:
1148
1149 2012-05-08  Kent Tamura  <tkent@chromium.org>
1150
1151         Fixe Chromium build, and add a FIXME comment about a layering violation.
1152
1153         * WebCoreSupport/WebSystemInterface.mm:
1154         (InitWebCoreSystemInterface):
1155
1156 2012-05-08  Jon Lee  <jonlee@apple.com>
1157
1158         Safari warns that it needs to resend the form in an iFrame when going back
1159         https://bugs.webkit.org/show_bug.cgi?id=82658
1160         <rdar://problem/11292558>
1161
1162         Reviewed by Darin Adler.
1163
1164         * WebCoreSupport/WebSystemInterface.mm:
1165         (InitWebCoreSystemInterface): Add wkCFURLRequestAllowAllPostCaching.
1166
1167 2012-05-08  Timothy Hatcher  <timothy@apple.com>
1168
1169         Fix the SOFT_LINK_STAGED_FRAMEWORK_OPTIONAL macro so it passes the full path to dlopen.
1170
1171         <rdar://problem/11406517>
1172
1173         Reviewed by Mark Rowe.
1174
1175         * WebCoreSupport/WebInspectorClient.mm: Pass A to SOFT_LINK_STAGED_FRAMEWORK_OPTIONAL for the version.
1176
1177 2012-05-07  Andy Estes  <aestes@apple.com>
1178
1179         ENABLE_IFRAME_SEAMLESS should be part of FEATURE_DEFINES.
1180
1181         * Configurations/FeatureDefines.xcconfig:
1182
1183 2012-05-07  Eric Seidel  <eric@webkit.org>
1184
1185         Add ENABLE_IFRAME_SEAMLESS so Apple can turn off SEAMLESS if needed
1186         https://bugs.webkit.org/show_bug.cgi?id=85822
1187
1188         Reviewed by Adam Barth.
1189
1190         * Configurations/FeatureDefines.xcconfig:
1191
1192 2012-05-05  Dean Jackson  <dino@apple.com>
1193
1194         Add new Setting/Preference to disable requestAnimationFrame
1195         https://bugs.webkit.org/show_bug.cgi?id=85693
1196
1197         Reviewed by Simon Fraser.
1198
1199         Exposes a new WebPreference: WebKitRequestAnimationFrameEnabled.
1200         The default value is true. The majority of applications will leave
1201         it this way.
1202
1203         * WebView/WebPreferenceKeysPrivate.h:
1204         * WebView/WebPreferences.mm:
1205         (+[WebPreferences initialize]):
1206         (-[WebPreferences requestAnimationFrameEnabled]):
1207         (-[WebPreferences setRequestAnimationFrameEnabled:]):
1208         * WebView/WebPreferencesPrivate.h:
1209         * WebView/WebView.mm:
1210         (-[WebView _preferencesChanged:]):
1211
1212 2012-05-04  Jer Noble  <jer.noble@apple.com>
1213
1214         REGRESSION (r116127-r116165): 6 tests failing on Lion Debug (Tests)
1215         https://bugs.webkit.org/show_bug.cgi?id=85674
1216
1217         Reviewed by Oliver Hunt.
1218
1219         Null check the results of core([frame DOMDocument]).
1220
1221         * WebView/WebView.mm:
1222         (-[WebView _didStartProvisionalLoadForFrame:]):
1223
1224 2012-05-02  Jer Noble  <jer.noble@apple.com>
1225
1226         Taking a visibility:hidden element full screen causes full screen window to disappear.
1227         https://bugs.webkit.org/show_bug.cgi?id=85432
1228
1229         Reviewed by Maciej Stachowiak.
1230
1231         When given an initial or final frame with a zero width or height, return a rect representing
1232         the entire screen, rather than a rect with a zero or infinite size. Doing otherwise will
1233         confuse the window server when it's instructed to scale the full screen window to that size.
1234
1235         * WebView/WebFullScreenController.mm:
1236         (windowFrameFromApparentFrames):
1237
1238 2012-05-04  Jer Noble  <jer.noble@apple.com>
1239
1240         Full screen will exit during a provisional load of a non-ancestor iframe.
1241         https://bugs.webkit.org/show_bug.cgi?id=85230
1242
1243         Reviewed by Maciej Stachowiak .
1244
1245         Only exit full screen mode if the frame being loaded contains the full 
1246         screen element.
1247
1248         * WebView/WebView.mm:
1249         (-[WebView _didStartProvisionalLoadForFrame:]): Give the UIDelegate a first crack at handling the
1250         request to close the full screen window when a provisional load occurs.
1251
1252 2012-05-04  Jer Noble  <jer.noble@apple.com>
1253
1254         Move WebKitFullScreenListener into its own file.
1255         https://bugs.webkit.org/show_bug.cgi?id=85640
1256
1257         Reviewed by Maciej Stachowiak.
1258
1259         Move WebKitFullScreenListener into its own file, so it can be used by multiple classes.
1260
1261         * WebCoreSupport/WebKitFullScreenListener.h: Added.
1262         * WebCoreSupport/WebKitFullScreenListener.mm: Added.
1263         (-[WebKitFullScreenListener webkitWillEnterFullScreen]):
1264         (-[WebKitFullScreenListener webkitDidEnterFullScreen]):
1265         (-[WebKitFullScreenListener webkitWillExitFullScreen]):
1266         (-[WebKitFullScreenListener webkitDidExitFullScreen]):
1267         * WebCoreSupport/WebChromeClient.mm:
1268
1269 2012-05-04  Brady Eidson  <beidson@apple.com>
1270
1271         <rdar://problem/11312853> and https://bugs.webkit.org/show_bug.cgi?id=85635 
1272         Exception in [WebFrame loadRequest:] breaks some WebKit apps
1273
1274         Reviewed by Alexey Proskuryakov.
1275
1276         Some API clients pass in nil requests or requests with nil URLs.
1277         In r112571 we started rewriting these URLs resulting in an exception.
1278         Since we've supported nil requests until now, we should not try to rewrite these URLs.
1279
1280         * WebView/WebFrame.mm:
1281         (-[WebFrame loadRequest:]): Don't try to rewrite invalid URLs if they are also null.
1282
1283 2012-05-04  Nate Chapin  <japhet@chromium.org>
1284
1285         Don't require FrameLoaderClient to manufacture a commitData() call for empty documents.
1286         https://bugs.webkit.org/show_bug.cgi?id=85533
1287
1288         Reviewed by Alexey Proskuryakov.
1289
1290         * WebView/WebHTMLRepresentation.mm:
1291         (-[WebHTMLRepresentation finishedLoadingWithDataSource:]): Calling commitData when finishing is no longer necessary,
1292             as WebCore will take care of simulating the receipt of data and ensuring the requisite work gets done in the blank document case.
1293
1294 2012-05-03  Anders Carlsson  <andersca@apple.com>
1295
1296         useWebKitWebInspector should be more robust against missing files
1297         https://bugs.webkit.org/show_bug.cgi?id=85563
1298         <rdar://problem/11373948>
1299
1300         Reviewed by Dan Bernstein.
1301
1302         * WebCoreSupport/WebInspectorClient.mm:
1303         (useWebKitWebInspector):
1304
1305 2012-05-03  Tobias Netzel  <tobias.netzel@googlemail.com>
1306
1307         Bugs in WebFullScreenController
1308         https://bugs.webkit.org/show_bug.cgi?id=85388
1309
1310         Reviewed by Alexey Proskuryakov.
1311
1312         Leopard specific fixes:
1313         NSWindow doesn't respond to isOnActiveSpace so find out first.
1314         Values passed to SetSystemUIMode were swapped.
1315
1316         * WebView/WebFullScreenController.mm:
1317         (-[WebFullScreenController exitFullScreen]):
1318         (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
1319
1320 2012-05-02  Jon Lee  <jonlee@apple.com>
1321
1322         Migrate permission functions to Notification from NotificationCenter
1323         https://bugs.webkit.org/show_bug.cgi?id=80485
1324         <rdar://problem/10965458>
1325
1326         Reviewed by Jian Li.
1327
1328         * WebCoreSupport/WebNotificationClient.h: *
1329         WebCoreSupport/WebNotificationClient.mm: Add a separate callback
1330         variable depending on the notifications API enabled.
1331         (WebNotificationClient::requestPermission): Add
1332         NotificationPermissionCallback version of the same
1333         function. And refactor common code into private function.
1334         (-[WebNotificationPolicyListener initWithCallback:]): Refactor to
1335         take the NotificationPermissionCallback as a parameter.
1336         (-[WebNotificationPolicyListener initWithVoidCallback:]): Add new
1337         init method to handle legacy API.
1338         (-[WebNotificationPolicyListener allow]): Invoke the callback for
1339         both variables. If only one of the APIs is enabled, we are
1340         guaranteed that the relevant callback variable exists. If both
1341         APIs are supported, it is possible that _voidCallback will be nil
1342         if the callback is NotificationPermissionCallback, so we need the
1343         extra pointer check.
1344         (-[WebNotificationPolicyListener deny]): Ditto.
1345
1346 2012-05-02  Eric Seidel  <eric@webkit.org>
1347
1348         Sort ENABLE_ defines in FeatureDefines.xcconfig files to make them easier to compare with one another (and easier to autogenerate)
1349         https://bugs.webkit.org/show_bug.cgi?id=85433
1350
1351         Reviewed by Adam Barth.
1352
1353         I have a script which can autogenerate these xcconfig files as well as the
1354         vsprops files (and soon the Chromium, cmake, gnumake and qmake) feature lists
1355         from a central feature list file.
1356         In preparation for posting such a tool, I'm re-sorting these xcconfig files to be
1357         alphabetically ordered (currently they're close, but not quite).
1358         There is also at least one inconsistency between these files (CSS_LEGACY_PREFIXES) which
1359         I will fix in a second pass.  I will also sort the FEATURE_DEFINES = line in a follow-up patch.
1360
1361         * Configurations/FeatureDefines.xcconfig:
1362
1363 2012-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
1364
1365         FrameLoaderClient::dispatchWillSendSubmitEvent() should be given more
1366         information about the form being submitted
1367         https://bugs.webkit.org/show_bug.cgi?id=84297
1368
1369         Reviewed by Andy Estes.
1370
1371         * WebCoreSupport/WebFrameLoaderClient.h:
1372         Updated method declaration.
1373
1374 2012-05-01  Jon Honeycutt  <jhoneycutt@apple.com>
1375
1376         Make Page::setDefersLoading() have a call count so that each time
1377         loading is deferred, it must be balanced with a call to resume.
1378         https://bugs.webkit.org/show_bug.cgi?id=84522
1379
1380         Reviewed by Andy Estes.
1381
1382         * WebView/WebPreferenceKeysPrivate.h:
1383         Declare a new key for this preference.
1384
1385         * WebView/WebPreferences.mm:
1386         (+[WebPreferences initialize]):
1387         Initialize new preference to NO.
1388         (-[WebPreferences setWantsBalancedSetDefersLoadingBehavior:]):
1389         Setter.
1390         (-[WebPreferences wantsBalancedSetDefersLoadingBehavior]):
1391         Getter.
1392
1393         * WebView/WebPreferencesPrivate.h:
1394         Declare setter and getter.
1395
1396         * WebView/WebView.mm:
1397         (-[WebView _preferencesChanged:]):
1398         Set the setting from the WebPreferences object's value.
1399
1400 2012-05-01  Jeffrey Pfau  <jpfau@apple.com>
1401
1402         <rdar://problem/10422318> Support for web content filter delegate for filtering https content
1403         https://bugs.webkit.org/show_bug.cgi?id=85300
1404
1405         Reviewed by Alexey Proskuryakov.
1406
1407         * WebCoreSupport/WebSystemInterface.mm:
1408         (InitWebCoreSystemInterface):
1409
1410 2012-05-01  Ryosuke Niwa  <rniwa@webkit.org>
1411
1412         *Command.h files shouldn't be exported to WebKit layer
1413         https://bugs.webkit.org/show_bug.cgi?id=74778
1414
1415         Reviewed by Eric Seidel.
1416
1417         * WebView/WebFrame.mm:
1418         (-[WebFrame _insertParagraphSeparatorInQuotedContent]):
1419
1420 2012-04-28  Geoffrey Garen  <ggaren@apple.com>
1421
1422         Clarified JSGlobalData (JavaScript VM) lifetime
1423         https://bugs.webkit.org/show_bug.cgi?id=85142
1424
1425         Reviewed by Anders Carlsson.
1426
1427         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1428         (WebKit::NetscapePluginInstanceProxy::invoke):
1429         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
1430         (WebKit::NetscapePluginInstanceProxy::construct):
1431
1432 2012-04-27  Gavin Peters  <gavinp@chromium.org>
1433
1434         Add new ENABLE_LINK_PRERENDER define to control the Prerendering API
1435         https://bugs.webkit.org/show_bug.cgi?id=84871
1436
1437         Reviewed by Adam Barth.
1438
1439         Prerendering is currently covered by the ENABLE_LINK_PREFETCH macro, but the new Prerendering
1440         API separates it from prefetching.  Having separate include guards lets ports enable prefetching,
1441         a relatively easy change, without needing to build the infrastructure for prerendering, which
1442         is considerably more complicated.
1443
1444 2012-04-26  Jon Lee  <jonlee@apple.com>
1445
1446         [WK2] AlternativeTextClient leaks when the page is destroyed
1447         https://bugs.webkit.org/show_bug.cgi?id=84307
1448         <rdar://problem/11328431>
1449
1450         Reviewed by Enrica Casucci.
1451
1452         * WebCoreSupport/WebAlternativeTextClient.h: Implement pageDestroyed(), as in EditorClient.
1453         (WebAlternativeTextClient):
1454         * WebCoreSupport/WebAlternativeTextClient.mm:
1455         (WebAlternativeTextClient::pageDestroyed): Deletes itself.
1456
1457 2012-04-26  Jer Noble  <jer.noble@apple.com>
1458
1459         Full Screen mode does not preserve CALayer ordering after exiting.
1460         https://bugs.webkit.org/show_bug.cgi?id=83931
1461
1462         Reviewed by Eric Carlson.
1463
1464         Further corrections to r114567. When swapping view for otherView, give the correct
1465         relative view to -[NSView addSubview:positioned:relativeTo:].
1466
1467         * WebView/WebFullScreenController.mm:
1468         (-[WebFullScreenController _swapView:with:]):
1469
1470 2012-04-25  Jer Noble  <jer.noble@apple.com>
1471
1472         Placeholder view is immediately removed from hosting window upon entering full screen.
1473         https://bugs.webkit.org/show_bug.cgi?id=84916
1474
1475         Reviewed by Darin Adler.
1476
1477         Correct a mistake added in r114567.  When swapping view for otherView, add otherView and 
1478         remove view (rather than adding otherView and removing otherView).
1479
1480         * WebView/WebFullScreenController.mm:
1481         (-[WebFullScreenController _swapView:with:]):
1482
1483 2012-04-25  Beth Dakin  <bdakin@apple.com>
1484
1485         https://bugs.webkit.org/show_bug.cgi?id=84913
1486         WebKit 1: Initialize deviceScaleFactor on creation of the WebView
1487         -and corresponding-
1488         <rdar://problem/11322716>
1489
1490         Reviewed by Darin Adler.
1491
1492         Before this patch, we weren't setting the deviceScaleFactor until 
1493         viewDidMoveToWindow which is quite late for background tabs. setHostWindow will 
1494         happen early on though. For applications that don't use host windows, also set it 
1495         from _initWithFrame.
1496         * WebView/WebView.mm:
1497         (-[WebView _initWithFrame:frameName:groupName:usesDocumentViews:]):
1498         (-[WebView setHostWindow:]):
1499         (-[WebView _deviceScaleFactor]):
1500
1501 2012-04-24  Alexis Menard  <alexis.menard@openbossa.org>
1502
1503         Replace occurences of style selector from variables and methods names by style resolver.
1504         https://bugs.webkit.org/show_bug.cgi?id=84765
1505
1506         Reviewed by Andreas Kling.
1507
1508         Rename methods and variables to follow the new name StyleResolver. It requires to update the
1509         local variables, methods parameters, and function names to match the new name and to remove
1510         the concept of "selector" to avoid clashing with the CSS concept. The next and last patch
1511         will be to rename CSSStyleSelector file and update the includes.
1512
1513         * WebView/WebHTMLView.mm:
1514         (-[WebHTMLView reapplyStyles]):
1515         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:originalPageWidth:originalPageHeight:maximumShrinkRatio:adjustViewSize:paginateScreenContent:]):
1516
1517 2012-04-23  Andy Estes  <aestes@apple.com>
1518
1519         Incremental rendering should be unsuppressed after the load event or a configurable timeout, whichever occurs first.
1520         https://bugs.webkit.org/show_bug.cgi?id=84583
1521
1522         Add a private WebPreference for setting the incremental rendering suppression timeout.
1523
1524         Reviewed by Anders Carlsson.
1525
1526         * WebView/WebPreferenceKeysPrivate.h:
1527         * WebView/WebPreferences.mm:
1528         (-[WebPreferences setIncrementalRenderingSuppressionTimeoutInSeconds:]):
1529         (-[WebPreferences incrementalRenderingSuppressionTimeoutInSeconds]):
1530         * WebView/WebPreferencesPrivate.h:
1531         * WebView/WebView.mm:
1532         (-[WebView _preferencesChanged:]):
1533
1534 2012-04-23  Julien Chaffraix  <jchaffraix@webkit.org>
1535
1536         Cut dependency on RenderLayer::scrollRectToVisible outside rendering
1537         https://bugs.webkit.org/show_bug.cgi?id=84607
1538
1539         Reviewed by Simon Fraser.
1540
1541         * WebView/WebFrame.mm:
1542         (-[WebFrame _scrollDOMRangeToVisible:]):
1543         Updated to use RenderObject::scrollRectToVisible and not depend on RenderLayer.
1544
1545 2012-04-22  Jon Lee  <jonlee@apple.com>
1546
1547         Remove notifications support on Mac Lion.
1548         https://bugs.webkit.org/show_bug.cgi?id=84554
1549         <rdar://problem/11297128>
1550
1551         Reviewed by Sam Weinig.
1552
1553         * Configurations/FeatureDefines.xcconfig:
1554
1555 2012-04-20  Jon Lee  <jonlee@apple.com>
1556
1557         Add Notification constructor
1558         https://bugs.webkit.org/show_bug.cgi?id=80477
1559         <rdar://problem/10912431>
1560
1561         Reviewed by Jian Li.
1562
1563         * WebCoreSupport/WebNotificationClient.mm:
1564         (WebNotificationClient::clearNotifications): When clearing notifications, finalize
1565         them so that they can be cleaned up by the GC.
1566
1567 2012-04-20  Timothy Hatcher  <timothy@apple.com>
1568
1569         Make the Web Inspector be the first responder when opening docked.
1570
1571         <rdar://problem/11294217>
1572
1573         Reviewed by Brian Weinstein.
1574
1575         * WebCoreSupport/WebInspectorClient.mm:
1576         (-[WebInspectorWindowController showWindow:]): Call makeFirstResponder: on
1577         the window and pass the Inspector's WebView.
1578
1579 2012-04-18  Hironori Bono  <hbono@chromium.org>
1580
1581         Split SpellChecker::didCheck() to SpellChecker::didCheckSucceeded() and SpellChecker::didCheckCanceled()
1582         https://bugs.webkit.org/show_bug.cgi?id=83748
1583
1584         Reviewed by Ryosuke Niwa.
1585
1586         This change replaces a call for SpellChecker::didCheck() with one for
1587         SpellChecker::didCheckSucceeded() because didCheck has been split into
1588         didCheckSucceeded(0 and didCheckCanceled().
1589
1590         * WebCoreSupport/WebEditorClient.mm:
1591         (-[WebEditorSpellCheckResponder perform]): Replaced didCheck with didCheckSucceeded.
1592
1593 2012-04-18  Jer Noble  <jer.noble@apple.com>
1594
1595         Full Screen mode does not preserve CALayer ordering after exiting.
1596         https://bugs.webkit.org/show_bug.cgi?id=83931
1597
1598         Reviewed by Eric Carlson.
1599
1600         When swapping the placeholder and web views, use -[NSView addSubview:positioned:relativeTo:]
1601         instead of -[NSView replaceSubview:with:], as the latter does not preserve the relative order
1602         of the view's backing CALayers.
1603
1604         * WebView/WebFullScreenController.mm:
1605         (-[WebFullScreenController _swapView:with:]):
1606
1607 2012-04-18  Alexey Proskuryakov  <ap@apple.com>
1608
1609         [WK2] Sandbox violations prevent attaching files to gmail messages
1610         https://bugs.webkit.org/show_bug.cgi?id=84263
1611         <rdar://problem/11248260>
1612
1613         Reviewed by Oliver Hunt.
1614
1615         * WebCoreSupport/WebDragClient.mm: (WebDragClient::willPerformDragDestinationAction):
1616         DragDestinationActionUpload no longer exists, so we don't need a special case for it.
1617
1618 2012-04-17  Jer Noble  <jer.noble@apple.com>
1619
1620         Exiting full screen video brings the wrong Safari window to the foreground
1621         https://bugs.webkit.org/show_bug.cgi?id=83936
1622
1623         Reviewed by Adele Peterson.
1624
1625         Tell the original webView's window to makeKeyAndOrderFront once the exit
1626         animation completes.
1627
1628         * WebView/WebFullScreenController.mm:
1629         (-[WebFullScreenController finishedExitFullScreenAnimation:]):
1630
1631 2012-04-16  Anders Carlsson  <andersca@apple.com>
1632
1633         Use a MIG call when creating a plug-in property list file
1634         https://bugs.webkit.org/show_bug.cgi?id=84084
1635         <rdar://problem/11197341>
1636
1637         Reviewed by Sam Weinig.
1638
1639         * Plugins/Hosted/NetscapePluginHostManager.mm:
1640         (WebKit::NetscapePluginHostManager::createPropertyListFile):
1641         Get a plug-in host and call _WKPHCreatePluginMIMETypesPreferences instead.
1642
1643         * Plugins/Hosted/WebKitPluginHost.defs:
1644         Add PHCreatePluginMIMETypesPreferences.
1645
1646         * Plugins/WebNetscapePluginPackage.mm:
1647         (-[WebNetscapePluginPackage createPropertyListFile]):
1648         NetscapePluginHostManager::createPropertyListFile is no longer a static member function.
1649
1650 2012-04-12  Andy Estes  <aestes@apple.com>
1651
1652         REGRESSION (r102262): iAd Producer relies on CSSStyleDeclaration property setters respecting '!important'
1653         https://bugs.webkit.org/show_bug.cgi?id=83832
1654
1655         Reviewed by Alexey Proskuryakov.
1656
1657         * Misc/WebKitVersionChecks.h: Indicate that 535.13.0 was the first
1658         version of WebKit.framework to ignore '!important' in
1659         CSSStyleDeclaration property setters.
1660         * WebView/WebView.mm:
1661         (shouldRespectPriorityInCSSAttributeSetters):
1662         (-[WebView _commonInitializationWithFrameName:groupName:]): Enable a
1663         quirk to restore pre-r102262 behavior if the application is iAd Producer
1664         and was linked against a version of WebKit.framework that had the old behavior.
1665
1666 2012-04-12  Andy Estes  <aestes@apple.com>
1667
1668         Remove unused WebKit1 SPI for suppressing incremental rendering.
1669         https://bugs.webkit.org/show_bug.cgi?id=83801
1670
1671         Reviewed by Simon Fraser.
1672
1673         This SPI is unused and has been replaced by API ([setS|s]uppressesIncrementalRendering).
1674
1675         * WebView/WebPreferences.mm:
1676         * WebView/WebPreferencesPrivate.h:
1677
1678 2012-04-08  Dan Bernstein  <mitz@apple.com>
1679
1680         [mac] REGRESSION (r113467): Some canvas tests are failing in WebKit1 when run after compositing/tiled-layers-hidpi.html
1681         https://bugs.webkit.org/show_bug.cgi?id=83453
1682
1683         Reviewed by Sam Weinig.
1684
1685         * WebView/WebView.mm:
1686         (-[WebView _setCustomBackingScaleFactor:]): When the scale factor parameter was 0, meaning
1687         no custom scale factor, this method was setting the Page scale factor to 0, and that value
1688         was used by canvas. Changed it to correctly set the Page scale factor back to the device
1689         scale factor.
1690
1691 2012-04-06  Alexey Proskuryakov  <ap@apple.com>
1692
1693         [Mac] Adopt a different method of telling AppKit when inline input isn't supported
1694         https://bugs.webkit.org/show_bug.cgi?id=83408
1695         <rdar://problem/9205734>
1696
1697         Reviewed by Adele Peterson.
1698
1699         * Plugins/Hosted/WebTextInputWindowController.m:
1700         (-[WebTextInputView validAttributesForMarkedText]):
1701         (-[WebTextInputPanel init]):
1702         (-[WebTextInputPanel _interpretKeyEvent:string:]): Added a comment about old approach.
1703
1704 2012-04-06  Enrica Casucci  <enrica@apple.com>
1705
1706         Provide Obj-C private API to simplify markup.
1707         https://bugs.webkit.org/show_bug.cgi?id=83334
1708         <rdar://problem/11033861>
1709
1710         Reviewed by Sam Weinig.
1711
1712         * WebView/WebView.mm:
1713         (-[WebView _simplifyMarkup:endNode:]): Added.
1714         * WebView/WebViewPrivate.h:
1715
1716 2012-04-06  Tim Horton  <timothy_horton@apple.com>
1717
1718         Add autodetection of image orientation from EXIF information
1719         https://bugs.webkit.org/show_bug.cgi?id=19688
1720         <rdar://problem/4126979> and <rdar://problem/11091578>
1721
1722         Original patch by David Carson and Eric Seidel.
1723
1724         Reviewed by Simon Fraser.
1725
1726         Add a preference, ShouldRespectImageOrientation, which will cause WebCore to respect EXIF orientation in all images.
1727
1728         * WebView/WebPreferenceKeysPrivate.h:
1729         * WebView/WebPreferences.mm:
1730         (+[WebPreferences initialize]):
1731         (-[WebPreferences setShouldRespectImageOrientation:]):
1732         (-[WebPreferences shouldRespectImageOrientation]):
1733         * WebView/WebPreferencesPrivate.h:
1734         * WebView/WebView.mm:
1735         (-[WebView _preferencesChanged:]):
1736
1737 2012-04-06  Dan Bernstein  <mitz@apple.com>
1738
1739         <rdar://problem/10912476> HiDPI: Have canvas use a hidpi backing store, but downsample upon access
1740
1741         Reviewed by Sam Weinig.
1742
1743         * Configurations/FeatureDefines.xcconfig: Added ENABLE_HIGH_DPI_CANVAS.
1744
1745 2012-04-05  Jia Pu  <jpu@apple.com>
1746
1747         Move correction panel related functions from EditorClient into separated AlternativeTextClient class.
1748         https://bugs.webkit.org/show_bug.cgi?id=82970
1749
1750         Reviewed by Enrica Casucci.
1751
1752         Move correction panel related functions from WebEditorClient to the new WebAlternativeTextClient.
1753         See WebCore/ChangeLog for details.
1754
1755         * WebCoreSupport/CorrectionPanel.h:
1756         * WebCoreSupport/CorrectionPanel.mm:
1757         * WebCoreSupport/WebAlternativeTextClient.h: Added.
1758         (WebAlternativeTextClient):
1759         * WebCoreSupport/WebAlternativeTextClient.mm: Added.
1760         (WebAlternativeTextClient::WebAlternativeTextClient):
1761         (WebAlternativeTextClient::~WebAlternativeTextClient):
1762         (WebAlternativeTextClient::showCorrectionAlternative):
1763         (WebAlternativeTextClient::dismissAlternative):
1764         (WebAlternativeTextClient::dismissAlternativeSoon):
1765         (WebAlternativeTextClient::recordAutocorrectionResponse):
1766         * WebCoreSupport/WebEditorClient.h:
1767         * WebCoreSupport/WebEditorClient.mm:
1768         (WebEditorClient::~WebEditorClient):
1769         * WebView/WebView.mm:
1770         (-[WebView _commonInitializationWithFrameName:groupName:]):
1771
1772 2012-03-15  Jer Noble  <jer.noble@apple.com>
1773
1774         Full Screen mode should cancel before navigation.
1775         https://bugs.webkit.org/show_bug.cgi?id=81295
1776
1777         Reviewed by Anders Carlsson.
1778
1779         When a provisional load is started, if the page is currently in full screen mode, instruct
1780         the full screen controller to close the full screen window immediately.
1781
1782         * WebView/WebFullScreenController.h:
1783         * WebView/WebFullScreenController.mm:
1784         (-[WebFullScreenController isFullScreen]): Added.
1785         * WebView/WebView.mm:
1786         (-[WebView _didStartProvisionalLoadForFrame:]): Close the full screen window controller, if
1787             present and in full screen mode.
1788
1789 2012-04-03  Keishi Hattori  <keishi@webkit.org>
1790
1791         Disable ENABLE_DATALIST for now
1792         https://bugs.webkit.org/show_bug.cgi?id=82871
1793
1794         Reviewed by Kent Tamura.
1795
1796         * Configurations/FeatureDefines.xcconfig: Disabled ENABLE_DATALIST.
1797
1798 2012-04-03  Anders Carlsson  <andersca@apple.com>
1799
1800         Add audit token to PHCheckInWithPluginHost
1801         https://bugs.webkit.org/show_bug.cgi?id=83102
1802
1803         Reviewed by Sam Weinig.
1804
1805         * Plugins/Hosted/WebKitPluginHost.defs:
1806
1807 2012-04-02  Jia Pu  <jpu@apple.com>
1808
1809         Rename SpellingCorrectionController to AlternativeTextController.
1810         https://bugs.webkit.org/show_bug.cgi?id=82942
1811
1812         Reviewed by Enrica Casucci.
1813
1814         These changes are simply adopting new class names.
1815
1816         * WebCoreSupport/CorrectionPanel.h:
1817         (CorrectionPanel):
1818         * WebCoreSupport/CorrectionPanel.mm:
1819         (correctionIndicatorType):
1820         (CorrectionPanel::CorrectionPanel):
1821         (CorrectionPanel::~CorrectionPanel):
1822         (CorrectionPanel::show):
1823         (CorrectionPanel::dismiss):
1824         (CorrectionPanel::dismissInternal):
1825         (CorrectionPanel::handleAcceptedReplacement):
1826         * WebCoreSupport/WebEditorClient.h:
1827         * WebCoreSupport/WebEditorClient.mm:
1828         (WebEditorClient::~WebEditorClient):
1829         (WebEditorClient::showCorrectionPanel):
1830         (WebEditorClient::dismissCorrectionPanel):
1831         (WebEditorClient::dismissCorrectionPanelSoon):
1832         * WebView/WebView.mm:
1833         (-[WebView handleCorrectionPanelResult:]):
1834
1835 2012-04-03  Jer Noble  <jer.noble@apple.com>
1836
1837         ESC key in full screen does not result in webkitFullScreenChange event.
1838         https://bugs.webkit.org/show_bug.cgi?id=82755
1839         <rdar://problem/11093513>
1840
1841         Reviewed by Eric Carlson.
1842
1843         Instead of exiting full screen directly, ask the document to initiate exiting full screen. This ensures
1844         that the entire full screen element stack is cleared and that webkitFullScreenChange events are sent
1845         out correctly.
1846
1847         * WebView/WebFullScreenController.mm:
1848         (-[WebFullScreenController cancelOperation:]):
1849         (-[WebFullScreenController requestExitFullScreen]):
1850
1851 2012-04-01  Jon Lee  <jonlee@apple.com>
1852
1853         Rename notification properties and functions
1854         https://bugs.webkit.org/show_bug.cgi?id=80482
1855         <rdar://problem/10912432>
1856
1857         Reviewed by Kentaro Hara.
1858
1859         * WebView/WebNotification.h: Rename replaceID to tag.
1860         * WebView/WebNotification.mm:
1861         (-[WebNotification tag]):
1862
1863 2012-03-31  Timothy Hatcher  <timothy@apple.com>
1864
1865         Prevent opening external URLs in the Web Inspector's WebView.
1866
1867         All URLs not handled by the Inspector's JavaScript are now opened in the inspected WebView.
1868
1869         https://webkit.org/b/82812
1870         rdar://problem/9488558
1871
1872         Reviewed by Joseph Pecoraro.
1873
1874         * WebCoreSupport/WebInspectorClient.mm:
1875         (-[WebInspectorWindowController init]): Factored the URL code out of here into inspectorPagePath.
1876         (-[WebInspectorWindowController inspectorPagePath]): Added.
1877         (-[WebInspectorWindowController webView:decidePolicyForNavigationAction:request:frame:decisionListener:]): Added.
1878         Only allow non-main frame and the inspector page. All other URLs will be opened in the inspected page.
1879
1880 2012-03-30  Emil A Eklund  <eae@chromium.org>
1881
1882         Change WebKit/WebKit2 platform code to use pixel snapped values
1883         https://bugs.webkit.org/show_bug.cgi?id=82549
1884
1885         Change WebKit and WebKit2 platform code to use rounded locations and
1886         pixel snapped rects and sizes. This largely avoids having to expose the
1887         fractional layout types to the platform code.
1888
1889         Reviewed by Eric Seidel.
1890
1891         * DOM/WebDOMOperations.mm:
1892         (-[DOMNode _renderRect:]):
1893
1894 2012-03-30  Mark Pilgrim  <pilgrim@chromium.org>
1895
1896         GEOLOCATION should be implemented as Page Supplement
1897         https://bugs.webkit.org/show_bug.cgi?id=82228
1898
1899         Reviewed by Adam Barth.
1900
1901         Geolocation is now a Supplement in Page so the interface
1902         has changed for setting up the page's geolocation client
1903         initially and accessing the controller later.
1904
1905         * WebView/WebView.mm:
1906         (-[WebView _commonInitializationWithFrameName:groupName:]):
1907         (-[WebView _geolocationDidChangePosition:]):
1908         (-[WebView _geolocationDidFailWithError:]):
1909
1910 2012-03-30  Keishi Hattori  <keishi@webkit.org>
1911
1912         Change ENABLE_INPUT_COLOR to ENABLE_INPUT_TYPE_COLOR and enable it for chromium
1913         https://bugs.webkit.org/show_bug.cgi?id=80972
1914
1915         Reviewed by Kent Tamura.
1916
1917         * Configurations/FeatureDefines.xcconfig:
1918
1919 2012-03-28  Alexey Proskuryakov  <ap@apple.com>
1920
1921         [Mac] REGRESSION: Removing translation of local paths in KURL constructor broke some applications
1922         https://bugs.webkit.org/show_bug.cgi?id=82548
1923         <rdar://problem/11125355>
1924         <rdar://problem/11142152>
1925
1926         Reviewed by Brady Eidson.
1927
1928         * WebView/WebFrame.mm:
1929         (-[WebFrame loadRequest:]): Fixed this bug.
1930         (-[WebFrame loadHTMLString:baseURL:]): Also added translation to another API, so that I don't
1931         have to come back again.
1932         (-[WebFrame loadAlternateHTMLString:baseURL:forUnreachableURL:]): Ditto.
1933
1934         * WebView/WebView.mm: (-[WebView setMainFrameURL:]): Changed another place where clients used
1935         to pass file paths instead of URLs.
1936
1937 2012-03-29  Sheriff Bot  <webkit.review.bot@gmail.com>
1938
1939         Unreviewed, rolling out r112553.
1940         http://trac.webkit.org/changeset/112553
1941         https://bugs.webkit.org/show_bug.cgi?id=82638
1942
1943         It made all tests crash on Qt WK2 (Requested by Ossy_away on
1944         #webkit).
1945
1946         * WebView/WebView.mm:
1947         (-[WebView _commonInitializationWithFrameName:groupName:]):
1948         (-[WebView _geolocationDidChangePosition:]):
1949         (-[WebView _geolocationDidFailWithError:]):
1950
1951 2012-03-29  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1952
1953         HashMap<>::add should return a more descriptive object
1954         https://bugs.webkit.org/show_bug.cgi?id=71063
1955
1956         Reviewed by Ryosuke Niwa.
1957
1958         Update code to use AddResult instead of a pair.
1959
1960         * Plugins/Hosted/NetscapePluginHostManager.mm:
1961         (WebKit::NetscapePluginHostManager::hostForPlugin):
1962         * Plugins/Hosted/ProxyInstance.mm:
1963         (WebKit::ProxyInstance::methodsNamed):
1964         (WebKit::ProxyInstance::fieldNamed):
1965         * WebCoreSupport/WebNotificationClient.mm:
1966         (WebNotificationClient::show):
1967
1968 2012-03-29  Mark Pilgrim  <pilgrim@chromium.org>
1969
1970         GEOLOCATION should be implemented as Page Supplement
1971         https://bugs.webkit.org/show_bug.cgi?id=82228
1972
1973         Reviewed by Adam Barth.
1974
1975         Geolocation is now a Supplement in Page so the interface
1976         has changed for setting up the page's geolocation client
1977         initially and accessing the controller later.
1978
1979         * WebView/WebView.mm:
1980         (-[WebView _commonInitializationWithFrameName:groupName:]):
1981         (-[WebView _geolocationDidChangePosition:]):
1982         (-[WebView _geolocationDidFailWithError:]):
1983
1984 2012-03-28  Nate Chapin  <japhet@chromium.org>
1985
1986         Remove dispatchDidLoadMainResource callback, since no
1987         port implements it.
1988         https://bugs.webkit.org/show_bug.cgi?id=82539
1989
1990         Reviewed by Alexey Proskuryakov.
1991
1992         * WebCoreSupport/WebFrameLoaderClient.h:
1993         * WebCoreSupport/WebFrameLoaderClient.mm:
1994         * WebKit.order:
1995
1996 2012-03-28  Joseph Pecoraro  <pecoraro@apple.com>
1997
1998         <http://webkit.org/b/82419> Web Inspector: Create -[DOMNode inspect] from IDL
1999
2000         Reviewed by Timothy Hatcher.
2001
2002         * MigrateHeaders.make: Copy DOMNodePrivate.h to PrivateHeaders.
2003
2004 2012-03-27  Timothy Hatcher  <timothy@apple.com>
2005
2006         Make WebKit properly load a staged framework when soft linking.
2007
2008         https://webkit.org/b/82371
2009         rdar://problem/11125989
2010
2011         Reviewed by Dan Bernstein.
2012
2013         * WebCoreSupport/WebInspectorClient.mm: Use SOFT_LINK_STAGED_FRAMEWORK_OPTIONAL to properly
2014         load the WebInspector framework.
2015
2016 2012-03-26  Adam Barth  <abarth@webkit.org>
2017
2018         FrameLoader::shouldAllowNavigation uses Frame for context rather than Document
2019         https://bugs.webkit.org/show_bug.cgi?id=81020
2020
2021         Reviewed by Eric Seidel.
2022
2023         Update call site to new function name.
2024
2025         * WebCoreSupport/WebFrameLoaderClient.mm:
2026         (WebFrameLoaderClient::dispatchWillSubmitForm):
2027
2028 2012-03-23  Alexey Proskuryakov  <ap@apple.com>
2029
2030         [Mac] No need for platform-specific ENABLE_BLOB values
2031         https://bugs.webkit.org/show_bug.cgi?id=82102
2032
2033         Reviewed by David Kilzer.
2034
2035         * Configurations/FeatureDefines.xcconfig:
2036
2037 2012-03-23  Dean Jackson  <dino@apple.com>
2038
2039         Disable CSS_SHADERS in Apple builds
2040         https://bugs.webkit.org/show_bug.cgi?id=81996
2041
2042         Reviewed by Simon Fraser.
2043
2044         Remove ENABLE_CSS_SHADERS from FeatureDefines. It's now in Platform.h.
2045
2046         * Configurations/FeatureDefines.xcconfig:
2047
2048 2012-03-22  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2049
2050         Convert hasGrammarMarker to use Internals interface
2051         https://bugs.webkit.org/show_bug.cgi?id=82004
2052
2053         Reviewed by Ryosuke Niwa.
2054
2055         Remove hasGrammarMarker support, since it can support in the cross-port way
2056         through the Internals interface.
2057
2058         * WebKit.order:
2059         * WebView/WebFrame.mm:
2060         * WebView/WebFramePrivate.h:
2061
2062 2012-03-22  Benjamin Poulain  <bpoulain@apple.com>
2063
2064         Build fix for WebHistory is busted after changing time zone
2065         https://bugs.webkit.org/show_bug.cgi?id=81849
2066
2067         Unreviewed build fix.
2068
2069         When generating warning for undefined message signature, rebuildHistoryByDayIfNeeded
2070         fail to compile due to addItemToDateCaches: being undefined.
2071
2072         Move the definition to the right place in the file to use the private method. 
2073
2074         * History/WebHistory.mm:
2075         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
2076
2077 2012-03-22  Benjamin Poulain  <bpoulain@apple.com>
2078
2079         WebHistory is busted after changing time zone
2080         https://bugs.webkit.org/show_bug.cgi?id=81849
2081
2082         Reviewed by Brady Eidson.
2083
2084         The date used for choosing the bucket of a new entry is computed
2085         with the system TimeZone.
2086
2087         When the Time Zone change, or the daylight saving time change, all the dates
2088         in _entriesByDate are offset from the new entries.
2089
2090         This patch solves the issue by re-distributing the WebHistoryItems if the time zone
2091         changes.
2092         The clients of WebHistory are notified of this change through the regular Notifications.
2093
2094         * History/WebHistory.mm:
2095         (-[WebHistoryPrivate rebuildHistoryByDayIfNeeded:]):
2096         (-[WebHistoryPrivate init]):
2097         (-[WebHistory timeZoneChanged:]):
2098         (-[WebHistory init]):
2099         (-[WebHistory dealloc]):
2100         (-[WebHistory finalize]):
2101
2102 2012-03-21  Tim Horton  <timothy_horton@apple.com>
2103
2104         Make use of CG rounded-rect primitives
2105         https://bugs.webkit.org/show_bug.cgi?id=79932
2106         <rdar://problem/9274953>
2107
2108         Reviewed by Simon Fraser.
2109         
2110         Portions of patch by Nikolas Zimmermann and Mustafizur Rahaman.
2111
2112         Add wkCGPathAddRoundedRect.
2113
2114         * WebCoreSupport/WebSystemInterface.mm:
2115         (InitWebCoreSystemInterface):
2116
2117 2012-03-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2118
2119         Convert hasSpellingMarker to use Internals interface.
2120         https://bugs.webkit.org/show_bug.cgi?id=81300
2121
2122         Reviewed by Ryosuke Niwa.
2123
2124         Remove hasSpellingMarker support, since it can support in the cross-port way
2125         through the Internals interface.
2126
2127         * WebKit.order:
2128         * WebView/WebFrame.mm:
2129         * WebView/WebFramePrivate.h:
2130
2131 2012-03-19  Adam Barth  <abarth@webkit.org>
2132
2133         Remove support for "magic" iframe
2134         https://bugs.webkit.org/show_bug.cgi?id=81590
2135
2136         Reviewed by Eric Seidel.
2137
2138         Remove FrameLoaderClient methods that no longer exist.
2139
2140         * WebCoreSupport/WebFrameLoaderClient.h:
2141         * WebCoreSupport/WebFrameLoaderClient.mm:
2142
2143 2012-03-19  Enrica Casucci  <enrica@apple.com>
2144
2145         WebKit2: create sandbox extensions for files that are dropped in an input control.
2146         https://bugs.webkit.org/show_bug.cgi?id=81153
2147         <rdar://problem/11031207>
2148
2149         Reviewed by Alexey Proskuryakov.
2150
2151         * WebCoreSupport/WebDragClient.mm:
2152         (WebDragClient::willPerformDragDestinationAction): Avoid calling the delegate with the new drag action.
2153         We want to avoid any unwanted side effects for the WebKit clients.
2154
2155 2012-03-19  Emil A Eklund  <eae@chromium.org>
2156
2157         [mac/chromium] Change platform code to use pixelSnappedRect methods
2158         https://bugs.webkit.org/show_bug.cgi?id=81016
2159
2160         Reviewed by Eric Seidel.
2161
2162         * Plugins/WebBaseNetscapePluginView.mm:
2163         (-[WebBaseNetscapePluginView actualVisibleRectInWindow]):
2164         * WebView/WebFrame.mm:
2165         (-[WebFrame _getVisibleRect:]):
2166         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
2167         * WebView/WebView.mm:
2168         (-[WebView _dashboardRegions]):
2169         (-[WebView trackedRepaintRects]):
2170
2171 2012-03-16  Brady Eidson  <beidson@apple.com>
2172
2173         <rdar://problem/11027997> and https://bugs.webkit.org/show_bug.cgi?id=81412
2174         REGRESSION (r107435) Copy a link and paste to Mail: Nothing is pasted
2175
2176         Reviewed by Geoff Garen.
2177
2178         * WebCoreSupport/WebEditorClient.mm:
2179         (WebEditorClient::setInsertionPasteboard):
2180         * WebCoreSupport/WebPlatformStrategies.h:
2181         (WebPlatformStrategies):
2182         * WebCoreSupport/WebPlatformStrategies.mm:
2183         (WebPlatformStrategies::url):
2184
2185 2012-03-08  Jer Noble  <jer.noble@apple.com>
2186
2187         Support W3C Full Screen API proposal
2188         https://bugs.webkit.org/show_bug.cgi?id=80660
2189
2190         Reviewed by Alexey Proskuryakov.
2191
2192         Allow full screen elements to access the keyboard.
2193
2194         * WebView/WebView.mm:
2195         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
2196
2197 2012-03-07  Jon Lee  <jonlee@apple.com>
2198
2199         Move NotificationContents into Notification
2200         https://bugs.webkit.org/show_bug.cgi?id=80487
2201         <rdar://problem/10965519>
2202
2203         Reviewed by Jian Li.
2204
2205         * WebView/WebNotification.mm: Refactor to use accessor methods on Notification.
2206         (-[WebNotification title]):
2207         (-[WebNotification body]):
2208
2209 2012-03-15  David Hyatt  <hyatt@apple.com>
2210
2211         https://bugs.webkit.org/show_bug.cgi?id=81258
2212
2213         Add a preference for enabling the new multi-column layout code that will be based on regions.
2214
2215         Reviewed by Beth Dakin.
2216
2217         * WebView/WebPreferenceKeysPrivate.h:
2218         * WebView/WebPreferences.mm:
2219         (+[WebPreferences initialize]):
2220         (-[WebPreferences setRegionBasedColumnsEnabled:]):
2221         (-[WebPreferences regionBasedColumnsEnabled]):
2222         * WebView/WebPreferencesPrivate.h:
2223         * WebView/WebView.mm:
2224         (-[WebView _preferencesChanged:]):
2225
2226 2012-03-15  Brady Eidson  <beidson@apple.com>
2227
2228         <rdar://problem/11036900> and https://bugs.webkit.org/show_bug.cgi?id=81079
2229         REGRESSION(r107844): Clipboard API only remembers most recent data set on clipboard
2230
2231         Reviewed by Sam Weinig.
2232
2233         Add the non-destructive "addTypes" to supplement the destructive "setTypes"
2234         * WebCoreSupport/WebPlatformStrategies.h:
2235         * WebCoreSupport/WebPlatformStrategies.mm:
2236         (WebPlatformStrategies::addTypes):
2237
2238 2012-03-14  Anders Carlsson  <andersca@apple.com>
2239
2240         java/java-and-plugins.html test failing
2241         https://bugs.webkit.org/show_bug.cgi?id=81188
2242         <rdar://problem/11048657>
2243
2244         Reviewed by Sam Weinig.
2245
2246         When we're marshaling JSObjects that wrap plug-in objects, make sure to check that the
2247         current plug-in instance is the same as the plug-in instance the object came from and don't
2248         pass the unwrapped object ID if that is the case.
2249         
2250         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2251         (WebKit::getObjectID):
2252         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
2253         (WebKit::NetscapePluginInstanceProxy::marshalValues):
2254         * Plugins/Hosted/ProxyInstance.h:
2255         (ProxyInstance):
2256         (WebKit::ProxyInstance::instanceProxy):
2257
2258 2012-03-14  Michael Saboff  <msaboff@apple.com>
2259
2260         REGRESSION(r110383): ASSERTION failures in JSCell::finishCreation causing multiple tests to "crash" on the Lion Intel Debug Bots
2261         https://bugs.webkit.org/show_bug.cgi?id=80993
2262
2263         Reviewed by Mark Rowe.
2264
2265         Moved $(BUILT_PRODUCTS_DIR)/usr/local/include to the front of HEADER_SEARCH_PATH
2266         to fix builds given the wtf move.
2267
2268         * Configurations/WebKit.xcconfig:
2269
2270 2012-03-13  Jon Lee  <jonlee@apple.com>
2271
2272         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
2273         https://bugs.webkit.org/show_bug.cgi?id=80922
2274         <rdar://problem/11035082>
2275
2276         Reviewed by Jian Li.
2277
2278         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
2279         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
2280         new API. Therefore, APIs that are common between the two will have:
2281         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
2282
2283         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
2284         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
2285
2286         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
2287         * WebCoreSupport/WebNotificationClient.h:
2288         * WebCoreSupport/WebNotificationClient.mm:
2289         (WebNotificationClient::show):
2290         (WebNotificationClient::cancel):
2291         (WebNotificationClient::clearNotifications):
2292         (WebNotificationClient::notificationObjectDestroyed):
2293         (WebNotificationClient::notificationControllerDestroyed):
2294         (WebNotificationClient::requestPermission):
2295         (WebNotificationClient::checkPermission):
2296         * WebView/WebNotification.mm:
2297         (-[WebNotification title]):
2298         (-[WebNotification body]):
2299         (-[WebNotification replaceID]):
2300         (-[WebNotification origin]):
2301         (-[WebNotification notificationID]):
2302         (-[WebNotification dispatchShowEvent]):
2303         (-[WebNotification dispatchCloseEvent]):
2304         (-[WebNotification dispatchClickEvent]):
2305         (-[WebNotification dispatchErrorEvent]):
2306         * WebView/WebNotificationInternal.h:
2307         * WebView/WebView.mm:
2308         (-[WebView _commonInitializationWithFrameName:groupName:]):
2309
2310 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
2311
2312         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
2313         https://bugs.webkit.org/show_bug.cgi?id=78853
2314
2315         Reviewed by Adam Barth.
2316
2317         * Configurations/FeatureDefines.xcconfig:
2318         * WebCoreSupport/WebChromeClient.h:
2319         (WebChromeClient):
2320         * WebCoreSupport/WebGeolocationClient.mm:
2321         (WebGeolocationClient::lastPosition):
2322         * WebView/WebGeolocationPosition.mm:
2323         (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
2324         (core):
2325         (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
2326         * WebView/WebGeolocationPositionInternal.h:
2327         * WebView/WebView.mm:
2328         (-[WebView _commonInitializationWithFrameName:groupName:]):
2329         (-[WebView _geolocationDidChangePosition:]):
2330         (-[WebView _geolocationDidFailWithError:]):
2331
2332 2012-03-12  Antonio Gomes  <agomes@rim.com>
2333
2334         Convert nodesFromRect tests to use Internals interface
2335         https://bugs.webkit.org/show_bug.cgi?id=80886
2336
2337         Reviewed by Ryosuke Niwa.
2338
2339         Removed mac specific support for nodesFromRect for testing purposes only,
2340         since it can work in a cross-port way through the Internals interface.
2341
2342         * WebKit.order:
2343         * WebView/WebView.mm:
2344         * WebView/WebViewPrivate.h:
2345
2346 2012-03-13  Anders Carlsson  <andersca@apple.com>
2347
2348         Remove a nonexistent WebUIDelegate method from WebUIDelegatePrivate.h
2349         https://bugs.webkit.org/show_bug.cgi?id=81014
2350
2351         Reviewed by Sam Weinig.
2352
2353         Remove a plug-in halter related WebUIDelegate method.
2354
2355         * WebView/WebUIDelegatePrivate.h:
2356
2357 2012-03-13  Shinya Kawanaka  <shinyak@chromium.org>
2358
2359         REGRESSION: Spellcheck tests hit assertions on Mac.
2360         https://bugs.webkit.org/show_bug.cgi?id=80883
2361
2362         Reviewed by Ryosuke Niwa.
2363
2364         The bug was caused by the closure object created in requestCheckingOfString accessing
2365         request's member variables even though the request object is not an NSObject or allocated
2366         in stack. This resulted in the closure not being able to access those variables when invoked.
2367
2368         Fixed the bug by making local copies of those member variables.
2369
2370         * WebCoreSupport/WebEditorClient.mm:
2371         (WebEditorClient::requestCheckingOfString):
2372
2373 2012-03-11  Timothy Hatcher  <timothy@apple.com>
2374
2375         Update how the Web Inspector resources are loaded.
2376
2377         https://bugs.webkit.org/show_bug.cgi?id=80798
2378         rdar://problem/10359959
2379
2380         Reviewed by Brian Weinstein.
2381
2382         * WebCoreSupport/WebInspectorClient.mm:
2383         (useWebKitWebInspector): Return if we are using the WebCore resources for compatibility
2384         with local and nightly builds.
2385         (WebInspectorFrontendClient::localizedStringsURL): Decide what path to use.
2386         (-[WebInspectorWindowController init]): Ditto.
2387         (-[WebInspectorWindowController window]): Decide if the window is textured or not.
2388
2389 2012-03-09  Jon Lee  <jonlee@apple.com>
2390
2391         Rename NotificationPresenter to NotificationClient
2392         https://bugs.webkit.org/show_bug.cgi?id=80488
2393         <rdar://problem/10965558>
2394
2395         Reviewed by Kentaro Hara.
2396
2397         Refactor to use renamed WebCore::NotificationClient.
2398         * WebCoreSupport/WebNotificationClient.h:
2399         * WebCoreSupport/WebNotificationClient.mm:
2400         (WebNotificationClient::checkPermission):
2401         * WebView/WebViewPrivate.h:
2402
2403 2012-03-09  Enrica Casucci  <enrica@apple.com>
2404
2405         Move WebNSURLExtras code down to WebCore.
2406         https://bugs.webkit.org/show_bug.cgi?id=80611
2407
2408         Reviewed by Alexey Proskuryakov.
2409
2410         Changed the implementation to use newly moved WebCore functions.
2411
2412         * Misc/WebKitNSStringExtras.mm:
2413         (-[NSString _webkit_hasCaseInsensitivePrefix:]):
2414         * Misc/WebNSURLExtras.mm:
2415         (+[NSURL _web_URLWithUserTypedString:]):
2416         (+[NSURL _web_URLWithDataAsString:relativeToURL:]):
2417         (+[NSURL _web_URLWithData:]):
2418         (+[NSURL _web_URLWithData:relativeToURL:]):
2419         (-[NSURL _web_originalData]):
2420         (-[NSURL _web_originalDataAsString]):
2421         (-[NSURL _web_userVisibleString]):
2422         (-[NSURL _web_isEmpty]):
2423         (-[NSURL _web_URLCString]):
2424         (-[NSURL _web_URLByTruncatingOneCharacterBeforeComponent:]):
2425         (-[NSURL _webkit_URLByRemovingFragment]):
2426         (-[NSURL _webkit_URLByRemovingResourceSpecifier]):
2427         (-[NSURL _web_URLByRemovingUserInfo]):
2428         (-[NSURL _web_dataForURLComponentType:]):
2429         (-[NSURL _web_schemeData]):
2430         (-[NSURL _web_hostData]):
2431         (-[NSString _web_isUserVisibleURL]):
2432         (-[NSString _web_hostNameNeedsDecodingWithRange:]):
2433         (-[NSString _web_hostNameNeedsEncodingWithRange:]):
2434         (-[NSString _web_decodeHostNameWithRange:]):
2435         (-[NSString _web_encodeHostNameWithRange:]):
2436         (-[NSString _web_decodeHostName]):
2437         (-[NSString _web_encodeHostName]):
2438         * WebCoreSupport/WebSystemInterface.mm:
2439         (InitWebCoreSystemInterface):
2440
2441 2012-03-09  Emil A Eklund  <eae@chromium.org>
2442
2443         Add roundedPoint to HitTestResult and change platform code to use it
2444         https://bugs.webkit.org/show_bug.cgi?id=80715
2445
2446         Reviewed by James Robinson.
2447
2448         Change ports to use roundedPoint to avoid exposing subpixel types to
2449         platform code.
2450
2451         * WebCoreSupport/WebContextMenuClient.mm:
2452         (WebContextMenuClient::showContextMenu):
2453
2454 2012-03-09  Jon Lee  <jonlee@apple.com>
2455
2456         Add support for ENABLE(LEGACY_NOTIFICATIONS)
2457         https://bugs.webkit.org/show_bug.cgi?id=80497
2458
2459         Reviewed by Adam Barth.
2460
2461         Prep for b80472: Update API for Web Notifications
2462         * Configurations/FeatureDefines.xcconfig:
2463
2464 2012-03-08  Ryosuke Niwa  <rniwa@webkit.org>
2465
2466         Mac build fix for micro data API.
2467
2468         * Configurations/FeatureDefines.xcconfig:
2469
2470 2012-03-08  Jer Noble  <jer.noble@apple.com>
2471
2472         Unreviewed Snow Leopard build fix.
2473
2474         On Leopard and Snow Leopard, provide an implementation for -[NSWindow convertRectToScreen:].
2475
2476         * WebView/WebFullScreenController.mm:
2477         (-[NSWindow convertRectToScreen:]):
2478
2479 2012-02-20  Jer Noble  <jer.noble@apple.com>
2480
2481         Full Screen Refactor Part 4: Animate into Full Screen mode using new animation classes, WebKit edition.
2482         https://bugs.webkit.org/show_bug.cgi?id=78930
2483
2484         Reviewed by Anders Carlsson.
2485
2486         Revise WebFullScreenController to have the same general functionality and code path as WKFullScreenWindowController
2487         in WebKit2.  As such, the following functions are copies of their equivalents in WKFullScreenWindowController:
2488         * WebView/WebFullScreenController.mm:
2489         (-[WebFullScreenController init]):
2490         (-[WebFullScreenController dealloc]):
2491         (-[WebFullScreenController windowDidLoad]):
2492         (-[WebFullScreenController cancelOperation:]):
2493         (-[WebFullScreenController applicationDidResignActive:]):
2494         (-[WebFullScreenController applicationDidChangeScreenParameters:]):
2495         (-[WebFullScreenController finishedEnterFullScreenAnimation:]):
2496         (-[WebFullScreenController finishedExitFullScreenAnimation:]):
2497         (-[WebFullScreenController close]):
2498         (-[WebFullScreenController animationDidEnd:]):
2499         (-[WebFullScreenController _updateMenuAndDockForFullScreen]):
2500         (-[WebFullScreenController _swapView:with:]):
2501         (createBackgroundFullscreenWindow):
2502         (windowFrameFromApparentFrames):
2503         (-[WebFullScreenController _startEnterFullScreenAnimationWithDuration:]):
2504         (-[WebFullScreenController _startExitFullScreenAnimationWithDuration:]):
2505
2506         The following is a copy of the equivalent function in WebFullScreenManager:
2507         * WebView/WebFullScreenController.mm:
2508         (screenRectOfContents):        
2509
2510         * WebCoreSupport/WebChromeClient.mm:
2511         (WebChromeClient::fullScreenRendererChanged): No longer tell the WebView the renderer changed (as it doesn't care.)
2512         * WebView/WebFullScreenController.h:
2513         * WebView/WebFullScreenController.mm:
2514         (-[WebFullScreenController setElement:]): No need to add event listeners to the media element.
2515         (-[WebFullScreenController enterFullScreen:]): Same as WKFullScreenWindowController, but not asynchronous.
2516         (-[WebFullScreenController exitFullScreen]): Ditto.
2517         * WebView/WebView.mm:
2518         (-[WebView _enterFullScreenForElement:WebCore::]): Fullscreen -> FullScreen.
2519         (-[WebView _exitFullScreenForElement:WebCore::]): Ditto.
2520
2521 2012-03-08  Matt Lilek  <mrl@apple.com>
2522
2523         Don't enable VIDEO_TRACK on all OS X platforms
2524         https://bugs.webkit.org/show_bug.cgi?id=80635
2525
2526         Reviewed by Eric Carlson.
2527
2528         * Configurations/FeatureDefines.xcconfig:
2529
2530 2012-03-07  Joseph Pecoraro  <pecoraro@apple.com>
2531
2532         <http://webkit.org/b/80510> Web Inspector crash (iCab)
2533
2534         Reviewed by Timothy Hatcher.
2535
2536         * WebCoreSupport/WebInspectorClient.mm:
2537         (WebInspectorClient::didResizeMainFrame):
2538
2539 2012-03-06  Benjamin Poulain  <bpoulain@apple.com>
2540
2541         [Mac] Update the configuration files for iOS
2542         https://bugs.webkit.org/show_bug.cgi?id=80435
2543
2544         Reviewed by David Kilzer.
2545
2546         * Configurations/WebKit.xcconfig:
2547
2548 2012-03-06  Eric Seidel  <eric@webkit.org>
2549
2550         Make WTF public headers use fully-qualified include paths and remove ForwardingHeaders/wtf
2551         https://bugs.webkit.org/show_bug.cgi?id=80363
2552
2553         Reviewed by Mark Rowe.
2554
2555         ForwardingHeaders/wtf is no longer necessary (or functional) now that JavaScriptCore
2556         no longer includes the WTF headers as private headers.
2557
2558         * ForwardingHeaders/wtf/ASCIICType.h: Removed.
2559         * ForwardingHeaders/wtf/AlwaysInline.h: Removed.
2560         * ForwardingHeaders/wtf/Assertions.h: Removed.
2561         * ForwardingHeaders/wtf/Deque.h: Removed.
2562         * ForwardingHeaders/wtf/DisallowCType.h: Removed.
2563         * ForwardingHeaders/wtf/FastMalloc.h: Removed.
2564         * ForwardingHeaders/wtf/Forward.h: Removed.
2565         * ForwardingHeaders/wtf/GetPtr.h: Removed.
2566         * ForwardingHeaders/wtf/HashCountedSet.h: Removed.
2567         * ForwardingHeaders/wtf/HashMap.h: Removed.
2568         * ForwardingHeaders/wtf/HashSet.h: Removed.
2569         * ForwardingHeaders/wtf/HashTraits.h: Removed.
2570         * ForwardingHeaders/wtf/ListHashSet.h: Removed.
2571         * ForwardingHeaders/wtf/ListRefPtr.h: Removed.
2572         * ForwardingHeaders/wtf/Locker.h: Removed.
2573         * ForwardingHeaders/wtf/MathExtras.h: Removed.
2574         * ForwardingHeaders/wtf/Noncopyable.h: Removed.
2575         * ForwardingHeaders/wtf/OwnArrayPtr.h: Removed.
2576         * ForwardingHeaders/wtf/OwnPtr.h: Removed.
2577         * ForwardingHeaders/wtf/OwnPtrCommon.h: Removed.
2578         * ForwardingHeaders/wtf/PassOwnPtr.h: Removed.
2579         * ForwardingHeaders/wtf/PassRefPtr.h: Removed.
2580         * ForwardingHeaders/wtf/Platform.h: Removed.
2581         * ForwardingHeaders/wtf/RefCounted.h: Removed.
2582         * ForwardingHeaders/wtf/RefCountedLeakCounter.h: Removed.
2583         * ForwardingHeaders/wtf/RefPtr.h: Removed.
2584         * ForwardingHeaders/wtf/RetainPtr.h: Removed.
2585         * ForwardingHeaders/wtf/StdLibExtras.h: Removed.
2586         * ForwardingHeaders/wtf/TemporaryChange.h: Removed.
2587         * ForwardingHeaders/wtf/Threading.h: Removed.
2588         * ForwardingHeaders/wtf/UnusedParam.h: Removed.
2589         * ForwardingHeaders/wtf/VMTags.h: Removed.
2590         * ForwardingHeaders/wtf/ValueCheck.h: Removed.
2591         * ForwardingHeaders/wtf/Vector.h: Removed.
2592         * ForwardingHeaders/wtf/VectorTraits.h: Removed.
2593         * ForwardingHeaders/wtf/unicode/Unicode.h: Removed.
2594         * ForwardingHeaders/wtf/unicode/icu/UnicodeIcu.h: Removed.
2595
2596 2012-03-05  Joseph Pecoraro  <pecoraro@apple.com>
2597
2598         Web Inspector: Hide dock button when not allowed to dock
2599         https://bugs.webkit.org/show_bug.cgi?id=78575
2600
2601         Reviewed by Pavel Feldman.
2602
2603         * WebCoreSupport/WebInspectorClient.h:
2604         (WebCore):
2605         (WebInspectorClient):
2606         * WebCoreSupport/WebInspectorClient.mm:
2607         (WebInspectorClient::didResizeMainFrame):
2608
2609 2012-03-05  Gavin Barraclough  <barraclough@apple.com>
2610
2611         putByIndex should throw in strict mode
2612         https://bugs.webkit.org/show_bug.cgi?id=80335
2613
2614         Reviewed by Filip Pizlo.
2615
2616         Make the MethodTable PutByIndex trap take a boolean 'shouldThrow' parameter.
2617
2618         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
2619         (WebKit::NetscapePluginInstanceProxy::setProperty):
2620
2621 2012-03-05  Joseph Pecoraro  <pecoraro@apple.com>
2622
2623         Unreviewed rollout of r109858 for restructuring.
2624
2625 2012-03-05  Joseph Pecoraro  <pecoraro@apple.com>
2626
2627         <http://webkit.org/b/78575> Web Inspector: Hide dock button when not allowed to dock
2628
2629         Reviewed by Timothy Hatcher.
2630
2631         * WebCoreSupport/WebInspectorClient.h:
2632         (WebInspectorClient):
2633         * WebCoreSupport/WebInspectorClient.mm:
2634         (WebInspectorClient::updateDockingAvailability):
2635
2636 2012-03-02  Jon Lee  <jonlee@apple.com>
2637
2638         Add support for notification replaceId in Mac WebKit and WK2
2639         https://bugs.webkit.org/show_bug.cgi?id=80206
2640         <rdar://problem/10965574>
2641
2642         Reviewed by Sam Weinig.
2643
2644         * WebView/WebNotification.h: Add replaceID method.
2645         * WebView/WebNotification.mm:
2646         (-[WebNotification replaceID]):
2647
2648 2012-03-05  Adam Barth  <abarth@webkit.org>
2649
2650         Geolocation should use a ScriptExecutionContext as its context object
2651         https://bugs.webkit.org/show_bug.cgi?id=80248
2652
2653         Reviewed by Kentaro Hara.
2654
2655         * WebView/WebFrame.mm:
2656         (-[WebFrame _cacheabilityDictionary]):
2657             - We no longer special-case Geolocation.
2658
2659 2012-03-03  Benjamin Poulain  <benjamin@webkit.org>
2660
2661         Remove the redundant method KURL::protocolInHTTPFamily()
2662         https://bugs.webkit.org/show_bug.cgi?id=80216
2663
2664         Reviewed by Anders Carlsson.
2665
2666         * WebCoreSupport/WebFrameLoaderClient.mm:
2667         (WebFrameLoaderClient::createPlugin):
2668
2669 2012-03-03  Hans Wennborg  <hans@chromium.org>
2670
2671         Implement Speech JavaScript API
2672         https://bugs.webkit.org/show_bug.cgi?id=80019
2673
2674         Reviewed by Adam Barth.
2675
2676         Add ENABLE_SCRIPTED_SPEECH.
2677
2678         * Configurations/FeatureDefines.xcconfig:
2679
2680 2012-03-03  Anders Carlsson  <andersca@apple.com>
2681
2682         Fix build with newer versions of clang.
2683
2684         * Panels/WebAuthenticationPanel.m:
2685         (-[WebAuthenticationPanel setUpForChallenge:]):
2686         Use %ld and cast to long.
2687
2688         * Plugins/WebNetscapePluginView.mm:
2689         (-[WebNetscapePluginView getVariable:value:]):
2690         Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
2691
2692 2012-03-01  Nikolas Zimmermann  <nzimmermann@rim.com>
2693
2694         Unreviewed, rolling out r109255.
2695         http://trac.webkit.org/changeset/109255
2696         https://bugs.webkit.org/show_bug.cgi?id=79932
2697
2698         Breaks rounded rects with dashed strokes in SVG
2699
2700         * WebCoreSupport/WebSystemInterface.mm:
2701         (InitWebCoreSystemInterface):
2702
2703 2012-02-29  Adam Barth  <abarth@webkit.org>
2704
2705         ScriptExecutionContext has too many ifdef ENABLE(SQL_DATABASE)
2706         https://bugs.webkit.org/show_bug.cgi?id=79633
2707
2708         Reviewed by Eric Seidel.
2709
2710         * WebView/WebFrame.mm:
2711         (-[WebFrame _cacheabilityDictionary]):
2712
2713 2012-02-29  Tim Horton  <timothy_horton@apple.com>
2714
2715         Make use of CG rounded-rect primitives
2716         https://bugs.webkit.org/show_bug.cgi?id=79932
2717         <rdar://problem/9274953>
2718
2719         Reviewed by Simon Fraser.
2720
2721         Add wkCGPathAddRoundedRect.
2722
2723         * WebCoreSupport/WebSystemInterface.mm:
2724         (InitWebCoreSystemInterface):
2725
2726 2012-02-29  Enrica Casucci  <enrica@apple.com>
2727
2728         Crash at -[WebFrame(WebInternal) _setTypingStyle:withUndoAction:]
2729         https://bugs.webkit.org/show_bug.cgi?id=79937
2730         <rdar://problem/10942936>
2731
2732         Reviewed by Dan Bernstein.
2733
2734         * WebView/WebFrame.mm:
2735         (-[WebFrame _setTypingStyle:withUndoAction:]): Adding a null check.
2736
2737 2012-02-28  Simon Fraser  <simon.fraser@apple.com>
2738
2739         Update WebKitSystemInterface.
2740
2741         Reviewed by Sam Weinig.
2742
2743         * WebCoreSupport/WebSystemInterface.mm:
2744         (InitWebCoreSystemInterface):
2745
2746 2012-02-28  Enrica Casucci  <enrica@apple.com>
2747
2748         More Pasteboard code cleanup.
2749         https://bugs.webkit.org/show_bug.cgi?id=79816
2750
2751         Removing the last references to NSPasteboard.
2752
2753         Reviewed by Alexey Proskuryakov.
2754
2755         * WebCoreSupport/WebEditorClient.h:
2756         * WebCoreSupport/WebEditorClient.mm:
2757         (WebEditorClient::setInsertionPasteboard):
2758
2759 2012-02-26  Hajime Morrita  <morrita@chromium.org>
2760
2761         Move ChromeClient::showContextMenu() to ContextMenuClient
2762         https://bugs.webkit.org/show_bug.cgi?id=79427
2763
2764         Reviewed by Adam Barth.
2765
2766         * WebCoreSupport/WebContextMenuClient.h:
2767         (WebContextMenuClient):
2768         * WebCoreSupport/WebContextMenuClient.mm:
2769         (WebContextMenuClient::showContextMenu): Moved from WebChromeClient
2770         * WebCoreSupport/WebChromeClient.h:
2771         * WebCoreSupport/WebChromeClient.mm:
2772
2773 2012-02-25  Sam Weinig  <sam@webkit.org>
2774
2775         QuickLook events don't make it to WebKit plugins.
2776         <rdar://problem/10931721>
2777
2778         Reviewed by Anders Carlsson.
2779
2780         * WebView/WebHTMLView.mm:
2781         (isQuickLookEvent):
2782         (-[WebHTMLView hitTest:]):
2783         Allow QuickLook events to hit test down to subviews.
2784
2785 2012-02-24  Brady Eidson  <beidson@apple.com>
2786
2787         <rdar://problem/10805709> and https://bugs.webkit.org/show_bug.cgi?id=79421
2788         Need a WK1 Mac API to filter which subframes go into WebArchives as they are created
2789
2790         Reviewed by Sam Weinig (with additional comments by Adam Roben)
2791
2792         Add webArchiveByFilteringSubframes: which takes a callback block:
2793         * DOM/WebDOMOperationsPrivate.h:
2794
2795         Add FrameFilter that adapts the block, and use it to implement the new SPI:
2796         * DOM/WebDOMOperations.mm:
2797         (WebFrameFilter):
2798         (WebFrameFilter::WebFrameFilter):
2799         (WebFrameFilter::~WebFrameFilter):
2800         (WebFrameFilter::shouldIncludeSubframe):
2801         (-[DOMNode webArchiveByFilteringSubframes:]):
2802
2803 2012-02-24  Shinya Kawanaka  <shinyak@chromium.org>
2804
2805         SpellCheckRequest needs to know the context where the spellcheck happened.
2806         https://bugs.webkit.org/show_bug.cgi?id=79320
2807
2808         Reviewed by Hajime Morita.
2809
2810         * WebCoreSupport/WebEditorClient.h:
2811         * WebCoreSupport/WebEditorClient.mm:
2812         (WebEditorClient::requestCheckingOfString):
2813
2814 2012-02-23  Andy Estes  <aestes@apple.com>
2815
2816         Rename [setS|s]uppressIncrementalRendering to [setS|s]uppressesIncrementalRendering and make it WebPreferences API.
2817         https://bugs.webkit.org/show_bug.cgi?id=79433
2818
2819         Reviewed by Dan Bernstein.
2820
2821         * WebCoreSupport/WebInspectorClient.mm:
2822         (-[WebInspectorWindowController init]):
2823         * WebView/WebPreferenceKeysPrivate.h:
2824         * WebView/WebPreferences.h:
2825         * WebView/WebPreferences.mm:
2826         (+[WebPreferences initialize]):
2827         (-[WebPreferences setSuppressesIncrementalRendering:]):
2828         (-[WebPreferences suppressesIncrementalRendering]):
2829         (-[WebPreferences setSuppressIncrementalRendering:]):
2830         (-[WebPreferences suppressIncrementalRendering]):
2831         * WebView/WebView.mm:
2832         (-[WebView _preferencesChanged:]):
2833
2834 2012-02-22  Hajime Morrita  <morrita@chromium.org>
2835
2836         NOTIFICATIONS should be implemented as PageSupplement
2837         https://bugs.webkit.org/show_bug.cgi?id=79052
2838
2839         Reviewed by Adam Barth.
2840
2841         * WebView/WebView.mm:
2842         (-[WebView _commonInitializationWithFrameName:groupName:]):
2843
2844 2012-02-21  Ryosuke Niwa  <rniwa@webkit.org>
2845
2846         Remove the remaining uses of CSSStyleDeclaration in Editor
2847         https://bugs.webkit.org/show_bug.cgi?id=78939
2848
2849         Reviewed by Enrica Casucci.
2850
2851         * WebCoreSupport/WebEditorClient.h:
2852         (WebEditorClient):
2853         * WebCoreSupport/WebEditorClient.mm:
2854         (WebEditorClient::shouldApplyStyle):
2855         * WebView/WebFrame.mm:
2856         (-[WebFrame _setTypingStyle:withUndoAction:]):
2857         * WebView/WebHTMLView.mm:
2858         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
2859         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
2860         * WebView/WebView.mm:
2861         (-[WebView applyStyle:]):
2862
2863 2012-02-22  Ryosuke Niwa  <rniwa@webkit.org>
2864
2865         Remove the remaining uses of CSSStyleDeclaration in Editor
2866         https://bugs.webkit.org/show_bug.cgi?id=78939
2867
2868         Reviewed by Enrica Casucci.
2869
2870         * WebCoreSupport/WebEditorClient.h:
2871         (WebEditorClient):
2872         * WebCoreSupport/WebEditorClient.mm:
2873         (WebEditorClient::shouldApplyStyle):
2874         * WebView/WebFrame.mm:
2875         (-[WebFrame _setTypingStyle:withUndoAction:]):
2876         * WebView/WebHTMLView.mm:
2877         (-[WebHTMLView _applyStyleToSelection:withUndoAction:]):
2878         (-[WebHTMLView _changeCSSColorUsingSelector:inRange:]):
2879         * WebView/WebView.mm:
2880         (-[WebView applyStyle:]):
2881
2882 2012-02-22  Jon Lee  <jonlee@apple.com>
2883
2884         Part of r108409 was incorrect, and incorporated an older version of a sub-patch.
2885         This is the actual sub-patch that should have been submitted.
2886
2887         * WebCoreSupport/WebNotificationClient.h:
2888         * WebCoreSupport/WebNotificationClient.mm:
2889         (WebNotificationClient::show):
2890         (WebNotificationClient::cancel):
2891         (WebNotificationClient::clearNotifications):
2892         (WebNotificationClient::notificationObjectDestroyed):
2893         (WebNotificationClient::notificationControllerDestroyed):
2894
2895 2012-02-21  Jon Lee  <jonlee@apple.com>
2896
2897         Build fix. Push ENABLE_NOTIFICATIONS into .mm file.
2898
2899         * WebCoreSupport/WebNotificationClient.h:
2900         * WebView/WebNotification.h:
2901         * WebView/WebNotification.mm:
2902         (-[WebNotification title]):
2903         (-[WebNotification body]):
2904         (-[WebNotification origin]):
2905         (-[WebNotification notificationID]):
2906         (-[WebNotification dispatchShowEvent]):
2907         (-[WebNotification dispatchCloseEvent]):
2908         (-[WebNotification dispatchClickEvent]):
2909         (-[WebNotification dispatchErrorEvent]):
2910
2911 2012-02-21  John Sullivan  <sullivan@apple.com>
2912
2913         Build fix.
2914
2915         * WebView/WebUIDelegatePrivate.h:
2916         Added @class declarations for DOMNode and DOMElement.
2917
2918 2012-02-21  Jon Lee  <jonlee@apple.com>
2919
2920         Build fix for r108409.
2921
2922         * WebCoreSupport/WebNotificationClient.h:
2923         (WebCore):
2924         * WebCoreSupport/WebNotificationClient.mm:
2925         * WebView/WebNotification.h:
2926         (WebSecurityOrigin):
2927         * WebView/WebNotification.mm:
2928         (core):
2929         (-[WebNotification initWithCoreNotification:notificationID:]):
2930
2931 2012-02-21  Jon Lee  <jonlee@apple.com>
2932
2933         Bring notifications support to WK1 mac: permission requests
2934         https://bugs.webkit.org/show_bug.cgi?id=78783
2935         <rdar://problem/10610578>
2936
2937         Reviewed by Anders Carlsson.
2938
2939         * WebCoreSupport/WebNotificationClient.h:
2940         * WebCoreSupport/WebNotificationClient.mm: Create policy listener, which conforms to the
2941         WebAllowDenyPolicyListener protocol, similar to geolocation.
2942         (WebNotificationClient::requestPermission):
2943         (WebNotificationClient::checkPermission):
2944         (-[WebNotificationPolicyListener initWithCallback:]):
2945         (-[WebNotificationPolicyListener allow]): Call the callback.
2946         (-[WebNotificationPolicyListener deny]): Call the callback.
2947         * WebView/WebUIDelegatePrivate.h: Define new UI delegate method to ask the user to decide a
2948         policy for navigations.
2949
2950         ====
2951         Bring notifications support to WK1 mac: showing, canceling, removing notifications
2952
2953         Create a WebKit wrapper object for WebCore::Notification, which also keeps track of an assigned
2954         ID.
2955         * WebView/WebNotification.h: Added.
2956         (WebSecurityOrigin):
2957         * WebView/WebNotification.mm: Added.
2958         (core):
2959         (-[WebNotification initWithCoreNotification:notificationID:]):
2960         (-[WebNotification init]):
2961         (-[WebNotification dealloc]):
2962         (-[WebNotification title]):
2963         (-[WebNotification body]):
2964         (-[WebNotification origin]):
2965         (-[WebNotification notificationID]):
2966         (-[WebNotification dispatchShowEvent]):
2967         (-[WebNotification dispatchCloseEvent]):
2968         (-[WebNotification dispatchClickEvent]):
2969         (-[WebNotification dispatchErrorEvent]):
2970         * WebView/WebNotificationInternal.h: Added.
2971         (WebCore): Internal category to allow creating instances with WebCore objects.
2972
2973         Extend WebView to include a WebNotificationProvider, which clients implement.
2974         * WebView/WebViewData.h: Add a private member for the provider.
2975         * WebView/WebViewPrivate.h:
2976             * Define an enum WebNotificationPermission that mirrors WebCore::NotificationPresenter::Permission
2977             that client which implement the provider can use to return policy decisions.
2978             * Define WebNotificationProvider.
2979             * Category WebViewNotification extends WebView with methods that set and manager the
2980             notification provider, and handle events from the platform notifications.
2981         * WebView/WebView.mm:
2982         (-[WebView _setNotificationProvider:]): Sets the provider when initializing the WebView.
2983         (-[WebView _notificationControllerDestroyed]):
2984         (-[WebView _notificationProvider]):
2985         (-[WebView _notificationDidShow:]):
2986         (-[WebView _notificationDidClick:]):
2987         (-[WebView _notificationsDidClose:]):
2988
2989         * WebCoreSupport/WebNotificationClient.h: Add variables that map between WebCore::Notification
2990         instances, their assigned IDs, their contexts, and corresponding WebKit wrapper objects.
2991         * WebCoreSupport/WebNotificationClient.mm:
2992         (generateNotificationID): Created unique IDs for each shown notification.
2993         (WebNotificationClient::show): Create wrapper object for notification, assign ID, cache the
2994         mappings between the objects, and forward it to the provider.
2995         (WebNotificationClient::cancel):
2996         (WebNotificationClient::clearNotifications): Clear all notifications associated with the
2997         provided context.
2998         (WebNotificationClient::notificationObjectDestroyed): Remove the notification from the maps.
2999         (WebNotificationClient::notificationControllerDestroyed): If the controller is destroyed, tell
3000         the provider to clear of the notifications related to this web view.
3001
3002         ====
3003         (Prep work for) Bring notifications support to WK1 mac
3004
3005         Rename WebGeolocationPolicyListener. The interface is generic enough to be reused for
3006         notification requests. To avoid having to create a new listener type, instead rename it
3007         to WebAllowDenyPolicyListener.
3008         * WebView/WebUIDelegatePrivate.h: Rename the protocol.
3009         * WebCoreSupport/WebGeolocationClient.mm: Refactor geolocation request listener to use
3010         new name.
3011
3012         Add preference to keep track of whether notifications are enabled in general.
3013         * WebView/WebPreferenceKeysPrivate.h: Add WebNotificationsEnabledKey for storing the
3014         preference.
3015         * WebView/WebPreferences.mm:
3016         (+[WebPreferences initialize]): By default have them enabled.
3017         (-[WebPreferences setNotificationsEnabled:]):
3018         (-[WebPreferences notificationsEnabled]):
3019         * WebView/WebPreferencesPrivate.h:
3020
3021         Add a stringValue method that exposes WebCore::SecurityOrigin::toString() for storing the
3022         notification policy for a given origin.
3023         * WebCoreSupport/WebSecurityOrigin.mm:
3024         (-[WebSecurityOrigin stringValue]):
3025         * WebCoreSupport/WebSecurityOriginPrivate.h:
3026
3027 2012-02-21  Sam Weinig  <sam@webkit.org>
3028
3029         Attempt to fix the Snow Leopard build.
3030
3031         * Configurations/Base.xcconfig:
3032
3033 2012-02-21  Sam Weinig  <sam@webkit.org>
3034
3035         Use libc++ when building with Clang on Mac
3036         https://bugs.webkit.org/show_bug.cgi?id=78981
3037
3038         Reviewed by Dan Bernstein.
3039
3040         * Configurations/Base.xcconfig:
3041
3042 2012-02-17  Mihnea Ovidenie  <mihnea@adobe.com>
3043
3044         CSS regions enabled by default
3045         https://bugs.webkit.org/show_bug.cgi?id=78525
3046
3047         Reviewed by David Hyatt.
3048
3049         Add a runtime preference to enable/disable regions functionality at runtime(WebKitCSSRegionsEnabled).
3050         CSSRegions are still enabled by default.
3051         In DRT, use layoutTestController.overridePreference("WebKitCSSRegionsEnabled", "0") to disable the css regions functionality.
3052
3053         * WebView/WebPreferenceKeysPrivate.h:
3054         * WebView/WebPreferences.mm:
3055         (+[WebPreferences initialize]):
3056         (-[WebPreferences cssRegionsEnabled]):
3057         (-[WebPreferences setCSSRegionsEnabled:]):
3058         * WebView/WebPreferencesPrivate.h:
3059         * WebView/WebView.mm:
3060         (-[WebView _preferencesChanged:]):
3061
3062 2012-02-17  Enrica Casucci  <enrica@apple.com>
3063
3064         Refactor DragData class to use PlatformStrategies in the Mac implementation.
3065         https://bugs.webkit.org/show_bug.cgi?id=78768
3066
3067         Reviewed by Darin Adler.
3068
3069         * WebCoreSupport/WebPlatformStrategies.h: Added color() method.
3070         * WebCoreSupport/WebPlatformStrategies.mm:
3071         (WebPlatformStrategies::color):
3072
3073 2012-02-16  Brady Eidson  <beidson@apple.com>
3074
3075         <rdar://problem/10616280> and https://bugs.webkit.org/show_bug.cgi?id=78767
3076         REGRESSION (r90471) - iAd Producer 2.0.1 produces blank pages
3077
3078         Reviewed by Sam Weinig.
3079
3080         * WebView/WebView.mm:
3081         (-[WebView _needsIsLoadingInAPISenseQuirk]):
3082         (-[WebView _preferencesChanged:]):
3083
3084 2012-02-15  Enrica Casucci  <enrica@apple.com>
3085
3086         Refactor ClipboardMac class to use PlatformStrategies.
3087         https://bugs.webkit.org/show_bug.cgi?id=78554
3088
3089         Reviewed by Anders Carlsson.
3090
3091         * WebCoreSupport/WebDragClient.h: Changed methods signature to use name based pasteboard.
3092         * WebCoreSupport/WebDragClient.mm: Ditto.
3093         (WebDragClient::willPerformDragSourceAction):
3094         (WebDragClient::startDrag):
3095         (WebDragClient::declareAndWriteDragImage):
3096         * WebCoreSupport/WebPlatformStrategies.h: Added new methods.
3097         * WebCoreSupport/WebPlatformStrategies.mm:
3098         (WebPlatformStrategies::changeCount):
3099         (WebPlatformStrategies::uniqueName):
3100
3101 2012-02-15  Sadrul Habib Chowdhury  <sadrul@chromium.org>
3102
3103         Notify ChromeClient when touch-event handlers are installed/removed.
3104         https://bugs.webkit.org/show_bug.cgi?id=77440
3105
3106         Reviewed by Darin Fisher and Ryosuke Niwa.
3107
3108         * WebCoreSupport/WebChromeClient.h:
3109
3110 2012-02-14  Matt Lilek  <mrl@apple.com>
3111
3112         Don't ENABLE_DASHBOARD_SUPPORT unconditionally on all Mac platforms
3113         https://bugs.webkit.org/show_bug.cgi?id=78629
3114
3115         Reviewed by David Kilzer.
3116
3117         * Configurations/FeatureDefines.xcconfig:
3118
3119 2012-02-14  Alexey Proskuryakov  <ap@apple.com>
3120
3121         [Mac][Win][WK2] Switch to RFC 6455 protocol for WebSockets
3122         https://bugs.webkit.org/show_bug.cgi?id=78541
3123         <rdar://problem/10036695>
3124
3125         Reviewed by Kent Tamura.
3126
3127         * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Changed default value of the
3128         preference.
3129
3130 2012-02-11  Nikolas Zimmermann  <nzimmermann@rim.com>
3131
3132         Convert svg/animations to use SMIL methods for driving the timeline
3133         https://bugs.webkit.org/show_bug.cgi?id=78422
3134
3135         Reviewed by Dirk Schulze.
3136
3137         Remove SVG animation sampling functionality provided for DRT, which no longer uses it.
3138         Instead we switched the svg/animations tests to use SVGSVGElement.setCurrentTime.
3139
3140         * WebKit.order:
3141         * WebView/WebFrame.mm:
3142         * WebView/WebFramePrivate.h:
3143
3144 2012-02-13  Enrica Casucci  <enrica@apple.com>
3145
3146          Refactor Mac platform implementation of the Pasteboard class to use Platform Strategies.
3147          https://bugs.webkit.org/show_bug.cgi?id=78282
3148  
3149          This patch removes any accesss to the NSPasteboard object from the Pasteboard class which
3150          now makes use of a new pasteboardStrategy object that is implemented both in WebKit and
3151          WebKit2. The actual access to NSPasteboard is now performed inside the PlatformPasteboard
3152          class. Currently both WebKit and WebKit2 use the same implementation of the PasteboardStrategy
3153          interface but this one more step in the direction of removing access to NSPasteboard from
3154          the WebProcess.
3155          As part of the refactoring the I've reduced to a minimum the use of OBJ-C classes.
3156          
3157          Reviewed by Anders Carlsson.
3158  
3159          * WebCoreSupport/WebPlatformStrategies.h: Added PasteboardStrategy.
3160          * WebCoreSupport/WebPlatformStrategies.mm: Added implementation of PasteboardStrategy interface.
3161          (WebPlatformStrategies::createPasteboardStrategy):
3162          (WebPlatformStrategies::getTypes):
3163          (WebPlatformStrategies::bufferForType):
3164          (WebPlatformStrategies::getPathnamesForType):
3165          (WebPlatformStrategies::stringForType):
3166          (WebPlatformStrategies::copy):
3167          (WebPlatformStrategies::setTypes):
3168          (WebPlatformStrategies::setBufferForType):
3169          (WebPlatformStrategies::setPathnamesForType):
3170          (WebPlatformStrategies::setStringForType):
3171
3172 2012-02-12  Hajime Morrita  <morrita@chromium.org>
3173
3174         Page should have less intrusive way to associate API implementation objects.
3175         https://bugs.webkit.org/show_bug.cgi?id=78085
3176
3177         Reviewed by Adam Barth.
3178
3179         * WebView/WebView.mm:
3180         (-[WebView _commonInitializationWithFrameName:groupName:]):
3181
3182 2012-02-11  Sheriff Bot  <webkit.review.bot@gmail.com>
3183
3184         Unreviewed, rolling out r107435.
3185         http://trac.webkit.org/changeset/107435
3186         https://bugs.webkit.org/show_bug.cgi?id=78410
3187
3188         It broke the Qt build (Requested by Ossy on #webkit).
3189
3190         * WebCoreSupport/WebPlatformStrategies.h:
3191         (WebPlatformStrategies):
3192         * WebCoreSupport/WebPlatformStrategies.mm:
3193         (WebPlatformStrategies::addVisitedLink):
3194
3195 2012-02-10  Adam Klein  <adamk@chromium.org>
3196
3197         Enable MUTATION_OBSERVERS by default on all platforms
3198         https://bugs.webkit.org/show_bug.cgi?id=78196
3199
3200         Reviewed by Ojan Vafai.
3201
3202         * Configurations/FeatureDefines.xcconfig:
3203
3204 2012-02-10  Enrica Casucci  <enrica@apple.com>
3205
3206         Refactor Mac platform implementation of the Pasteboard class to use Platform Strategies.
3207         https://bugs.webkit.org/show_bug.cgi?id=78282
3208
3209         This patch removes any accesss to the NSPasteboard object from the Pasteboard class which
3210         now makes use of a new pasteboardStrategy object that is implemented both in WebKit and
3211         WebKit2. The actual access to NSPasteboard is now performed inside the PlatformPasteboard
3212         class. Currently both WebKit and WebKit2 use the same implementation of the PasteboardStrategy
3213         interface but this one more step in the direction of removing access to NSPasteboard from
3214         the WebProcess.
3215         As part of the refactoring the I've reduced to a minimum the use of OBJ-C classes.
3216         
3217         Reviewed by Anders Carlsson.
3218
3219         * WebCoreSupport/WebPlatformStrategies.h: Added PasteboardStrategy.
3220         * WebCoreSupport/WebPlatformStrategies.mm: Added implementation of PasteboardStrategy interface.
3221         (WebPlatformStrategies::createPasteboardStrategy):
3222         (WebPlatformStrategies::getTypes):
3223         (WebPlatformStrategies::bufferForType):
3224         (WebPlatformStrategies::getPathnamesForType):
3225         (WebPlatformStrategies::stringForType):
3226         (WebPlatformStrategies::copy):
3227         (WebPlatformStrategies::setTypes):
3228         (WebPlatformStrategies::setBufferForType):
3229         (WebPlatformStrategies::setPathnamesForType):
3230         (WebPlatformStrategies::setStringForType):
3231
3232 2012-02-10  Benjamin Poulain  <bpoulain@apple.com>
3233
3234         [Mac] DYLIB_INSTALL_NAME_BASE should not be prefixed by the SDKROOT
3235         https://bugs.webkit.org/show_bug.cgi?id=78320
3236
3237         Reviewed by Joseph Pecoraro.
3238
3239         <rdar://problem/10839750>
3240
3241         * Configurations/WebKit.xcconfig:
3242
3243 2012-02-09  Alexey Proskuryakov  <ap@apple.com>
3244
3245         REGRESSION (r104885): Articles not displayed in Vienna RSS reader
3246         https://bugs.webkit.org/show_bug.cgi?id=78280
3247         <rdar://problem/10762545>
3248
3249         Reviewed by Oliver Hunt.
3250
3251         * Misc/WebNSURLExtras.h:
3252         * Misc/WebNSURLExtras.mm: (-[NSURL _webkit_URLFromURLOrPath]):
3253         Added a method to create a URL from a path, similarly to what KURL used to do.
3254
3255         * WebView/WebFrame.mm: (-[WebFrame loadData:MIMEType:textEncodingName:baseURL:]):
3256         Use it in an API where a known regression occurred.
3257
3258 2012-02-07  Antti Koivisto  <antti@apple.com>
3259
3260         REGRESSION (r106681): Null check missing in [WebFrame(WebInternal) _typingStyle]
3261         https://bugs.webkit.org/show_bug.cgi?id=78080
3262
3263         Reviewed by Reviewed by Andreas Kling, Darin Adler and Dan Bernstein.
3264
3265         * WebView/WebFrame.mm:
3266         (-[WebFrame _typingStyle]):
3267
3268 2012-02-07  Tony Chang  <tony@chromium.org>
3269
3270         merge DashboardSupportCSSPropertyNames.in into CSSPropertyNames.in
3271         https://bugs.webkit.org/show_bug.cgi?id=78036
3272
3273         Reviewed by Darin Adler.
3274
3275         * Configurations/FeatureDefines.xcconfig: Add ENABLE_DASHBOARD_SUPPORT to FEATURE_DEFINES.
3276
3277 2012-02-06  Anders Carlsson  <andersca@apple.com>
3278
3279         Overlay scrollbars flash when window is simply activated
3280         https://bugs.webkit.org/show_bug.cgi?id=77911
3281         <rdar://problem/10211995>
3282
3283         Reviewed by Kenneth Russell.
3284
3285         * WebView/WebView.mm:
3286         (-[WebView _windowWillOrderOnScreen:]):
3287         (-[WebView _windowWillOrderOffScreen:]):
3288         Call FocusController::setContainingWindowIsVisible.
3289
3290
3291 2012-02-06  Matthew Delaney  <mdelaney@apple.com>
3292
3293         toDataURL() uses stale data after putImageData()
3294         https://bugs.webkit.org/show_bug.cgi?id=65767
3295
3296         Reviewed by Chris Marrin.
3297
3298         * WebCoreSupport/WebSystemInterface.mm: 
3299
3300 2012-02-03  Antti Koivisto  <antti@apple.com>
3301
3302         Rename CSSMutableStyleDeclaration.h/.cpp to StylePropertySet.h/.cpp 
3303         https://bugs.webkit.org/show_bug.cgi?id=77779
3304
3305         Reviewed by Darin Adler.
3306
3307         * WebView/WebHTMLView.mm:
3308
3309 2012-02-03  Antti Koivisto  <antti@apple.com>
3310
3311         https://bugs.webkit.org/show_bug.cgi?id=77740
3312         Split CSSMutableStyleDeclaration into separate internal and CSSOM types 
3313
3314         Reviewed by Andreas Kling and Darin Adler.
3315
3316         * WebView/WebFrame.mm:
3317         (-[WebFrame _typingStyle]):
3318
3319 2012-02-03  Beth Dakin  <bdakin@apple.com>
3320
3321         https://bugs.webkit.org/show_bug.cgi?id=77691
3322         Fix PlatformScreen layering violation and PlatformScreenMac's incorrect use 
3323         of device scale
3324
3325         Reviewed by Andy Estes.
3326
3327         toUserSpace() and toDeviceSpace() don't need to take device scale. Also 
3328         restore a comment that I needlessly removed.
3329         * WebCoreSupport/WebChromeClient.mm:
3330         (WebChromeClient::setWindowRect):
3331         (WebChromeClient::windowRect):
3332
3333 2012-02-01  Dan Bernstein  <mitz@apple.com>
3334
3335         WebKit/mac part of <rdar://problem/10442663> Paginated display does not respect page-break-{before,after}
3336         https://bugs.webkit.org/show_bug.cgi?id=77505
3337
3338         Reviewed by Darin Adler.
3339
3340         * WebView/WebView.mm:
3341         (-[WebView _setPaginationBehavesLikeColumns:]): Added this setter.
3342         (-[WebView _paginationBehavesLikeColumns]): Added this getter.
3343         * WebView/WebViewPrivate.h:
3344
3345 2012-01-25  Eric Seidel  <eric@webkit.org>
3346
3347         HTMLIsIndexElement should not expose HTMLInputElement properties
3348         https://bugs.webkit.org/show_bug.cgi?id=76095
3349
3350         Reviewed by Adam Barth.
3351
3352         * MigrateHeaders.make:
3353
3354 2012-01-31  Pablo Flouret  <pablof@motorola.com>
3355
3356         Fix compilation errors on build-webkit --debug --no-workers on mac.
3357         https://bugs.webkit.org/show_bug.cgi?id=75869
3358
3359         Reviewed by Adam Barth.
3360
3361         * Workers/WebWorkersPrivate.mm:
3362         (+[WebWorkersPrivate workerThreadCount]):
3363
3364 2012-01-30  Beth Dakin  <bdakin@apple.com>
3365
3366         https://bugs.webkit.org/show_bug.cgi?id=77263
3367         PlatformScreenMac should not rely on NSWindow for important bits of data
3368
3369         Reviewed by Geoff Garen.
3370
3371         toUserSpace() and toDeviceSpace() now take a parameter for the 
3372         deviceScaleFactor.
3373         * WebCoreSupport/WebChromeClient.mm:
3374         (windowScaleFactor):
3375         (WebChromeClient::setWindowRect):
3376         (WebChromeClient::windowRect):
3377
3378 2012-01-25  Mark Rowe  <mrowe@apple.com>
3379
3380         Build in to an alternate location when USE_STAGING_INSTALL_PATH is set.
3381
3382         <rdar://problem/10609417> Adopt USE_STAGING_INSTALL_PATH
3383
3384         Reviewed by David Kilzer.
3385
3386         * Configurations/WebKit.xcconfig: Define NORMAL_WEBKIT_FRAMEWORKS_DIR, which contains
3387         the path where WebKit is normally installed. Update WEBKIT_FRAMEWORKS_DIR to point to
3388         the staged frameworks directory when USE_STAGING_INSTALL_PATH is set. Define
3389         NORMAL_PRODUCTION_FRAMEWORKS_DIR, which contains the path where our public frameworks
3390         are normally installed. Update PRODUCTION_FRAMEWORKS_DIR to point to the staged frameworks
3391         directory when USE_STAGING_INSTALL_PATH is set. Always set the framework's install name
3392         based on the normal framework location. This prevents an incorrect install name from being
3393         used when installing in to the staged frameworks directory. Look for our other frameworks
3394         in the staged frameworks directory when USE_STAGING_INSTALL_PATH is set. Update
3395         WEBCORE_PRIVATE_HEADERS_DIR to find WebCore at the top level of the staged frameworks
3396         directory when USE_STAGING_INSTALL_PATH is set, rather than finding it embedded inside of
3397         WebKit.framework.
3398
3399 2012-01-25  Eric Seidel  <eric@webkit.org>
3400
3401         HTMLIsIndexElement should not expose HTMLInputElement properties
3402         https://bugs.webkit.org/show_bug.cgi?id=76095
3403
3404         Reviewed by Adam Barth.
3405
3406         * MigrateHeaders.make:
3407
3408 2012-01-25  Hajime Morita  <morrita@google.com>
3409
3410         ENABLE_SHADOW_DOM should be available via build-webkit --shadow-dom
3411         https://bugs.webkit.org/show_bug.cgi?id=76863
3412
3413         Reviewed by Dimitri Glazkov.
3414
3415         Added a feature flag.
3416
3417         * Configurations/FeatureDefines.xcconfig:
3418
3419 2012-01-25  Enrica Casucci  <enrica@apple.com>
3420
3421         WebView should implement typingAttributes methods to work correctly with the Inspector bar in Mail.
3422         https://bugs.webkit.org/show_bug.cgi?id=76951
3423         <rdar://problem/9325158>
3424
3425         Reviewed by Alexey Proskuryakov.
3426
3427         * WebView/WebHTMLView.mm: Removed typingAttributes implementation.
3428         * WebView/WebView.mm:
3429         (-[WebView typingAttributes]): Added.
3430
3431 2012-01-24  Enrica Casucci  <enrica@apple.com>
3432
3433         WebHTMLView should implement typingAttributes methods to work correctly with the Inspector bar in Mail.
3434         https://bugs.webkit.org/show_bug.cgi?id=76951
3435         <rdar://problem/9325158>
3436
3437         The Inspector bar calls the typingAttributes methods on the clients that support it
3438         to retrieve the set of attributes representing the style at the selection and uses
3439         this information to update the state of the B, I and U buttons.
3440         If this method is not supported, it defaults to the attributes of the previous
3441         character position, reporting an incorrect state.
3442         This occurs only when we have a caret selection.
3443         
3444         Reviewed by Alexey Proskuryakov.
3445
3446         * WebView/WebHTMLView.mm:
3447         (-[WebHTMLView _styleForAttributeChange:]): Removed dead code.
3448         (-[WebHTMLView _updateFontPanel]): Removed comment that doesn't apply anymore.
3449         (-[WebHTMLView typingAttributes]): Added.
3450
3451 2012-01-24  Benjamin Poulain  <bpoulain@apple.com>
3452
3453         pageCacheSupportsPlugins should default to true on WebKit1
3454         https://bugs.webkit.org/show_bug.cgi?id=76891
3455
3456         Reviewed by Joseph Pecoraro.
3457
3458         The default was left out of r102619 by accident.
3459
3460         * WebView/WebPreferences.mm:
3461         (+[WebPreferences initialize]):
3462
3463 2012-01-23  Geoffrey Garen  <ggaren@apple.com>
3464
3465         JSValue::toString() should return a JSString* instead of a UString
3466         https://bugs.webkit.org/show_bug.cgi?id=76861
3467
3468         Reviewed by Gavin Barraclough.
3469
3470         Mechanical changes to call value() after calling toString(), to
3471         convert from "JS string" (JSString*) to "C++ string" (UString), since
3472         toString() no longer returns a "C++ string".
3473
3474         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3475         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
3476         * WebView/WebFrame.mm:
3477         (-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3478         (-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
3479
3480 2012-01-20  Sam Weinig  <sam@webkit.org>
3481
3482         Make WebCore RunLoop work for WebKit1
3483         https://bugs.webkit.org/show_bug.cgi?id=76739
3484
3485         Reviewed by Anders Carlsson.
3486
3487         * Carbon/CarbonWindowAdapter.mm:
3488         (+[CarbonWindowAdapter initialize]):
3489         * History/WebBackForwardList.mm:
3490         (+[WebBackForwardList initialize]):
3491         * History/WebHistoryItem.mm:
3492         (+[WebHistoryItem initialize]):
3493         * Misc/WebElementDictionary.mm:
3494         (+[WebElementDictionary initialize]):
3495         * Misc/WebIconDatabase.mm:
3496         (+[WebIconDatabase initialize]):
3497         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
3498         (+[WebHostedNetscapePluginView initialize]):
3499         * Plugins/WebBaseNetscapePluginView.mm:
3500         * Plugins/WebBasePluginPackage.mm:
3501         * Plugins/WebNetscapePluginView.mm:
3502         (+[WebNetscapePluginView initialize]):
3503         * WebCoreSupport/WebEditorClient.mm:
3504         (+[WebUndoStep initialize]):
3505         * WebCoreSupport/WebFrameLoaderClient.mm:
3506         * WebView/WebArchive.mm:
3507         (+[WebArchivePrivate initialize]):
3508         * WebView/WebDataSource.mm:
3509         (+[WebDataSourcePrivate initialize]):
3510         * WebView/WebHTMLView.mm:
3511         (+[WebHTMLViewPrivate initialize]):
3512         (+[WebHTMLView initialize]):
3513         * WebView/WebResource.mm:
3514         (+[WebResourcePrivate initialize]):
3515         * WebView/WebTextIterator.mm:
3516         (+[WebTextIteratorPrivate initialize]):
3517         * WebView/WebView.mm:
3518         (+[WebView initialize]):
3519         * WebView/WebViewData.mm:
3520         (+[WebViewPrivate initialize]):
3521         Initialized the main run loop in addition to other initialization.
3522
3523 2012-01-20  Simon Fraser  <simon.fraser@apple.com>
3524
3525         https://bugs.webkit.org/show_bug.cgi?id=76444
3526         
3527         #if ENABLE(CSS_SHADERS) cannot appear in framework headers.
3528         This breaks builds.
3529
3530         * WebView/WebPreferences.mm:
3531         * WebView/WebPreferencesPrivate.h:
3532
3533 2012-01-20  Alexandru Chiculita  <achicu@adobe.com>
3534
3535         CSS Shaders: Add a Settings flag to enable/disable CSS Shaders at runtime
3536         https://bugs.webkit.org/show_bug.cgi?id=76444
3537
3538         Added private WebPreference property called "WebKitCSSCustomFilterEnabled".
3539         
3540         Reviewed by Nikolas Zimmermann.
3541
3542         * WebView/WebPreferenceKeysPrivate.h:
3543         * WebView/WebPreferences.mm:
3544         (+[WebPreferences initialize]):