2011-06-06 Mihnea Ovidenie <mihnea@adobe.com>
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
2
3         Reviewed by Kent Tamura.
4
5         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
6         https://bugs.webkit.org/show_bug.cgi?id=61631
7
8         * Configurations/FeatureDefines.xcconfig:
9
10 2011-06-02  Anders Carlsson  <andersca@apple.com>
11
12         Reviewed by Sam Weinig.
13
14         Need a way to install the memory pressure handler without initializing WebKit1
15         https://bugs.webkit.org/show_bug.cgi?id=61975
16
17         Add a WebInstallMemoryPressureHandler function which will install the memory pressure handler.
18         -[WebView WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:] will do this,
19         but we'd like to be able to install a memory pressure handler without creating a WebView or even
20         calling any WebView method since that will call +[WebView initialize].
21
22         * WebKit.exp:
23         * WebView/WebView.mm:
24         (WebInstallMemoryPressureHandler):
25         * WebView/WebViewPrivate.h:
26
27 2011-05-27  Stephanie Lewis  <slewis@apple.com>
28
29         Unreviewed.
30
31         Fix a typo in the order_file flag.
32
33         * Configurations/Base.xcconfig:
34
35 2011-05-27  Stephanie Lewis  <slewis@apple.com>
36
37         Rubber Stamped by Adam Roben.
38
39         Update Order Files.  Use -order_file flag since it can order more of the binary.
40
41         * Configurations/Base.xcconfig:
42         * WebKit.order:
43
44 2011-05-25  Stephanie Lewis  <slewis@apple.com>
45
46         Reviewed by Brady Eidson.
47
48         https://bugs.webkit.org/show_bug.cgi?id=61407
49         part of <rdar://problem/8675177>
50         Remove Quicklook pref.  Moving it enirely down into WebCore so it can
51         be calculated only on reloads.
52
53         * WebView/WebPreferenceKeysPrivate.h:
54         * WebView/WebPreferences.mm:
55         (+[WebPreferences initialize]):
56         * WebView/WebPreferencesPrivate.h:
57         * WebView/WebView.mm:
58         (-[WebView _preferencesChanged:]):
59
60 2011-05-24  Jer Noble  <jer.noble@apple.com>
61
62         Reviewed by Darin Adler.
63
64         Video fails to play on Vimeo
65         https://bugs.webkit.org/show_bug.cgi?id=61403
66
67         * WebCoreSupport/WebSystemInterface.mm:
68         (InitWebCoreSystemInterface): Added support for wkAVAssetResolvedURL and
69             wkQTMovieResolvedURL.
70
71 2011-05-24  Keishi Hattori  <keishi@webkit.org>
72
73         Reviewed by Kent Tamura.
74
75         Disable input color. Add INPUT_COLOR feature flag. Implement input color sanitizer.
76         https://bugs.webkit.org/show_bug.cgi?id=61273
77
78         * Configurations/FeatureDefines.xcconfig: Added INPUT_COLOR feature flag.
79
80 2011-05-24  Adam Barth  <abarth@webkit.org>
81
82         Reviewed by Eric Seidel.
83
84         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
85         https://bugs.webkit.org/show_bug.cgi?id=61395
86
87         * WebView/WebView.mm:
88         (-[WebView _isProcessingUserGesture]):
89
90 2011-05-24  Michael Saboff  <msaboff@apple.com>
91
92         Reviewed by Geoffrey Garen.
93
94         Improve handling in WebCore of low memory situations
95         https://bugs.webkit.org/show_bug.cgi?id=61222
96
97         Added call to enable memory pressure handling.
98
99         * WebView/WebView.mm:
100         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
101         * WebView/WebViewInternal.h:
102
103 2011-05-24  Jay Civelli  <jcivelli@chromium.org>
104
105         Rubberstamped by David Kilzer.
106
107         Updated some files that I forgot in my previous MHTML CL.
108
109         * Configurations/FeatureDefines.xcconfig:
110
111 2011-05-20  Jeremy Noble  <jer.noble@apple.com>
112
113         Reviewed by Simon Fraser.
114
115         Stack overflow in WebFullScreenController when built on Leopard and run on SnowLeopard.
116         https://bugs.webkit.org/show_bug.cgi?id=61224
117
118         Remove the CATransaction(SnowLeopardConvenience) functions, and replace them with the Leopard
119         versions of same.
120
121         * WebView/WebFullScreenController.mm:
122         (-[WebFullScreenController windowDidEnterFullscreen:]):
123         (-[WebFullScreenController enterFullscreen:]):
124         (-[WebFullScreenController exitFullscreen]):
125         (-[WebFullscreenWindow setRendererLayer:]):
126
127 2011-05-20  Andy Estes  <aestes@apple.com>
128
129         Reviewed by Darin Adler.
130
131         WebView loses firstResponder status when entering full-screen mode.
132         https://bugs.webkit.org/show_bug.cgi?id=61153
133
134         * Misc/WebNSWindowExtras.h:
135         * Misc/WebNSWindowExtras.m:
136         (-[NSWindow makeResponder:firstResponderIfDescendantOfView:]): Add a
137         convenience method to NSWindow that makes the given NSResponder first
138         responder only if it is a descendant of the given view.
139         * WebView/WebFullScreenController.mm:
140         (-[WebFullScreenController windowDidEnterFullscreen:]): If the WebView
141         was a descendant of the browser window's first responder when entering
142         full-screen mode, set the full-screen window's first responder to that
143         same NSResponder.
144         (-[WebFullScreenController exitFullscreen]): Do the reverse of what is
145         done in windowDidEnterFullscreen:.
146
147 2011-05-20  Enrica Casucci  <enrica@apple.com>
148
149         Reviewed by David Kilzer.
150
151         Add delegate methods about focus and blur to all elements.
152         https://bugs.webkit.org/show_bug.cgi?id=61218
153
154         We want to have delegates for these events for all the elements, not only the form elements.
155         The patch changes the name of the methods in a way that is not form element specific.
156
157         * WebCoreSupport/WebChromeClient.h:
158         * WebCoreSupport/WebChromeClient.mm:
159         (WebChromeClient::elementDidFocus):
160         (WebChromeClient::elementDidBlur):
161         * WebView/WebUIDelegatePrivate.h:
162
163 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
164
165         Reviewed by Sam Weinig.
166
167         numberOfActiveAnimations() can include animations from documents in the page cache
168         https://bugs.webkit.org/show_bug.cgi?id=53641
169
170         Pass the Frame's document as the one to count animations on.
171
172         * WebView/WebFrame.mm:
173         (-[WebFrame _numberOfActiveAnimations]):
174
175 2011-05-17  Timothy Hatcher  <timothy@apple.com>
176
177         Update the the context menu to reflect the system search provider on Mac.
178
179         <rdar://problem/9198419>
180
181         Reviewed by Sam Weinig.
182
183         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
184         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]): Use wkCopyDefaultSearchProviderDisplayName to
185         create the web search context menu title.
186         * WebCoreSupport/WebSystemInterface.mm:
187         (InitWebCoreSystemInterface): Added CopyDefaultSearchProviderDisplayName.
188
189 2011-05-16  Emil A Eklund  <eae@chromium.org>
190
191         Reviewed by Eric Seidel.
192
193         Replace docTop/Right/Bottom/Left/Width/Height with documentRect
194         https://bugs.webkit.org/show_bug.cgi?id=60743
195
196         Replace uses of docWidth/Height with documentRect.
197
198         * WebView/WebFrame.mm:
199         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
200
201 2011-05-16  Yuzo Fujishima  <yuzo@google.com>
202
203         Reviewed by Antti Koivisto.
204
205         Fix for Bug 43704 - Web font is printed as blank if it is not cached
206         https://bugs.webkit.org/show_bug.cgi?id=43704
207
208         * WebView/WebHTMLView.mm:
209         (-[WebHTMLView _setPrinting:minimumPageWidth:height:maximumPageWidth:adjustViewSize:paginateScreenContent:]): Use ResourceCacheValidationSuppressor to allow stale resources in printing.
210
211 2011-05-16  David Kilzer  <ddkilzer@apple.com>
212
213         <http://webkit.org/b/60913> C++ exceptions should not be enabled when building with llvm-gcc-4.2
214         <rdar://problem/9446430>
215
216         Reviewed by Mark Rowe.
217
218         * Configurations/Base.xcconfig: Fixed typo.
219
220 2011-05-13  Jon Lee  <jonlee@apple.com>
221
222         Reviewed by Simon Fraser.
223
224         Can't horizontally scroll iframes and overflow because wheel events are always accepted
225         https://bugs.webkit.org/show_bug.cgi?id=60779
226
227         * WebCoreSupport/WebChromeClient.h:
228         (WebChromeClient::numWheelEventHandlersChanged): Default impl of new ChromeClient method
229         (WebChromeClient::shouldRubberBandInDirection): Default impl of new ChromeClient method
230
231 2011-05-13  Sam Weinig  <sam@webkit.org>
232
233         Reviewed by Anders Carlsson.
234
235         Prune #includes from FrameView.h (Part 2)
236         https://bugs.webkit.org/show_bug.cgi?id=60748
237
238         - Update files that were depending on FrameView.h #including Frame.h or
239           Page.h.
240
241         * WebView/WebClipView.mm:
242         * WebView/WebHTMLView.mm:
243         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
244
245 2011-05-12  Pratik Solanki  <psolanki@apple.com>
246
247         Reviewed by Antti Koivisto.
248
249         Part of WebCore should use CFNetwork-based loader on Mac
250         https://bugs.webkit.org/show_bug.cgi?id=51836
251
252         Use CFRunLoop when using CFNetwork.
253
254         * WebView/WebView.mm:
255         (-[WebView scheduleInRunLoop:forMode:]):
256         (-[WebView unscheduleFromRunLoop:forMode:]):
257
258 2011-05-12  Pratik Solanki  <psolanki@apple.com>
259
260         Reviewed by Antti Koivisto.
261
262         Part of WebCore should use CFNetwork-based loader on Mac
263         https://bugs.webkit.org/show_bug.cgi?id=51836
264
265         Include AuthenticationCF.h header file.
266
267         * Misc/WebDownload.mm:
268         * Plugins/WebBaseNetscapePluginView.mm:
269         * WebCoreSupport/WebFrameLoaderClient.mm:
270
271 2011-05-12  Adele Peterson  <adele@apple.com>
272
273         Reviewed by Darin Adler and Adam Barth.
274
275         Fix for <rdar://problem/9253454> Solar Walk For Mac: Info window is blank (HTML5 parser)
276         https://bugs.webkit.org/show_bug.cgi?id=60685
277
278         Solar Walk uses a self closing title tag, so to match the behavior of the old parser, 
279         we use a UserScript to write the contents of the title element to the end of the document so it can be re-parsed.
280
281         * Misc/SolarWalkQuirksUserScript.js: Added.
282         * WebView/WebView.mm:
283         (needsSolarWalkQuirksScript):
284         (leakSolarWalkQuirksUserScriptContents):
285         (-[WebView _injectSolarWalkQuirksScript]):
286         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
287
288 2011-05-12  Jia Pu  <jpu@apple.com>
289
290         Reviewed by Darin Adler.
291
292         Regression caused by changeset 86281
293         https://bugs.webkit.org/show_bug.cgi?id=60712
294         <rdar://problem/9427970>
295
296         Removed the condition variable. [NSSpellChecker dismissCorrectionIndicatorForView:] is blocking.
297         So handleAcceptedReplacement() triggered by dismissInternal() will return before dismissInternal()
298         returns. So we don't need to use the condition to coordinate between these two function. In fact,
299         all callbacks are delivered on main thread. We don't really need any locking here.
300
301         Since now we don't have distinction between dismiss() and dismissSoon(). dismissSoon() has
302         been removed.
303
304         * WebCoreSupport/CorrectionPanel.h:
305         * WebCoreSupport/CorrectionPanel.mm:
306         (CorrectionPanel::CorrectionPanel):
307         (CorrectionPanel::show):
308         (CorrectionPanel::dismiss):
309         (CorrectionPanel::dismissInternal):
310         (CorrectionPanel::handleAcceptedReplacement):
311         * WebCoreSupport/WebEditorClient.mm:
312         (WebEditorClient::dismissCorrectionPanelSoon):
313
314 2011-05-12  Patrick Gansterer  <paroga@webkit.org>
315
316         Reviewed by Adam Barth.
317
318         Enable OwnPtr strict mode in PluginHalter
319         https://bugs.webkit.org/show_bug.cgi?id=60681
320
321         * WebView/WebView.mm:
322         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
323
324 2011-05-12  Nikolas Zimmermann  <nzimmermann@rim.com>
325
326         Reviewed by Darin Adler.
327
328         String operator+ reallocates unnecessarily when concatting > 2 strings
329         https://bugs.webkit.org/show_bug.cgi?id=58420
330
331         Provide a faster String append operator. See Source/JavaScriptCore/ChangeLog for details.
332
333         * WebView/WebFrame.mm: Explicitely cast to Strings first, so operator NSString*() can be invoked.
334         (-[WebFrame _stringWithDocumentTypeStringAndMarkupString:]):
335
336 2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
337
338         Reviewed by Darin Adler.
339
340         Perform some forward declarations suggested by include-what-you-use
341         https://bugs.webkit.org/show_bug.cgi?id=60545
342
343         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
344         * WebView/WebFrame.mm:
345
346 2011-05-11  Jia Pu  <jpu@apple.com>
347
348         Reviewed by Darin Adler.
349
350         CorrectionPanel sometimes hangs in dismissSoon().
351         https://bugs.webkit.org/show_bug.cgi?id=60599
352         <rdar://problem/9313628>
353
354         Make sure dismissSoon() won't wait indefinitely if handleAcceptedReplacement() sets m_resultForSynchronousDismissal
355         to nil. Added a designated variable m_isDismissing, instead of piggy-backing m_resultForSynchronousDismissal,
356         for condition checking.
357
358         * WebCoreSupport/CorrectionPanel.h:
359         * WebCoreSupport/CorrectionPanel.mm:
360         (CorrectionPanel::CorrectionPanel):
361         (CorrectionPanel::show):
362         (CorrectionPanel::dismissSoon):
363         (CorrectionPanel::dismissInternal):
364         (CorrectionPanel::handleAcceptedReplacement):
365
366 2011-05-10  Anton D'Auria  <adauria@apple.com>
367
368         Reviewed by David Levin.
369
370         Add ApplicationCache API to get disk usage per origin
371         https://bugs.webkit.org/show_bug.cgi?id=57127
372
373         Added Mac port API.
374
375         * WebCoreSupport/WebApplicationCache.h:
376         * WebCoreSupport/WebApplicationCache.mm:
377         (+[WebApplicationCache diskUsageForOrigin:]):
378
379 2011-05-10  Anton D'Auria  <adauria@apple.com>
380
381         Reviewed by Alexey Proskuryakov.
382
383         Add ApplicationCache API to get disk usage per origin
384         https://bugs.webkit.org/show_bug.cgi?id=57127
385
386         Added Mac port API.
387
388         * WebCoreSupport/WebApplicationCache.h:
389         * WebCoreSupport/WebApplicationCache.mm:
390         (+[WebApplicationCache diskUsageForOrigin:]):
391
392 2011-05-10  Beth Dakin  <bdakin@apple.com>
393
394         Reviewed by Darin Adler.
395
396         https://bugs.webkit.org/show_bug.cgi?id=60582
397         Crash switching overlay/non-overlay scrollbar preference still possible
398         -and corresponding-
399         <rdar://problem/9323983>
400
401         * WebCoreSupport/WebSystemInterface.mm:
402         (InitWebCoreSystemInterface):
403
404 2011-05-09  Jeremy Noble  <jer.noble@apple.com>
405
406         Reviewed by Darin Adler.
407
408         Command-~/Exposé to another window while <video> is in full screen, breaks Safari, eventually leading to crash
409         https://bugs.webkit.org/show_bug.cgi?id=60496
410
411         When animating into and out of full screen, order out and back in the original webView window,
412         disabling animations when necessary.  The exitFullscreen method was targeting the wrong window,
413         as the webView is hosted in the full screen window when we ask for it's parent window.
414
415         * WebView/WebFullScreenController.mm:
416         (-[WebFullScreenController windowDidEnterFullscreen:]):
417         (-[WebFullScreenController exitFullscreen]):
418
419 2011-05-04  Philippe Normand  <pnormand@igalia.com>
420
421         Reviewed by Dimitri Glazkov.
422
423         Implement LayoutTestController::pseudoShadowId()
424         https://bugs.webkit.org/show_bug.cgi?id=60034
425
426         * DOM/WebDOMOperations.mm:
427         (-[DOMElement _shadowPseudoId]):
428         * DOM/WebDOMOperationsPrivate.h:
429
430 2011-05-05  Dan Bernstein  <mitz@apple.com>
431
432         Reviewed by Simon Fraser.
433
434         WebKit part of <rdar://problem/9155590> Broken animation in iAd producer
435
436         * WebCoreSupport/WebSystemInterface.mm:
437         (InitWebCoreSystemInterface): Initialize wkExecutableWasLinkedOnOrBeforeSnowLeopard.
438
439 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
440
441         Reviewed by Eric Seidel.
442
443         Rename SelectionController to FrameSelection
444         https://bugs.webkit.org/show_bug.cgi?id=60234
445
446         * WebView/WebFrame.mm:
447         (-[WebFrame _rangeByAlteringCurrentSelection:FrameSelection::direction:granularity:]):
448         * WebView/WebFrameInternal.h:
449         * WebView/WebHTMLView.mm:
450         * WebView/WebTextCompletionController.mm:
451         (-[WebTextCompletionController doCompletion]):
452         * WebView/WebView.mm:
453
454 2011-05-04  Cris Neckar  <cdn@chromium.org>
455
456         Reviewed by Adam Barth.
457
458         Expose WebView directly through ChromeClient.
459         https://bugs.webkit.org/show_bug.cgi?id=49902
460
461         * WebCoreSupport/WebChromeClient.h:
462         (WebChromeClient::webView):
463         * WebView/WebFrame.mm:
464         (kit):
465
466 2011-05-04  Tao Bai  <michaelbai@chromium.org>
467
468         Reviewed by David Kilzer.
469
470         Populate touch-icon url to FrameLoaderClient
471         https://bugs.webkit.org/show_bug.cgi?id=59143
472
473         Respect the interface change in FrameLoaderClient.
474
475         * Configurations/FeatureDefines.xcconfig:
476         * WebCoreSupport/WebFrameLoaderClient.h:
477         * WebCoreSupport/WebFrameLoaderClient.mm:
478         (WebFrameLoaderClient::dispatchDidChangeIcons):
479
480 2011-05-03  Julien Chaffraix  <jchaffraix@codeaurora.org>
481
482         Reviewed by Dimitri Glazkov.
483
484         Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
485         https://bugs.webkit.org/show_bug.cgi?id=58703
486
487         * DOM/WebDOMOperations.mm: Added #include for ShadowRoot.h.
488
489 2011-05-02  Adam Roben  <aroben@apple.com>
490
491         Take advantage of implicit conversion from nullptr_t to PassOwnPtr
492
493         Fixes <http://webkit.org/b/59964> Implicit conversion from std::nullptr_t to PassOwnPtr
494         doesn't work, but should
495
496         Reviewed by Adam Barth.
497
498         * History/WebHistory.mm:
499         * Plugins/WebNetscapePluginEventHandler.mm:
500         * WebView/WebView.mm:
501
502 2011-05-02  Brady Eidson  <beidson@apple.com>
503
504         Reviewed by Anders Carlsson.
505
506         <rdar://problem/9340945> and https://bugs.webkit.org/show_bug.cgi?id=59973
507         In Aperture, a WebView might be dealloc'ed before it finishes loading.
508
509         * WebView/WebView.mm:
510         (needsSelfRetainWhileLoadingQuirk):
511         (-[WebView _didStartProvisionalLoadForFrame:]): If we need the quirk, retain self.
512         (-[WebView _didFinishLoadForFrame:]): If we need the quirk, release self on a delay.
513         (-[WebView _didFailLoadWithError:forFrame:]): Ditto.
514         (-[WebView _didFailProvisionalLoadWithError:forFrame:]): Ditto.
515
516 2011-05-02  Adam Barth  <abarth@webkit.org>
517
518         Reviewed by David Levin.
519
520         PLATFORM(MAC) should (almost!) build with strict PassOwnPtr
521         https://bugs.webkit.org/show_bug.cgi?id=59924
522
523         * History/WebHistory.mm:
524         (-[WebHistory _visitedURL:withTitle:method:wasFailure:increaseVisitCount:]):
525         * Plugins/WebBaseNetscapePluginView.mm:
526         (-[WebBaseNetscapePluginView initWithFrame:pluginPackage:URL:baseURL:MIMEType:attributeKeys:attributeValues:loadManually:element:WebCore::]):
527         * WebCoreSupport/WebFrameLoaderClient.mm:
528         (WebFrameLoaderClient::savePlatformDataToCachedFrame):
529         * WebView/WebView.mm:
530         (-[WebView _injectMailQuirksScript]):
531         (-[WebView _injectOutlookQuirksScript]):
532         (toStringVector):
533
534 2011-05-02  Sam Weinig  <sam@webkit.org>
535
536         Reviewed by Adam Barth.
537
538         Prune some #includes from DOMWindow.h
539         https://bugs.webkit.org/show_bug.cgi?id=59907
540
541         * Plugins/WebBaseNetscapePluginView.mm:
542         * WebView/WebFrame.mm:
543         Add now missing SecurityOrigin.h #includes.
544
545 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
546
547         Reviewed by Eric Seidel.
548
549         Get rid of versions of sendContextMenuEvent and eventMayStartDrag that takes NSEvent
550         https://bugs.webkit.org/show_bug.cgi?id=59837
551
552         Call sendContextMenuEvent and eventMayStartDrag with PlatformMouseEvent instead of NSEvent.
553
554         * WebView/WebHTMLView.mm:
555         (-[WebHTMLView menuForEvent:]):
556         (-[WebHTMLView acceptsFirstMouse:]):
557         (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
558
559 2011-05-01  Ryosuke Niwa  <rniwa@webkit.org>
560
561         Reviewed by Eric Seidel.
562
563         Move currentKeyboardEvent from EventHandlerMac.mm to WebHTMLView.mm
564         https://bugs.webkit.org/show_bug.cgi?id=59835
565
566         Moved currentKeyboardEvent.
567
568         * WebView/WebHTMLView.mm:
569         (currentKeyboardEvent):
570         (-[WebHTMLView becomeFirstResponder]):
571
572 2011-04-29  Dean Jackson  <dino@apple.com>
573
574         Reviewed by Simon Fraser.
575
576         Add ENABLE macro for WebKitAnimation
577         https://bugs.webkit.org/show_bug.cgi?id=59729
578
579         Add new feature to toggle WebKit Animation API.
580
581         * Configurations/FeatureDefines.xcconfig:
582
583 2011-04-28  David Kilzer  <ddkilzer@apple.com>
584
585         <http://webkit.org/b/59758> Fix static analyzer warnings for missing assignment to 'self' in -init methods
586
587         Reviewed by Anders Carlsson.
588
589         * History/WebHistory.mm:
590         (-[WebHistoryPrivate init]):
591         * Misc/WebElementDictionary.mm:
592         (-[WebElementDictionary initWithHitTestResult:]):
593         * Misc/WebIconDatabase.mm:
594         (-[WebIconDatabase init]):
595         * Plugins/WebPluginController.mm:
596         (-[WebPluginController initWithDocumentView:]):
597         * Plugins/WebPluginRequest.m:
598         (-[WebPluginRequest initWithRequest:frameName:notifyData:sendNotification:didStartFromUserGesture:]):
599         * WebCoreSupport/WebEditorClient.mm:
600         (-[WebEditCommand initWithEditCommand:]):
601         * WebCoreSupport/WebJavaScriptTextInputPanel.m:
602         (-[WebJavaScriptTextInputPanel initWithPrompt:text:]):
603         * WebView/WebNavigationData.mm:
604         (-[WebNavigationData initWithURLString:title:originalRequest:response:hasSubstituteData:clientRedirectSource:]):
605
606 2011-04-28  David Levin  <levin@chromium.org>
607
608         Reviewed by Adam Barth.
609
610         Remove IMAGE_RESIZER related code.
611         https://bugs.webkit.org/show_bug.cgi?id=59735
612
613         * Configurations/FeatureDefines.xcconfig:
614
615 2011-04-28  Adam Barth  <abarth@webkit.org>
616
617         Reviewed by Eric Seidel.
618
619         Remove WML
620         https://bugs.webkit.org/show_bug.cgi?id=59678
621
622         Remove WML-related configuration options and private APIs.
623
624         * Configurations/FeatureDefines.xcconfig:
625         * WebCoreSupport/WebChromeClient.mm:
626         (stringForMessageSource):
627         * WebView/WebFramePrivate.h:
628         * WebView/WebUIDelegatePrivate.h:
629
630 2011-04-28  Brian Weinstein  <bweinstein@apple.com>
631
632         Reviewed by Timothy Hatcher.
633
634         Web Inspector: REGRESSION(85051): Develop Menu items are wrong when inspector is frontmost window
635         https://bugs.webkit.org/show_bug.cgi?id=59747
636
637         Restore functions that were removed in r85051. They were needed when the inspector is the frontmost window.
638         Also update them to call _inspectedWebView.get() - since it's a RetainPtr now.
639
640         * WebCoreSupport/WebInspectorClient.mm:
641         (-[WebInspectorWindowController showWebInspector:]):
642         (-[WebInspectorWindowController showErrorConsole:]):
643         (-[WebInspectorWindowController toggleDebuggingJavaScript:]):
644         (-[WebInspectorWindowController toggleProfilingJavaScript:]):
645         (-[WebInspectorWindowController validateUserInterfaceItem:]):
646
647 2011-04-28  David Kilzer  <ddkilzer@apple.com>
648
649         <http://webkit.org/b/59725> -[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:] leaks a CALayer
650
651         Reviewed by Dan Bernstein.
652
653         * WebView/WebFullScreenController.mm:
654         (-[WebFullscreenWindow initWithContentRect:styleMask:backing:defer:]):
655         Use a RetainPtr to hold the CALayer and to fix the leak.
656
657 2011-04-28  David Kilzer  <ddkilzer@apple.com>
658
659         Follow-up fix: <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
660
661         Addresses review comment from Darin Adler.
662
663         * WebView/WebPDFView.mm:
664         (-[WebPDFView menuForEvent:]): Use a local variable and -release
665         instead of -autorelease.
666
667 2011-04-28  Anders Carlsson  <andersca@apple.com>
668
669         Fix a thinko - separateRealmLabel is not an NSImageView.
670
671         * Panels/WebAuthenticationPanel.h:
672
673 2011-04-28  David Kilzer  <ddkilzer@apple.com>
674
675         <http://webkit.org/b/59727> -[WebPDFView menuForEvent:] leaks NSMenuItem objects
676
677         Reviewed by Dan Bernstein.
678
679         * WebView/WebPDFView.mm:
680         (-[WebPDFView menuForEvent:]): Call -autorelease after copying
681         each NSMenuItem.  Regressed in r9566 for Bug 3711.
682
683 2011-04-28  Enrica Casucci  <enrica@apple.com>
684
685         Reviewed by Beth Dakin.
686
687         Momentum scroll tweak for WebKit.
688         https://bugs.webkit.org/show_bug.cgi?id=59723
689         <rdar://problem/9259933>
690
691         * WebView/WebDynamicScrollBarsView.mm:
692         (-[WebDynamicScrollBarsView scrollWheel:]): Changed constant.
693
694 2011-04-27  Anders Carlsson  <andersca@apple.com>
695
696         Follow-up Leopard build fix.
697
698         * Carbon/HIViewAdapter.m:
699         (_webkit_NSView_setNeedsDisplayInRect):
700
701 2011-04-27  Anders Carlsson  <andersca@apple.com>
702
703         More clang++ 32-bit build fixes.
704
705         * Carbon/CarbonWindowAdapter.mm:
706         (-[CarbonWindowAdapter reconcileToCarbonWindowBounds]):
707         (-[CarbonWindowAdapter setContentView:]):
708         (-[CarbonWindowAdapter _handleContentBoundsChanged]):
709         * Carbon/HIViewAdapter.m:
710         (_webkit_NSView_setNeedsDisplayInRect):
711         * Panels/WebAuthenticationPanel.h:
712         * Plugins/WebBaseNetscapePluginView.mm:
713         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
714         * Plugins/WebNetscapePluginEventHandlerCarbon.mm:
715         (getCarbonEvent):
716         * WebCoreSupport/WebChromeClient.mm:
717         (WebChromeClient::scrollRectIntoView):
718         * WebCoreSupport/WebViewFactory.mm:
719         (-[WebViewFactory accessibilityConvertScreenRect:]):
720         * WebView/WebFrameView.mm:
721         (-[WebFrameView _scrollToBeginningOfDocument]):
722         (-[WebFrameView _scrollToEndOfDocument]):
723         * WebView/WebFullScreenController.mm:
724         (-[WebFullScreenController windowDidEnterFullscreen:]):
725         * WebView/WebHTMLView.mm:
726         (-[WebHTMLView _hitViewForEvent:]):
727         (coreGraphicsScreenPointForAppKitScreenPoint):
728         * WebView/WebPDFView.mm:
729         (-[WebPDFView setScrollPoint:]):
730
731 2011-04-27  Yury Semikhatsky  <yurys@chromium.org>
732
733         Reviewed by Pavel Feldman.
734
735         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
736         https://bugs.webkit.org/show_bug.cgi?id=44230
737
738         Use RetainPtr access inspected view from the inspector one to avoid inspected view being deleted before
739         inspector is closed.
740
741         * WebCoreSupport/WebInspectorClient.mm: store reference to inspected view in RetainPtr. Despite the removed
742         comment in initWithInspectedWebView this doesn't introduce cyclic reference since there are no retaining
743         pointers to the WebInspectorWindowController from the inspected page or from the WebInspectorClient.
744         There is only one reference to it from WebInspectorFrontendClient which is held by the inspector
745         front-end page.
746
747         Drive-by fix: removed several unused methods which are currently implemented in mac/WebInspector/WebInspector.mm
748         (-[WebInspectorWindowController initWithInspectedWebView:]):
749         (-[WebInspectorWindowController close]):
750         (-[WebInspectorWindowController showWindow:]):
751         (-[WebInspectorWindowController setAttachedWindowHeight:]):
752         (-[WebInspectorWindowController destroyInspectorView:]):
753
754 2011-04-26  Sam Weinig  <sam@webkit.org>
755
756         Reviewed by David Hyatt.
757
758         Remove Datagrid from the tree
759         https://bugs.webkit.org/show_bug.cgi?id=59543
760
761         * Configurations/FeatureDefines.xcconfig:
762         Remove feature.
763
764 2011-04-26  Dan Bernstein  <mitz@apple.com>
765
766         Reviewed by Mark Rowe.
767
768         Choose the compiler based on the Xcode version for Snow Leopard debug builds.
769
770         * Configurations/Base.xcconfig:
771         * Configurations/CompilerVersion.xcconfig: Added.
772
773 2011-04-25  Adam Barth  <abarth@webkit.org>
774
775         Reviewed by David Levin.
776
777         WebKit2 should play nice with strict OwnPtrs
778         https://bugs.webkit.org/show_bug.cgi?id=59426
779
780         Fix include ordering.
781
782         * WebView/WebDeviceOrientationProviderMock.mm:
783
784 2011-04-25  Adam Barth  <abarth@webkit.org>
785
786         Reviewed by David Levin.
787
788         WebKit1 should build cleanly with strict OwnPtrs
789         https://bugs.webkit.org/show_bug.cgi?id=59424
790
791         * History/WebHistoryItem.mm:
792         (-[WebHistoryItem initFromDictionaryRepresentation:]):
793         * Plugins/WebNetscapePluginEventHandler.h:
794         * Plugins/WebNetscapePluginEventHandler.mm:
795         (WebNetscapePluginEventHandler::create):
796         * Plugins/WebNetscapePluginView.mm:
797         (-[WebNetscapePluginView createPlugin]):
798         * WebView/WebDeviceOrientationProviderMock.mm:
799         * WebView/WebTextIterator.mm:
800         (-[WebTextIterator initWithRange:]):
801
802 2011-04-25  Jon Lee  <jonlee@apple.com>
803
804         Reviewed by Maciej Stachowiak.
805
806         Overlay scroller hard to see on pages with dark background (59183)
807         https://bugs.webkit.org/show_bug.cgi?id=59183
808         <rdar://problem/8975367>
809         
810         * WebCoreSupport/WebSystemInterface.mm:
811         (InitWebCoreSystemInterface): adding method to allow changing style
812
813 2011-04-23  Sheriff Bot  <webkit.review.bot@gmail.com>
814
815         Unreviewed, rolling out r84740.
816         http://trac.webkit.org/changeset/84740
817         https://bugs.webkit.org/show_bug.cgi?id=59290
818
819         change breaks apple internal builds and is incorrect
820         (Requested by smfr on #webkit).
821
822         * WebCoreSupport/WebSystemInterface.mm:
823         (InitWebCoreSystemInterface):
824
825 2011-04-22  Jon Lee  <jonlee@apple.com>
826
827         Reviewed by Beth Dakin.
828
829         Overlay scroller hard to see on pages with dark background (59183)
830         https://bugs.webkit.org/show_bug.cgi?id=59183
831         <rdar://problem/8975367>
832         
833         * WebCoreSupport/WebSystemInterface.mm:
834         (InitWebCoreSystemInterface): adding method to allow changing style
835
836 2011-04-19  Jer Noble  <jer.noble@apple.com>
837
838         Reviewed by Daniel Bates.
839
840         Full Screen from within an <iframe> does not cause <iframe> to resize.
841         https://bugs.webkit.org/show_bug.cgi?id=58638
842
843         Tests: fullscreen/full-screen-frameset-allowed.html
844                fullscreen/full-screen-frameset-not-allowed.html
845
846         Return the _element's document instead of the WKView's document, which 
847         will be different in the case of elements within <iframe>s.
848
849         * WebView/WebFullScreenController.mm:
850         (-[WebFullScreenController _document]):
851
852 2011-04-22  Jer Noble  <jer.noble@apple.com>
853
854         Reviewed by Maciej Stachowiak.
855
856         Disable MediaPlayerPrivateAVFoundation when using old full screen mode.
857         https://bugs.webkit.org/show_bug.cgi?id=59147
858
859         Add a new user default preference, and plumb that preference down to WebCore
860         Settings. Allow the fullScreenEnabled preference to override the new 
861         isAVFoundationEnabled preference, so that clients of the legacy full screen
862         mode will continue to use that mode normally.
863
864         * WebView/WebPreferenceKeysPrivate.h: Add new preference key.
865         * WebView/WebPreferences.mm:
866         (+[WebPreferences initialize]): Set the default value of new
867             preference.
868         (-[WebPreferences setAVFoundationEnabled:]): Added.
869         (-[WebPreferences isAVFoundationEnabled]): Added.
870         * WebView/WebPreferencesPrivate.h:
871         * WebView/WebView.mm:
872         (-[WebView _preferencesChanged:]): Update the WebCore settings with the
873             new values from WebPreferences.
874
875 2011-04-22  Sam Weinig  <sam@webkit.org>
876
877         Reviewed by Gavin Barraclough.
878
879         Remove remaining uses of deprecated version of toJS
880         https://bugs.webkit.org/show_bug.cgi?id=59170
881
882         * DOM/WebDOMOperations.mm:
883         (-[DOMElement _shadowRoot:]):
884         (-[DOMElement _ensureShadowRoot:]):
885         Replace use of deprecated toJS overload with explicit call to deprecatedGlobalObjectForPrototype.
886
887 2011-04-21  Maciej Stachowiak  <mjs@apple.com>
888
889         Reviewed by Adam Roben.
890
891         Add a feature define to allow <details> and <summary> to be disabled
892         https://bugs.webkit.org/show_bug.cgi?id=59118
893         <rdar://problem/9257045>
894
895         * Configurations/FeatureDefines.xcconfig:
896
897 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
898
899         Reviewed by Sam Weinig.
900
901         Add Frame* to the argument lists of canCopyCut and canPaste
902         https://bugs.webkit.org/show_bug.cgi?id=59153
903
904         * WebCoreSupport/WebEditorClient.h:
905         * WebCoreSupport/WebEditorClient.mm:
906         (WebEditorClient::canCopyCut):
907         (WebEditorClient::canPaste):
908
909 2011-04-21  Sheriff Bot  <webkit.review.bot@gmail.com>
910
911         Unreviewed, rolling out r82052.
912         http://trac.webkit.org/changeset/82052
913         https://bugs.webkit.org/show_bug.cgi?id=59135
914
915         New full screen api should be opt-in, not opt-out. (Requested
916         by jernoble on #webkit).
917
918         * WebView/WebPreferences.mm:
919         (+[WebPreferences initialize]):
920
921 2011-04-21  Beth Dakin  <bdakin@apple.com>
922
923         Reviewed by Dan Bernstein.
924
925         https://bugs.webkit.org/show_bug.cgi?id=59048
926         Need to track whether overlay scrollbar is currently visible and in lower-
927         righthand corner
928         -and corresponding-
929         <rdar://problem/9211232>
930
931         A new WebSystemInterface is needed for this.
932         * WebCoreSupport/WebSystemInterface.mm:
933         (InitWebCoreSystemInterface):
934
935 2011-04-21  Dirk Schulze  <krit@webkit.org>
936
937         Reviewed by Nikolas Zimmermann.
938
939         SVG feDropShadow implementation of SVG Filters 1.2
940         https://bugs.webkit.org/show_bug.cgi?id=52513
941
942         * MigrateHeaders.make:
943
944 2011-04-20  Dominic Cooney  <dominicc@chromium.org>
945
946         Reviewed by Dimitri Glazkov.
947
948         layoutTestController can create and destroy shadow DOM
949         https://bugs.webkit.org/show_bug.cgi?id=59058
950
951         Support for new methods in Mac DRT.
952
953         * DOM/WebDOMOperations.mm:
954         (-[DOMElement _ensureShadowRoot:]):
955         (-[DOMElement _removeShadowRoot]):
956         * DOM/WebDOMOperationsPrivate.h:
957
958 2011-04-20  Eric Carlson  <eric.carlson@apple.com>
959
960         Reviewed by Dan Bernstein.
961
962         Adopt QTKit API for listing and deleting file in its media cache.
963         <rdar://problem/9130029> 
964
965         * WebCoreSupport/WebSystemInterface.mm:
966         (InitWebCoreSystemInterface): Initialize new functions.
967
968 2011-04-19  Matthew Delaney  <mdelaney@apple.com>
969
970         Reviewed by Simon Fraser.
971
972         WebPreferences in WebKit1 should have CanvasUsesAcceleratedDrawing set to NO by default
973         https://bugs.webkit.org/show_bug.cgi?id=58936
974
975         * WebView/WebPreferences.mm:
976         (+[WebPreferences initialize]):
977
978 2011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
979
980         Reviewed by Pavel Feldman.
981
982         Web Inspector: Rename lengthReceived to encodedDataLength/dataLength
983         https://bugs.webkit.org/show_bug.cgi?id=58883
984
985         * WebCoreSupport/WebFrameLoaderClient.h:
986         * WebCoreSupport/WebFrameLoaderClient.mm:
987         (WebFrameLoaderClient::dispatchDidReceiveContentLength):
988
989 2011-04-18  Jia Pu  <jpu@apple.com>
990
991         Reviewed by Mark Rowe.
992
993         WebKit needs to stop importing <AppKit/NSTextChecker.h>
994         https://bugs.webkit.org/show_bug.cgi?id=58798
995         <rdar://problem/9294938>
996
997         Use public header <AppKit/NSSpellChecker.h> instead.
998
999         * WebCoreSupport/CorrectionPanel.h:
1000         * WebCoreSupport/CorrectionPanel.mm:
1001         (correctionIndicatorType):
1002         (CorrectionPanel::show):
1003         (CorrectionPanel::dismissInternal):
1004         (CorrectionPanel::handleAcceptedReplacement):
1005         * WebCoreSupport/WebEditorClient.mm:
1006         * WebView/WebView.mm:
1007
1008 2011-04-17  Cameron Zwarich  <zwarich@apple.com>
1009
1010         Reviewed by Timothy Hatcher.
1011
1012         Stop using -[NSString initWithContentsOfFile:]
1013         https://bugs.webkit.org/show_bug.cgi?id=58763
1014
1015         -[NSString initWithContentsOfFile:] was deprecated in 10.4, so we should stop using it.
1016
1017         * WebView/WebView.mm:
1018         (leakMailQuirksUserScriptContents):
1019         (leakOutlookQuirksUserScriptContents):
1020
1021 2011-04-17  David Kilzer  <ddkilzer@apple.com>
1022
1023         <http://webkit.org/b/58463> Switch HTTP pipelining from user default to private setting
1024         <rdar://problem/9268729>
1025
1026         Reviewed by Dan Bernstein.
1027
1028         This replaces support for the WebKitEnableHTTPPipelining user
1029         default with methods on the WebCore::ResourceRequest class in
1030         WebCore, the WebView class in WebKit1, and the WebContext class
1031         in WebKit2.  It also removes support for the
1032         WebKitForceHTTPPipeliningPriorityHigh user default which was not
1033         needed.
1034
1035         * WebView/WebView.mm:
1036         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added.
1037         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added.
1038         * WebView/WebViewPrivate.h:
1039         (+[WebView(WebPrivate) _HTTPPipeliningEnabled]): Added declaration.
1040         (+[WebView(WebPrivate) _setHTTPPipeliningEnabled:]): Added declaration.
1041
1042 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
1043
1044         Reviewed by Dan Bernstein.
1045
1046         Assign to self in WebInspectorWindowController constructors
1047         https://bugs.webkit.org/show_bug.cgi?id=58749
1048
1049         * WebCoreSupport/WebInspectorClient.mm:
1050         (-[WebInspectorWindowController init]):
1051         (-[WebInspectorWindowController initWithInspectedWebView:]):
1052
1053 2011-04-17  Joseph Pecoraro  <joepeck@webkit.org>
1054
1055         Reviewed by Timothy Hatcher.
1056
1057         Move WebNodeHighlighter into its own file
1058         https://bugs.webkit.org/show_bug.cgi?id=58746
1059
1060         Extract this class into its own file alongside the
1061         other WebNodeHighlight files. In doing so do some
1062         cleanup on WebInspectorClient removing some methods
1063         that were never called.
1064
1065         * WebCoreSupport/WebInspectorClient.mm:
1066         (WebInspectorClient::WebInspectorClient): style fix.
1067         * WebInspector/WebNodeHighlighter.h: Added.
1068         * WebInspector/WebNodeHighlighter.mm: Added.
1069         (-[WebNodeHighlighter initWithInspectedWebView:]): call super init.
1070         (-[WebNodeHighlighter dealloc]):
1071         (-[WebNodeHighlighter highlightNode:]):
1072         (-[WebNodeHighlighter hideHighlight]):
1073         (-[WebNodeHighlighter didAttachWebNodeHighlight:]):
1074         (-[WebNodeHighlighter willDetachWebNodeHighlight:]):
1075
1076 2011-04-15  Jia Pu  <jpu@apple.com>
1077
1078         Reviewed by Dan Bernstein.
1079
1080         [Mac] WebKit needs to convert the bounding box of autocorrected word to view coordinate.
1081         https://bugs.webkit.org/show_bug.cgi?id=58717
1082
1083         Convert the bounding box from window coordinate to view coordinate, which is expected by NSCorrectionPanel.
1084
1085         * WebCoreSupport/CorrectionPanel.mm:
1086         (CorrectionPanel::show):
1087
1088 2011-04-15  Shishir Agrawal  <shishir@chromium.org>
1089
1090         Reviewed by James Robinson.
1091
1092         Add a flag to guard Page Visibility API changes.
1093         https://bugs.webkit.org/show_bug.cgi?id=58464
1094
1095         * Configurations/FeatureDefines.xcconfig:
1096
1097 2011-04-15  Oliver Hunt  <oliver@apple.com>
1098
1099         GC allocate Structure
1100         https://bugs.webkit.org/show_bug.cgi?id=58483
1101
1102         Rolling r83894 r83827 r83810 r83809 r83808 back in with
1103         a workaround for the gcc bug seen by the gtk bots
1104
1105         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1106         * Plugins/Hosted/ProxyInstance.mm:
1107         (WebKit::ProxyRuntimeMethod::createStructure):
1108         * Plugins/Hosted/ProxyRuntimeObject.h:
1109         (WebKit::ProxyRuntimeObject::createStructure):
1110
1111 2011-04-14  Alexey Proskuryakov  <ap@apple.com>
1112
1113         Reviewed by Dan Bernstein.
1114
1115         WebKit2: Password field input does not switch to ASCII-compatible source
1116         https://bugs.webkit.org/show_bug.cgi?id=58583
1117         <rdar://problem/9059651>
1118
1119         Now that WebCore doesn't set secure input mode, WebKit has to. Happily, it already has the
1120         necessary logic, needed to return a nil text input context when in password fields.
1121
1122         * WebView/WebHTMLView.mm:
1123         (-[WebHTMLView close]): If the view is still enforcing secure event mode, stop.
1124         (-[WebHTMLView windowDidBecomeKey:]): Call _updateSecureInputState.
1125         (-[WebHTMLView windowDidResignKey:]): Ditto.
1126         (-[WebHTMLView becomeFirstResponder]): Call _updateSecureInputState. It's a bit tricky
1127         because the first responder is still different an this point, so set a boolean variable to
1128         let _updateSecureInputState know what's going on.
1129         (-[WebHTMLView resignFirstResponder]): Disable secure event mode if it's on.
1130         (-[WebHTMLView _updateSecureInputState]): Update HIToolbox secure event input state and
1131         allowed input sources accorsing to current selection.
1132         (-[WebHTMLView _updateSelectionForInputManager]): Call _updateSecureInputState.
1133
1134 2011-04-15  Sam Weinig  <sam@webkit.org>
1135
1136         Reviewed by Maciej Stachowiak.
1137
1138         Make mac WebKit1 use the default localization strategy
1139         https://bugs.webkit.org/show_bug.cgi?id=58628
1140
1141         * WebCoreSupport/WebPlatformStrategies.h:
1142         * WebCoreSupport/WebPlatformStrategies.mm:
1143         Remove the localization strategy code. The equivalent is now
1144         in WebCore/platform/DefaultLocalizationStrategy.cpp.
1145
1146 2011-04-15  Anna Cavender  <annacc@chromium.org>
1147
1148         Reviewed by Eric Carlson.
1149
1150         Renaming TRACK feature define to VIDEO_TRACK
1151         https://bugs.webkit.org/show_bug.cgi?id=53556
1152
1153         * Configurations/FeatureDefines.xcconfig:
1154
1155 2011-04-14  Pratik Solanki  <psolanki@apple.com>
1156
1157         Reviewed by David Kilzer.
1158
1159         Set minimum priority for fast lane connections
1160         https://bugs.webkit.org/show_bug.cgi?id=58353
1161
1162         * WebCoreSupport/WebSystemInterface.mm:
1163         (InitWebCoreSystemInterface): Support for new WKSI method WKSetHTTPPipeliningMinimumFastLanePriority.
1164
1165 2011-04-13  Sam Weinig  <sam@webkit.org>
1166
1167         Reviewed by Gavin Barraclough.
1168
1169         WebKit2 doesn't keep overlay scrollers shown while scroll gesture held
1170         <rdar://problem/9260518>
1171
1172         * WebCoreSupport/WebSystemInterface.mm:
1173         (InitWebCoreSystemInterface):
1174         Initialize new WKSI functions.
1175
1176 2011-04-13  David Kilzer  <ddkilzer@apple.com>
1177
1178         <http://webkit.org/b/58172> Fix -Wcast-align warning in WebBasePluginPackage.mm
1179
1180         Reviewed by Anders Carlsson.
1181
1182         Fixes the following warning with -Wcast-align enabled:
1183
1184             Source/WebKit/mac/Plugins/WebBasePluginPackage.mm:402:21:{402:21-402:93}{402:39-402:93}: error: cast from 'uint8_t *' (aka 'unsigned char *') to 'struct fat_arch *' increases required alignment from 1 to 4 [-Werror,-Wcast-align,3]
1185                          archs = (struct fat_arch*)((uint8_t*)rawData.data() + sizeof(struct fat_header));
1186                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1187
1188         * Plugins/WebBasePluginPackage.mm:
1189         (-[WebBasePluginPackage isNativeLibraryData:]): Added
1190         COMPILE_ASSERT() to make sure our pointer math is valid.
1191         Removed cast to (uint8_t*) and divide sizeof(struct fat_header)
1192         by sizeof(uint32_t) to fix the pointer math.  Replaced C-style
1193         casts with reinterpret_cast.
1194
1195 2011-04-12  Enrica Casucci  <enrica@apple.com>
1196
1197         Reviewed by Alexey Proskuryakov.
1198
1199         Infinite recursion in WebHTMLView executeSavedKeypressCommands.
1200         https://bugs.webkit.org/show_bug.cgi?id=58382
1201         <rdar://problem/9239370>
1202
1203         Execution of some editing commands could trigger a call to selectedRange that
1204         internally calls executeSavedKeypressCommands creating an infinite recursion.
1205
1206         * WebView/WebHTMLView.mm:
1207         (-[WebHTMLView _executeSavedKeypressCommands]): Added a flag to avoid recursion.
1208         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Added flag initialization.
1209
1210 2011-04-12  Alice Liu  <alice.liu@apple.com>
1211
1212         Reviewed by Sam Weinig.
1213
1214         https://bugs.webkit.org/show_bug.cgi?id=58292
1215         Provide new setting to allow site icon loading despite disabling automatic image loading in general.
1216
1217         * WebView/WebPreferenceKeysPrivate.h: Add preference key.
1218         * WebView/WebPreferences.mm:
1219         (+[WebPreferences initialize]): Initialize to false.
1220         (-[WebPreferences setLoadsSiteIconsIgnoringImageLoadingPreference:]): Added.
1221         (-[WebPreferences loadsSiteIconsIgnoringImageLoadingPreference]): Added.
1222         * WebView/WebPreferencesPrivate.h: Add setter/getter definitions.
1223         * WebView/WebView.mm:
1224         (-[WebView _preferencesChanged:]): Add to settings that get propagated upon changes. 
1225
1226 2011-04-11  Alexey Proskuryakov  <ap@apple.com>
1227
1228         Reviewed by Maciej Stachowiak.
1229
1230         WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
1231         https://bugs.webkit.org/show_bug.cgi?id=58175
1232         <rdar://problem/9060555>
1233
1234         * WebView/WebFrameView.mm: (-[WebFrameView keyDown:]): Added a comment explaining how this
1235         should be changed to match WebKit2.
1236
1237 2011-04-06  Timothy Hatcher  <timothy@apple.com>
1238
1239         Fix a bug where the context menu does not show in PDF documents if there is no
1240         UI delegate or the UI delegate does not respond to the context menu selector.
1241
1242         https://webkit.org/b/57958
1243
1244         Reviewed by Darin Adler.
1245
1246         * WebView/WebView.mm:
1247         (-[WebView _menuForElement:defaultItems:]): CallUIDelegate returns nil
1248         if UIDelegate is nil or doesn't respond to the selector. So check that
1249         here to distinguish between using defaultMenuItems or the delegate
1250         really returning nil to say "no context menu".
1251
1252 2011-04-11  Jer Noble  <jer.noble@apple.com>
1253
1254         Unreviewed; roll out unintentional change to WebFullScreenController.mm.
1255
1256         * WebView/WebFullScreenController.mm:
1257         (-[WebFullScreenController enterFullscreen:]):
1258
1259 2011-04-08  Geoffrey Garen  <ggaren@apple.com>
1260
1261         Reviewed by Oliver Hunt.
1262
1263         A few heap-related renames and file moves.
1264         
1265         WeakGCPtr<T> => Weak<T>
1266         Global<T> => Strong<T>
1267         collector/ => heap/
1268         collector/* => heap/*
1269         runtime/WeakGCPtr.h => heap/Weak.h
1270         
1271         (Eventually, even more files should move into the heap directory. Like
1272         Heap.h and Heap.cpp, for example.)
1273
1274         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
1275         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
1276         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
1277         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
1278         (WebKit::NetscapePluginInstanceProxy::evaluate):
1279         * WebView/WebScriptDebugger.h:
1280
1281 2011-04-08  Alexey Proskuryakov  <ap@apple.com>
1282
1283         Reviewed by Darin Adler.
1284
1285         WebKit2: Safari doesn't respect cmd-arrows (and variations) as custom keyboard shortcuts
1286         https://bugs.webkit.org/show_bug.cgi?id=58175
1287         <rdar://problem/9060555>
1288
1289         * WebView/WebFrameView.mm: (-[WebFrameView keyDown:]): Added a comment explaining how this
1290         should be changed to match WebKit2.
1291
1292 2011-04-08  Alpha Lam  <hclam@chromium.org>
1293
1294         Unreviewed, rolling out r83335.
1295         http://trac.webkit.org/changeset/83335
1296         https://bugs.webkit.org/show_bug.cgi?id=53556
1297
1298         GTK and QT bots are broken
1299
1300         * Configurations/FeatureDefines.xcconfig:
1301
1302 2011-04-07  Anna Cavender  <annacc@chromium.org>
1303
1304         Reviewed by Eric Carlson.
1305
1306         Setup ENABLE(TRACK) feature define
1307         https://bugs.webkit.org/show_bug.cgi?id=53556
1308
1309         * Configurations/FeatureDefines.xcconfig:
1310
1311 2011-04-08  Maciej Stachowiak  <mjs@apple.com>
1312
1313         Reviewed by Darin Adler.
1314
1315         -[WebView setPreferences:] can take a lot of time if loading lots of webviews at once
1316         https://bugs.webkit.org/show_bug.cgi?id=58128
1317         <rdar://problem/9244553>
1318         
1319         The root of the problem here was an O(N^2) issue - each WebView,
1320         upon having its preferences initialized, would broadcast a
1321         notification that was listened to by all other WebViews sharing
1322         its preferences.
1323         
1324         To maintain the API contract, I split the notification into two,
1325         one that is for public API consumption, and the other which is for
1326         internal use only. Changes that don't need to be picked up by
1327         other WebViews broadcast the public notification only. And we
1328         avoid WebView broadcasting a notification just to get itself to
1329         update.
1330
1331         * Misc/WebIconDatabase.mm:
1332         (-[WebIconDatabase _startUpIconDatabase]):
1333         (-[WebIconDatabase _shutDownIconDatabase]):
1334         * Plugins/WebBaseNetscapePluginView.mm:
1335         (-[WebBaseNetscapePluginView viewWillMoveToWindow:]):
1336         (-[WebBaseNetscapePluginView viewWillMoveToSuperview:]):
1337         (-[WebBaseNetscapePluginView viewDidMoveToWindow]):
1338         (-[WebBaseNetscapePluginView viewWillMoveToHostWindow:]):
1339         * WebView/WebPreferences.mm:
1340         (-[WebPreferences initWithIdentifier:]):
1341         (-[WebPreferences _setStringValue:forKey:]):
1342         (-[WebPreferences _setIntegerValue:forKey:]):
1343         (-[WebPreferences _setFloatValue:forKey:]):
1344         (-[WebPreferences _setBoolValue:forKey:]):
1345         (-[WebPreferences _setLongLongValue:forKey:]):
1346         (-[WebPreferences _setUnsignedLongLongValue:forKey:]):
1347         (-[WebPreferences _postPreferencesChangedNotification]):
1348         (-[WebPreferences _postPreferencesChangedAPINotification]):
1349         * WebView/WebPreferencesPrivate.h:
1350         * WebView/WebView.mm:
1351         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1352         (-[WebView _preferencesChangedNotification:]):
1353         (-[WebView _preferencesChanged:]):
1354         (-[WebView setUsesPageCache:]):
1355         (+[WebView initialize]):
1356         (-[WebView setPreferences:]):
1357         (-[WebView _keyboardUIMode]):
1358         * WebView/WebViewInternal.h:
1359
1360 2011-04-07  Andrew Scherkus  <scherkus@chromium.org>
1361
1362         Revert ENABLE_TRACK patch due to compile failures.
1363
1364         * Configurations/FeatureDefines.xcconfig:
1365
1366 2011-04-07  Alexey Proskuryakov  <ap@apple.com>
1367
1368         Reviewed by Anders Carlsson.
1369
1370         REGRESSION (WebKit2): Reverse conversion doesn't work in Kotoeri
1371         https://bugs.webkit.org/show_bug.cgi?id=58066
1372         <rdar://problem/8965302>
1373
1374         * WebView/WebHTMLRepresentation.mm:
1375         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1376         * WebView/WebHTMLView.mm:
1377         (-[WebHTMLView attributedSubstringFromRange:]):
1378         (-[WebHTMLView attributedString]):
1379         (-[WebHTMLView selectedAttributedString]):
1380         Updated for editingAttributedStringFromRange: now taking a WebCore::Range instead of DOMRange.
1381
1382 2011-04-07  Andy Estes  <aestes@apple.com>
1383
1384         Reviewed by Darin Adler.
1385
1386         REGRESSION (r64712): Microsoft Outlook 2011: original message contents
1387         not included when replying to an email.
1388         https://bugs.webkit.org/show_bug.cgi?id=57794
1389         
1390         Outlook populates a reply message by creating an empty WebView and
1391         using DOM API to populate the WebView's empty document with content
1392         from the original message. It expects the initial empty document to
1393         simply be "<html></html>", and it proceeds to dynamically create and
1394         append a BODY node and add the original message content as a child of
1395         that node. Outlook then takes the innerHTML of the frame's first body
1396         element and copies it into a *new* document that is displayed and
1397         edited in the reply message window.
1398         
1399         Due to implementing the HTML5 tree building algorithm in r64712,
1400         initial empty documents went from being "<html></html>" to being
1401         "<html><head></head><body></body></html>". Outlook still dynamically
1402         creates a BODY node to parent the original message content, but this
1403         BODY node duplicates the one created by the tree builder. When Outlook
1404         then takes the innerHTML of the first body element to populate the
1405         reply message window it gets the empty body element created by the
1406         parser, not the one it created with the original message content.
1407         
1408         Fix this by injecting a user script into the initial empty document
1409         that removes the HEAD and BODY nodes created by the parser. This
1410         ensures that the BODY created by Outlook is the only BODY in the
1411         document.
1412
1413         * Misc/OutlookQuirksUserScript.js: Added.
1414         * WebView/WebView.mm:
1415         (leakMailQuirksUserScriptContents):
1416         (-[WebView _injectMailQuirksScript]):
1417         (needsOutlookQuirksScript):
1418         (leakOutlookQuirksUserScriptContents):
1419         (-[WebView _injectOutlookQuirksScript]):
1420         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
1421
1422 2011-04-06  Dai Mikurube  <dmikurube@chromium.org>
1423
1424         Reviewed by David Levin.
1425
1426         Add QUOTA build flag for unified quota API
1427         https://bugs.webkit.org/show_bug.cgi?id=57918
1428
1429         * Configurations/FeatureDefines.xcconfig: Added QUOTA build flag
1430
1431 2011-04-06  Robert Sesek  <rsesek@chromium.org>
1432
1433         Reviewed by Alexey Proskuryakov.
1434
1435         Move code duplicated between the WebKit/mac and WebKit2 down to WebCore because Chromium will need it too
1436         https://bugs.webkit.org/show_bug.cgi?id=54969
1437
1438         * WebView/WebFrame.mm:
1439         (-[WebFrame _convertToNSRange:]): Moved duplicated code to WebCore
1440         (-[WebFrame _characterRangeAtPoint:]): Moved duplicated code to WebCore
1441
1442 2011-04-05  Alexey Proskuryakov  <ap@apple.com>
1443
1444         Reviewed by Darin Adler.
1445
1446         Move attributedStringFromRange down to WebCore
1447         https://bugs.webkit.org/show_bug.cgi?id=57905
1448
1449         * Misc/WebNSAttributedStringExtras.h: Removed.
1450         * Misc/WebNSAttributedStringExtras.mm: Removed.
1451         * WebView/WebHTMLRepresentation.mm:
1452         (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:]):
1453         * WebView/WebHTMLView.mm:
1454         (-[WebHTMLView _writeSelectionWithPasteboardTypes:toPasteboard:cachedAttributedString:]):
1455         (-[WebHTMLView attributedSubstringFromRange:]):
1456         (-[WebHTMLView attributedString]):
1457         (-[WebHTMLView selectedAttributedString]):
1458         * WebView/WebPDFView.mm:
1459         (-[WebPDFView writeSelectionWithPasteboardTypes:toPasteboard:]):
1460
1461 2011-04-04  MORITA Hajime  <morrita@google.com>
1462
1463         Reviewed by Ryosuke Niwa.
1464
1465         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
1466         https://bugs.webkit.org/show_bug.cgi?id=56085
1467
1468         Removed NSTextCheckingResult to SpellCheckingResult convertion, and extracted
1469         NSTextCheckingResult to TextCheckingResult convertio from checkTextOfParagraph method.
1470         for requestCheckingOfString method.
1471         
1472         * WebCoreSupport/WebEditorClient.h:
1473         * WebCoreSupport/WebEditorClient.mm:
1474         (toCoreTextCheckingResults):
1475         (WebEditorClient::checkTextOfParagraph):
1476         (-[WebEditorSpellCheckResponder initWithSender:WebCore::sequence:types:WebCore::results:]):
1477         (-[WebEditorSpellCheckResponder perform]):
1478         (WebEditorClient::requestCheckingOfString):
1479         * WebView/WebFrame.mm:
1480         (-[WebFrame markersForSelectionStartAsText]):
1481         * WebView/WebFramePrivate.h:
1482
1483 2011-04-05  Anders Carlsson  <andersca@apple.com>
1484
1485         Didn't mean to land this.
1486
1487         * Plugins/WebNetscapePluginView.mm:
1488         (-[WebNetscapePluginView getVariable:value:]):
1489
1490 2011-04-04  David Kilzer  <ddkilzer@apple.com>
1491
1492         <http://webkit.org/b/57384> CFNetwork and WebCore load priorities should match
1493
1494         Reviewed by Alexey Proskuryakov.
1495
1496         * WebCoreSupport/WebSystemInterface.mm:
1497         (InitWebCoreSystemInterface): Added initialization for
1498         wkSetHTTPPipeliningMaximumPriority().
1499
1500 2011-04-04  Alexey Proskuryakov  <ap@apple.com>
1501
1502         Reviewed by Dan Bernstein.
1503
1504         REGRESSION (WebKit2): Caps-Lock indicator sometimes doesn't appear in WebKit2
1505         https://bugs.webkit.org/show_bug.cgi?id=51230
1506         <rdar://problem/8780989>
1507
1508         * WebView/WebHTMLView.mm: (-[WebHTMLView flagsChanged:]): Moved Caps Lock handling from
1509         WebKits to WebCore, because WebKit shouldn't be smart.
1510
1511 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
1512
1513         Reviewed by Darin Adler.
1514
1515         REGRESSION: Assertion failure when executing a complex custom key binding
1516         https://bugs.webkit.org/show_bug.cgi?id=57681
1517
1518         * WebView/WebHTMLView.mm: (-[WebHTMLView hasMarkedText]): There is no need to execute saved
1519         commands when they can't possibly change the result.
1520
1521 2011-04-01  Anders Carlsson  <andersca@apple.com>
1522
1523         Reviewed by Sam Weinig.
1524
1525         Shockwave plug-in doesn't accept mouse events
1526         https://bugs.webkit.org/show_bug.cgi?id=57653
1527         <rdar://problem/8483273>
1528
1529         Fix an unrelated bug found by the added test.
1530
1531         * Plugins/WebBaseNetscapePluginView.mm:
1532         (-[WebBaseNetscapePluginView convertFromX:andY:space:toX:andY:space:]):
1533         Make sure to always set destX and destY.
1534
1535 2011-04-01  Alexey Proskuryakov  <ap@apple.com>
1536
1537         Reviewed by Darin Adler.
1538
1539         Make WebKit2 text input handling more like WebKit1
1540         https://bugs.webkit.org/show_bug.cgi?id=57649
1541
1542         * WebView/WebFrameInternal.h: Expose _convertToDOMRange for use in WebHTMLView.
1543         * WebView/WebHTMLView.mm:
1544         (-[WebHTMLView _executeSavedKeypressCommands]): Renamed, since these are not editor commands.
1545         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Updated for the renamed _executeSavedKeypressCommands.
1546         (-[WebHTMLView characterIndexForPoint:]): Ditto.
1547         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
1548         (-[WebHTMLView selectedRange]): Ditto.
1549         (-[WebHTMLView markedRange]): Ditto.
1550         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
1551         (-[WebHTMLView hasMarkedText]): Ditto.
1552         (-[WebHTMLView unmarkText]): Ditto.
1553         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto. Changed the comment about the argument
1554         type into an assertion. Removed resetting interpretKeyEventsParameters to 0, as we shouldn't
1555         be able to call text input protocol methods from here (and we didn't even reset it back on
1556         return). Changed to retrieve all data before starting to apply actions to better match WK2 code.
1557         (-[WebHTMLView insertText:]): Ditto.
1558
1559 2011-04-01  Timothy Hatcher  <timothy@apple.com>
1560
1561         Make momentum scroll event latching work in WebKit2 on Mac.
1562
1563         <rdar://problem/8751861>
1564
1565         Reviewed by Darin Adler.
1566
1567         * WebCoreSupport/WebSystemInterface.mm:
1568         (InitWebCoreSystemInterface): Remove IsLatchingWheelEvent, add GetNSEventMomentumPhase.
1569         * WebView/WebDynamicScrollBarsView.mm:
1570         (-[WebDynamicScrollBarsView scrollWheel:]): Use WKGetNSEventMomentumPhase to set isLatchingEvent.
1571
1572 2011-03-31  Darin Adler  <darin@apple.com>
1573
1574         Reviewed by Anders Carlsson.
1575
1576         Assertion failure in -[WebHTMLView _handleStyleKeyEquivalent:]
1577         https://bugs.webkit.org/show_bug.cgi?id=26667
1578
1579         * WebView/WebHTMLView.mm:
1580         (-[WebHTMLView _handleStyleKeyEquivalent:]): Handle the case where WebView is
1581         nil rather than asserting that it is non-nil. One case where WebView will be nil
1582         is when the frame is closed, but in any case where it is nil, the correct thing
1583         to do is to not try to handle the style key.
1584
1585 2011-03-31  Alexey Proskuryakov  <ap@apple.com>
1586
1587         Patch by John Harvey, reviewed and tweaked by me.
1588
1589         <rdar://problem/8644403> Should notify TSM that plug-ins would show a bottom input window for marked text.
1590
1591         * Plugins/Hosted/WebTextInputWindowController.m:
1592         (-[WebTextInputPanel _interpretKeyEvent:string:]):
1593
1594 2011-03-31  Evan Martin  <evan@chromium.org>
1595
1596         Reviewed by Eric Seidel.
1597
1598         <title> should support dir attribute
1599         https://bugs.webkit.org/show_bug.cgi?id=50961
1600
1601         Update to new FrameLoaderClient interface.
1602
1603         * WebCoreSupport/WebFrameLoaderClient.h:
1604         * WebCoreSupport/WebFrameLoaderClient.mm:
1605         (WebFrameLoaderClient::dispatchDidReceiveTitle):
1606         (WebFrameLoaderClient::setTitle):
1607
1608 2011-03-30  Dominic Cooney  <dominicc@google.com>
1609
1610         Reviewed by Dimitri Glazkov.
1611
1612         Adds layoutTestController.shadowRoot accessor to Mac DRT.
1613         https://bugs.webkit.org/show_bug.cgi?id=57415
1614
1615         * DOM/WebDOMOperations.mm:
1616         (-[DOMElement _shadowRoot:]):
1617         * DOM/WebDOMOperationsPrivate.h:
1618
1619 2011-03-30  Alexey Proskuryakov  <ap@apple.com>
1620
1621         Reviewed by Darin Adler.
1622
1623         WebHTMLView shouldn't resend noop: commands
1624         https://bugs.webkit.org/show_bug.cgi?id=57504
1625         <rdar://problem/9209390>
1626
1627         * WebView/WebHTMLView.mm: (-[WebHTMLView _executeSavedEditingCommands]): Filter out NOOPs,
1628         which we get e.g. when handling Cmd-key combos.
1629
1630 2011-03-30  Alexey Proskuryakov  <ap@apple.com>
1631
1632         Reviewed by Darin Adler.
1633
1634         REGRESSION (r82320): Spacebar no longer pages down
1635         https://bugs.webkit.org/show_bug.cgi?id=57423
1636         <rdar://problem/9207702>
1637
1638         Also includes some unrelated cleanup that I had in my tree.
1639
1640         * WebView/WebHTMLView.mm:
1641         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Added an assertion that the event is
1642         being dispatched to the right frame.
1643         (-[WebHTMLView setMarkedText:selectedRange:]): Use 0 for a pointer, not NULL.
1644         (-[WebHTMLView doCommandBySelector:]): Update eventInterpretationHadSideEffects with "|=".
1645         Even if this specific command hasn't been handled, that doesn't nullify side effects from
1646         previous commands.
1647         (-[WebHTMLView insertText:]): Besides looking at the return value of insertText() to fix the
1648         bug, removed setting _private->interpretKeyEventsParameters to 0. I don't see any way for
1649         another WebHTMLView NSTextInput method to be called from within insertText:, so no one is
1650         going to look at it.
1651
1652 2011-03-30  Sam Weinig  <sam@webkit.org>
1653
1654         Reviewed by Brady Eidson.
1655
1656         WebKit2: Attempting to view css file from url causes it to download
1657         <rdar://problem/9102611>
1658         https://bugs.webkit.org/show_bug.cgi?id=57501
1659
1660         * WebView/WebHTMLRepresentation.h:
1661         * WebView/WebHTMLRepresentation.mm:
1662         (+[WebHTMLRepresentation unsupportedTextMIMETypes]):
1663         * WebView/WebHTMLView.mm:
1664         (+[WebHTMLView unsupportedTextMIMETypes]):
1665         Re-factor unsupportedTextMIMETypes to pull from WebCore's
1666         MIMETypeRegistry, so that the list can be shared with WebKit2.
1667
1668 2011-03-29  Beth Dakin  <bdakin@apple.com>
1669
1670         Reviewed by Maciej Stachowiak.
1671
1672         Fix for https://bugs.webkit.org/show_bug.cgi?id=57408 
1673         webkit-min-device-pixel-ratio media query doesn't work post-SnowLeopard 
1674         -and corresponding-
1675         <rdar://problem/8665411>
1676
1677         * Misc/WebNSControlExtras.m:
1678         (-[NSControl sizeToFitAndAdjustWindowHeight]):
1679         * WebCoreSupport/WebChromeClient.mm:
1680         (WebChromeClient::scaleFactor):
1681         * WebView/WebHTMLView.mm:
1682         (-[WebHTMLView viewDidMoveToWindow]):
1683         (-[WebHTMLView attachRootLayer:]):
1684
1685 2011-03-29  Kent Tamura  <tkent@chromium.org>
1686
1687         Reviewed by Dimitri Glazkov.
1688
1689         Make validation message bubble testable
1690         https://bugs.webkit.org/show_bug.cgi?id=57290
1691
1692         * WebView/WebView.mm:
1693         (-[WebView _preferencesChangedNotification:]): Copy the private value of
1694           the timer magnification to WebCore::Settings.
1695         (-[WebView validationMessageTimerMagnification]): Added.
1696         (-[WebView setValidationMessageTimerMagnification:]): Added.
1697         * WebView/WebViewData.h: Declare a member for the timer magnification.
1698         * WebView/WebViewData.mm:
1699         (-[WebViewPrivate init]): Initialize the timer magnification.
1700         * WebView/WebViewPrivate.h:
1701           Declare a setter and a getter for the timer magnification.
1702
1703 2011-03-29  Kent Tamura  <tkent@chromium.org>
1704
1705         Reviewed by Dimitri Glazkov.
1706
1707         [Mac] Enable interactive-validation tests on Mac DRT
1708         https://bugs.webkit.org/show_bug.cgi?id=57308
1709
1710         * WebView/WebView.mm:
1711         (-[WebView _preferencesChangedNotification:]):
1712           Convey a WebView flag for interactive validation to WebCore::Settings.
1713         (-[WebView interactiveFormValidationEnabled]): Added.
1714         (-[WebView setInteractiveFormValidationEnabled:]): Added.
1715         * WebView/WebViewData.h: Add interactiveFormValidationEnabled.
1716         * WebView/WebViewData.mm:
1717         (-[WebViewPrivate init]): Initialize interactiveFormValidationEnabled.
1718         * WebView/WebViewPrivate.h: Add setter and getter for interactiveFormValidationEnabled.
1719
1720 2011-03-29  Timothy Hatcher  <timothy@apple.com>
1721
1722         Update the order of the context menu to better match AppKit on Mac.
1723
1724         <rdar://problem/9054893>
1725
1726         Reviewed by John Sullivan.
1727
1728         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
1729         (-[WebDefaultUIDelegate webView:contextMenuItemsForElement:defaultMenuItems:]): Update the order of items.
1730         * WebCoreSupport/WebPlatformStrategies.h:
1731         * WebCoreSupport/WebPlatformStrategies.mm:
1732         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): Added argument for selected string.
1733
1734 2011-03-29  Alexey Proskuryakov  <ap@apple.com>
1735
1736         Reviewed by Darin Adler.
1737
1738         https://bugs.webkit.org/show_bug.cgi?id=57379
1739         Clean up WK1 key event handling logic
1740
1741         No bugs knowingly fixed, but this makes the code more consistent.
1742
1743         * WebView/WebHTMLView.mm:
1744         (struct WebHTMLViewInterpretKeyEventsParameters): Renamed eventWasHandled to
1745         eventInterpretationHadSideEffects, because "handled" doesn't really mean much.
1746         (-[WebHTMLView _executeSavedEditingCommands]): Factored out from _interpretKeyEvent for use
1747         from other functions. We need to execute saved commands when an input method asks for current
1748         state, because providing stale state could confuse it.
1749         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Heavily commented, and updated for other
1750         changes.
1751         (-[WebHTMLView characterIndexForPoint:]): Call _executeSavedEditingCommands, because otherwise,
1752         the answer would be stale.
1753         (-[WebHTMLView firstRectForCharacterRange:]): Ditto.
1754         (-[WebHTMLView selectedRange]): Ditto.
1755         (-[WebHTMLView markedRange]): Ditto.
1756         (-[WebHTMLView attributedSubstringFromRange:]): Ditto.
1757         (-[WebHTMLView hasMarkedText]): Ditto.
1758         (-[WebHTMLView unmarkText]): Call _executeSavedEditingCommands, because otherwise, we'd be
1759         operating on stale data. Also, updated for eventWasHandled renaming.
1760         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
1761         (-[WebHTMLView doCommandBySelector:]): Removed special handling for noop:. I verified that
1762         it's no longer needed for bug 14522, presumably due to WebCore level changes. It was also
1763         fragile, because there is no guarantee about when noop: is sent (also, a custom key binding
1764         could have a noop: as one of its commands, although that's hardly practical).
1765         Added the same "from input method" logic that we have in insertText: - I don't know of any
1766         IMs that call this method, but we clearly need to execute it as part of IM processing when
1767         there is marked text.
1768         (-[WebHTMLView insertText:]): Removed a confusing check for [text length]. Always set
1769         eventInterpretationHadSideEffects to true, becasue there is no reason to try multiple times
1770         if current selection isn't editable. This is different from doCommandBySelector:, where we
1771         need to give super class a chance to handle the event if our processing fails.
1772         Removed a nonsense "consumedByIM = true" assignment - we no longer need it now that the
1773         return value of _interpretKeyEvent is computed differently.
1774
1775 2011-03-28  Adele Peterson  <adele@apple.com>
1776
1777         Reviewed by Eric Seidel.
1778
1779         Fix for <rdar://problem/9112694> REGRESSION (r79411): "Check grammar with spelling" context menu doesn't check as you type
1780         https://bugs.webkit.org/show_bug.cgi?id=57173
1781
1782         * WebView/WebFrame.mm:
1783         (-[WebFrame hasSpellingMarker:length:]): Call new selectionStartHasMarkerFor method instead of selectionStartHasSpellingMarkerFor.
1784         (-[WebFrame hasGrammarMarker:length:]): Call new selectionStartHasMarkerFor method.
1785         * WebView/WebFramePrivate.h: Add hasGrammarMarker so grammar marking can be tested.
1786
1787 2011-03-28  Alexey Proskuryakov  <ap@apple.com>
1788
1789         Reviewed by Darin Adler.
1790
1791         https://bugs.webkit.org/show_bug.cgi?id=57260
1792         Clean up text input code a little
1793
1794         * WebCoreSupport/WebEditorClient.mm:
1795         (WebEditorClient::handleKeyboardEvent):
1796         (WebEditorClient::handleInputMethodKeydown):
1797         * WebView/WebHTMLViewInternal.h:
1798         Renamed _interceptEditingKeyEvent:shouldSaveCommand:, becasue it doesn't really intercept
1799         anything. It's just a version it interpretKeyEvents: that tells us whether it was handled,
1800         and also possibly saves resulting commands for later execution.
1801
1802         * WebView/WebHTMLView.mm:
1803         (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Changed to use early return. Changed
1804         return value in case platformEvent is null to be less mysterious. Moved receivedNOOP from
1805         WebHTMLViewPrivate to WebHTMLViewInterpretKeyEventsParameters, as this is just part of event
1806         handling state, like the other booleans there. Don't call interpretKeyEvents: again simply
1807         because the first call resulted in no saved commands, becasue it's confusing and apparently
1808         useless (I couldn't find any broken behavior).
1809         (-[WebHTMLView unmarkText]): Cleaned upo BOOL vs. bool constants.
1810         (-[WebHTMLView setMarkedText:selectedRange:]): Ditto.
1811         (-[WebHTMLView doCommandBySelector:]): Ditto.
1812         (-[WebHTMLView insertText:]): Ditto.
1813
1814         * WebView/WebViewInternal.h: There was no _interceptEditingKeyEvent:shouldSaveCommand:
1815         method on WebView.
1816
1817 2011-03-27  Jer Noble  <jer.noble@apple.com>
1818
1819         Reviewed by Maciej Stachowiak.
1820
1821         Full Screen: disable keyboard access by default
1822         https://bugs.webkit.org/show_bug.cgi?id=56684
1823
1824         Take into account whether keyboard access was requested when deciding whether full
1825         screen mode is supported.
1826
1827         * WebCoreSupport/WebChromeClient.h:
1828         * WebCoreSupport/WebChromeClient.mm:
1829         (WebChromeClient::supportsFullScreenForElement):
1830         * WebView/WebView.mm:
1831         (-[WebView _supportsFullScreenForElement:WebCore::withKeyboard:]):
1832         * WebView/WebViewInternal.h:
1833
1834 2011-03-26  Jer Noble  <jer.noble@apple.com>
1835
1836         Reviewed by Eric Carlson.
1837
1838         Enable the Full Screen API by default in WebKit/mac and WebKit2
1839         https://bugs.webkit.org/show_bug.cgi?id=56956
1840
1841         * WebView/WebPreferences.mm:
1842         (+[WebPreferences initialize]): Default the WebKitFullScreenEnabled preference to true.
1843
1844 2011-03-25  Andy Estes  <aestes@apple.com>
1845
1846         Reviewed by Adele Peterson.
1847
1848         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
1849         https://bugs.webkit.org/show_bug.cgi?id=49016
1850
1851         Update objectContentType() implementation to handle the
1852         shouldPreferPlugInsForImages flag.
1853
1854         * WebCoreSupport/WebFrameLoaderClient.h:
1855         * WebCoreSupport/WebFrameLoaderClient.mm:
1856         (WebFrameLoaderClient::objectContentType):
1857
1858 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1859
1860         Unreviewed, rolling out r81939.
1861         http://trac.webkit.org/changeset/81939
1862         https://bugs.webkit.org/show_bug.cgi?id=57084
1863
1864         Rolling out 81939, as it's causing a number of app cache test
1865         failures. (Requested by jernoble on #webkit).
1866
1867         * WebView/WebView.mm:
1868         (-[WebView _preferencesChangedNotification:]):
1869
1870 2011-03-23  Jer Noble  <jer.noble@apple.com>
1871
1872         Reviewed by Maciej Stachowiak.
1873
1874         Application Cache should save audio/ and video/ mime types as flat files
1875         https://bugs.webkit.org/show_bug.cgi?id=53784
1876         <rdar://problem/8932473>
1877
1878         No new tests.
1879
1880         Initialize the AppCache Total size quotas with the values for WebKitPreferences
1881         upon startup.
1882
1883         * WebView/WebView.mm:
1884         (-[WebView _preferencesChangedNotification:]):
1885
1886 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1887
1888         Unreviewed, rolling out r81916 and r81917.
1889         http://trac.webkit.org/changeset/81916
1890         http://trac.webkit.org/changeset/81917
1891         https://bugs.webkit.org/show_bug.cgi?id=57071
1892
1893         broke a test on platforms that do not have QuickTime installed
1894         (Requested by estes on #webkit).
1895
1896         * WebCoreSupport/WebFrameLoaderClient.h:
1897         * WebCoreSupport/WebFrameLoaderClient.mm:
1898         (WebFrameLoaderClient::objectContentType):
1899
1900 2011-03-24  Andy Estes  <aestes@apple.com>
1901
1902         Reviewed by Darin Adler.
1903
1904         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
1905         https://bugs.webkit.org/show_bug.cgi?id=49016
1906
1907         Update objectContentType() implementation to handle the
1908         shouldPreferPlugInsForImages flag.
1909
1910         * WebCoreSupport/WebFrameLoaderClient.h:
1911         * WebCoreSupport/WebFrameLoaderClient.mm:
1912         (WebFrameLoaderClient::objectContentType):
1913
1914 2011-03-24  Geoffrey Garen  <ggaren@apple.com>
1915
1916         Reviewed by Oliver Hunt.
1917
1918         Ensure that all compilation takes place within a dynamic global object scope
1919         https://bugs.webkit.org/show_bug.cgi?id=57054
1920
1921         * WebView/WebScriptDebugDelegate.mm:
1922         (-[WebScriptCallFrame evaluateWebScript:]): Updated for signature change.
1923
1924 2011-03-24  Jia Pu  <jpu@apple.com>
1925
1926         Reviewed by Darin Adler.
1927
1928         Dismissed reversion suggestion is incorrectly learned.
1929         https://bugs.webkit.org/show_bug.cgi?id=57039
1930
1931         CorrectionPanel should always use [NSSpellChecker dismissCorrectionBubbleForView].
1932         [NSSpellChecker cancelCorrectionBubbleForView] is reserved for situation where correction panel
1933         is dismissed explicitly by ESC key or clicking the dimiss button. Misusing these causes
1934         incorrect automatic learning.
1935
1936         * WebCoreSupport/CorrectionPanel.mm:
1937         (CorrectionPanel::dismissInternal):
1938
1939 2011-03-24  David Kilzer  <ddkilzer@apple.com>
1940
1941         <http://webkit.org/b/56993> ENABLE_PLUGIN_PROXY_FOR_VIDEO should be defined to 0 on Mac OS X
1942
1943         Reviewed by Joseph Pecoraro.
1944
1945         * Plugins/WebPluginContainerPrivate.h: Changed value of
1946         ENABLE_PLUGIN_PROXY_FOR_VIDEO from 1 to 0.
1947
1948 2011-03-23  Jia Pu  <jpu@apple.com>
1949
1950         Reviewed by Darin Adler.
1951
1952         Hook up new AppKit autocorrection UI with WK2.
1953         https://bugs.webkit.org/show_bug.cgi?id=56055
1954         <rdar://problem/8947463>
1955
1956         Please see WebCore/ChangeLog for detail.
1957
1958         * WebCoreSupport/CorrectionPanel.h: Added.
1959         (CorrectionPanel::isShowing):
1960         * WebCoreSupport/CorrectionPanel.mm: Added.
1961         (correctionBubbleType):
1962         (CorrectionPanel::CorrectionPanel):
1963         (CorrectionPanel::~CorrectionPanel):
1964         (CorrectionPanel::show):
1965         (CorrectionPanel::dismiss):
1966         (CorrectionPanel::dismissSoon):
1967         (CorrectionPanel::dismissInternal):
1968         (CorrectionPanel::recordAutocorrectionResponse):
1969         * WebCoreSupport/WebEditorClient.h:
1970         * WebCoreSupport/WebEditorClient.mm:
1971         (WebEditorClient::WebEditorClient):
1972         (WebEditorClient::showCorrectionPanel):
1973         (WebEditorClient::dismissCorrectionPanel):
1974         (WebEditorClient::dismissCorrectionPanelSoon):
1975         (WebEditorClient::recordAutocorrectionResponse):
1976         * WebView/WebView.mm:
1977         (-[WebView handleCorrectionPanelResult:]):
1978         * WebView/WebViewPrivate.h:
1979
1980 2011-03-23  Enrica Casucci  <enrica@apple.com>
1981
1982         Reviewed by Alexey Proskuryakov.
1983
1984         Services menu item to convert selected Simplified/Traditional Chinese Text is not working.
1985         https://bugs.webkit.org/show_bug.cgi?id=56974
1986         <rdar://problem/8284642>
1987
1988         This fixes a regression introduced by http://trac.webkit.org/changeset/61794
1989         where readSelectionFromPasteboard was accidentally removed.
1990         This method and writeSelectionToPasteboard are needed to support Mac OS X
1991         services.
1992         
1993         * WebView/WebHTMLView.mm:
1994         (-[WebHTMLView _pasteAsPlainTextWithPasteboard:]): Added.
1995         (-[WebHTMLView readSelectionFromPasteboard:]): Added.
1996
1997 2011-03-23  Brady Eidson  <beidson@apple.com>
1998
1999         Reviewed by Sam Weinig.
2000
2001         Change IconDatabase opening to allow for arbitrary filenames
2002         https://bugs.webkit.org/show_bug.cgi?id=56977
2003
2004         * Misc/WebIconDatabase.mm:
2005         (-[WebIconDatabase _startUpIconDatabase]):
2006
2007 2011-03-22  Anton D'Auria  <adauria@apple.com>
2008
2009         Reviewed by Alexey Proskuryakov.
2010
2011         Add +[WebApplicationCache getOriginsWithCache]
2012         https://bugs.webkit.org/show_bug.cgi?id=56722
2013
2014         Call existing WebCore::ApplicationCacheStorage::getOriginsWithCache API.
2015
2016         * WebCoreSupport/WebApplicationCache.h:
2017         * WebCoreSupport/WebApplicationCache.mm:
2018         (+[WebApplicationCache originsWithCache]):
2019
2020 2011-03-22  Anders Carlsson  <andersca@apple.com>
2021
2022         Reviewed by Sam Weinig.
2023
2024         OBJECT element with DivX source is always downloaded
2025         https://bugs.webkit.org/show_bug.cgi?id=56879
2026
2027         * Plugins/WebBasePluginPackage.mm:
2028         (-[WebBasePluginPackage getPluginInfoFromPLists]):
2029         Always try to split every element in the "WebPluginExtensions" array, since the DivX plug-in
2030         specifies multiple file extensions in a single element.
2031
2032 2011-03-22  Brady Eidson  <beidson@apple.com>
2033
2034         Reviewed by Sam Weinig.
2035
2036         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56876
2037         WK2 Icon DB: Expand IconDatabaseClient interface and move it to the main thread
2038
2039         Note that while the new client calls always come through on the main thread, our mechanisms to
2040         route dispatches to the main thread are still valid and will still work.
2041
2042         Update to the new IconDatabaseClient interface:
2043         * WebCoreSupport/WebIconDatabaseClient.h:
2044         * WebCoreSupport/WebIconDatabaseClient.mm:
2045         (WebIconDatabaseClient::didRemoveAllIcons):
2046         (WebIconDatabaseClient::didImportIconURLForPageURL):
2047         (WebIconDatabaseClient::didImportIconDataForPageURL):
2048         (WebIconDatabaseClient::didChangeIconForPageURL):
2049         (WebIconDatabaseClient::didFinishURLImport):
2050
2051 2011-03-22  Matthew Delaney  <mdelaney@apple.com>
2052
2053         Reviewed by Simon Fraser.
2054
2055         Have WebKit push acceleratedDrawing preferences to settings
2056         https://bugs.webkit.org/show_bug.cgi?id=56792
2057
2058         * WebView/WebView.mm:
2059
2060 2011-03-21  Nate Chapin  <japhet@chromium.org>
2061
2062         Reviewed by Brady Eidson.
2063
2064         Expose a preference to use caching quirks for QuickLook,
2065         and use it if the QuickLook framework is loaded.
2066
2067         https://bugs.webkit.org/show_bug.cgi?id=38690
2068
2069         * WebView/WebPreferenceKeysPrivate.h:
2070         * WebView/WebPreferences.mm:
2071         (useQuickLookQuirks):
2072         (+[WebPreferences initialize]):
2073         (-[WebPreferences useQuickLookResourceCachingQuirks]):
2074         * WebView/WebPreferencesPrivate.h:
2075         * WebView/WebView.mm:
2076         (-[WebView _preferencesChangedNotification:]):
2077
2078 2011-03-21  Chris Fleizach  <cfleizach@apple.com>
2079
2080         Reviewed by Darin Adler.
2081
2082         AX: showContextMenu not working in WK2
2083         https://bugs.webkit.org/show_bug.cgi?id=56734
2084
2085         Implement showContextMenu() so accessibility related code can call this
2086         independent of whether WK1 or WK2 is running.
2087
2088         * WebCoreSupport/WebChromeClient.h:
2089         * WebCoreSupport/WebChromeClient.mm:
2090         (WebChromeClient::showContextMenu):
2091
2092 2011-03-21  Chang Shu  <cshu@webkit.org>
2093
2094         Reviewed by Alexey Proskuryakov.
2095
2096         REGRESSION (r79953): Can't type in MS Outlook 2011
2097         https://bugs.webkit.org/show_bug.cgi?id=56665
2098
2099         r79953 removed the WebView level editablity which is persistent no matter whether
2100         underlying document itself is changed and editability gets lost. The resolution is to
2101         set this WebView editable value to WebCore. This avoids the callback from WebCore to
2102         WebKit which was the main goal in r79953 to improve performance.
2103
2104         * WebView/WebView.mm:
2105         (-[WebView setEditable:]):
2106         (-[WebView isEditable]):
2107
2108 2011-03-19  Anton D'Auria  <adauria@apple.com>
2109
2110         Reviewed by Alexey Proskuryakov.
2111
2112         ApplicationCacheGroup is not obsolete after being deleted via ApplicationCacheStorage::deleteEntriesForOrigin
2113         https://bugs.webkit.org/show_bug.cgi?id=56415
2114         
2115         Use new ApplicationCache API to delete all cache for an origin.
2116
2117         * WebCoreSupport/WebApplicationCache.h:
2118         * WebCoreSupport/WebApplicationCache.mm:
2119         (+[WebApplicationCache deleteOrigin:]):
2120
2121 2011-03-17  Brady Eidson  <beidson@apple.com>
2122
2123         Reviewed by Sam Weinig.
2124
2125         https://bugs.webkit.org/show_bug.cgi?id=56425
2126         More groundwork for WebKit2 IconDatabase
2127
2128         Update already-used function names:
2129         * Misc/WebIconDatabase.mm:
2130         (-[WebIconDatabase iconForURL:withSize:cache:]):
2131         (-[WebIconDatabase iconURLForURL:]):
2132         * WebView/WebView.mm:
2133         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
2134
2135 2011-03-18  Pavel Podivilov  <podivilov@chromium.org>
2136
2137         Reviewed by Yury Semikhatsky.
2138
2139         Web Inspector: implement inspector session storage.
2140         https://bugs.webkit.org/show_bug.cgi?id=56643
2141
2142         * WebCoreSupport/WebInspectorClient.h:
2143         * WebCoreSupport/WebInspectorClient.mm:
2144         (WebInspectorClient::saveSessionSetting):
2145         (WebInspectorClient::loadSessionSetting):
2146         (WebInspectorFrontendClient::saveSessionSetting):
2147         (WebInspectorFrontendClient::loadSessionSetting):
2148         (-[WebInspectorWindowController inspectorClient]):
2149
2150 2011-03-17  Geoffrey Garen  <ggaren@apple.com>
2151
2152         Reviewed by Oliver Hunt.
2153
2154         Fixed a leak seen on the buildbot.
2155
2156         * WebCoreSupport/WebInspectorClient.mm:
2157         (WebInspectorClient::openInspectorFrontend): Smart pointers are smart.
2158
2159 2011-03-16  Jeff Johnson  <github@lapcatsoftware.com>
2160
2161         Reviewed by Alexey Proskuryakov.
2162
2163         Logic error in -[WebHTMLView close]
2164         https://bugs.webkit.org/show_bug.cgi?id=56445
2165
2166         Page is always nil at this point, because [self _webView] is nil,
2167         so the conditional code is never run.
2168
2169         * WebView/WebHTMLView.mm:
2170         (-[WebHTMLView close]):
2171
2172 2011-03-16  Chris Fleizach  <cfleizach@apple.com>
2173
2174         Reviewed by Darin Adler.
2175
2176         WK2: Need to propagate enhanced accessibility flag from UI -> web process
2177         https://bugs.webkit.org/show_bug.cgi?id=56379
2178
2179         * WebView/WebFrame.mm:
2180         (-[WebFrame accessibilityRoot]):
2181
2182 2011-03-15  Oliver Hunt  <oliver@apple.com>
2183
2184         Reviewed by Geoffrey Garen.
2185
2186         Make Structure creation require a JSGlobalData
2187         https://bugs.webkit.org/show_bug.cgi?id=56438
2188
2189         Mechanical change to make all Structure creation use a JSGlobalData&
2190
2191         * Plugins/Hosted/ProxyInstance.mm:
2192         (WebKit::ProxyRuntimeMethod::createStructure):
2193         * Plugins/Hosted/ProxyRuntimeObject.h:
2194         (WebKit::ProxyRuntimeObject::createStructure):
2195
2196 2011-03-15  Alexey Proskuryakov  <ap@apple.com>
2197
2198         Forgot to save a modification to this file when committing.
2199
2200         * WebCoreSupport/WebKeyGenerator.mm: Changed "Apple Computer" to "Apple" in copyright header.
2201
2202 2011-03-15  Alexey Proskuryakov  <ap@apple.com>
2203
2204         Reviewed by Darin Adler.
2205
2206         REGRESSION (WebKit2): keygen element doesn't work
2207         https://bugs.webkit.org/show_bug.cgi?id=56402
2208         <rdar://problem/9006545>
2209
2210         * WebCoreSupport/WebKeyGenerator.h:
2211         * WebCoreSupport/WebKeyGenerator.m: Removed.
2212         * WebCoreSupport/WebKeyGenerator.mm: Copied from Source/WebKit/mac/WebCoreSupport/WebKeyGenerator.m.
2213         (+[WebKeyGenerator sharedGenerator]):
2214         (toWebCertificateParseResult):
2215         WebCore no longer needs WebKeyGenerator. Safari still does need a part of it, so keeping
2216         this misnamed and misplaced code for now.
2217
2218         * WebCoreSupport/WebPlatformStrategies.h:
2219         * WebCoreSupport/WebPlatformStrategies.mm:
2220         (WebPlatformStrategies::keygenMenuItem512):
2221         (WebPlatformStrategies::keygenMenuItem1024):
2222         (WebPlatformStrategies::keygenMenuItem2048):
2223         (WebPlatformStrategies::keygenKeychainItemName):
2224         Added strings used by keygen.
2225
2226         * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Initialize a WebCore
2227         pointer to a function used by keygen.
2228
2229         * WebView/WebFrameView.mm: (-[WebFrameView initWithFrame:]): WebKeyGenerator can be lazily
2230         initialized now.
2231
2232 2011-03-15  Beth Dakin  <bdakin@apple.com>
2233
2234         Reviewed by Simon Fraser.
2235
2236         WebKit part of <rdar://problem/9075624> Overlay scrollbars slow down PLT by 6%
2237
2238         New WebKitystemInterface function to force the scrollbars to flash
2239         * WebCoreSupport/WebSystemInterface.mm:
2240         (InitWebCoreSystemInterface):
2241
2242 2011-03-15  Ilya Sherman  <isherman@chromium.org>
2243
2244         Reviewed by Tony Chang.
2245
2246         Autofilled form elements are assigned fixed background color but not text color
2247         https://bugs.webkit.org/show_bug.cgi?id=48382
2248
2249         * DOM/WebDOMOperations.mm:
2250         (-[DOMHTMLInputElement _setAutofilled:]): Added (wrapper).
2251         * DOM/WebDOMOperationsPrivate.h:
2252
2253 2011-03-15  Adam Roben  <aroben@apple.com>
2254
2255         Fix a leak in WebStorageTrackerClient::dispatchDidModifyOrigin
2256
2257         Fixes <http://webkit.org/b/56385> SecurityOrigin leaks seen in
2258         WebStorageTrackerClient::dispatchDidModifyOrigin
2259
2260         Reviewed by Antti Koivisto.
2261
2262         * Storage/WebStorageTrackerClient.mm:
2263         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread): Adopt the reference passed
2264         to us by dispatchDidModifyOrigin.
2265         (WebStorageTrackerClient::dispatchDidModifyOrigin): Added a comment and removed an
2266         unnecessary cast.
2267
2268 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
2269
2270         Reviewed by Darin Adler.
2271
2272         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
2273         info into the headers rather than in export symbol definition files, but disable it on 
2274         all platforms initially so we can deal with port build issues one port at a time.
2275         
2276         https://bugs.webkit.org/show_bug.cgi?id=27551
2277
2278         * WebKitPrefix.h:
2279
2280 2011-03-14  Brady Eidson  <beidson@apple.com>
2281
2282         Reviewed by Anders Carlsson.
2283
2284         https://bugs.webkit.org/show_bug.cgi?id=56320
2285         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
2286
2287         * History/WebHistoryItem.mm:
2288         (-[WebHistoryItem icon]): This far-future FIXME is now irrelevant.
2289
2290 2011-03-13  Pratik Solanki  <psolanki@apple.com>
2291
2292         Reviewed by Brady Eidson.
2293
2294         Make adjustMIMETypeIfNecessary use CFNetwork directly
2295         https://bugs.webkit.org/show_bug.cgi?id=55912
2296
2297         * WebCoreSupport/WebSystemInterface.mm:
2298         (InitWebCoreSystemInterface): Support for new WKSI functions.
2299
2300 2011-03-12  Mark Rowe  <mrowe@apple.com>
2301
2302         Fix the 32-bit build.
2303
2304         * Carbon/CarbonWindowAdapter.mm:
2305         (-[CarbonWindowAdapter initWithCarbonWindowRef:takingOwnership:disableOrdering:carbon:]): Use a more appropriate format specifier.
2306         (-[CarbonWindowAdapter _carbonWindowClass]): Ditto.
2307
2308 2011-03-11  Brady Eidson  <beidson@apple.com>
2309
2310         Reviewed by Anders Carlsson
2311
2312         <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56216
2313         Rework disabled IconDatabase builds while allowing for a pluggable icon database implementation.
2314
2315         * Misc/WebIconDatabase.mm:
2316         (+[WebIconDatabase _checkIntegrityBeforeOpening]): Call these static methods on IconDatabase::, not iconDatabase().
2317         (-[WebIconDatabase _startUpIconDatabase]): Ditto.
2318         (importToWebCoreFormat):
2319
2320 2011-03-11  Anton D'Auria  <adauria@apple.com>
2321
2322         Reviewed and landed by Brady Eidson.
2323
2324         https://bugs.webkit.org/show_bug.cgi?id=51878
2325         Add WebKit1 API to view and delete local storage
2326
2327         * Storage/WebStorageManager.mm: Added.
2328         (+[WebStorageManager sharedWebStorageManager]):
2329         (-[WebStorageManager origins]):
2330         (-[WebStorageManager deleteAllOrigins]):
2331         (-[WebStorageManager deleteOrigin:]):
2332         (-[WebStorageManager syncLocalStorage]):
2333         (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
2334         (storageDirectoryPath):
2335         (WebKitInitializeStorageIfNecessary):
2336         * Storage/WebStorageManagerInternal.h: Added.
2337         * Storage/WebStorageManagerPrivate.h: Added.
2338         * Storage/WebStorageTrackerClient.h: Added.
2339         * Storage/WebStorageTrackerClient.mm: Added.
2340         (WebStorageTrackerClient::sharedWebStorageTrackerClient):
2341         (WebStorageTrackerClient::WebStorageTrackerClient):
2342         (WebStorageTrackerClient::~WebStorageTrackerClient):
2343         (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread):
2344         (WebStorageTrackerClient::dispatchDidModifyOrigin):
2345         * WebCoreSupport/WebSecurityOrigin.mm:
2346         (-[WebSecurityOrigin protocol]):
2347         (-[WebSecurityOrigin host]):
2348         (-[WebSecurityOrigin databaseIdentifier]):
2349         (-[WebSecurityOrigin domain]):
2350         (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
2351         * WebCoreSupport/WebSecurityOriginPrivate.h:
2352         * WebKit.exp:
2353         * WebView/WebView.mm:
2354         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
2355
2356 2011-03-10  Anders Carlsson  <andersca@apple.com>
2357
2358         Reviewed by Sam Weinig.
2359
2360         <rdar://problem/9117047>
2361         Don't paint more than 60 times per second even when scrolling
2362
2363         * WebView/WebClipView.mm:
2364         (-[WebClipView _immediateScrollToPoint:]):
2365
2366 2011-03-09  Matthew Delaney  <mdelaney@apple.com>
2367
2368         Reviewed by Simon Fraser.
2369
2370         Plumb through settings for accelerated drawing for canvas
2371         https://bugs.webkit.org/show_bug.cgi?id=56039
2372
2373         * WebView/WebPreferenceKeysPrivate.h:
2374         * WebView/WebPreferences.mm:
2375         * WebView/WebPreferencesPrivate.h:
2376
2377 2011-03-10  Ryosuke Niwa  <rniwa@webkit.org>
2378
2379         Reviewed by Tony Chang.
2380
2381         VisiblePosition's next and previous should take an enum instead of a boolean
2382         https://bugs.webkit.org/show_bug.cgi?id=56135
2383
2384         SelectionController::isAll now takes EditingBoundaryCrossingRule instead of
2385         StayInEditableContent.
2386
2387         * WebView/WebView.mm:
2388         (-[WebView _selectionIsAll]):
2389
2390 2011-03-09  Jessie Berlin  <jberlin@apple.com>
2391
2392         Reviewed by Adam Roben.
2393
2394         Use the Cookie Storage from the Private Browsing Storage Session directly
2395         https://bugs.webkit.org/show_bug.cgi?id=55986
2396
2397         * WebCoreSupport/WebSystemInterface.mm:
2398         (InitWebCoreSystemInterface):
2399
2400 2011-03-08  Darin Adler  <darin@apple.com>
2401
2402         Reviewed by Timothy Hatcher.
2403
2404         Promote a method used outside WebKit from internal to private
2405         https://bugs.webkit.org/show_bug.cgi?id=55949
2406
2407         * Misc/WebNSPasteboardExtras.mm: Removed an unused category declaration.
2408         Minor tweak, not directly related to the rest of this patch.
2409
2410         * WebView/WebFrame.mm:
2411         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Moved
2412         this method from the internal category into the private category.
2413         Streamlined the code a bit.
2414
2415         * WebView/WebFrameInternal.h: Removed _computePageRects method.
2416         * WebView/WebFramePrivate.h: Added _computePageRects method.
2417
2418 2011-03-07  Ryosuke Niwa  <rniwa@webkit.org>
2419
2420         Reviewed by Darin Adler.
2421
2422         selectionHasStyle and selectionStartHasStyle should use EditingStyle
2423         https://bugs.webkit.org/show_bug.cgi?id=55902
2424
2425         selectionHasStyle now takes a property id and a value instead of a CSSMutableStyleDeclaration.
2426
2427         * WebView/WebHTMLView.mm: Removed unused selectionHasStyle.
2428         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Calls Editor::selectionHasStyle.
2429
2430 2011-03-07  Dan Bernstein  <mitz@apple.com>
2431
2432         LLVM Compiler build fix.
2433
2434         * WebCoreSupport/WebEditorClient.mm:
2435         (WebEditorClient::checkGrammarOfString):
2436
2437 2011-03-07  Chris Fleizach  <cfleizach@apple.com>
2438
2439         Reviewed by Beth Dakin.
2440
2441         AX: WK1 needs to use ScrollView attachment for AXScrollArea, WK2 does not
2442         https://bugs.webkit.org/show_bug.cgi?id=55706
2443
2444         Make sure WebDynamicScrollBarsView appear in the AX tree in WK1 (since this object
2445         returns the scroll bar objects).
2446         Make the accessibilityRoot object be the web area in WK1 because WebDynamicScrollBarsView
2447         will expect that as its child, instead of the WebCore ScrollView object.
2448
2449         * WebView/WebDynamicScrollBarsView.mm:
2450         (-[WebDynamicScrollBarsView accessibilityIsIgnored]):
2451         * WebView/WebFrame.mm:
2452         (-[WebFrame accessibilityRoot]):
2453
2454 2011-03-07  Sam Weinig  <sam@webkit.org>
2455
2456         Reviewed by Anders Carlsson.
2457
2458         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
2459         https://bugs.webkit.org/show_bug.cgi?id=55827
2460
2461         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
2462         and pass the entire response, instead of just the MIMEType.
2463
2464         * WebCoreSupport/WebFrameLoaderClient.h:
2465         * WebCoreSupport/WebFrameLoaderClient.mm:
2466         (WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2467
2468 2011-03-06  Dan Bernstein  <mitz@apple.com>
2469
2470         LLVM Compiler build fix.
2471
2472         * DOM/WebDOMOperations.mm:
2473         (-[DOMHTMLInputElement _setValueForUser:]):
2474
2475 2011-03-06  Jessie Berlin  <jberlin@apple.com>
2476
2477         Reviewed by Sam Weinig.
2478
2479         WebKit2: Use CFNetwork Sessions API.
2480         https://bugs.webkit.org/show_bug.cgi?id=55435.
2481
2482         When Private Browsing is enabled, use cookies from a in-memory cookie storage based on the
2483         Private Browsing Storage Session.
2484
2485         * WebCoreSupport/WebSystemInterface.mm:
2486         (InitWebCoreSystemInterface):
2487         Add support for using the new WKSI functions in WebCore.
2488
2489 2011-03-05  Ilya Sherman  <isherman@chromium.org>
2490
2491         Reviewed by Darin Adler.
2492
2493         HTMLInputElement::setValue() should schedule change event when the element is focused
2494         In service of https://code.google.com/p/chromium/issues/detail?id=42716
2495         https://bugs.webkit.org/show_bug.cgi?id=53160
2496
2497         * DOM/WebDOMOperations.mm:
2498         (-[DOMHTMLInputElement _setValueForUser:]): Expose HTMLInputElement::setValueForUser() to tests
2499         * DOM/WebDOMOperationsPrivate.h:
2500         * WebView/WebViewInternal.h:
2501
2502 2011-03-04  Jia Pu  <jpu@apple.com>
2503
2504         Reviewed by Darin Adler.
2505
2506         On Mac, the bounding box sent to EditorClient::showCorrectionPanel() is incorrect when the correction occurs in an iframe.
2507         https://bugs.webkit.org/show_bug.cgi?id=55717
2508         <rdar://problem/9018127>
2509
2510         With the change in WebCore, the bounding box passed into EditorClient::showCorrectionPanel()
2511         is already in window coordinate. We don't need to do further conversion anymore.
2512
2513         * WebCoreSupport/WebEditorClient.mm:
2514         (WebEditorClient::showCorrectionPanel):
2515
2516 2011-03-04  Jessie Berlin  <jberlin@apple.com>
2517
2518         Reviewed by Maciej Stachowiak.
2519
2520         WebKit2: Use CFNetwork Sessions API.
2521         https://bugs.webkit.org/show_bug.cgi?id=55435.
2522
2523         When Private Browsing is enabled, get the cached url response from the cache associated with
2524         the Private Browsing Storage Session.
2525
2526         * WebView/WebView.mm:
2527         (-[WebView _cachedResponseForURL:]):
2528
2529 2011-03-03  Anders Carlsson  <andersca@apple.com>
2530
2531         Reviewed by Sam Weinig.
2532
2533         Get rid of Page::globalHistoryItem
2534         https://bugs.webkit.org/show_bug.cgi?id=55738
2535
2536         * WebCoreSupport/WebFrameLoaderClient.h:
2537         * WebCoreSupport/WebFrameLoaderClient.mm:
2538         (WebFrameLoaderClient::updateGlobalHistoryItemForPage):
2539         Get the current history item and update it using -[WebView _setGlobalHistoryItem:].
2540     
2541         * WebView/WebView.mm:
2542         (-[WebView _globalHistoryItem]):
2543         (-[WebView _setGlobalHistoryItem:]):
2544         Set _globalHistoryItem ivar.
2545
2546         * WebView/WebViewData.h:
2547         * WebView/WebViewData.mm:
2548         Add _globalHistoryItem ivar.
2549
2550 2011-03-03  Brady Eidson  <beidson@apple.com>
2551
2552         Reviewed by Darin Adler.
2553
2554         https://bugs.webkit.org/show_bug.cgi?id=55721
2555         Global IconDatabase should be returned by reference, not as a pointer
2556
2557         * Misc/WebCoreStatistics.mm:
2558         (+[WebCoreStatistics iconPageURLMappingCount]):
2559         (+[WebCoreStatistics iconRetainedPageURLCount]):
2560         (+[WebCoreStatistics iconRecordCount]):
2561         (+[WebCoreStatistics iconsWithDataCount]):
2562         * Misc/WebIconDatabase.mm:
2563         (-[WebIconDatabase init]):
2564         (-[WebIconDatabase iconForURL:withSize:cache:]):
2565         (-[WebIconDatabase iconURLForURL:]):
2566         (-[WebIconDatabase defaultIconWithSize:]):
2567         (-[WebIconDatabase retainIconForURL:]):
2568         (-[WebIconDatabase releaseIconForURL:]):
2569         (-[WebIconDatabase isEnabled]):
2570         (-[WebIconDatabase setEnabled:]):
2571         (-[WebIconDatabase removeAllIcons]):
2572         (+[WebIconDatabase _checkIntegrityBeforeOpening]):
2573         (-[WebIconDatabase _startUpIconDatabase]):
2574         (-[WebIconDatabase _applicationWillTerminate:]):
2575         (-[WebIconDatabase _resetCachedWebPreferences:]):
2576         (importToWebCoreFormat):
2577         * WebView/WebView.mm:
2578         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
2579
2580 2011-03-03  Jessie Berlin  <jberlin@apple.com>
2581
2582         Reviewed by Adam Roben.
2583
2584         WebKit2: Use CFNetwork Sessions API.
2585         https://bugs.webkit.org/show_bug.cgi?id=55435.
2586
2587         Set the Private Browsing Storage Session on requests when Private Browsing is enabled.
2588
2589         * WebCoreSupport/WebSystemInterface.mm:
2590         (InitWebCoreSystemInterface):
2591         Support using WKCopyRequestWithStorageSession in WebCore.
2592
2593 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
2594
2595         Reviewed by Darin Adler.
2596
2597         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
2598         https://bugs.webkit.org/show_bug.cgi?id=55633
2599         <rdar://problem/8963023>
2600
2601         * WebCoreSupport/WebChromeClient.h:
2602         * WebCoreSupport/WebChromeClient.mm:
2603         Removed tabsToLinks(). Mac WebKit already implements keyboardUIMode().
2604
2605         * WebView/WebView.mm: (-[WebView _retrieveKeyboardUIModeFromPreferences:]):
2606         Removed an incorrect comment. We actually get a value of 2 on Snow Leopard, and we don't
2607         require both bits to be set. The rest of the comment might be wrong too, but I'm not sure,
2608         so I've preserved it.
2609
2610 2011-03-02  Jessie Berlin  <jberlin@apple.com>
2611
2612         Rubber-stamped by Dan Bernstein.
2613
2614         Fix crashes in private browsing tests in WK1 on Snow Leopard.
2615
2616         * WebCoreSupport/WebSystemInterface.mm:
2617         (InitWebCoreSystemInterface):
2618         Put the INIT call for wkCreatePrivateStorageSession outside of the
2619         #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
2620         guards.
2621
2622 2011-03-02  Jessie Berlin  <jberlin@apple.com>
2623
2624         Reviewed by Adam Roben.
2625
2626         WebKit2: Use CFNetwork Sessions API.
2627         https://bugs.webkit.org/show_bug.cgi?id=55435.
2628
2629         Add the ability to create a Private Browsing Storage Session.
2630
2631         * WebCoreSupport/WebSystemInterface.mm:
2632         (InitWebCoreSystemInterface):
2633         Support calling wkCreatePrivateStorageSession from WebCore.
2634
2635 2011-03-02  Daniel Cheng  <dcheng@chromium.org>
2636
2637         Reviewed by David Levin.
2638
2639         Add feature define for data transfer items
2640         https://bugs.webkit.org/show_bug.cgi?id=55510
2641
2642         * Configurations/FeatureDefines.xcconfig:
2643
2644 2011-03-02  Sam Weinig  <sam@webkit.org>
2645
2646         Reviewed by Anders Carlsson.
2647
2648         Fix remaining localization issues by piping all localized strings through WebCore's
2649         localization bottleneck.
2650         <rdar://problem/8728860>
2651
2652         * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
2653         (-[WebDefaultUIDelegate menuItemWithTag:target:representedObject:]):
2654         * Misc/WebKitErrors.m:
2655         * Misc/WebLocalizableStringsInternal.h: Added.
2656         * Misc/WebLocalizableStringsInternal.mm: Added.
2657         (WebLocalizedStringInternal):
2658         * Panels/WebAuthenticationPanel.m:
2659         (-[WebAuthenticationPanel setUpForChallenge:]):
2660         * Plugins/Hosted/NetscapePluginHostManager.mm:
2661         (WebKit::NetscapePluginHostManager::spawnPluginHost):
2662         * WebCoreSupport/WebEditorClient.mm:
2663         (undoNameForEditAction):
2664         * WebCoreSupport/WebInspectorClient.mm:
2665         (WebInspectorFrontendClient::updateWindowTitle):
2666         (-[WebInspectorWindowController validateUserInterfaceItem:]):
2667         * WebCoreSupport/WebKeyGenerator.m:
2668         (-[WebKeyGenerator strengthMenuItemTitles]):
2669         (-[WebKeyGenerator signedPublicKeyAndChallengeStringWithStrengthIndex:challenge:pageURL:]):
2670         * WebCoreSupport/WebPlatformStrategies.mm:
2671         * WebView/WebHTMLView.mm:
2672         (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]):
2673         * WebView/WebPDFView.mm:
2674         (-[WebPDFView menuForEvent:]):
2675
2676 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
2677
2678         Reviewed by Adam Roben.
2679
2680         Part of WebKit2: Need a way to send notifications to client when cookies change
2681         https://bugs.webkit.org/show_bug.cgi?id=55427
2682         <rdar://problem/9056027>
2683         
2684         Add stubs for CookiesStrategy on Mac WebKit1.
2685
2686         * WebCoreSupport/WebPlatformStrategies.h:
2687         * WebCoreSupport/WebPlatformStrategies.mm:
2688         (WebPlatformStrategies::createCookiesStrategy):
2689         (WebPlatformStrategies::notifyCookiesChanged):
2690
2691 2011-03-01  Philippe Normand  <pnormand@igalia.com>
2692
2693         Reviewed by Eric Carlson.
2694
2695         [GStreamer] support in mac video fullscreen controller
2696         https://bugs.webkit.org/show_bug.cgi?id=52280
2697
2698         Factored the code to configure the video overlay in a new private
2699         method of the controller and added GStreamer support to it.
2700
2701         * WebView/WebVideoFullscreenController.h:
2702         * WebView/WebVideoFullscreenController.mm:
2703         (-[WebVideoFullscreenController setupVideoOverlay:]):
2704         (-[WebVideoFullscreenController windowDidLoad]):
2705         (-[WebVideoFullscreenController setMediaElement:WebCore::]):
2706         (-[WebVideoFullscreenController windowDidExitFullscreen]):
2707
2708 2011-02-23  Joseph Pecoraro  <joepeck@webkit.org>
2709
2710         Reviewed by Timothy Hatcher.
2711
2712         All Console Messages should be passed to ChromeClients.
2713         https://bugs.webkit.org/show_bug.cgi?id=54926
2714
2715         Add a new private UIDelegate method, -webView:addMessageToConsole:withSource:,
2716         which supersedes -webView:addMessageToConsole if it exists. The new delegate
2717         does not filter to only JavaScript originated console messages. The old
2718         delegate is left around for clients that expect filtered messages, like
2719         DashCode and older versions of Safari.
2720
2721         The dictionary message passed to the delegate now includes more information
2722         about the message source, type, and level.
2723
2724         * WebCoreSupport/WebChromeClient.mm:
2725         (stringForMessageSource):
2726         (stringForMessageType):
2727         (stringForMessageLevel):
2728         (WebChromeClient::addMessageToConsole):
2729         * WebView/WebUIDelegatePrivate.h:
2730
2731 2011-03-01  Levi Weintraub  <leviw@chromium.org>
2732
2733         Reviewed by Ryosuke Niwa.
2734
2735         Stop instantiating legacy editing Positions in VisiblePosition
2736         https://bugs.webkit.org/show_bug.cgi?id=52919
2737
2738         Changing usage of legacy VisiblePosition constructor. Since we were dealing
2739         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
2740
2741         * WebView/WebFrame.mm:
2742         (-[WebFrame _caretRectAtPosition:affinity:]):
2743         * WebView/WebFrameInternal.h:
2744         * WebView/WebTextCompletionController.mm:
2745         (-[WebTextCompletionController doCompletion]):
2746
2747 2011-03-01  Sam Weinig  <sam@webkit.org>
2748
2749         Reviewed by Timothy Hatcher.
2750
2751         WebKit2 needs to be made localizable
2752         https://bugs.webkit.org/show_bug.cgi?id=55483
2753
2754         * WebCoreSupport/WebPlatformStrategies.mm:
2755         Use WebCore's localizedString function instead of WebLocalizableStrings
2756         since WebCore is now responsible for localization.
2757
2758 2011-02-25 Steve Block <steveblock@google.com>
2759
2760         Reviewed by Jeremy Orlow.
2761
2762         Bridge.h should not include BridgeJSC.h
2763         https://bugs.webkit.org/show_bug.cgi?id=55212
2764
2765         Include BridgeJSC.h directly instead.
2766
2767         * Plugins/Hosted/ProxyInstance.h:
2768         * Plugins/Hosted/WebHostedNetscapePluginView.mm:
2769
2770 2011-02-28  Chang Shu  <cshu@webkit.org>
2771
2772         Reviewed by Ryosuke Niwa.
2773
2774         Remove the support of Frame::isContentEditable and its dependencies.
2775         https://bugs.webkit.org/show_bug.cgi?id=54292
2776
2777         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
2778
2779         * WebCoreSupport/WebEditorClient.h:
2780         * WebCoreSupport/WebEditorClient.mm:
2781         * WebView/WebView.mm:
2782         (-[WebView setEditable:]):
2783         (-[WebView isEditable]):
2784         * WebView/WebViewData.h:
2785
2786 2011-02-28  Oliver Hunt  <oliver@apple.com>
2787
2788         Reviewed by Gavin Barraclough.
2789
2790         Make ScopeChainNode GC allocated
2791         https://bugs.webkit.org/show_bug.cgi?id=55283
2792
2793         More updates for the absence of the ScopeChain class
2794
2795         * WebView/WebScriptDebugDelegate.mm:
2796         (-[WebScriptCallFrame scopeChain]):
2797
2798 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
2799
2800         Reviewed by Pavel Feldman.
2801
2802         DumpRenderTree should reset frame opener between tests.
2803         https://bugs.webkit.org/show_bug.cgi?id=54874
2804
2805         Added clearOpener method to WebFramePrivate.
2806
2807         * WebView/WebFrame.mm:
2808         (-[WebFrame _clearOpener]):
2809         * WebView/WebFramePrivate.h:
2810
2811 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
2812
2813         Unreviewed, rolling out r79764.
2814         http://trac.webkit.org/changeset/79764
2815         https://bugs.webkit.org/show_bug.cgi?id=55295
2816
2817         "broke Chromium builds" (Requested by rniwa on #webkit).
2818
2819         * WebView/WebFrame.mm:
2820         * WebView/WebFramePrivate.h:
2821
2822 2011-02-26  Yongjun Zhang  <yongjun_zhang@apple.com>
2823
2824         Reviewed by David Kilzer.
2825
2826         https://bugs.webkit.org/show_bug.cgi?id=48781
2827
2828         Add a resource load delegate method to query if WebCore should paint the default broken image for failed images.
2829
2830         Add a new resource load client method (shouldPaintBrokenImage).  WebKit client can decide if WebCore
2831         should paint the default broken image when an image fails to load or decode.  The method also passes the
2832         URL of the failed image.
2833
2834         * WebCoreSupport/WebFrameLoaderClient.h:
2835         * WebCoreSupport/WebFrameLoaderClient.mm:
2836         (WebFrameLoaderClient::shouldPaintBrokenImage):
2837         * WebView/WebDelegateImplementationCaching.h:
2838         * WebView/WebDelegateImplementationCaching.mm: Added case for passing one object.
2839         (CallResourceLoadDelegateReturningBoolean):
2840         * WebView/WebResourceLoadDelegatePrivate.h:
2841         * WebView/WebView.mm:
2842         (-[WebView _cacheResourceLoadDelegateImplementations]):
2843
2844 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
2845
2846         Reviewed by Pavel Feldman.
2847
2848         DumpRenderTree should reset frame opener between tests.
2849         https://bugs.webkit.org/show_bug.cgi?id=54874
2850
2851         Added clearOpener method to WebFramePrivate.
2852
2853         * WebView/WebFrame.mm:
2854         (-[WebFrame _clearOpener]):
2855         * WebView/WebFramePrivate.h:
2856
2857 2011-02-25  Mark Rowe  <mrowe@apple.com>
2858
2859         <rdar://problem/8902546> Build fix.
2860
2861         * Misc/QuickDrawCompatibility.h:
2862
2863 2011-02-24  Anders Carlsson  <andersca@apple.com>
2864
2865         Fix clang build.
2866
2867         * WebCoreSupport/WebKeyGenerator.m:
2868         (toWebCertificateParseResult):
2869         (-[WebKeyGenerator addCertificatesToKeychainFromData:]):
2870         * WebView/WebTextCompletionController.mm:
2871
2872 2011-02-24  Peter Kasting  <pkasting@google.com>
2873
2874         Reviewed by Eric Seidel.
2875
2876         Drop the "U; " encryption level from the User Agent string.
2877         https://bugs.webkit.org/show_bug.cgi?id=54566
2878
2879         * WebView/WebView.mm:
2880         (+[WebView _standardUserAgentWithApplicationName:]):
2881
2882 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
2883
2884         Unreviewed, rolling out r79570.
2885         http://trac.webkit.org/changeset/79570
2886         https://bugs.webkit.org/show_bug.cgi?id=54874
2887
2888         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
2889         was not updated
2890
2891         * WebView/WebFrame.mm:
2892         * WebView/WebFramePrivate.h:
2893
2894 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
2895
2896         Reviewed by Alexey Proskuryakov.
2897
2898         DumpRenderTree should reset frame opener between tests.
2899         https://bugs.webkit.org/show_bug.cgi?id=54874
2900
2901         Added clearOpener method to WebFramePrivate.
2902
2903         * WebView/WebFrame.mm:
2904         (-[WebFrame _clearOpener]):
2905         * WebView/WebFramePrivate.h:
2906
2907 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2908
2909         Reviewed by Alexey Proskuryakov.
2910
2911         Drop the language tag part from the User Agent string
2912         https://bugs.webkit.org/show_bug.cgi?id=54560
2913
2914         * WebView/WebView.mm:
2915         (+[WebView _standardUserAgentWithApplicationName:]): Drop the
2916         language tag part.
2917
2918 2011-02-22  Brady Eidson  <beidson@apple.com>
2919
2920         Reviewed by Anders Carlsson.
2921
2922         Part of <rdar://problem/8762042> and https://bugs.webkit.org/show_bug.cgi?id=54514
2923         API to view and delete Application Cache data by origin.
2924
2925         * WebCoreSupport/WebApplicationCache.mm:
2926         (+[WebApplicationCache deleteAllApplicationCaches]): Move this implementation into WebCore itself.
2927
2928 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
2929
2930         Reviewed by Kent Tamura.
2931
2932         Rename Position::node() to Position::deprecatedNode()
2933         https://bugs.webkit.org/show_bug.cgi?id=54622
2934
2935         * WebView/WebFrame.mm:
2936         (-[WebFrame _smartDeleteRangeForProposedRange:]):
2937
2938 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
2939
2940         Reviewed by Kent Tamura.
2941
2942         Rename Position::node() to Position::deprecatedNode()
2943         https://bugs.webkit.org/show_bug.cgi?id=54622
2944         
2945         Done the rename.
2946
2947         * WebView/WebFrame.mm:
2948         (-[WebFrame _smartDeleteRangeForProposedRange:]): Since newStart and newEnd are parent-anchored,
2949         use containerNode() and offsetInContainerNode() instead of deprecated member functions.
2950
2951 2011-02-18  Gavin Barraclough  <barraclough@apple.com>
2952
2953         Reviewed by Sam Weinig.
2954
2955         Bug 54786 - Devirtualize JSCell::classInfo()
2956
2957         Instead of making a virtual function call, add a pointer to the ClassInfo
2958         onto Structure.
2959
2960         This removes a virtual function call, and paves the way towards removing all
2961         the createStructure methods, and StructureFlags/AnonymousSlotCount properties
2962         (these should be able to move onto ClassInfo).
2963
2964         Calls to Structure::create must now pass a pointer to the ClassInfo for the
2965         structure. All objects now have a ClassInfo pointer, non-object cell types
2966         still do not.
2967
2968         Changes are most mechanical, involving three steps:
2969             * Remove virtual classInfo() methods.
2970             * Add &s_info parameter to calls to Structure::create.
2971             * Rename ClassInfo static members on classes from 'info' to 's_info',
2972               for consistency.
2973
2974         * Plugins/Hosted/ProxyInstance.mm:
2975         (WebKit::ProxyRuntimeMethod::ProxyRuntimeMethod):
2976         (WebKit::ProxyRuntimeMethod::createStructure):
2977         * Plugins/Hosted/ProxyRuntimeObject.h:
2978         (WebKit::ProxyRuntimeObject::createStructure):
2979         * Plugins/Hosted/ProxyRuntimeObject.mm:
2980         (WebKit::ProxyRuntimeObject::ProxyRuntimeObject):
2981         * WebView/WebView.mm:
2982         (aeDescFromJSValue):
2983
2984 2011-02-19  Brian Ryner  <bryner@chromium.org>
2985
2986         Reviewed by Adam Barth.
2987
2988         Add missing #include of DocumentLoader.h, needed since the transitive
2989         include through Document.h is removed.
2990         https://bugs.webkit.org/show_bug.cgi?id=50489
2991
2992         * WebView/WebFrame.mm:
2993
2994 2011-02-19  Charlie Reis  <creis@chromium.org>
2995
2996         Reviewed by Mihai Parparita.
2997
2998         Ensure loading has stopped in HistoryController::goToItem
2999         https://bugs.webkit.org/show_bug.cgi?id=54517
3000
3001         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
3002
3003         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
3004
3005         * WebCoreSupport/WebFrameLoaderClient.mm:
3006         (WebFrameLoaderClient::shouldStopLoadingForHistoryItem): Added.
3007         * WebCoreSupport/WebFrameLoaderClient.h:
3008
3009 2011-02-16  David Hyatt  <hyatt@apple.com>
3010
3011         Reviewed by Dan Bernstein.
3012
3013         https://bugs.webkit.org/show_bug.cgi?id=54244
3014         
3015         Convert the line box tree to floating point and eliminate font rounding hacks.  This patch removes all of the rounding
3016         hacks from the Font code and makes sure all Font APIs involving width measurement and width offsets use floats.
3017         
3018         The line box tree's x, y and logicalWidth members have all been converted to floats and all of the line box APIs have
3019         been changed as well.
3020         
3021         In terms of pixel adjustments, overflow is using an enclosing model (so it will be enclosingIntRect of a line box's x/y/width/height).
3022         
3023         Background and border painting is using a rounding model, so borders and backgrounds will round to the nearest pixel when painting.
3024         
3025         Replaced elements still snap to integer positions on lines, and they use a rounding model as well, although their underlying line boxes
3026         still have a precise floating point position.
3027
3028         Justification will now allow subpixel positioning to occur as well.  Platforms that don't support subpixel positioning should already
3029         be rounding justification spacing in their font code.
3030
3031         Many layout test results change on Mac, since rounding hacks were used there and are now gone.
3032
3033         * Misc/WebKitNSStringExtras.mm:
3034         (-[NSString _web_drawAtPoint:font:textColor:allowingFontSmoothing:]):
3035         (-[NSString _web_widthWithFont:]):
3036
3037 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
3038
3039         Reviewed by Adam Roben.
3040
3041         HTML5 <details> and <summary>: localized text
3042         https://bugs.webkit.org/show_bug.cgi?id=54260
3043
3044         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
3045         provide the default label to be used by a <details> tag that has no <summary> child.
3046
3047         * WebCoreSupport/WebPlatformStrategies.h:
3048         * WebCoreSupport/WebPlatformStrategies.mm:
3049         (WebPlatformStrategies::defaultDetailsSummaryText):
3050
3051 2011-02-16  Matthew Delaney  <mdelaney@apple.com>
3052
3053         Reviewed by Simon Fraser.
3054
3055         Allow acceleratesDrawing for WebKit2
3056         https://bugs.webkit.org/show_bug.cgi?id=54511
3057
3058         Plumb through preference for accelerated drawing.
3059         
3060         * WebView/WebPreferenceKeysPrivate.h:
3061         * WebView/WebPreferences.mm:
3062         (+[WebPreferences initialize]):
3063         (-[WebPreferences acceleratedDrawingEnabled]):
3064         (-[WebPreferences setAcceleratedDrawingEnabled:]):
3065         * WebView/WebPreferencesPrivate.h:
3066
3067 2011-02-15  David Kilzer  <ddkilzer@apple.com>
3068
3069         <http://webkit.org/b/54505> Move -[WebDynamicScrollBarsView inProgrammaticScroll] to WebDynamicScrollBarsViewInternal.h
3070
3071         Reviewed by Darin Adler.
3072
3073         * WebView/WebDynamicScrollBarsView.h:
3074         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Removed
3075         declaration.
3076         * WebView/WebDynamicScrollBarsView.mm:
3077         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Moved
3078         implementation into correct category.
3079         * WebView/WebDynamicScrollBarsViewInternal.h:
3080         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Added
3081         declaration.
3082         * WebView/WebHTMLView.mm: Included
3083         WebDynamicScrollBarsViewInternal.h instead of
3084         WebDynamicScrollBarsView.h.
3085
3086 2011-02-14  Oliver Hunt  <oliver@apple.com>
3087
3088         Reviewed by Gavin Barraclough and Geoff Garen.
3089
3090         Refactor handles and weak pointers to become nicer and more automatic
3091         https://bugs.webkit.org/show_bug.cgi?id=54415
3092
3093         Update to use Global<> instead of ProtectedPtr, and refactored slightly
3094         to get global data to places it's needed for when we're assigning to
3095         Global<>s
3096
3097         * ForwardingHeaders/collector/handles/Global.h: Added.
3098         * Plugins/Hosted/NetscapePluginInstanceProxy.h:
3099         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
3100         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
3101         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
3102         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
3103         (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
3104         (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
3105         (WebKit::NetscapePluginInstanceProxy::evaluate):
3106         (WebKit::NetscapePluginInstanceProxy::invoke):
3107         (WebKit::NetscapePluginInstanceProxy::invokeDefault):
3108         (WebKit::NetscapePluginInstanceProxy::construct):
3109         (WebKit::NetscapePluginInstanceProxy::addValueToArray):
3110         * WebView/WebScriptDebugger.h:
3111         * WebView/WebScriptDebugger.mm:
3112         (WebScriptDebugger::WebScriptDebugger):
3113
3114 2011-02-15  Jia Pu  <jpu@apple.com>
3115
3116         Reviewed by Darin Adler.
3117
3118         Autocorrection should respect undo.
3119         https://bugs.webkit.org/show_bug.cgi?id=52221
3120         <rdar://problem/8663399>
3121
3122         Please see WebCore/ChangeLog for detailed description.
3123
3124         * WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.
3125
3126         * WebCoreSupport/WebEditorClient.mm:
3127         (WebEditorClient::recordAutocorrectionResponse): Ditto.
3128
3129         * WebView/WebFrame.mm:
3130         (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
3131              Adopted new signature of ReplaceSelectionCommand::create().
3132
3133 2011-02-15  David Kilzer  <ddkilzer@apple.com>
3134
3135         <http://webkit.org/b/54485> Fix spelling of -inProgramaticScroll
3136
3137         Reviewed by Darin Adler.
3138
3139         * WebView/WebDynamicScrollBarsView.h:
3140         * WebView/WebDynamicScrollBarsView.mm:
3141         (-[WebDynamicScrollBarsView inProgrammaticScroll]): Renamed from
3142         -inProgramaticScroll.
3143         * WebView/WebHTMLView.mm:
3144         (-[WebHTMLView _frameOrBoundsChanged]): Corrected method name.
3145
3146 2011-02-15  Kenneth Russell  <kbr@google.com>
3147
3148         Reviewed by Darin Fisher.
3149
3150         Allow controlling minimum DOMTimer interval on a per-page basis
3151         https://bugs.webkit.org/show_bug.cgi?id=54312
3152
3153         Added needed methods to implement LayoutTestController's new
3154         setMinimumTimerInterval method.
3155
3156         * WebView/WebView.mm:
3157         (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
3158         (+[WebView _defaultMinimumTimerInterval]):
3159         (-[WebView _setMinimumTimerInterval:]):
3160         * WebView/WebViewPrivate.h:
3161
3162 2011-02-11  Geoffrey Garen  <ggaren@apple.com>
3163
3164         Reviewed by Oliver Hunt.
3165
3166         A little more encapsulation for the heap: Removed CollectorHeapIterator
3167         https://bugs.webkit.org/show_bug.cgi?id=54298
3168
3169         * Misc/WebCoreStatistics.mm:
3170         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
3171         (+[WebCoreStatistics javaScriptObjectTypeCounts]): Updated for new typedef.
3172
3173 2011-02-10  Nate Chapin  <japhet@chromium.org>
3174
3175         Reviewed by Adam Barth.
3176
3177         Update calls to DocumentWriter.
3178         https://bugs.webkit.org/show_bug.cgi?id=50489
3179
3180         * WebView/WebFrame.mm:
3181         (-[WebFrame _canProvideDocumentSource]):
3182
3183 2011-02-10  Chris Fleizach  <cfleizach@apple.com>
3184
3185         Reviewed by Anders Carlsson.
3186
3187         AX: AX needs to stop using WebCoreViewFactory
3188         https://bugs.webkit.org/show_bug.cgi?id=54153
3189
3190         * WebCoreSupport/WebSystemInterface.mm:
3191         (InitWebCoreSystemInterface):
3192
3193 2011-02-10  Peter Varga  <pvarga@webkit.org>
3194
3195         Reviewed by Csaba Osztrogonác.
3196
3197         Remove PCRE source from trunk
3198         https://bugs.webkit.org/show_bug.cgi?id=54188
3199
3200         * ForwardingHeaders/pcre/pcre.h: Removed.
3201
3202 2011-02-09  Pavel Feldman  <pfeldman@chromium.org>
3203
3204         Reviewed by Yury Semikhatsky.
3205
3206         Web Inspector: follow up on InspectorAgent split -
3207         removing unnecessary methods from InspectorController.
3208         https://bugs.webkit.org/show_bug.cgi?id=54093
3209
3210         * WebInspector/WebInspector.mm:
3211         (-[WebInspector showConsole:]):
3212         (-[WebInspector stopProfilingJavaScript:]):
3213
3214 2011-02-08  Dan Bernstein  <mitz@apple.com>
3215
3216         Reviewed by Jon Honeycutt and Maciej Stachowiak.
3217
3218         <rdar://problem/8959420> Find in Mail no longer cycles around
3219
3220         * WebView/WebHTMLView.mm:
3221         (-[WebHTMLView searchFor:direction:caseSensitive:wrap:startInSelection:]): Set
3222         the wrap option according to the flag.
3223
3224 2011-02-08  Sheriff Bot  <webkit.review.bot@gmail.com>
3225
3226         Unreviewed, rolling out r77980.
3227         http://trac.webkit.org/changeset/77980
3228         https://bugs.webkit.org/show_bug.cgi?id=54043
3229
3230         "Crashes on Windows and Linux..." (Requested by leviw on
3231         #webkit).
3232
3233         * WebView/WebFrame.mm:
3234         (-[WebFrame _caretRectAtNode:offset:affinity:]):
3235         * WebView/WebFrameInternal.h:
3236         * WebView/WebTextCompletionController.mm:
3237         (-[WebTextCompletionController doCompletion]):
3238
3239 2011-02-08  Levi Weintraub  <leviw@chromium.org>
3240
3241         Reviewed by Ryosuke Niwa.
3242
3243         Stop instantiating legacy editing Positions in VisiblePosition
3244         https://bugs.webkit.org/show_bug.cgi?id=52919
3245
3246         Changing usage of legacy VisiblePosition constructor. Since we were dealing
3247         with positions from DOM Ranges, we're guaranteed a parent-anchored position.
3248
3249         * WebView/WebFrame.mm:
3250         (-[WebFrame _caretRectAtPosition:affinity:]):
3251         * WebView/WebFrameInternal.h:
3252         * WebView/WebTextCompletionController.mm:
3253         (-[WebTextCompletionController doCompletion]):
3254
3255 2011-02-08  Adam Barth  <abarth@webkit.org>
3256
3257         Reviewed by Eric Seidel.
3258
3259         Remove orphan code from old parser
3260         https://bugs.webkit.org/show_bug.cgi?id=53984
3261
3262         * WebCoreSupport/WebChromeClient.h:
3263
3264 2011-02-02  Ilya Tikhonovsky  <loislo@chromium.org>
3265
3266         Reviewed by Yury Semikhatsky.
3267
3268         Web Inspector: move InspectorController's methods from InspectorAgent to InspectorController.
3269
3270         https://bugs.webkit.org/show_bug.cgi?id=53169
3271
3272         Minor change enforced by major changes in WebCore/inspector/InspectorController.
3273
3274         * WebInspector/WebInspector.mm:
3275         (-[WebInspector isTimelineProfilingEnabled]):
3276
3277 2011-02-07  Enrica Casucci  <enrica@apple.com>
3278
3279         Reviewed Adam Roben and Darin Adler.
3280
3281         WebKit2: drag and drop support on Windows.
3282         https://bugs.webkit.org/show_bug.cgi?id=52775
3283
3284         Removed createDragImageForLink from DragClient.
3285
3286         * WebCoreSupport/WebDragClient.h:
3287         * WebCoreSupport/WebDragClient.mm:
3288         (WebDragClient::startDrag):
3289
3290 2011-02-03  Yury Semikhatsky  <yurys@chromium.org>
3291
3292         Reviewed by Pavel Feldman.
3293
3294         Web Inspector: remove settings related methods from InspectorClient
3295         https://bugs.webkit.org/show_bug.cgi?id=53686
3296
3297         * WebCoreSupport/WebInspectorClient.h:
3298         * WebCoreSupport/WebInspectorClient.mm:
3299         (WebInspectorClient::openInspectorFrontend):
3300         (WebInspectorFrontendClient::WebInspectorFrontendClient):
3301
3302 2011-02-03  James Kozianski  <koz@chromium.org>
3303
3304         Reviewed by Dimitri Glazkov.
3305
3306         Add navigator.registerProtocolHandler behind a flag.
3307         https://bugs.webkit.org/show_bug.cgi?id=52609
3308
3309         * Configurations/FeatureDefines.xcconfig:
3310
3311 2011-02-03  Adam Langley  <agl@chromium.org>
3312
3313         Reviewed by Adam Barth.
3314
3315         Plumb mixed script URL to FrameLoaderClient
3316         https://bugs.webkit.org/show_bug.cgi?id=52384
3317
3318         Regressions covered by http/tests/security/mixedContent/*
3319
3320         * WebCoreSupport/WebFrameLoaderClient.h:
3321         * WebCoreSupport/WebFrameLoaderClient.mm:
3322         (WebFrameLoaderClient::didRunInsecureContent):
3323
3324 2011-02-03  Beth Dakin  <bdakin@apple.com>
3325
3326         Reviewed by Sam Weinig.
3327
3328         Fix for <rdar://problem/8944544> Ability to animate track
3329         for WKPainter scrollers
3330
3331         * WebCoreSupport/WebSystemInterface.mm:
3332         (InitWebCoreSystemInterface):
3333
3334 2011-02-02  Mark Rowe  <mrowe@apple.com>
3335
3336         Reviewed by Beth Dakin.
3337
3338         <rdar://problem/8928367> Crash when loading canvas pages inside HTMLCanvasElement::createImageBuffer().
3339
3340         * WebCoreSupport/WebSystemInterface.mm:
3341         (InitWebCoreSystemInterface): Add some missing initializers.
3342
3343 2011-02-02  Steve Lacey  <sjl@chromium.org>
3344
3345         Reviewed by Eric Carlson.
3346
3347         Implement basic media statistics on media elements.
3348         https://bugs.webkit.org/show_bug.cgi?id=53322
3349
3350         * Configurations/FeatureDefines.xcconfig:
3351
3352 2011-02-01  Sam Weinig  <sam@webkit.org>
3353
3354         Reviewed by Beth Dakin.
3355
3356         Part 2 for <rdar://problem/8492788>
3357         Adopt WKScrollbarPainterController
3358
3359         Use header detection to define scrollbar painting controller #define.
3360
3361         * WebCoreSupport/WebSystemInterface.mm:
3362         (InitWebCoreSystemInterface):
3363
3364 2011-02-01  David Hyatt  <hyatt@apple.com>
3365
3366         Reviewed by Oliver Hunt.
3367
3368         https://bugs.webkit.org/show_bug.cgi?id=53520
3369         
3370         Remove the physical terminology from IntRect and FloatRect.
3371         
3372         Now that we have flipped RenderBlocks for vertical-rl and horizontal-bt writing modes,
3373         we need to update our terminology to be more accurate.
3374
3375         I'm borrowing a page from AppKit here (which also supports flipped NSViews) and
3376         renaming right() and bottom() to maxX() and maxY().  These terms remain accurate
3377         even for flipped rectangles.
3378
3379         * WebView/WebHTMLView.mm:
3380         (setNeedsDisplayInRect):
3381
3382 2011-02-01  Beth Dakin  <bdakin@apple.com>
3383
3384         Reviewed by Sam Weinig.
3385
3386         Fix for <rdar://problem/8492788> Adopt WKScrollbarPainterController
3387
3388         * WebCoreSupport/WebSystemInterface.mm:
3389         (InitWebCoreSystemInterface):
3390
3391 2011-02-01  Dave Hyatt  <hyatt@apple.com>
3392
3393         Reviewed by Darin Adler.
3394
3395         https://bugs.webkit.org/show_bug.cgi?id=46422, make printing and pagination work
3396         with vertical text.
3397
3398         Change printing functions to check writing-mode and properly swap width and height
3399         as needed.
3400
3401         * WebView/WebDynamicScrollBarsView.mm:
3402         (-[WebDynamicScrollBarsView setScrollOrigin:updatePositionAtAll:immediately:]):
3403         * WebView/WebFrame.mm:
3404         (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]):
3405         * WebView/WebFrameInternal.h:
3406         * WebView/WebHTMLView.mm:
3407         (-[WebHTMLView _web_setPrintingModeRecursive]):
3408         (-[WebHTMLView _web_clearPrintingModeRecursive]):
3409         (-[WebHTMLView _web_setPrintingModeRecursiveAndAdjustViewSize]):
3410         (-[WebHTMLView _beginPrintModeWithMinimumPageWidth:height:maximumPageWidth:]):
3411         (-[WebHTMLView _beginPrintModeWithPageWidth:height:shrinkToFit:]):
3412         (-[WebHTMLView _endPrintMode]):
3413         (-[WebHTMLView _beginScreenPaginationModeWithPageSize:shrinkToFit:]):
3414         (-[WebHTMLView _endScreenPaginationMode]):
3415         (-[WebHTMLView layoutToMinimumPageWidth:height:maximumPageWidth:adjustingViewSize:]):
3416         (-[WebHTMLView _setPrinting:minimumPageLogicalWidth:logicalHeight:maximumPageLogicalWidth:adjustViewSize:paginateScreenContent:]):
3417         (-[WebHTMLView adjustPageHeightNew:top:bottom:limit:]):
3418         (-[WebHTMLView _scaleFactorForPrintOperation:]):
3419         (-[WebHTMLView setPageWidthForPrinting:]):
3420         (-[WebHTMLView knowsPageRange:]):
3421
3422 2011-01-31  Oliver Hunt  <oliver@apple.com>
3423
3424         Convert markstack to a slot visitor API
3425         https://bugs.webkit.org/show_bug.cgi?id=53219
3426
3427         rolling r77098, r77099, r77100, r77109, and
3428         r77111 back in, along with a few more Qt fix attempts.
3429
3430         * WebView/WebScriptDebugDelegate.mm:
3431         (-[WebScriptCallFrame scopeChain]):
3432
3433 2011-01-30  Csaba Osztrogonác  <ossy@webkit.org>
3434
3435         Unreviewed, rolling out r77098, r77099, r77100, r77109, and
3436         r77111.
3437         http://trac.webkit.org/changeset/77098
3438         http://trac.webkit.org/changeset/77099
3439         http://trac.webkit.org/changeset/77100
3440         http://trac.webkit.org/changeset/77109
3441         http://trac.webkit.org/changeset/77111
3442         https://bugs.webkit.org/show_bug.cgi?id=53219
3443
3444         Qt build is broken
3445
3446         * WebView/WebScriptDebugDelegate.mm:
3447         (-[WebScriptCallFrame scopeChain]):
3448
3449 2011-01-30  Oliver Hunt  <oliver@apple.com>
3450
3451         Convert markstack to a slot visitor API
3452         https://bugs.webkit.org/show_bug.cgi?id=53219
3453
3454         rolling r77006 and r77020 back in.
3455
3456         * WebView/WebScriptDebugDelegate.mm:
3457         (-[WebScriptCallFrame scopeChain]):
3458
3459 2011-01-28  Geoffrey Garen  <ggaren@apple.com>
3460
3461         Reviewed by Maciej Stachowiak.
3462
3463         Some more Heap cleanup.
3464         https://bugs.webkit.org/show_bug.cgi?id=53357
3465
3466         Updated for JavaScriptCore changes.
3467
3468         * Misc/WebCoreStatistics.mm:
3469         (+[WebCoreStatistics memoryStatistics]):
3470
3471 2011-01-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3472
3473         Unreviewed, rolling out r77006 and r77020.
3474         http://trac.webkit.org/changeset/77006
3475         http://trac.webkit.org/changeset/77020
3476         https://bugs.webkit.org/show_bug.cgi?id=53360
3477
3478         "Broke Windows tests" (Requested by rniwa on #webkit).
3479
3480         * WebView/WebScriptDebugDelegate.mm:
3481         (-[WebScriptCallFrame scopeChain]):
3482
3483 2011-01-27  Oliver Hunt  <oliver@apple.com>
3484
3485         Reviewed by Geoffrey Garen.
3486
3487         Convert markstack to a slot visitor API
3488         https://bugs.webkit.org/show_bug.cgi?id=53219
3489
3490         Update to new marking api
3491
3492         * WebView/WebScriptDebugDelegate.mm:
3493         (-[WebScriptCallFrame scopeChain]):
3494
3495 2011-01-28  Dan Bernstein  <mitz@apple.com>
3496
3497         Reviewed by Sam Weinig.
3498
3499         <select> can't display right-to-left (rtl) languages
3500         https://bugs.webkit.org/show_bug.cgi?id=19785
3501
3502         * WebCoreSupport/WebChromeClient.h:
3503         * WebCoreSupport/WebChromeClient.mm:
3504         (WebChromeClient::selectItemWritingDirectionIsNatural): Changed to return false.
3505         (WebChromeClient::selectItemAlignmentFollowsMenuWritingDirection): Added. Returns true.
3506
3507 2011-01-27  Sheriff Bot  <webkit.review.bot@gmail.com>
3508
3509         Unreviewed, rolling out r76891.
3510         http://trac.webkit.org/changeset/76891
3511         https://bugs.webkit.org/show_bug.cgi?id=53280
3512
3513         Makes every layout test crash (Requested by othermaciej on
3514         #webkit).
3515
3516         * Misc/WebIconDatabase.mm:
3517         (-[ThreadEnabler threadEnablingSelector:]):
3518         (importToWebCoreFormat):
3519
3520 2011-01-27  Nate Chapin  <japhet@chromium.org>
3521
3522         Reviewed by Adam Barth.
3523
3524         Use Document::url() instead of FrameLoader::url().
3525         https://bugs.webkit.org/show_bug.cgi?id=41165
3526
3527         * WebView/WebView.mm:
3528         (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
3529
3530 2011-01-27  Dan Bernstein  <mitz@apple.com>
3531
3532         Rubber-stamped by Anders Carlsson.
3533
3534         Reverted an accidental change in r76561.
3535
3536         * WebView/WebHTMLView.mm:
3537
3538 2011-01-26  David Kilzer  <ddkilzer@apple.com>
3539
3540         <http://webkit.org/b/53192> Add experimental support for HTTP pipelining in CFNetwork
3541         <rdar://problem/8821760>
3542
3543         Reviewed by Antti Koivisto.
3544
3545         * WebCoreSupport/WebSystemInterface.mm:
3546         (InitWebCoreSystemInterface): Added initialization for
3547         GetHTTPPipeliningPriority and SetHTTPPipeliningPriority.
3548
3549 2011-01-26  Beth Dakin  <bdakin@apple.com>
3550
3551         Reviewed by Darin Adler.
3552
3553         Fix for <rdar://problem/8895140> Adopt WKScrollbar metrics 
3554         when using WKScrollbars.
3555
3556         * WebCoreSupport/WebSystemInterface.mm:
3557         (InitWebCoreSystemInterface):
3558
3559 2011-01-25  Darin Adler  <darin@apple.com>
3560
3561         Reviewed by Anders Carlsson.
3562
3563         WebKit is using CSBackupSetItemExcluded incorrectly
3564         https://bugs.webkit.org/show_bug.cgi?id=53095
3565         rdar://pr