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