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