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