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