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